SM59A16U1
8-Bit Micro-controller
64KB with ISP Flash
& 6K+256B RAM embedded
18. 10-bit Analog-to-Digital Converter ( ADC )
ADC module features:
The SM59A16U1 provides 8+1 channels 10-bit ADC.
The Digital output DATA [9:0] were put into ADCD [9:0].
The ADC channel 8 is only for OP0 convert to ADC function.
The ADC interrupt vector is 53H.
Mnemoni
c
Description
Dir.
Bit 7
Bit 6
Bit 5
ADC
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
RST
ADC Control
register 1
ADC7
EN
ADC6
EN
ADC5
EN
PWM
Trigge Trigge
rEN
ADC4
EN
EXT
ADC3
EN
ADC2
EN
ADC1
EN
ADC0
EN
ADCC1
ADCC2
ABh
ACh
00H
00H
ADC Control
register 2
ADJU
ST
ADC
MODE
Start
ADCCH[2:0]
rEN
ADC data high
byte
ADC data low
byte
ADCDH
ADCDL
ADh
AEh
ADCDH [7:0]
ADCDL [7:0]
00H
00H
OP0
ToAD
C
ADCE
N
ToP34
ADCCS
ADC clock select
AFh
-
ADCCS[4:0]
00H
18.1
ADC Control Register 1( ADCC1 )
Mnemonic: ADCC1
Address: ABh
Reset
7
6
5
4
3
2
1
0
ADC7EN ADC6EN ADC5EN ADC4EN ADC3EN ADC2EN ADC1EN ADC0EN 00H
ADC7EN: ADC Channels 7 Enable.
1 = Enable ADC channel 7
0 = Disable ADC channel 7
ADC6EN: ADC Channels 6 Enable.
1 = Enable ADC channel 6
0 = Disable ADC channel 6
ADC5EN: ADC Channels 5 Enable.
1 = Enable ADC channel 5
0 = Disable ADC channel 5
ADC4EN: ADC Channels 4 Enable.
1 = Enable ADC channel 4
0 = Disable ADC channel 4
ADC3EN: ADC Channels 3 Enable.
1 = Enable ADC channel 3
0 = Disable ADC channel 3
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M071 Ver A SM59A16U1 04/12/2013
- 114 -