Interrupts and revision of the chip
"sripathy23" <[email protected]>
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers |
|---|---|
| Message-ID | <[email protected]> |
Dear Members I was trying to generate an interrupt using the example 7.3.4 (interrupt using a single source). Instead of using SCI I am using a PIT interrupt routine given in example 7.3.1 in AN2109 application note. The revision of my chip mpc555(CME0555) is k3. i got a mail from the group saying that the software written for the older version G is not compatible with newer Revision K3. Here is the software from metrowerks. I have given below the file where we could not see our revision of the chip. In the file below I have to select the MCU chip that contains the CMF flash array. I could not select the correct revision because there is no newer revision K3. Can I use the older revision G to download the binary file into my internal flash. What target should I use for the interrupt to work correctly.That is, should i use the debug version or rom version or auto flash. If I have to download the program into internal flash should I use a flash programmer and should i set the jumper and switches. Where can i find the document which helps me write the program into internal flash.Should I make any changes in linker command file. When i run my program the interrupt is being generated but the interrupt routine is not run. I went to the location 0x500 and found that there is no code written there. I have a question about this. When I run the program will the interrupt routine be written automatically or should i write the routine using a flash programmer in 0x500. I would be really happy if anyone can reply to all these questions. I have agiven below the software where I cannnot the appropriate revision for my chip. The path is CodeWarrior\PowerPC_EABI_Tools\MetroTRK\Processor\ppc\Board\axiom\mpc_ 555\mot_flash\demo /********************************************************************* **** * Copyright (C) 1999 by Motorola. All rights reserved. * * * ********************************************************************** *** ********************************************************************** *** * * * Flash Target Resident Driver API Test Code Options * * * * This file contains build options for the CMF driver. The user will * * select the bus interface based of the CPU core, the version of the * * CMF flash memory, and the base address of the binary image. * * * * FILE NAME : trd_opts.h * * VERSION: : 0.10 * * DATE : 18 March 1999 * * * * AUTHOR : Michael Pechal * * EMAIL : [email protected] * * * ********************************************************************** ***/ /******************************* CHANGES ******************************** 0.10 18.03.1999 MP Initial Revision ********************************************************************** ***/ /***************************** Processor Selection ***********************/ /* Please select on of the following three options: */ #define CPU_TYPE_PPC 1 #define CPU_TYPE_68K 0 #define CPU_TYPE_MCORE 0 /******************************* CMF Version *****************************/ /* Please select the MCU chip that contains the CMF flash array. The letters following CMF indicate the revisions of the flash. This pre-processor conditional will select which values inside DESC_VALS.H will be assigned to the descriptor in SetDescriptor() in PARTS.C */ #define MPC555_CMF_ABC 0 /* NON-PAWS */ #define MPC555_CMF_DEF 0 /* PAWS */ #define MPC555_CMF_G 1 /* PAWS */ #define MC68F375_CMF_B 0 /* NON-PAWS */ #define MC68F375_CMF_D 0 /* PAWS */ #define MC68F372_CMF_A 0 /* NON-PAWS */ #define MC68F372_CMF_B 0 /* PAWS */ /******************************** Base Address ***************************/ /* Please set the address of where you will load the binary image. */ /* For CPU32: 0x200000 For PPC: 0x3F9800 */ //#define DRIVER_BASE_ADDR 0x200000 /********************************************************************* ****/ ---------------------------------------------------------------------- ---------- ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/dN_tlB/TM --------------------------------------------------------------------~-> ----------------------------------------------------------- To learn more about Freescale Microcontrollers, please visit http://www.freescale.com/mcu Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/MPC500/ <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/