PIC18F25J11-I/PT MICROCHIP [Microchip Technology], PIC18F25J11-I/PT Datasheet - Page 326

no-image

PIC18F25J11-I/PT

Manufacturer Part Number
PIC18F25J11-I/PT
Description
28/44-Pin, Low-Power, High-Performance Microcontrollers with nanoWatt XLP Technology
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
PIC18F46J11 FAMILY
EXAMPLE 19-1:
TABLE 19-2:
DS39932C-page 326
TXSTAx
RCSTAx
BAUDCONx ABDOVF
SPBRGHx EUSARTx Baud Rate Generator Register High Byte
SPBRGx
Legend: — = unimplemented, read as ‘0’. Shaded cells are not used by the BRG.
For a device with Fosc of 16 MHz, desired baud rate of 9600, Asynchronous mode, and
8-bit BRG:
Desired Baud Rate = Fosc/(64 ([SPBRGHx:SPBRGx] + 1))
Solving for SPBRGHx:SPBRGx:
Calculated Baud Rate=16000000/(64 (25 + 1))
Error =
Name
X
=
=
=
=
=
EUSARTx Baud Rate Generator Register Low Byte
((Fosc/Desired Baud Rate)/64) – 1
((16000000/9600)/64) – 1
[25.042] = 25
9615
(Calculated Baud Rate – Desired Baud Rate)/Desired Baud Rate
(9615 – 9600)/9600 = 0.16%
CSRC
SPEN
Bit 7
REGISTERS ASSOCIATED WITH BAUD RATE GENERATOR
CALCULATING BAUD RATE ERROR
RCIDL
Bit 6
RX9
TX9
RXDTP
TXEN
SREN
Bit 5
TXCKP
SYNC
CREN
Bit 4
SENDB
ADDEN
BRG16
Bit 3
BRGH
FERR
Bit 2
OERR
TRMT
WUE
Bit 1
© 2009 Microchip Technology Inc.
ABDEN
RX9D
TX9D
Bit 0
Reset Values
on Page:
65
65
66
66
65

Related parts for PIC18F25J11-I/PT