prescale timer -ADC

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

prescale timer -ADC

2,496件の閲覧回数
Halom
Contributor I
Hi ,
I would like to know how should I prescale the AD converter if the timer has been prescale at 4 Mhz instead to 8 Mhz. 
I am using the MC9S12C32 in a program involving timer interrupt.
 I have some problem to understand it because the ADC has a max clock of 2 Mhz.
 
Thank you
 
ラベル(1)
0 件の賞賛
返信
1 返信

673件の閲覧回数
kef
Specialist I
You should select ATD prescaler so that busclock divided by prescaler is not higher than 2MHz (see ATD specs) and not less than 0.5MHz (again see ATD specs).
Suppose you use 8MHz crystal and no PLL. Then busclock is 4MHz. You can divide this at least by 2 and 2MHz. At the other hand you can divide 4MHz bus clock not more than 8 times, 4MHz /8=0.5MHz.
In datasheet table 8-8 you may see that Prescale Value bits are from binary 00000 to 00011.
0 件の賞賛
返信