S12X Conversion Sequence Length and WRAP

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

S12X Conversion Sequence Length and WRAP

ソリューションへジャンプ
1,136件の閲覧回数
maatweeb
Contributor II

What is the difference between using the conversion sequence length and the WRAP bits?  If SCAN = 1 and MULT = 1 (continuous scan and multiple channels), won't the conversion sequence length and the WRAP bits be doing the same function?  Does one have a precendence over the other?  Can I only write to WRAP and leave conversion sequence at the default?  Currently I just set them to be equal, i.e. wrap at AN7 and conversion length = 8.

ラベル(1)
0 件の賞賛
返信
1 解決策
639件の閲覧回数
kef
Specialist I

You can start conversion sequence from channel other than AN0. With default WRAP setting or on older S12 which don't have WRAP bits, you could start for example sequence of 8 channels from AN12. That would convert channels AN12 to AN15, then AN0 to AN3. I didn't try any wrapping myself yet, but I think with wrap set to 13, you could convert AN12,AN13, then AN0 to AN5. This makes sense in case tight layout asks you to skip some ATD pins.

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
640件の閲覧回数
kef
Specialist I

You can start conversion sequence from channel other than AN0. With default WRAP setting or on older S12 which don't have WRAP bits, you could start for example sequence of 8 channels from AN12. That would convert channels AN12 to AN15, then AN0 to AN3. I didn't try any wrapping myself yet, but I think with wrap set to 13, you could convert AN12,AN13, then AN0 to AN5. This makes sense in case tight layout asks you to skip some ATD pins.

0 件の賞賛
返信
639件の閲覧回数
maatweeb
Contributor II

Sounds good.  Thanks.

0 件の賞賛
返信