S12 Output COmpare

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S12 Output COmpare

1,116件の閲覧回数
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
ラベル(1)
0 件の賞賛
1 返信

325件の閲覧回数
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 件の賞賛