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

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
Transmission:
1.
2.
3.
FIGURE 11-2:
FIGURE 11-3:
TABLE 11-3:
0Bh,8Bh
0Ch
18h
19h
8Ch
98h
99h
Legend: u = unchanged, x = unknown, - = unimplemented locations read as '0'.
Note 1: Bits PSPIE and PSPIF are reserved on the PIC16C63A/73B; always maintain these bits clear.
Address
2000 Microchip Technology Inc.
TXIF bit
(interrupt reg. flag)
RC6/TX/CK (pin)
RC6/TX/CK (pin)
TRMT bit
(Transmit shift
reg. empty flag)
Note: This timing diagram shows two consecutive transmissions.
Write to TXREG
Write to TXREG
TXIF bit
(Transmit buffer
reg. empty flag)
TRMT bit
(Transmit shift
reg. empty flag)
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
TXIE (PIE1<4>), PEIE (INTCON<6>), and GIE
(INTCON<7>), as required.
BRG output
(shift clock)
BRG output
(shift clock)
2: Bits ADIE and ADIF are reserved on the PIC16C63A/65B; always maintain these bits clear.
Shaded cells are not used for asynchronous transmission.
PIR1
RCSTA
TXREG USART Transmit Register
PIE1
TXSTA
SPBRG Baud Rate Generator Register
INTCON
Name
REGISTERS ASSOCIATED WITH ASYNCHRONOUS TRANSMISSION
PSPIF
PSPIE
CSRC
ASYNCHRONOUS MASTER TRANSMISSION
ASYNCHRONOUS MASTER TRANSMISSION (BACK TO BACK)
SPEN
Bit 7
GIE
Transmit Shift Reg.
Word 1
Word 1
Transmit Shift Reg
Word 1
Word 1
(1)
(1)
ADIE
ADIF
PEIE
Bit 6
RX9
TX9
START Bit
(2)
(2)
START Bit
Word 2
SREN
TXEN
RCIE
RCIF
Bit 5
T0IE
Bit 0
CREN
Bit 0
SYNC
INTE
TXIE
Bit 4
TXIF
PIC16C63A/65B/73B/74B
SSPIE CCP1IE TMR2IE
SSPIF CCP1IF
RBIE
Bit 3
Bit 1
Word 1
Bit 1
Word 1
4.
5.
6.
7.
BRGH
FERR
Bit 2
T0IF
If 9-bit transmission is desired, then set transmit
bit TX9.
Enable the transmission by setting bit TXEN,
which will also set flag bit TXIF.
If 9-bit transmission is selected, the ninth bit
should be loaded in bit TX9D.
Load data to the TXREG register (starts trans-
mission).
TMR2IF
OERR
TRMT
Bit 1
INTF
Bit 7/8
Word 2
Transmit Shift Reg.
Bit 7/8
TMR1IE 0000 0000
TMR1IF 0000 0000
RX9D
TX9D
RBIF
Bit 0
STOP Bit
STOP Bit
0000 -00x
0000 0000
0000 -010
0000 0000
0000 000x
Value on:
POR,
BOR
START Bit
DS30605C-page 69
Word 2
0000 0000
0000 -00x
0000 0000
0000 0000
0000 -010
0000 0000
0000 000u
Value on
RESETS
all other
Bit 0

Related parts for PIC16C74B-20I/L