C8051F526-IMR Silicon Labs, C8051F526-IMR Datasheet - Page 167

no-image

C8051F526-IMR

Manufacturer Part Number
C8051F526-IMR
Description
8-bit Microcontrollers - MCU 2KB 12ADC 125C LIN 10Pin MCU
Manufacturer
Silicon Labs
Datasheet

Specifications of C8051F526-IMR

Product Category
8-bit Microcontrollers - MCU
Rohs
yes
Core
8051
Data Bus Width
8 bit
Maximum Clock Frequency
25 MHz
Program Memory Size
2 KB
Data Ram Size
256 B
On-chip Adc
Yes
Package / Case
DFN-10
Mounting Style
SMD/SMT
A/d Bit Size
12 bit
A/d Channels Available
6
Interface Type
SPI, UART
Maximum Operating Temperature
+ 125 C
Minimum Operating Temperature
- 40 C
Number Of Programmable I/os
6
Number Of Timers
3
On-chip Dac
No
Processor Series
C8051
Program Memory Type
Flash
Factory Pack Quantity
1500
Supply Voltage - Max
2.7 V, 5.25 V
Supply Voltage - Min
2 V, 2.7 V
The following code programs the interface in Master mode, using the Enhanced Checksum and enables
the interface to operate at 19200 bits/sec using a 24 MHz system clock.
Table 17.2 includes the configuration values required for the typical system clocks and baud rates:
LINDATA = 0x0C;// Reset any error and the interrupt
SYSCLK
22.1184
11.0592
(MHz)
LIN0CF
LIN0CF
LINADDR
// Initialize the register (prescaler, multiplier and bit 8 of divider)
LINDATA
LINADDR
LINDATA
LINADDR
LINDATA
LINADDR
12.25
24.5
25
24
16
12
8
|= 0x80;// Initialize the checksum as Enhanced
0
0
0
0
0
0
0
0
0
|= 0x40;// Set the node as a Master
= 0x0D;// Point to the LIN0MUL register
= ( 0x01 << 6 ) + ( 0x00 << 1 ) + ( ( 0x13F & 0x0100 ) >> 8 );
= 0x0C;// Point to the LIN0DIV register
= (unsigned char)_0x13F;// Initialize LIN0DIV
= 0x0B;// Point to the LIN0SIZE register
= 0x08;// Point to LIN0CTRL register
= 0x80;// Activate the interface
20 K
1
1
1
1
1
0
0
0
0
Table 17.2. Manual Baud Rate Parameters Examples
312
306
300
276
200
306
300
276
200
0
0
0
0
0
0
0
0
0
19.2 K
1
1
1
1
1
0
0
0
0
325
319
312
288
208
319
312
288
208
Rev. 1.4
Baud (bits / sec)
1
1
1
1
1
1
1
1
1
9.6 K
1
1
1
1
1
0
0
0
0
325
319
312
288
208
319
312
288
208
3
3
3
3
3
3
3
3
3
C8051F52x/F53x
4.8 K
1
1
1
0
0
0
1
1
0
325
319
312
288
208
319
312
288
208
19
19
19
19
19
19
19
19
19
1 K
1
1
1
1
0
0
0
0
1
312
306
300
276
200
306
300
276
200
167

Related parts for C8051F526-IMR