PIC18C252-E/SP Microchip Technology, PIC18C252-E/SP Datasheet - Page 9
![IC MCU OTP 16KX16 A/D 28DIP](/photos/6/59/65908/150-28-dip_sml.jpg)
PIC18C252-E/SP
Manufacturer Part Number
PIC18C252-E/SP
Description
IC MCU OTP 16KX16 A/D 28DIP
Manufacturer
Microchip Technology
Series
PIC® 18Cr
Datasheets
1.PIC16F616T-ISL.pdf
(8 pages)
2.PIC16C770-ISO.pdf
(8 pages)
3.PIC18C242-ISO.pdf
(305 pages)
4.PIC18C242-ISO.pdf
(12 pages)
Specifications of PIC18C252-E/SP
Core Processor
PIC
Core Size
8-Bit
Speed
40MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LVD, POR, PWM, WDT
Number Of I /o
22
Program Memory Size
32KB (16K x 16)
Program Memory Type
OTP
Ram Size
1.5K x 8
Voltage - Supply (vcc/vdd)
4.2 V ~ 5.5 V
Data Converters
A/D 5x10b
Oscillator Type
External
Operating Temperature
-40°C ~ 125°C
Package / Case
28-DIP (0.300", 7.62mm)
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Other names
PIC18C252E/SP
6. Module: USART
EXAMPLE 1:
EXAMPLE 2:
2002 Microchip Technology Inc.
movwf
nop
btfss
movwf
btfss
The operation of the USART Transmit Interrupt
flag bit TXIF (PIR1<4>) is clarified as follows:
TXIF is not cleared immediately upon loading data
into the transmit buffer TXREG. The flag bit
becomes valid in the second instruction cycle fol-
lowing the load instruction (see Example 1). Poll-
ing TXIF immediately following a load of TXREG
will give invalid results (Example 2).
This clarification applies to all USART transmis-
sion modes (master or slave, synchronous or
asynchronous, 8-bit or 9-bit).
TXREG
PIR1,TXIF
TXREG
PIR1,TXIF
CORRECTLY POLLING
THE TXIF BIT
POLLING THE TXIF BIT
IMMEDIATELY AFTER
LOADING THE TRANSMIT
BUFFER
;load the register
:first instruction--
;just a placeholder, it
;could be any instruction
;second instruction--
;now TXIF is valid
;load the register
;first instruction--
;reading TXIF now will
;give invalid results
PIC18CXX2
DS80058H-page 9