FR60 MB91460E Series - Microcontrollers - Fujitsu
FR60 MB91460E Series - Microcontrollers - Fujitsu
FR60 MB91460E Series - Microcontrollers - Fujitsu
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
6. Operation of A/D Converter<br />
<strong>MB91460E</strong> <strong>Series</strong><br />
The A/D converter operates using the successive approximation method with 10-bit or 8-bit resolution. There is<br />
one 16-bit register provided to store conversion results (ADCR), which is updated each time conversion completes.<br />
Additionally, there is one ADC Channel Data register per channel (ADCD0...31), which is updated each<br />
time the assigned channel is converted. The Channel Data registers especially improve the continous conversion<br />
mode.<br />
It is recommended to use the DMA service. The following describes the operation modes.<br />
6.1. Single Mode<br />
In single conversion mode, the analog input signals selected by the ANS bits and ANE bits are converted in<br />
order until the completion of conversion on the end channel determined by the ANE bits. A/D conversion then<br />
ends. If the start channel and end channel are the same (ANS=ANE), only a single channel conversion is<br />
performed.<br />
Examples:<br />
• ANS=00000b, ANE=00011b<br />
Start -> AN0 -> AN1 -> AN2 -> AN3 -> End<br />
• ANS=00010b, ANE=00010b<br />
Start -> AN2 -> End<br />
6.2. Continuous Mode<br />
In continuous mode the analog input signals selected by the ANS bits and ANE bits are converted in order until<br />
the completion of conversion on the end channel determined by the ANE bits, then the converter returns to the<br />
ANS channel for analog input and repeats the process continuously. When the start and end channels are the<br />
same (ANS=ANE), conversion is performed continuously for that channel.<br />
Examples:<br />
• ANS=00000b, ANE=00011b<br />
Start -> AN0 -> AN1 -> AN2 -> AN3 -> AN0 ... -> repeat<br />
• ANS=00010b, ANE=00010b<br />
Start -> AN2 -> AN2 -> AN2 ... -> repeat<br />
In continuous mode, conversion is repeated until '0' is written to the BUSY bit. (Writing '0' to the BUSY bit forcibly<br />
stops the conversion operation.) Note that forcibly terminating operation halts the current conversion during midconversion.<br />
(If operation is forcibly terminated, the value in the conversion register is the result of the most<br />
recently completed conversion.)<br />
6.3. Stop Mode<br />
In stop mode the analog input signal selected by the ANS bits and ANE bits are converted in order, but conversion<br />
operation pauses after each channel. The pause is released by applying another start signal.<br />
At the completion of conversion on the end channel determined by the ANE bits, the converter returns to the<br />
ANS channel for analog input signal and repeats the conversion process continuously. When the start and end<br />
channel are the same (ANS=ANE), only a signal channel conversion is performed.<br />
Examples:<br />
• ANS=00000b, ANE=00011b<br />
Start -> AN0 -> stop -> start -> AN1 -> stop -> start -> AN2 -> stop -> start -> AN3 -> stop -> start -> AN0 ...<br />
-> repeat<br />
• ANS=00010b, ANE=00010b<br />
Start -> AN2 -> stop -> start -> AN2 -> stop -> start -> AN2 ... -> repeat<br />
DS705-00002-1v3-E 47