4
7682C–AUTO–04/08
AT90CAN32/64/128
17.2
Overview .........................................................................................................176
17.3
Dual USART ...................................................................................................176
17.4
Clock Generation ............................................................................................178
17.5
Serial Frame ...................................................................................................180
17.6
USART Initialization ........................................................................................181
17.7
Data Transmission – USART Transmitter .......................................................182
17.8
Data Reception – USART Receiver ................................................................185
17.9
Asynchronous Data Reception .......................................................................189
17.10 Multi-processor Communication Mode ...........................................................192
17.11 USART Register Description ..........................................................................194
17.12 Examples of Baud Rate Setting ......................................................................199
18
Two-wire Serial Interface ..................................................................... 203
18.1
Features ..........................................................................................................203
18.2
Two-wire Serial Interface Bus Definition .........................................................203
18.3
Data Transfer and Frame Format ...................................................................204
18.4
Multi-master Bus Systems, Arbitration and Synchronization ..........................206
18.5
Overview of the TWI Module ...........................................................................208
18.6
TWI Register Description ................................................................................211
18.7
Using the TWI .................................................................................................214
18.8
Transmission Modes .......................................................................................217
18.9
Multi-master Systems and Arbitration .............................................................231
19
Controller Area Network - CAN ........................................................... 233
19.1
Features ..........................................................................................................233
19.2
CAN Protocol ..................................................................................................233
19.3
CAN Controller ................................................................................................239
19.4
CAN Channel ..................................................................................................240
19.5
Message Objects ............................................................................................242
19.6
CAN Timer ......................................................................................................246
19.7
Error Management ..........................................................................................246
19.8
Interrupts .........................................................................................................248
19.9
CAN Register Description ...............................................................................250
19.10 General CAN Registers ..................................................................................251
19.11 MOb Registers ................................................................................................260
19.12 Examples of CAN Baud Rate Setting .............................................................265
20
Analog Comparator .............................................................................. 268