3 2003 Sep 16, 4:10 pm
Philips Semiconductors
P89C669 User Manual
80C51 8-bit microcontroller with extended memory and 96kB FLASH with 2kB RAM
6.5 Timer 2..................................................................................................................................47
6.5.1 Capture Mode ........................................................................................................49
6.5.2 Auto-Reload Mode (Up or Down Counter)...........................................................49
6.5.3 Programmable Clock-Out......................................................................................51
6.5.4 Baud Rate Generator Mode For UART 0 (Serial Port 0) ......................................51
6.5.5 Summary Of Baud Rate Equations........................................................................53
6.6 UARTS .................................................................................................................................53
6.6.1 Mode 0...................................................................................................................53
6.6.2 Mode 1...................................................................................................................53
6.6.3 Mode 2...................................................................................................................54
6.6.4 Mode 3...................................................................................................................54
6.6.5 SFR and Extended SFR Spaces .............................................................................54
6.6.6 Baud Rate Generator and Selection.......................................................................55
6.6.7 Framing Error ........................................................................................................58
6.6.8 Status Register .......................................................................................................59
6.6.9 More About UART Mode 1...................................................................................60
6.6.10 More About UART Modes 2 and 3 .......................................................................61
6.6.11 Examples of UART Data Transfer Using Different Modes ..................................61
6.6.12 Double Buffering...................................................................................................62
6.6.13 Transmit Interrupts with Double Buffering...........................................................63
6.6.14 The 9th Bit (Bit 8) in Double Buffering................................................................64
6.6.15 Multiprocessor Communications...........................................................................64
6.6.16 Automatic Address Recognition............................................................................64
6.7 I2C Serial Interface...............................................................................................................66
6.7.1 I2C Data Register...................................................................................................67
6.7.2 I2C Slave Address Register...................................................................................67
6.7.3 I2C Control Register..............................................................................................68
6.7.4 I2C Status Register ................................................................................................69
6.7.5 I2C SCL Duty Cycle Register I2SCLH and I2SCLL............................................70
6.7.6 Master Transmitter Mode ......................................................................................71
6.7.7 Master Receiver Mode...........................................................................................71
6.7.8 Slave Receiver Mode.............................................................................................72
6.7.9 Slave Transmitter Mode.........................................................................................73
6.8 Watchdog Timer ...................................................................................................................81
6.8.1 Watchdog Function................................................................................................81
6.8.2 Feed Sequence .......................................................................................................82
6.8.3 WDT Control.........................................................................................................82
6.8.4 WatchDog Reset Width .........................................................................................82
6.8.5 Reading from the WDCON SFR ...........................................................................83
6.8.6 Software Reset Via WatchDog Timer Feed Sequence ..........................................83
6.9 Additional Features...............................................................................................................85
6.9.1 Expanded Data RAM Addressing..........................................................................85
6.9.2 Dual Data Pointers.................................................................................................86
6.10 Programmable Counter Array (PCA) ...................................................................................86
6.10.1 PCA Capture Mode................................................................................................90