S12 Output COmpare

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

S12 Output COmpare

1,079 Views
Greeny
Contributor I

Hey,

 

i have a problem with the Output Compare function of my MC9S12C64 µC.

 

When i set the bit for Channel 6 Output Compare in the TIOS register i get the error Illegal_BP when starting the code.

 

if i use the bean wizard in codewarrior i can generate a pulse but it has double the length i set. If i set pulse width 2730µs then i will measure 5,4µs.

 

need help plzz :smileyhappy:

Message Edited by Greeny on 2009-05-20 12:45 PM
Labels (1)
0 Kudos
1 Reply

288 Views
ProcessorExpert
Senior Contributor III
This kind of issues is often caused a incorrect value in "Clock frequency [MHz]" available after unfolding "Input clock" and "Clock setting groups" in CPU bean. Could you please check that the value in the "Clock frequency [MHz]" corresponds to the value of crystal (oscillator) on your PCB board?

What bean are you using? This information is not mentioned in your post.

best regards
Vojtech Filip
Processor Expert Support Team
0 Kudos