Sign In
Upload
Manuals
Brands
Silicon Labs Manuals
Microcontrollers
C8051F127-GQ
Silicon Labs C8051F127-GQ Manuals
Manuals and User Guides for Silicon Labs C8051F127-GQ. We have
1
Silicon Labs C8051F127-GQ manual available for free PDF download: Manual
Silicon Laboratories C8051F127-GQ Manual (350 pages)
8K ISP FLASH MCU
Brand:
Silicon Laboratories
| Category:
Microcontrollers
| Size: 4 MB
Table of Contents
Table of Contents
3
System Overview
19
Table 1.1. Product Selection Guide
20
1 System Overview
21
Figure 1.1. C8051F120/124 Block Diagram
21
Figure 1.2. C8051F121/125 Block Diagram
22
Figure 1.3. C8051F122/126 Block Diagram
23
Figure 1.4. C8051F123/127 Block Diagram
24
Figure 1.5. C8051F130/132 Block Diagram
25
Figure 1.6. C8051F131/133 Block Diagram
26
Microcontroller Core
27
Fully 8051 Compatible
27
Improved Throughput
27
Additional Features
28
Figure 1.7. On-Board Clock and Reset
28
Figure 1.8. On-Chip Memory Map
29
On-Chip Memory
29
Figure 1.9. Development/In-System Debug Diagram
30
JTAG Debug and Boundary Scan
30
16 X 16 MAC (Multiply and Accumulate) Engine
31
Figure 1.10. MAC0 Block Diagram
31
Figure 1.11. Digital Crossbar Diagram
32
Programmable Digital I/O and Crossbar
32
Figure 1.12. PCA Block Diagram
33
Programmable Counter Array
33
Serial Ports
33
Figure 1.13. 12-Bit ADC Block Diagram
34
Or 10-Bit Analog to Digital Converter
34
8-Bit Analog to Digital Converter
35
Figure 1.14. 8-Bit ADC Diagram
35
12-Bit Digital to Analog Converters
36
Figure 1.15. DAC System Block Diagram
36
Analog Comparators
37
Figure 1.16. Comparator Block Diagram
37
Absolute Maximum Ratings
38
Table 2.1. Absolute Maximum Ratings
38
Global DC Electrical Characteristics
39
Table 3.1. Global DC Electrical Characteristics
39
(C8051F120/1/2/3 and C8051F130/1/2/3)
39
Table 3.2. Global DC Electrical Characteristics (C8051F124/5/6/7)
40
Pinout and Package Definitions
41
Table 4.1. Pin Definitions
41
4 Pinout and Package Definitions
49
3 Global DC Electrical Characteristics
49
Figure 4.1. C8051F120/2/4/6 Pinout Diagram (TQFP-100)
49
Figure 4.2. C8051F130/2 Pinout Diagram (TQFP-100)
50
Figure 4.3. TQFP-100 Package Drawing
51
Figure 4.4. C8051F121/3/5/7 Pinout Diagram (TQFP-64)
52
Figure 4.5. C8051F131/3 Pinout Diagram (TQFP-64)
53
Figure 4.6. TQFP-64 Package Drawing
54
5 ADC0 (12-Bit ADC, C8051F120/1/4/5 Only)
55
ADC0 (12-Bit ADC, C8051F120/1/4/5 Only)
55
Analog Multiplexer and PGA
55
Figure 5.1. 12-Bit ADC0 Functional Block Diagram
55
Figure 5.2. Typical Temperature Sensor Transfer Function
56
ADC Modes of Operation
57
Starting a Conversion
57
Tracking Modes
58
Figure 5.3. ADC0 Track and Conversion Example Timing
58
Settling Time Requirements
59
Figure 5.4. ADC0 Equivalent Input Circuits
59
SFR Definition 5.1. AMX0CF: AMUX0 Configuration
60
SFR Definition 5.2. AMX0SL: AMUX0 Channel Select
61
SFR Definition 5.3. ADC0CF: ADC0 Configuration
62
SFR Definition 5.4. ADC0CN: ADC0 Control
63
SFR Definition 5.5. ADC0H: ADC0 Data Word MSB
64
SFR Definition 5.6. ADC0L: ADC0 Data Word LSB
64
Figure 5.5. ADC0 Data Word Example
65
ADC0 Programmable Window Detector
66
SFR Definition 5.7. ADC0GTH: ADC0 Greater-Than Data High Byte
66
SFR Definition 5.8. ADC0GTL: ADC0 Greater-Than Data Low Byte
66
SFR Definition 5.9. ADC0LTH: ADC0 Less-Than Data High Byte
67
SFR Definition 5.10. ADC0LTL: ADC0 Less-Than Data Low Byte
67
Figure 5.6. 12-Bit ADC0 Window Interrupt Example: Right Justified Single-Ended Data
68
Figure 5.7. 12-Bit ADC0 Window Interrupt Example: Right Justified Differential Data
69
Figure 5.8. 12-Bit ADC0 Window Interrupt Example: Left Justified Single-Ended Data
70
Figure 5.9. 12-Bit ADC0 Window Interrupt Example: Left Justified Differential Data
71
5 ADC0 (12-Bit ADC, C8051F120/1/4/5 Only)
72
Table 5.1. 12-Bit ADC0 Electrical Characteristics (C8051F120/1/4/5)
72
6 ADC0 (10-Bit ADC, C8051F122/3/6/7 and C8051F13X Only)
73
ADC0 (10-Bit ADC, C8051F122/3/6/7 and C8051F13X Only)
73
Analog Multiplexer and
73
Figure 6.1. 10-Bit ADC0 Functional Block Diagram
73
Figure 6.2. Typical Temperature Sensor Transfer Function
74
ADC Modes of Operation
75
Starting a Conversion
75
Tracking Modes
76
Figure 6.3. ADC0 Track and Conversion Example Timing
76
Settling Time Requirements
77
Figure 6.4. ADC0 Equivalent Input Circuits
77
SFR Definition 6.1. AMX0CF: AMUX0 Configuration
78
SFR Definition 6.2. AMX0SL: AMUX0 Channel Select
79
SFR Definition 6.3. ADC0CF: ADC0 Configuration
80
SFR Definition 6.4. ADC0CN: ADC0 Control
81
SFR Definition 6.5. ADC0H: ADC0 Data Word MSB
82
SFR Definition 6.6. ADC0L: ADC0 Data Word LSB
82
Figure 6.5. ADC0 Data Word Example
83
ADC0 Programmable Window Detector
84
SFR Definition 6.7. ADC0GTH: ADC0 Greater-Than Data High Byte
84
SFR Definition 6.8. ADC0GTL: ADC0 Greater-Than Data Low Byte
84
SFR Definition 6.9. ADC0LTH: ADC0 Less-Than Data High Byte
85
SFR Definition 6.10. ADC0LTL: ADC0 Less-Than Data Low Byte
85
Figure 6.6. 10-Bit ADC0 Window Interrupt Example: Right Justified Single-Ended Data
86
Figure 6.7. 10-Bit ADC0 Window Interrupt Example: Right Justified Differential Data
87
Figure 6.8. 10-Bit ADC0 Window Interrupt Example: Left Justified Single-Ended Data
88
Figure 6.9. 10-Bit ADC0 Window Interrupt Example: Left Justified Differential Data
89
Table 6.1. 10-Bit ADC0 Electrical Characteristics (C8051F122/3/6/7 and C8051F13X)
90
7 ADC2 (8-Bit ADC, C8051F12X Only)
91
ADC2 (8-Bit ADC, C8051F12X Only)
91
Analog Multiplexer and
91
Figure 7.1. ADC2 Functional Block Diagram
91
ADC2 Modes of Operation
92
Starting a Conversion
92
Tracking Modes
92
Figure 7.2. ADC2 Track and Conversion Example Timing
93
Settling Time Requirements
94
Figure 7.3. ADC2 Equivalent Input Circuit
94
SFR Definition 7.1. AMX2CF: AMUX2 Configuration
95
SFR Definition 7.2. AMX2SL: AMUX2 Channel Select
96
SFR Definition 7.3. ADC2CF: ADC2 Configuration
97
SFR Definition 7.4. ADC2CN: ADC2 Control
98
Figure 7.4. ADC2 Data Word Example
99
SFR Definition 7.5. ADC2: ADC2 Data Word
99
ADC2 Programmable Window Detector
100
Window Detector in Single-Ended Mode
100
Figure 7.5. ADC2 Window Compare Examples, Single-Ended Mode
100
Window Detector in Differential Mode
101
Figure 7.6. ADC2 Window Compare Examples, Differential Mode
101
SFR Definition 7.6. ADC2GT: ADC2 Greater-Than Data Byte
102
SFR Definition 7.7. ADC2LT: ADC2 Less-Than Data Byte
102
7 ADC2 (8-Bit ADC, C8051F12X Only)
103
Table 7.1. ADC2 Electrical Characteristics
103
Dacs, 12-Bit Voltage Mode (C8051F12X Only)
105
DAC Output Scheduling
105
Figure 8.1. DAC Functional Block Diagram
105
Update Output Based on Timer Overflow
106
Update Output On-Demand
106
DAC Output Scaling/Justification
106
SFR Definition 8.1. DAC0H: DAC0 High Byte
107
SFR Definition 8.2. DAC0L: DAC0 Low Byte
107
SFR Definition 8.3. DAC0CN: DAC0 Control
108
SFR Definition 8.4. DAC1H: DAC1 High Byte
109
SFR Definition 8.5. DAC1L: DAC1 Low Byte
109
SFR Definition 8.6. DAC1CN: DAC1 Control
110
8 Dacs, 12-Bit Voltage Mode (C8051F12X Only)
105
8 Dacs, 12-Bit Voltage Mode (C8051F12X Only)
111
Table 8.1. DAC Electrical Characteristics
111
Voltage Reference
113
Reference Configuration on the C8051F120/2/4/6
113
9 Voltage Reference
114
Figure 9.1. Voltage Reference Functional Block Diagram (C8051F120/2/4/6)
114
SFR Definition 9.1. REF0CN: Reference Control (C8051F120/2/4/6)
114
Reference Configuration on the C8051F121/3/5/7
115
Figure 9.2. Voltage Reference Functional Block Diagram (C8051F121/3/5/7)
115
SFR Definition 9.2. REF0CN: Reference Control (C8051F121/3/5/7)
116
Reference Configuration on the C8051F130/1/2/3
117
Figure 9.3. Voltage Reference Functional Block Diagram (C8051F130/1/2/3)
117
SFR Definition 9.3. REF0CN: Reference Control (C8051F130/1/2/3)
117
9 Voltage Reference
118
Table 9.1. Voltage Reference Electrical Characteristics
118
10 Comparators
119
Comparators
119
Figure 10.1. Comparator Functional Block Diagram
119
Figure 10.2. Comparator Hysteresis Plot
121
SFR Definition 10.1. CPT0CN: Comparator0 Control
122
SFR Definition 10.2. CPT0MD: Comparator0 Mode Selection
123
SFR Definition 10.3. CPT1CN: Comparator1 Control
124
SFR Definition 10.4. CPT1MD: Comparator1 Mode Selection
125
10 Comparators
126
Table 10.1. Comparator Electrical Characteristics
126
Microcontroller
127
11 CIP-51 Microcontroller
128
Figure 11.1. CIP-51 Block Diagram
128
Instruction Set
129
Instruction and CPU Timing
129
MOVX Instruction and Program Memory
129
Table 11.1. CIP-51 Instruction Set Summary
129
Memory Organization
133
Program Memory
133
Figure 11.2. Memory Map
133
Figure 11.3. Address Memory Map for Instruction Fetches (128 Kb Flash Only)
134
11 CIP-51 Microcontroller
129
SFR Definition 11.1. PSBANK: Program Space Bank Select
134
Data Memory
135
General Purpose Registers
135
Bit Addressable Locations
135
Stack
135
Special Function Registers
136
Figure 11.4. SFR Page Stack
137
Figure 11.5. SFR Page Stack While Using SFR Page 0X0F to Access Port 5
138
Figure 11.6. SFR Page Stack after ADC2 Window Comparator Interrupt Occurs
139
Figure 11.7. SFR Page Stack Upon PCA Interrupt Occurring During an ADC2 ISR
140
Figure 11.8. SFR Page Stack Upon Return from PCA Interrupt
140
Figure 11.9. SFR Page Stack Upon Return from ADC2 Window Interrupt
141
SFR Definition 11.2. SFRPGCN: SFR Page Control
142
SFR Definition 11.3. SFRPAGE: SFR Page
142
SFR Definition 11.4. SFRNEXT: SFR Next Register
143
SFR Definition 11.5. SFRLAST: SFR Last Register
143
Table 11.2. Special Function Register (SFR) Memory Map
144
Table 11.3. Special Function Registers
146
Register Descriptions
151
SFR Definition 11.6. SP: Stack Pointer
151
SFR Definition 11.7. DPL: Data Pointer Low Byte
151
SFR Definition 11.8. DPH: Data Pointer High Byte
151
SFR Definition 11.9. PSW: Program Status Word
152
SFR Definition 11.10. ACC: Accumulator
153
SFR Definition 11.11. B: B Register
153
Interrupt Handler
154
MCU Interrupt Sources and Vectors
154
External Interrupts
155
Table 11.4. Interrupt Summary
155
Interrupt Priorities
156
Interrupt Latency
156
Interrupt Register Descriptions
157
SFR Definition 11.12. IE: Interrupt Enable
157
SFR Definition 11.13. IP: Interrupt Priority
158
SFR Definition 11.14. EIE1: Extended Interrupt Enable 1
159
SFR Definition 11.15. EIE2: Extended Interrupt Enable 2
160
SFR Definition 11.16. EIP1: Extended Interrupt Priority 1
161
SFR Definition 11.17. EIP2: Extended Interrupt Priority 2
162
Power Management Modes
163
Idle Mode
163
Stop Mode
164
SFR Definition 11.18. PCON: Power Control
164
12 Multiply and Accumulate (MAC0)
165
Multiply and Accumulate (MAC0)
165
Special Function Registers
165
Figure 12.1. MAC0 Block Diagram
165
Integer and Fractional Math
166
Figure 12.2. Integer Mode Data Representation
166
Figure 12.3. Fractional Mode Data Representation
166
Operating in Multiply and Accumulate Mode
167
Operating in Multiply Only Mode
167
Accumulator Shift Operations
167
Figure 12.4. MAC0 Pipeline
167
12 Multiply and Accumulate (MAC0)
168
Rounding and Saturation
168
Usage Examples
168
Multiply and Accumulate Example
168
Table 12.1. MAC0 Rounding (MAC0SAT = 0)
168
Multiply Only Example
169
MAC0 Accumulator Shift Example
169
SFR Definition 12.1. MAC0CF: MAC0 Configuration
170
SFR Definition 12.2. MAC0STA: MAC0 Status
171
SFR Definition 12.3. MAC0AH: MAC0 a High Byte
171
SFR Definition 12.4. MAC0AL: MAC0 a Low Byte
172
SFR Definition 12.5. MAC0BH: MAC0 B High Byte
172
SFR Definition 12.6. MAC0BL: MAC0 B Low Byte
172
SFR Definition 12.7. MAC0ACC3: MAC0 Accumulator Byte 3
173
SFR Definition 12.8. MAC0ACC2: MAC0 Accumulator Byte 2
173
SFR Definition 12.9. MAC0ACC1: MAC0 Accumulator Byte 1
173
SFR Definition 12.10. MAC0ACC0: MAC0 Accumulator Byte 0
174
SFR Definition 12.11. MAC0OVR: MAC0 Accumulator Overflow
174
SFR Definition 12.12. MAC0RNDH: MAC0 Rounding Register High Byte
174
SFR Definition 12.13. MAC0RNDL: MAC0 Rounding Register Low Byte
175
13 Reset Sources
177
Reset Sources
177
Figure 13.1. Reset Sources
177
Power-On Reset
178
Power-Fail Reset
178
Figure 13.2. Reset Timing
178
External Reset
179
Missing Clock Detector Reset
179
Comparator0 Reset
179
External CNVSTR0 Pin Reset
179
Watchdog Timer Reset
179
Enable/Reset WDT
180
Disable WDT
180
Disable WDT Lockout
180
Setting WDT Interval
180
SFR Definition 13.1. WDTCN: Watchdog Timer Control
181
SFR Definition 13.2. RSTSRC: Reset Source
182
13 Reset Sources
183
Table 13.1. Reset Electrical Characteristics
183
14 Oscillators
185
14 Oscillators
185
Oscillators
185
Internal Calibrated Oscillator
185
Figure 14.1. Oscillator Diagram
185
Table 14.1. Oscillator Electrical Characteristics
185
SFR Definition 14.1. OSCICL: Internal Oscillator Calibration
186
SFR Definition 14.2. OSCICN: Internal Oscillator Control
186
External Oscillator Drive Circuit
187
System Clock Selection
187
SFR Definition 14.3. CLKSEL: System Clock Selection
188
SFR Definition 14.4. OSCXCN: External Oscillator Control
189
External Crystal Example
190
External RC Example
190
External Capacitor Example
190
Phase-Locked Loop (PLL)
191
PLL Input Clock and Pre-Divider
191
PLL Multiplication and Output Clock
191
Figure 14.2. PLL Block Diagram
191
Powering on and Initializing the PLL
192
SFR Definition 14.5. PLL0CN: PLL Control
193
SFR Definition 14.6. PLL0DIV: PLL Pre-Divider
194
SFR Definition 14.7. PLL0MUL: PLL Clock Scaler
194
Table 14.2. PLL Frequency Characteristics
195
SFR Definition 14.8. PLL0FLT: PLL Filter
195
Table 14.3. PLL Lock Timing Characteristics
196
Flash Memory
199
Programming the Flash Memory
199
15 Flash Memory
200
Non-Volatile Data Storage
200
Table 15.1. Flash Electrical Characteristics
200
Erasing Flash Pages from Software
201
Figure 15.1. Flash Memory Map for MOVC Read and MOVX Write Operations
201
Writing Flash Memory from Software
202
15 Flash Memory
201
Security Options
203
Figure 15.2. 128 Kb Flash Memory Map and Security Bytes
204
Figure 15.3. 64 Kb Flash Memory Map and Security Bytes
205
SFR Definition 15.1. FLACL: Flash Access Limit
206
Summary of Flash Security Options
207
SFR Definition 15.2. FLSCL: Flash Memory Control
208
SFR Definition 15.3. PSCTL: Program Store Read/Write Control
209
16 Branch Target Cache
211
Branch Target Cache
211
Cache and Prefetch Operation
211
Figure 16.1. Branch Target Cache Data Flow
211
Cache and Prefetch Optimization
212
Figure 16.2. Branch Target Cache Organiztion
212
Figure 16.3. Cache Lock Operation
214
SFR Definition 16.1. CCH0CN: Cache Control
215
SFR Definition 16.2. CCH0TN: Cache Tuning
216
SFR Definition 16.3. CCH0LC: Cache Lock Control
216
SFR Definition 16.4. CCH0MA: Cache Miss Accumulator
217
SFR Definition 16.5. FLSTAT: Flash Status
217
External Data Memory Interface and On-Chip XRAM
219
Accessing XRAM
219
16-Bit MOVX Example
219
Configuring the External Memory Interface
219
Port Selection and Configuration
220
SFR Definition 17.1. EMI0CN: External Memory Interface Control
220
SFR Definition 17.2. EMI0CF: External Memory Configuration
221
Multiplexed and Non-Multiplexed Selection
222
Multiplexed Configuration
222
Figure 17.1. Multiplexed Configuration Example
222
Non-Multiplexed Configuration
223
Figure 17.2. Non-Multiplexed Configuration Example
223
Memory Mode Selection
224
Internal XRAM Only
224
Split Mode Without Bank Select
224
Figure 17.3. EMIF Operating Modes
224
Split Mode with Bank Select
225
External Only
225
EMIF Timing
225
17 External Data Memory Interface and On-Chip XRAM
222
SFR Definition 17.3. EMI0TC: External Memory Timing Control
226
Non-Multiplexed Mode
227
Figure 17.4. Non-Multiplexed 16-Bit MOVX Timing
227
Figure 17.5. Non-Multiplexed 8-Bit MOVX Without Bank Select Timing
228
Figure 17.6. Non-Multiplexed 8-Bit MOVX with Bank Select Timing
229
Multiplexed Mode
230
Figure 17.7. Multiplexed 16-Bit MOVX Timing
230
Figure 17.8. Multiplexed 8-Bit MOVX Without Bank Select Timing
231
Figure 17.9. Multiplexed 8-Bit MOVX with Bank Select Timing
232
17 External Data Memory Interface and On-Chip XRAM
233
16 Branch Target Cache
233
Table 17.1. AC Parameters for External Memory Interface
233
18 Port Input/Output
235
Port Input/Output
235
Figure 18.1. Port I/O Cell Block Diagram
235
18 Port Input/Output
236
Table 18.1. Port I/O DC Electrical Characteristics
236
Figure 18.2. Port I/O Functional Block Diagram
237
Ports 0 through 3 and the Priority Crossbar Decoder
238
Crossbar Pin Assignment and Allocation
238
Figure 18.3. Priority Crossbar Decode Table (EMIFLE = 0; P1MDIN = 0Xff)
238
Configuring the Output Modes of the Port Pins
239
Configuring Port Pins as Digital Inputs
240
Weak Pullups
240
Configuring Port 1 Pins as Analog Inputs
240
External Memory Interface Pin Assignments
241
Figure 18.4. Priority Crossbar Decode Table (EMIFLE = 1; EMIF in Multiplexed Mode; P1MDIN = 0Xff)
241
Figure 18.5. Priority Crossbar Decode Table (EMIFLE = 1; EMIF in Non-Multiplexed Mode; P1MDIN = 0Xff)
242
Crossbar Pin Assignment Example
243
Figure 18.6. Crossbar Example
244
SFR Definition 18.1. XBR0: Port I/O Crossbar Register 0
245
SFR Definition 18.2. XBR1: Port I/O Crossbar Register 1
246
SFR Definition 18.3. XBR2: Port I/O Crossbar Register 2
247
SFR Definition 18.4. P0: Port0 Data
248
SFR Definition 18.5. P0MDOUT: Port0 Output Mode
248
SFR Definition 18.6. P1: Port1 Data
249
SFR Definition 18.7. P1MDIN: Port1 Input Mode
249
SFR Definition 18.8. P1MDOUT: Port1 Output Mode
250
SFR Definition 18.9. P2: Port2 Data
250
SFR Definition 18.10. P2MDOUT: Port2 Output Mode
251
SFR Definition 18.11. P3: Port3 Data
251
Ports 4 through 7 (100-Pin TQFP Devices Only)
252
Configuring Ports Which Are Not Pinned out
252
Configuring the Output Modes of the Port Pins
252
SFR Definition 18.12. P3MDOUT: Port3 Output Mode
252
Configuring Port Pins as Digital Inputs
253
Weak Pullups
253
External Memory Interface
253
SFR Definition 18.13. P4: Port4 Data
254
SFR Definition 18.14. P4MDOUT: Port4 Output Mode
254
SFR Definition 18.15. P5: Port5 Data
255
SFR Definition 18.16. P5MDOUT: Port5 Output Mode
255
SFR Definition 18.17. P6: Port6 Data
256
SFR Definition 18.18. P6MDOUT: Port6 Output Mode
256
SFR Definition 18.19. P7: Port7 Data
257
SFR Definition 18.20. P7MDOUT: Port7 Output Mode
257
19 System Management Bus / I2C Bus (Smbus0)
259
System Management Bus / I2C Bus (Smbus0)
259
Figure 19.1. Smbus0 Block Diagram
259
Supporting Documents
260
Smbus Protocol
260
Figure 19.2. Typical Smbus Configuration
260
Arbitration
261
Clock Low Extension
261
Figure 19.3. Smbus Transaction
261
SCL High (Smbus Free) Timeout
261
SCL Low Timeout
261
Smbus Transfer Modes
262
Master Transmitter Mode
262
Master Receiver Mode
262
Figure 19.4. Typical Master Transmitter Sequence
262
Figure 19.5. Typical Master Receiver Sequence
262
Slave Transmitter Mode
263
Slave Receiver Mode
263
Figure 19.6. Typical Slave Transmitter Sequence
263
Figure 19.7. Typical Slave Receiver Sequence
263
Smbus Special Function Registers
264
Control Register
264
SFR Definition 19.1. SMB0CN: Smbus0 Control
266
Clock Rate Register
267
SFR Definition 19.2. SMB0CR: Smbus0 Clock Rate
267
Data Register
268
Address Register
268
SFR Definition 19.3. SMB0DAT: Smbus0 Data
268
Status Register
269
SFR Definition 19.4. SMB0ADR: Smbus0 Address
269
SFR Definition 19.5. SMB0STA: Smbus0 Status
269
19 System Management Bus / I2C Bus (Smbus0)
270
Table 19.1. SMB0STA Status Codes and States
270
20 Enhanced Serial Peripheral Interface (SPI0)
273
Enhanced Serial Peripheral Interface (SPI0)
273
Figure 20.1. SPI Block Diagram
273
Signal Descriptions
274
Master Out, Slave in (MOSI)
274
Master In, Slave out (MISO)
274
Serial Clock (SCK)
274
Slave Select (NSS)
274
SPI0 Master Mode Operation
275
Figure 20.2. Multiple-Master Mode Connection Diagram
276
Figure 20.3. 3-Wire Single Master and Slave Mode Connection Diagram
276
Figure 20.4. 4-Wire Single Master and Slave Mode Connection Diagram
276
SPI0 Slave Mode Operation
277
SPI0 Interrupt Sources
277
Serial Clock Timing
278
Figure 20.5. Master Mode Data/Clock Timing
278
Figure 20.6. Slave Mode Data/Clock Timing (CKPHA = 0)
279
Figure 20.7. Slave Mode Data/Clock Timing (CKPHA = 1)
279
SPI Special Function Registers
280
SFR Definition 20.1. SPI0CFG: SPI0 Configuration
280
SFR Definition 20.2. SPI0CN: SPI0 Control
281
SFR Definition 20.3. SPI0CKR: SPI0 Clock Rate
282
SFR Definition 20.4. SPI0DAT: SPI0 Data
282
Figure 20.8. SPI Master Timing (CKPHA = 0)
283
Figure 20.9. SPI Master Timing (CKPHA = 1)
283
Figure 20.10. SPI Slave Timing (CKPHA = 0)
284
Figure 20.11. SPI Slave Timing (CKPHA = 1)
284
20 Enhanced Serial Peripheral Interface (SPI0)
285
Table 20.1. SPI Slave Timing Parameters
285
21 Uart0
287
Uart0
287
Figure 21.1. UART0 Block Diagram
287
UART0 Operational Modes
288
Mode 0: Synchronous Mode
288
Figure 21.2. UART0 Mode 0 Timing Diagram
288
Figure 21.3. UART0 Mode 0 Interconnect
288
Table 21.1. UART0 Modes
288
Mode 1: 8-Bit UART, Variable Baud Rate
289
Figure 21.4. UART0 Mode 1 Timing Diagram
289
Mode 2: 9-Bit UART, Fixed Baud Rate
291
Figure 21.5. UART0 Modes 2 and 3 Timing Diagram
291
Mode 3: 9-Bit UART, Variable Baud Rate
292
Figure 21.6. UART0 Modes 1, 2, and 3 Interconnect Diagram
292
Multiprocessor Communications
293
Configuration of a Masked Address
293
Broadcast Addressing
293
Frame and Transmission Error Detection
294
Figure 21.7. UART Multi-Processor Mode Interconnect Diagram
294
Table 21.2. Oscillator Frequencies for Standard Baud Rates
295
21 Uart0
288
SFR Definition 21.1. SCON0: UART0 Control
296
SFR Definition 21.2. SSTA0: UART0 Status and Clock Selection
297
SFR Definition 21.3. SBUF0: UART0 Data Buffer
298
SFR Definition 21.4. SADDR0: UART0 Slave Address
298
SFR Definition 21.5. SADEN0: UART0 Slave Address Enable
298
22 Uart1
299
Uart1
299
Figure 22.1. UART1 Block Diagram
299
Enhanced Baud Rate Generation
300
Figure 22.2. UART1 Baud Rate Logic
300
Operational Modes
301
8-Bit UART
301
Figure 22.3. UART Interconnect Diagram
301
Figure 22.4. 8-Bit UART Timing Diagram
301
9-Bit UART
302
Figure 22.5. 9-Bit UART Timing Diagram
302
Multiprocessor Communications
303
Figure 22.6. UART Multi-Processor Mode Interconnect Diagram
303
SFR Definition 22.1. SCON1: Serial Port 1 Control
304
22 Uart1
305
Table 22.1. Timer Settings for Standard Baud Rates
305
Using the Internal 24.5 Mhz Oscillator
305
SFR Definition 22.2. SBUF1: Serial (UART1) Port Data Buffer
305
Table 22.2. Timer Settings for Standard Baud Rates
306
Table 22.3. Timer Settings for Standard Baud Rates
306
Using an External 22.1184 Mhz Oscillator
306
Using an External 25.0 Mhz Oscillator
306
Table 22.4. Timer Settings for Standard Baud Rates Using the PLL
307
Table 22.5. Timer Settings for Standard Baud Rates Using the PLL
307
Timers
309
Timer 0 and Timer 1
309
Mode 0: 13-Bit Counter/Timer
309
Figure 23.1. T0 Mode 0 Block Diagram
310
Mode 1: 16-Bit Counter/Timer
311
Mode 2: 8-Bit Counter/Timer with Auto-Reload
311
Figure 23.2. T0 Mode 2 Block Diagram
311
Mode 3: Two 8-Bit Counter/Timers (Timer 0 Only)
312
Figure 23.3. T0 Mode 3 Block Diagram
312
23 Timers
310
SFR Definition 23.1. TCON: Timer Control
313
SFR Definition 23.2. TMOD: Timer Mode
314
SFR Definition 23.3. CKCON: Clock Control
315
SFR Definition 23.4. TL0: Timer 0 Low Byte
315
SFR Definition 23.5. TL1: Timer 1 Low Byte
316
SFR Definition 23.6. TH0: Timer 0 High Byte
316
SFR Definition 23.7. TH1: Timer 1 High Byte
316
Timer 2, Timer 3, and Timer 4
317
Configuring Timer 2, 3, and 4 to Count down
317
Capture Mode
318
Figure 23.4. T2, 3, and 4 Capture Mode Block Diagram
318
Auto-Reload Mode
319
Figure 23.5. Tn Auto-Reload (T2,3,4) and Toggle Mode (T2,4) Block Diagram
319
Toggle Output Mode (Timer 2 and Timer 4 Only)
320
SFR Definition 23.8. Tmrncn: Timer 2, 3, and 4 Control
321
SFR Definition 23.9. Tmrncf: Timer 2, 3, and 4 Configuration
322
SFR Definition 23.10. Rcapnl: Timer 2, 3, and 4 Capture Register Low Byte
323
SFR Definition 23.11. Rcapnh: Timer 2, 3, and 4 Capture Register High Byte
323
SFR Definition 23.12. Tmrnl: Timer 2, 3, and 4 Low Byte
323
SFR Definition 23.13. Tmrnh Timer 2, 3, and 4 High Byte
324
24 Programmable Counter Array
325
Programmable Counter Array
325
Figure 24.1. PCA Block Diagram
325
24 Programmable Counter Array
326
PCA Counter/Timer
326
Figure 24.2. PCA Counter/Timer Block Diagram
326
Table 24.1. PCA Timebase Input Options
326
Capture/Compare Modules
328
Figure 24.3. PCA Interrupt Block Diagram
328
Edge-Triggered Capture Mode
329
Figure 24.4. PCA Capture Mode Diagram
329
Table 24.2. PCA0CPM Register Settings for PCA Capture/Compare Modules
329
Figure 24.5. PCA Software Timer Mode Diagram
330
Software Timer (Compare) Mode
330
Figure 24.6. PCA High Speed Output Mode Diagram
331
High Speed Output Mode
331
Figure 24.7. PCA Frequency Output Mode
332
Frequency Output Mode
332
8-Bit Pulse Width Modulator Mode
333
Figure 24.8. PCA 8-Bit PWM Mode Diagram
333
16-Bit Pulse Width Modulator Mode
334
Figure 24.9. PCA 16-Bit PWM Mode
334
Register Descriptions for PCA0
335
23 Timers
326
SFR Definition 24.1. PCA0CN: PCA Control
335
SFR Definition 24.2. PCA0MD: PCA0 Mode
336
SFR Definition 24.3. Pca0Cpmn: PCA0 Capture/Compare Mode
337
SFR Definition 24.4. PCA0L: PCA0 Counter/Timer Low Byte
338
SFR Definition 24.5. PCA0H: PCA0 Counter/Timer High Byte
338
SFR Definition 24.6. Pca0Cpln: PCA0 Capture Module Low Byte
338
SFR Definition 24.7. Pca0Cphn: PCA0 Capture Module High Byte
339
Jtag (Ieee 1149.1)
341
JTAG Register Definition 25.1. IR: JTAG Instruction Register
341
Boundary Scan
342
Table 25.1. Boundary Data Register Bit Definitions
342
BYPASS Instruction
343
EXTEST Instruction
343
IDCODE Instruction
343
SAMPLE Instruction
343
25 Jtag (Ieee 1149.1)
342
JTAG Register Definition 25.2. DEVICEID: JTAG Device ID
343
Flash Programming Commands
344
JTAG Register Definition 25.3. FLASHCON: JTAG Flash Control
345
JTAG Register Definition 25.4. FLASHDAT: JTAG Flash Data
346
JTAG Register Definition 25.5. FLASHADR: JTAG Flash Address
346
Debug Support
347
Document Change List
349
Contact Information
350
Advertisement
Advertisement
Related Products
Silicon Labs C8051F127
Silicon Laboratories C8051F121
Silicon Labs C8051F126
Silicon Labs C8051F125
Silicon Labs C8051F121-GQ
Silicon Labs C8051F124-GQ
Silicon Labs C8051F126-GQ
Silicon Labs C8051F125-GQ
Silicon Labs C8051F122-GQ
Silicon Labs C8051F120-GQ
Silicon Labs Categories
Motherboard
Microcontrollers
Computer Hardware
Control Unit
Adapter
More Silicon Labs Manuals
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL