- iii -
Chapter 7 Timers (TIMER)
7.1 Overview ........................................................................................................ 7-1
7.2 Timer Configuration ....................................................................................... 7-1
7.3 Timer Registers .............................................................................................. 7-3
7.4 Timer Operation ............................................................................................. 7-10
7.4.1 Timer Clock ........................................................................................ 7-10
7.4.2 Timer Data Registers .......................................................................... 7-10
7.4.3 Timer Counter Registers .................................................................... 7-10
7.4.4 Timer Interrupt Requests and Overflow Flags .................................... 7-11
7.4.5 Auto-Reload Mode Operation ............................................................. 7-12
7.4.6 Capture Mode Operation .................................................................... 7-14
7.4.7 Frequency Measurement Mode Operation ......................................... 7-17
Chapter 8 Ports (INPUT, OUTPUT, I/O PORT)
8.1 Overview ........................................................................................................ 8-1
8.2 Ports List ........................................................................................................ 8-1
8.3 Port 0 to Port 6, Port 9 and Port A ................................................................. 8-2
8.3.1
Port 0 to Port 6, Port 9 and Port A Configuration ............................. 8-2
8.3.2
Port 0 to Port 6, Port 9 and Port A Registers .................................... 8-6
8.4 Port 7 ............................................................................................................ 8-19
8.4.1
Port 7 Configuration .......................................................................... 8-19
8.4.2
Port 7 Registers ................................................................................ 8-19
8.4.3
Port 7 Secondary Functions ............................................................. 8-21
8.5 Port 8 ............................................................................................................ 8-22
8.5.1
Port 8 Configuration .......................................................................... 8-22
8.5.2
Port 8 Registers ................................................................................ 8-23
8.6 External Interrupt ........................................................................................... 8-24
8.6.1
External Interrupt Overview .............................................................. 8-24
8.6.2
External Interrupt Configuration ........................................................ 8-24
8.6.3
External Interrupt Control Registers ................................................. 8-25
Chapter 9 Serial Port (SIO)
9.1 Overview ........................................................................................................ 9-1
9.2 Serial Port Configuration ................................................................................ 9-1
9.3 Serial Port Registers ...................................................................................... 9-3
9.4 Serial Port Operation Description .................................................................. 9-12
9.4.1
Data Format ...................................................................................... 9-12
9.4.2
Send Operation Description ............................................................. 9-13
9.4.3
Receive Operation Description ......................................................... 9-19
9.5 Send/Receive Data LSB/MSB First Select .................................................... 9-25
9.5.1
Selecting Send Data LSB/MSB First ................................................ 9-25
9.5.2
Selecting Receive Data LSB/MSB First ............................................ 9-26