Specifications

C8051F330/1
Rev. 1.1 5
15.2.SMBus Configuration....................................................................................................128
15.3.SMBus Operation ..........................................................................................................129
15.3.1. Arbitration............................................................................................................129
15.3.2. Clock Low Extension...........................................................................................130
15.3.3. SCL Low Timeout ...............................................................................................130
15.3.4. SCL High (SMBus Free) Timeout.......................................................................130
15.4.Using the SMBus...........................................................................................................131
15.4.1. SMBus Configuration Register............................................................................132
15.4.2. SMB0CN Control Register..................................................................................135
15.4.3. Data Register........................................................................................................138
15.5.SMBus Transfer Modes.................................................................................................139
15.5.1. Master Transmitter Mode ....................................................................................139
15.5.2. Master Receiver Mode.........................................................................................140
15.5.3. Slave Receiver Mode ...........................................................................................141
15.5.4. Slave Transmitter Mode.......................................................................................142
15.6.SMBus Status Decoding................................................................................................143
16. UART0 ..................................................................................................................................145
16.1.Enhanced Baud Rate Generation...................................................................................146
16.2.Operational Modes ........................................................................................................147
16.2.1. 8-Bit UART .........................................................................................................147
16.2.2. 9-Bit UART .........................................................................................................148
16.3.Multiprocessor Communications...................................................................................149
17. ENHANCED SERIAL PERIPHERAL INTERFACE (SPI0) .........................................155
17.1.Signal Descriptions........................................................................................................156
17.1.1. Master Out, Slave In (MOSI) ..............................................................................156
17.1.2. Master In, Slave Out (MISO) ..............................................................................156
17.1.3. Serial Clock (SCK) ..............................................................................................156
17.1.4. Slave Select (NSS)...............................................................................................156
17.2.SPI0 Master Mode Operation........................................................................................157
17.3.SPI0 Slave Mode Operation ..........................................................................................159
17.4.SPI0 Interrupt Sources...................................................................................................159
17.5.Serial Clock Timing ......................................................................................................160
17.6.SPI Special Function Registers .....................................................................................162
18. TIMERS ...............................................................................................................................169
18.1.Timer 0 and Timer 1......................................................................................................169
18.1.1. Mode 0: 13-bit Counter/Timer.............................................................................169
18.1.2. Mode 1: 16-bit Counter/Timer.............................................................................170
18.1.3. Mode 2: 8-bit Counter/Timer with Auto-Reload.................................................171
18.1.4. Mode 3: Two 8-bit Counter/Timers (Timer 0 Only) ...........................................172
18.2.Timer 2 .......................................................................................................................177
18.2.1. 16-bit Timer with Auto-Reload ...........................................................................177
18.2.2. 8-bit Timers with Auto-Reload............................................................................178
18.3.Timer 3 .......................................................................................................................181
18.3.1. 16-bit Timer with Auto-Reload ...........................................................................181
18.3.2. 8-bit Timers with Auto-Reload............................................................................182