Channel interrupts not working in Full Chip simulation

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Channel interrupts not working in Full Chip simulation

3,384 Views
R_D
Contributor I
Hello,

       Using MC9S08AW16 processor, when I use debugger in Full Chip mode, the channel interrupts dont occur at al. But when I burn the program on the chip it works fine. Using codewarrior v5.7. I have set the frequency as ~19 MHz, but the P&E Multilink debugger reduces the frequecy to ~17MHz, it changes even if i put other frequencies.
Labels (1)
Tags (1)
0 Kudos
Reply
6 Replies

1,885 Views
R_D
Contributor I
Hi,

         Yes I had put a break point, but it dint stop.
      
        The ICG was configured properly for self clocked FLL engaged. it was set for about ~19Mhz using Device initialization. In the command window, it tells "frequency change to ~1775344MHz" when I run the program through the P&E debugger.


Message Edited by R_D on 2008-04-03 06:40 PM
0 Kudos
Reply

1,885 Views
bigmac
Specialist III
Hello,
 
On the timer issue, perhaps you should post your code.
 
It appears that the FEI mode setup of the ICG module currently uses a MFD setting for a multiplication value of 16, rather than the intended value of 18 (followed by a division of 2 for the RFD setting).  Can you confirm this within the initialisation code generated by PE.
 
The reason for this may be that you have not trimmed the internal reference, which with a multiplication of 18, could result in a DCO frequency (and bus frequency) that is out of specification.  Perhaps PE has automatically made the adjustment to take this into account.
 
Regards,
Mac
 
0 Kudos
Reply

1,885 Views
R_D
Contributor I
  And agian the debugger changes the frequency of the bus ie I had set to ~19, changed it to ~17, dont know why. Using Codewarrior V5.7.
0 Kudos
Reply

1,885 Views
bigmac
Specialist III
Hello,
 
When determining that the TPM channel interrupts do not work, do you place a break point within the respective ISR?
 
On the bus frequency issue, how have you determined that the bus frequency is incorrect?  Is the setup of the ICG module not as you intend?  You will need to elaborate.
 
For full chip simulation, the bus frequency is really a "fiction", since the simulator displays the number of bus cycles that have occurred during with the operation of the program.
 
Regards,
Mac
 
0 Kudos
Reply

1,885 Views
R_D
Contributor I
Hi Peg,

         Yes timer interrupts for each of the channel, TPM2 I have configured channels as OUTPUT COMPARE, interrupts dont occur of these channel. But works fine when I burn it on the chip and run the program.
0 Kudos
Reply

1,885 Views
peg
Senior Contributor IV
Hi R_D,

You will have to tell us some more detais here.
What version of Codewarrior?
Channels? Presumably TPM? How are you configuring them?
Set the frquency? What do you mean here?
TPM simulation usually works fine.

0 Kudos
Reply