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.
已解决! 转到解答。
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.
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.