vii
CONTENTS
7.3.1.4 Open-drain Output Mode ...................................................................................7-14
7.3.1.5 Input Mode .........................................................................................................7-16
7.3.2 Configuring EPORT Pins ........................................................................................7-17
7.3.2.1 Configuring EPORT Pins for Extended-address Functions ................................7-17
7.3.2.2 Configuring EPORT Pins for I/O ........................................................................7-17
7.3.3 EPORT Considerations ...........................................................................................7-18
7.3.3.1 EPORT Status During Reset, CCB Fetch, Idle, Powerdown, and Hold .............7-18
7.3.3.2 EP_REG Settings for Pins Configured as Extended-address Signals ...............7-18
7.3.3.3 EPORT Status During Instruction Execution ......................................................7-18
7.3.3.4 Design Considerations .......................................................................................7-19
CHAPTER 8
SERIAL I/O (SIO) PORT
8.1 SERIAL I/O (SIO) PORT FUNCTIONAL OVERVIEW ................................................... 8-1
8.2 SERIAL I/O PORT SIGNALS AND REGISTERS .......................................................... 8-2
8.3 SERIAL PORT MODES................................................................................................. 8-4
8.3.1 Synchronous Mode (Mode 0) ....................................................................................8-4
8.3.2 Asynchronous Modes (Modes 1, 2, and 3) ...............................................................8-5
8.3.2.1 Mode 1 .................................................................................................................8-6
8.3.2.2 Mode 2 .................................................................................................................8-7
8.3.2.3 Mode 3 .................................................................................................................8-7
8.3.2.4 Mode 2 and 3 Timings ..........................................................................................8-7
8.3.2.5 Multiprocessor Communications ..........................................................................8-8
8.4 PROGRAMMING THE SERIAL PORT.......................................................................... 8-8
8.4.1 Configuring the Serial Port Pins ................................................................................8-8
8.4.2 Programming the Control Register ............................................................................8-8
8.4.3 Programming the Baud Rate and Clock Source .......................................................8-8
8.4.4 Enabling the Serial Port Interrupts ..........................................................................8-13
8.4.5 Determining Serial Port Status ................................................................................8-13
CHAPTER 9
PULSE-WIDTH MODULATOR
9.1 PWM FUNCTIONAL OVERVIEW.................................................................................. 9-1
9.2 PWM SIGNALS AND REGISTERS ............................................................................... 9-2
9.3 PWM OPERATION........................................................................................................ 9-3
9.4 PROGRAMMING THE FREQUENCY AND PERIOD.................................................... 9-5
9.5 PROGRAMMING THE DUTY CYCLE........................................................................... 9-7
9.5.1 Sample Calculations .................................................................................................9-9
9.5.2 Enabling the PWM Outputs .......................................................................................9-9
9.5.3 Generating Analog Outputs ......................................................................................9-9
CHAPTER 10
EVENT PROCESSOR ARRAY (EPA)
10.1 EPA FUNCTIONAL OVERVIEW ................................................................................. 10-1