DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

PIC18LF4420T-I/SO View Datasheet(PDF) - Microchip Technology

Part Name
Description
Manufacturer
PIC18LF4420T-I/SO Datasheet PDF : 390 Pages
First Prev 201 202 203 204 205 206 207 208 209 210 Next Last
PIC18F2420/2520/4420/4520
EXAMPLE 18-1: CALCULATING BAUD RATE ERROR
For a device with FOSC of 16 MHz, desired baud rate of 9600, Asynchronous mode, 8-bit BRG:
Desired Baud Rate = FOSC/(64 ([SPBRGH:SPBRG] + 1))
Solving for SPBRGH:SPBRG:
X = ((FOSC/Desired Baud Rate)/64) – 1
= ((16000000/9600)/64) – 1
= [25.042] = 25
Calculated Baud Rate = 16000000/(64 (25 + 1))
= 9615
Error
= (Calculated Baud Rate – Desired Baud Rate)/Desired Baud Rate
= (9615 – 9600)/9600 = 0.16%
TABLE 18-2: REGISTERS ASSOCIATED WITH BAUD RATE GENERATOR
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2 Bit 1
TXSTA
CSRC
TX9
TXEN SYNC SENDB BRGH TRMT
RCSTA
SPEN
RX9
SREN CREN ADDEN FERR OERR
BAUDCON ABDOVF RCIDL
SCKP BRG16
WUE
SPBRGH EUSART Baud Rate Generator Register, High Byte
SPBRG EUSART Baud Rate Generator Register, Low Byte
Legend: — = unimplemented, read as ‘0’. Shaded cells are not used by the BRG.
Bit 0
TX9D
RX9D
ABDEN
Reset Values
on page
51
51
51
51
51
DS39631A-page 206
Preliminary
2004 Microchip Technology Inc.

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]