中级会员
- 积分
- 427
- 威望
- 307
- 贡献
- 96
- 兑换币
- 74
- 注册时间
- 2008-3-23
- 在线时间
- 12 小时
|
Re:关于S12DG128 ATD的一些相关问题
<><FONT size=4>FIFO — Result Register FIFO Mode<BR>If this bit is zero (non-FIFO mode), the A/D conversion results map into the result registers based on<BR>the conversion sequence; the result of the first conversion appears in the first result register, the second result in the second result register, and so on.<BR>If this bit is one (FIFO mode) the conversion counter is not reset at the beginning or ending of a<BR>conversion sequence; sequential conversion results are placed in consecutive result registers. In a<BR>continuously scanning conversion sequence, the result register counter will wrap around when it<BR>reaches the end of the result register file. The conversion counter value (CC2-0 in ATDSTAT0) can<BR>be used to determine where in the result register file, the current conversion result will be placed.<BR>Aborting a conversion or starting a new conversion by write to an ATDCTL register (ATDCTL5-0)<BR>clears the conversion counter even if FIFO=1. So the first result of a new conversion sequence, started by writing to ATDCTL5, will always be place in the first result register (ATDDDR0). Intended usage of FIFO mode is continuos conversion (SCAN=1) or triggered conversion (ETRIG=1).<BR>Which result registers hold valid data can be tracked using the conversion complete flags. Fast flag<BR>clear mode may or may not be useful in a particular application to track valid data.<BR>1 = Conversion results are placed in consecutive result registers (wrap around at end).<BR>0 = Conversion results are placed in the corresponding result register up to the selected sequence<BR>length.</FONT></P> |
|