A/D Conversion Data Protection Function - Fujitsu MB90460 Series Hardware Manual

F2mc-16lx 16-bit microcontroller
Table of Contents

Advertisement

20.6.2

A/D Conversion Data Protection Function

When A/D conversion is performed in the interrupt enabled state, the conversion data
protection function operates.
■ A/D Conversion Data Protection Function
The A/D converter has just one data register that holds conversion data. When a single A/D conversion is
completed, the data in the data register is rewritten.
If the conversion data were not transferred to memory before the next conversion data was stored, part of
the conversion data would be lost. The data protection function operates in the interrupt enabled state
(INTE = 1), as described below, to prevent loss of data.
Data protection function when EI
When conversion data is stored in the A/D data register (ADCR0/ADCR1), the INT bit of the A/D control
status register1 (ADCS1) is set to "1".
While the INT bit is "1", A/D conversion is halted.
Halt status is released when the INT bit is cleared after data in the A/D data register (ADCR0/ADCR1) has
been transferred to memory by the interrupt routine.
Data protection function when EI
In continuous conversion using EI
"1" when a conversion ends. This status continues until EI
from the data register to memory. In the meantime, the A/D conversion is halted, and the next conversion
data is not stored. When the data transfer to memory is completed, the PAUS bit is cleared to "0" and
conversion resumes.
Figure 20.6-5 shows the operation flow of the data protection function when EI
2
OS is not used
2
OS is used
2
OS, the PAUS bit of the A/D control status register1 (ADCS1) is kept at
CHAPTER 20 8/10-BIT A/D CONVERTER
2
OS finishes transferring the conversion data
2
OS is used.
561

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb90465 series

Table of Contents