17 IDE/ATAPI Interface ............................................................................. 104
17.1 Description .........................................................................................................104
17.2 Registers ............................................................................................................106
18 Serial I/O Port ....................................................................................... 107
18.1 Mode Selection ...................................................................................................107
18.2 Baud Rate Generator .........................................................................................107
18.3 Synchronous Mode (Mode 0) .............................................................................108
18.4 Asynchronous Modes (Modes 1, 2 and 3) ..........................................................111
18.5 Multiprocessor Communication
(Modes 2 and 3) 114
18.6 Automatic Address Recognition .........................................................................114
18.7 Interrupt ..............................................................................................................116
18.8 Registers ............................................................................................................116
19 Synchronous Peripheral Interface ..................................................... 120
19.1 Description .........................................................................................................121
19.2 Interrupt ..............................................................................................................124
19.3 Configuration ......................................................................................................124
19.4 Registers ............................................................................................................129
20 Two-wire Interface (TWI) Controller ................................................... 131
20.1 Description .........................................................................................................131
20.2 Registers ............................................................................................................145
21 Analog to Digital Converter ................................................................ 147
21.1 Description .........................................................................................................147
21.2 Registers ............................................................................................................150
22 Keyboard Interface .............................................................................. 152
22.1 Description .........................................................................................................152
22.2 Registers ............................................................................................................152
23 Electrical Characteristics .................................................................... 154
23.1 Absolute Maximum Ratings ................................................................................154
23.2 DC Characteristics .............................................................................................154
23.3 AC Characteristics ..............................................................................................159
24 Ordering Information ........................................................................... 174
25 Package Information ............................................................................ 175
25.1 TQFP80 .............................................................................................................175
iii
AT89C5132
4173E–USB–09/07