C8051F340/1/2/3/4/5/6/7/8/9/A/B/C/D
6
Rev. 1.3
17.5.3.Slave Receiver Mode ............................................................................. 201
17.5.4.Slave Transmitter Mode ......................................................................... 202
17.6.SMBus Status Decoding................................................................................. 202
18. UART0.................................................................................................................... 205
18.1.Enhanced Baud Rate Generation................................................................... 206
18.2.Operational Modes ......................................................................................... 206
18.2.1.8-Bit UART ............................................................................................. 207
18.2.2.9-Bit UART ............................................................................................. 208
18.3.Multiprocessor Communications .................................................................... 208
19. UART1 (C8051F340/1/4/5/8/A/B/C Only).............................................................. 213
19.1.Baud Rate Generator ..................................................................................... 214
19.2.Data Format.................................................................................................... 215
19.3.Configuration and Operation .......................................................................... 216
19.3.1.Data Transmission ................................................................................. 216
19.3.2.Data Reception ...................................................................................... 216
19.3.3.Multiprocessor Communications ............................................................ 217
20. Enhanced Serial Peripheral Interface (SPI0)...................................................... 222
20.1.Signal Descriptions......................................................................................... 223
20.1.1.Master Out, Slave In (MOSI).................................................................. 223
20.1.2.Master In, Slave Out (MISO).................................................................. 223
20.1.3.Serial Clock (SCK) ................................................................................. 223
20.1.4.Slave Select (NSS) ................................................................................ 223
20.2.SPI0 Master Mode Operation ......................................................................... 224
20.3.SPI0 Slave Mode Operation ........................................................................... 226
20.4.SPI0 Interrupt Sources ................................................................................... 226
20.5.Serial Clock Timing......................................................................................... 227
20.6.SPI Special Function Registers ...................................................................... 229
21. Timers.................................................................................................................... 235
21.1.Timer 0 and Timer 1 ....................................................................................... 235
21.1.1.Mode 0: 13-bit Counter/Timer ................................................................ 235
21.1.2.Mode 1: 16-bit Counter/Timer ................................................................ 236
21.1.3.Mode 2: 8-bit Counter/Timer with Auto-Reload...................................... 237
21.1.4.Mode 3: Two 8-bit Counter/Timers (Timer 0 Only)................................. 238
21.2.Timer 2 .......................................................................................................... 243
21.2.1.16-bit Timer with Auto-Reload................................................................ 243
21.2.2.8-bit Timers with Auto-Reload................................................................ 244
21.2.3.Timer 2 Capture Modes: USB Start-of-Frame or LFO Falling Edge ...... 245
21.3.Timer 3 .......................................................................................................... 249
21.3.1.16-bit Timer with Auto-Reload................................................................ 249
21.3.2.8-bit Timers with Auto-Reload................................................................ 250
21.3.3.USB Start-of-Frame Capture.................................................................. 251
22. Programmable Counter Array (PCA0) ................................................................ 255
22.1.PCA Counter/Timer ........................................................................................ 256
22.2.Capture/Compare Modules ............................................................................ 257
22.2.1.Edge-triggered Capture Mode................................................................ 258