HT45R38
Analog Switch
There are 12 analog switch lines in the microcontroller for RC1~RC12, and a corresponding Analog Switch control reg-
ister, which is mapped to the data memory of ²1CH².
Bit No.
Label
ASON
¾
Function
Defines the analog switch for RC1~RC12 which is on. ASON=
00000b= Analog switch 1 on, other analog switch off
00001b= Analog switch 2 on, other analog switch off
00010b= Analog switch 3 on, other analog switch off
00011b= Analog switch 4 on, other analog switch off
00100b= Analog switch 5 on, other analog switch off
00101b= Analog switch 6 on, other analog switch off
00110b= Analog switch 7 on, other analog switch off
00111b= Analog switch 8 on, other analog switch off
01000b= Analog switch 9 on, other analog switch off
01001b= Analog switch 10 on, other analog switch off
01010b= Analog switch 11 on, other analog switch off
01011b= Analog switch 12 on, other analog switch off
01100b= All analog switch off
0~4
01101b= All analog switch off
01110b= All analog switch off
01111b= All analog switch off
1xxxxb= All analog switch off and RC OSC always off
5~7
Unused bit, read as ²0²
ASCR (1CH) Register
A
S
O
N
R
R
R
R
R
R
R
R
R
C
C
C
C
C
C
C
C
C
1
2
3
4
5
6
7
8
9
T
T
T
T
T
T
T
T
T
.
.
.
.
.
.
.
.
.
G
G
G
G
G
G
G
G
G
.
.
.
.
.
.
.
.
.
1
2
3
4
5
6
7
8
9
R
R
R
C
C
C
1
1
1
0
1
2
T
.
G
.
1
0
T
T
.
.
G
G
.
.
1
1
1
2
R
C
O
U
T
I
N
R
R
E
F
C
R
E
F
T
i
m
e
r
B
Analog Switch
Rev. 1.00
20
December 13, 2006