PIC18C242-E/SP Microchip Technology, PIC18C242-E/SP Datasheet - Page 9

IC MCU OTP 8KX16 A/D 28DIP

PIC18C242-E/SP

Manufacturer Part Number
PIC18C242-E/SP
Description
IC MCU OTP 8KX16 A/D 28DIP
Manufacturer
Microchip Technology
Series
PIC® 18Cr

Specifications of PIC18C242-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
16KB (8K x 16)
Program Memory Type
OTP
Ram Size
512 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)
Processor Series
PIC18C
Core
PIC
Data Bus Width
8 bit
Data Ram Size
512 B
Interface Type
MSSP, SPI, I2C, USART
Maximum Clock Frequency
40 MHz
Number Of Programmable I/os
23
Number Of Timers
1 x 16 bit
Operating Supply Voltage
2.5 V to 5.5 V
Maximum Operating Temperature
+ 125 C
Mounting Style
Through Hole
3rd Party Development Tools
52715-96, 52716-328, 52717-734, 52712-325, EWPIC18
Development Tools By Supplier
ICE2000, DM163022, DV164136
Minimum Operating Temperature
- 40 C
On-chip Adc
5 bit
For Use With
I3DB18C452 - BOARD DAUGHTER ICEPIC3
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Lead Free Status / Rohs Status
 Details
Other names
PIC18C242E/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

Related parts for PIC18C242-E/SP