SM39R08A5
8-Bit Micro-controller
with 8KB Flash
& 256B RAM embedded
14.10-bit Analog-to-Digital Converter (ADC)
The SM39R08A5 provides eight channels 10-bit ADC. The Digital output DATA [9:0] were put into ADCD [9:0].
The ADC interrupt vector is 53H.
VDD
ADCC1[7:0
ADCCH[2:0]
]
Start
AVDD
ADC0
ADCD[9:0]
ADC_ISR
MUX
ADC6
ADC7
High Speed
10 Bits
ADC Module
ADC
Clock
Divider
Fos
c
AVSS
VSS
ADCCS[4:0]
ADC clock=Fosc/2…Fosc/64=15KHZ~12.5MHZ
ADC conversion rate Max = 960KHZ
The ADC SFR show as below:
Mnemonic Description
Direct Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0 RESET
ADC
ADC Control
ADCC1
ABh ADC7ENADC6ENADC5ENADC4ENADC3ENADC2ENADC1ENADC0EN 00H
register 1
ADC Control
register 2
ADC data
high byte
ADC data low
byte
ADCC2
ACh
ADh
AEh
AFh
Start ADJUST
-
-
-
ADCCH[2:0]
00H
00H
00H
00H
ADCDH
ADCDH [7:0]
ADCDL [7:0]
ADCDL
ADC clock
ADCCS
-
-
-
ADCCS[4:0]
select
Mnemonic: ADCC1
Address: ABh
Reset
7
6
5
4
3
2
1
0
ADC7EN ADC6ENADC5EN ADC4ENADC3ENADC2EN ADC1EN ADC0EN 00H
ADC7EN: ADC channels 7 enable.
ADC7EN = 1 – Enable ADC channel 7
ADC6EN: ADC channels 6 enable.
ADC6EN = 1 – Enable ADC channel 6
ADC5EN: ADC channels 5 enable.
ADC5EN = 1 – Enable ADC channel 5
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M067
Ver B SM39R08A5 04/22/2013
- 47 -