PIC16C74B-20I/L Microchip Technology Inc., PIC16C74B-20I/L Datasheet - Page 71

no-image

PIC16C74B-20I/L

Manufacturer Part Number
PIC16C74B-20I/L
Description
44 PIN, 7 KB OTP, 192 RAM, 33 I/O
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16C74B-20I/L

A/d Inputs
8-Channel, 8-Bit
Cpu Speed
5 MIPS
Eeprom Memory
0 Bytes
Input Output
33
Interface
I2C/SPI/USART
Memory Type
OTP
Number Of Bits
8
Package Type
44-pin PLCC
Programmable Memory
7K Bytes
Ram Size
192 Bytes
Speed
4 MHz
Timers
2-8-bit, 1-16-bit
Voltage, Range
2.5-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16C74B-20I/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Steps to follow when setting up an Asynchronous
Reception:
1.
2.
3.
4.
FIGURE 11-5:
TABLE 11-4:
0Bh,8Bh
0Ch
18h
1Ah
8Ch
98h
99h
Legend: u = unchanged, x = unknown, - = unimplemented locations read as '0'.
Note 1: Bits PSPIE and PSPIF are reserved on the PIC16C73/73A/76; always maintain these bits clear.
Address
2000 Microchip Technology Inc.
Initialize the SPBRG register for the appropriate
baud rate. If a high speed baud rate is desired,
set bit BRGH. (Section 11.1).
Enable the asynchronous serial port by clearing
bit SYNC, and setting bit SPEN.
If interrupts are desired, set interrupt enable bits
RCIE (PIE1<5>), PEIE (INTCON<6>), and GIE
(INTCON<7>), as required.
If 9-bit reception is desired, then set bit RX9.
Note:
RX (pin)
Rcv shift
reg
Rcv buffer reg
Read Rcv
buffer reg
RCREG
RCIF
(interrupt flag)
OERR bit
CREN
2: Bits ADIE and ADIF are reserved on the PIC16C63A/65B; always maintain these bits clear.
Shaded cells are not used for asynchronous reception.
INTCON
PIR1
RCSTA
RCREG USART Receive register
PIE1
TXSTA
SPBRG Baud Rate Generator register
This timing diagram shows three words appearing on the RX input. The RCREG (receive buffer) is read after the
third word, causing the OERR (overrun) bit to be set. An overrun error indicates an error in user’s firmware.
Name
REGISTERS ASSOCIATED WITH ASYNCHRONOUS RECEPTION
PSPIE
START
PSPIF
CSRC
SPEN
ASYNCHRONOUS RECEPTION
bit
Bit 7
GIE
(1)
(1)
bit0
ADIF
ADIE
Bit 6
PEIE
RX9
TX9
bit1
(2)
(2)
SREN
TXEN
RCIF
RCIE
Bit 5
T0IE
bit7/8
CREN
SYNC
INTE
Bit 4
TXIF
TXIE
STOP
bit
PIC16C63A/65B/73B/74B
Word 1
RCREG
START
SSPIF CCP1IF
SSPIE CCP1IE TMR2IE TMR1IE
RBIE
Bit 3
bit
bit0
5.
6.
7.
8.
9.
BRGH
FERR
Bit 2
T0IF
Enable the reception by setting bit CREN.
Flag bit RCIF will be set when reception is com-
plete and an interrupt will be generated if enable
bit RCIE was set.
Read the RCSTA register to get the ninth bit (if
enabled) and determine if any error occurred
during reception.
Read the 8-bit received data by reading the
RCREG register.
If any error occurred, clear the error by clearing
enable bit CREN.
TMR2IF
bit7/8 STOP
OERR
TRMT
Word 2
RCREG
Bit 1
INTF
bit
TMR1IF
RX9D
TX9D
RBIF
Bit 0
START
bit
0000 000x
0000 0000
0000 -00x
0000 0000
0000 0000
0000 -010
0000 0000
Value on:
POR,
BOR
bit7/8
DS30605C-page 71
STOP
bit
0000 000u
0000 0000
0000 -00x
0000 0000
0000 0000
0000 -010
0000 0000
Value on
all other
RESETS

Related parts for PIC16C74B-20I/L