Contents-8
Transmit settings ................................................................................... 12-23
Receive settings .................................................................................... 12-24
12.5.3.3 Baud Rate Generator (Timer 4) Settings ...................................... 12-24
12.5.4 SIO1 Interrupt ......................................................................................... 12-25
12.6 SIO0, SIO1 Operation .................................................................................. 12-26
12.6.1 Transmit Operation ................................................................................. 12-26
12.6.2 Receive Operation .................................................................................. 12-34
12.7 SIO3 ............................................................................................................. 12-39
12.7.1 SIO3 Configuration ................................................................................. 12-39
12.7.2 Description of SIO3 Registers ................................................................ 12-40
(1) SIO3 control register (SIO3CON) ........................................................... 12-40
(2) SIO3 register (SIO3R) ............................................................................ 12-42
12.7.3 Example of SIO3-related Register Settings ............................................ 12-42
Transmit-receive settings ........................................................................ 12-42
Baud rate generator (Timer 5) settings ................................................... 12-43
12.7.4 SIO3 Operation ....................................................................................... 12-43
12.7.5 SIO3 Interrupt ......................................................................................... 12-45
Chapter 13
A/D Converter Functions
13.1 Overview ........................................................................................................ 13-1
13.2 A/D Converter Configuration .......................................................................... 13-1
13.3 A/D Converter Registers ................................................................................ 13-2
13.3.1 Description of A/D Converter Registers .................................................... 13-3
(1) A/D control register 0L (ADCON0L) .......................................................... 13-3
(2) A/D control register 0H (ADCON0H) ........................................................ 13-5
(3) A/D interrupt control register (ADINT0) ..................................................... 13-7
(4) A/D result registers (ADR00 to ADR07) .................................................... 13-8
13.3.2 Example of A/D Converter-related Register Settings ............................... 13-9
Scan mode setting .................................................................................... 13-9
Select mode setting .................................................................................. 13-9
13.4 A/D Converter Operation ............................................................................. 13-10
13.5 Notes Regarding Usage of A/D Converter ................................................... 13-11
13.5.1 Considerations When Setting the Conversion Time ............................... 13-11
13.5.2 Noise-Suppression Measures ................................................................. 13-13
13.6 A/D Converter Interrupt ................................................................................ 13-14
Chapter 14
Peripheral Functions
14.1 Overview ........................................................................................................ 14-1
14.2 Description of Each Peripheral Function ........................................................ 14-1
14.2.1 Clock Out Function ................................................................................... 14-1