PIC16C74B-20/PQ Microchip Technology, PIC16C74B-20/PQ Datasheet - Page 71
![IC,MICROCONTROLLER,8-BIT,PIC CPU,CMOS,QFP,44PIN,PLASTIC](/photos/6/59/65984/150-44-pqfp_sml.jpg)
PIC16C74B-20/PQ
Manufacturer Part Number
PIC16C74B-20/PQ
Description
IC,MICROCONTROLLER,8-BIT,PIC CPU,CMOS,QFP,44PIN,PLASTIC
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Datasheets
1.PIC16F616T-ISL.pdf
(8 pages)
2.PIC16F818-ISO.pdf
(6 pages)
3.PIC16C63A-04SP.pdf
(184 pages)
4.PIC16C63A-04SP.pdf
(10 pages)
5.PIC16C63A-04SP.pdf
(10 pages)
Specifications of PIC16C74B-20/PQ
Rohs Compliant
YES
Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
33
Program Memory Size
7KB (4K x 14)
Program Memory Type
OTP
Ram Size
192 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 5.5 V
Data Converters
A/D 8x8b
Oscillator Type
External
Operating Temperature
0°C ~ 70°C
Package / Case
44-MQFP, 44-PQFP
Processor Series
PIC16C
Core
PIC
Data Bus Width
8 bit
Data Ram Size
192 B
Interface Type
I2C, SPI, USART
Maximum Clock Frequency
20 MHz
Number Of Programmable I/os
33
Number Of Timers
8
Operating Supply Voltage
2.5 V to 5.5 V
Maximum Operating Temperature
+ 70 C
Mounting Style
SMD/SMT
3rd Party Development Tools
52715-96, 52716-328, 52717-734
Development Tools By Supplier
ICE2000, DM163022
Minimum Operating Temperature
0 C
On-chip Adc
8 bit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Lead Free Status / Rohs Status
Details
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
PIC16C74B-20/PQ
Manufacturer:
MIC
Quantity:
465
Company:
Part Number:
PIC16C74B-20/PQ
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16C74B-20/PQ
Manufacturer:
MICRO
Quantity:
20 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