Contents-7
(4) PWM control register 0 (PWCON0) .......................................................... 11-4
(5) PWM control register 1 (PWCON1) .......................................................... 11-6
11.3.2 Example of PWM-related Register Settings ............................................. 11-7
8-bit PWM settings .................................................................................... 11-7
16-bit PWM settings .................................................................................. 11-8
11.4 PWM Operation ............................................................................................. 11-9
11.4.1 PWM Operation During 8-bit Mode ........................................................... 11-9
11.4.2 PWM Operation During 16-bit Mode ....................................................... 11-10
11.4.3 PWM Operation During High-Speed Mode ............................................. 11-12
11.5 PWM Interrupts ............................................................................................ 11-14
Chapter 12
Serial Port Functions
12.1 Overview ........................................................................................................ 12-1
12.2 Serial Port Configuration ................................................................................ 12-1
12.3 Serial Port Registers ...................................................................................... 12-2
12.4 SIO0 ............................................................................................................... 12-3
12.4.1 SIO0 Configuration ................................................................................... 12-3
12.4.2 Description of SIO0 Registers .................................................................. 12-4
(1) SIO0 transmit control register (ST0CON) ................................................. 12-4
(2) SIO0 receive control register (SR0CON) .................................................. 12-6
(3) SIO0 status register (S0STAT) ................................................................. 12-8
(4) SIO0 transmit-receive buffer register (S0BUF) ....................................... 12-10
(5) SIO0 transmit shift register, receive shift register ................................... 12-10
12.4.3 Example of SIO0-related Register Settings ............................................ 12-11
Transmit settings .................................................................................... 12-11
Receive settings ..................................................................................... 12-11
Baud rate generator (Timer 3) settings ................................................... 12-12
12.4.4 SIO0 Interrupt ......................................................................................... 12-13
12.5 SIO1 ............................................................................................................. 12-14
12.5.1 SIO1 Configuration ................................................................................. 12-14
12.5.2 Description of SIO1 Registers ................................................................ 12-15
(1) SIO1 transmit control register (ST1CON) ............................................... 12-15
(2) SIO1 receive control register (SR1CON) ................................................ 12-17
(3) SIO1 status register (S1STAT) ............................................................... 12-19
(4) SIO1 transmit-receive buffer register (S1BUF) ....................................... 12-21
(5) SIO1 transmit shift register, receive shift register ................................... 12-21
12.5.3 Example of SIO1-related Register Settings ............................................ 12-22
12.5.3.1 UART Mode Settings .................................................................... 12-22
Transmit settings .................................................................................... 12-22
Receive settings ..................................................................................... 12-22
12.5.3.2 Synchronous Mode Settings ......................................................... 12-23