S12 Output COmpare

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S12 Output COmpare

1,115 次查看
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 回复

324 次查看
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 项奖励