SN8P2977
8-Bit Micro-Controller with Regulator, PGIA, 24-bit ADC
SONiX TECHNOLOGY CO., LTD
Page 5
V1.7
8.4
PWM0
MODE ......................................................................................................................................... 83
8.4.1
OVERVIEW ........................................................................................................................................ 83
8.4.2
TC0IRQ AND PWM DUTY ............................................................................................................... 84
8.4.3
PWM PROGRAM EXAMPLE ............................................................................................................ 84
8.4.4
PWM0 DUTY CHANGING NOTICE ................................................................................................ 85
9
99
UART ......................................................................................................................................................... 86
9.1
OVERVIEW ............................................................................................................................................ 86
9.2
UART
OPERATION ............................................................................................................................... 86
9.3
UART
TRANSFER
FORMAT ................................................................................................................ 87
9.4
ABNORMAL
POCKET ........................................................................................................................... 88
9.5
UART
BAUD
RATE ............................................................................................................................... 88
9.6
UART
RECEIVER
CONTROL
REGISTER............................................................................................ 90
9.7
UART
TRANSMITTER
CONTROL
REGISTER ................................................................................... 90
9.8
UART
TRANSMITTER
CONTROL
REGISTER ................................................................................... 91
9.9
UART
OPERATION
EXAMLPE ............................................................................................................ 92
1
11
0
00
BUZZER FUNCTION ................................................................................................................................ 93
10.1
OVERVIEW ............................................................................................................................................ 93
10.2
BUZZER
CONTROL
REGISTER ........................................................................................................... 93
1
11
1
11
LCD DRIVER ............................................................................................................................................. 94
11.1
OVERVIEW ............................................................................................................................................ 94
11.2
LCD
TIMING .......................................................................................................................................... 94
11.3
LCDM1
REGISTER ................................................................................................................................ 96
11.4
LCDM2
REGISTER ................................................................................................................................ 96
11.5
C-TYPE
LCD
DRIVER
MODE ............................................................................................................... 98
11.6
R-TYPE
LCD
DRIVER
MODE ............................................................................................................... 99
11.7
LCD
RAM
LOCATION ......................................................................................................................... 101
1
11
2
22
IN SYSTEM PROGRAM ROM ................................................................................................................ 102
12.1
OVERVIEW .......................................................................................................................................... 102
12.2
ROMADRH/ROMADRL
REGISTER ................................................................................................... 102
12.3
ROMDAH/ROMADL
REGISTERS ...................................................................................................... 102
12.4
ISP
ROM
ROUTINE
EXAMPLE .......................................................................................................... 103
1
11
3
33
REGULATOR, PGIA AND ADC ............................................................................................................. 104
13.1
OVERVIEW .......................................................................................................................................... 104
13.2
ANALOG
INPUT .................................................................................................................................. 104
13.3
V
OLTAGE
R
EGULATOR
............................................................................................................................ 105
13.3.1
Voltage Regulator Control Register ............................................................................................... 105
13.4
PGIA
-P
ROGRAMMABLE
G
AIN
I
NSTRUMENTATION
A
MPLIFIER
............................................................... 106
13.4.1
CHS- Analog input signal channel selection Register ................................................................... 106
13.4.2
AMPM- Amplifier Mode Control Register .................................................................................... 108
13.5
T
EMPERATURE
S
ENSOR
(TS) ................................................................................................................... 109
13.6
24-B
IT
A
NALOG TO
D
IGITAL
C
ONVERTER
(ADC) ................................................................................... 111
13.6.1
Analog Inputs and Voltage Operation Range ................................................................................ 111