IV ANALOG BLOCK: A/D CONVERTER
Stores the results of A/D conversion.
The LSB is stored in ADD0, and the MSB is stored in ADD9. ADD0 and ADD1 are mapped to bits D0 and D1 at the address 0x40241, but bits D2 through D7 are always 0 when read.
This is a
MS: A/D conversion mode selection (D5) / A/D trigger register (0x40242)
Selects an A/D conversion mode.
Write "1": Continuous mode
Write "0": Normal mode
Read: Valid
The A/D converter is set for the continuous mode by writing "1" to MS. In this mode, A/D conversions in the range of the channels selected using CS and CE are executed continuously until stopped in the software.
When MS = "0", the A/D converter operates in the normal mode. In this mode, A/D conversion is completed after all inputs in the range of the channels selected by CS and CE are converted in one operation.
At initial reset, MS is set to "0" (normal mode).
Selects a trigger to start A/D conversion.
Table 2.7 Trigger Selection
TS1 | TS0 | Trigger |
1 | 1 | External trigger (K52/#ADTRG) |
1 | 0 | |
0 | 1 | |
0 | 0 | Software |
When an external trigger is used, use the CFK52 bit to set the K52 pin for #ADTRG.
When a programmable timer is used, since its underflow signal
At initial reset, TS is set to "0" (software trigger).
Indicates the channel number (0 to 7) currently being
When A/D conversion is performed in multiple channels, read this bit to identify the channel in which conversion is underway.
At initial reset, CH is set to "0" (AD0).
Sets the conversion end channel by selecting a channel number from 0 to 7.
Analog inputs can be
Sets the conversion start channel by selecting a channel number from 0 to 7.
Analog inputs can be
A/D
S1C33L03 FUNCTION PART | EPSON |