PIC16C65B Microchip Technology Inc., PIC16C65B Datasheet - Page 69

no-image

PIC16C65B

Manufacturer Part Number
PIC16C65B
Description
8-bit Cmos Microcontrollers With A/d Converter
Manufacturer
Microchip Technology Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16C65B-04/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16C65B-04/L
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16C65B-04/P
Manufacturer:
MICROCHIP
Quantity:
1 450
Part Number:
PIC16C65B-04/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16C65B-04/PQ
Manufacturer:
IXYS
Quantity:
2 349
Part Number:
PIC16C65B-04/PQ
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16C65B-04/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16C65B-04E/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16C65B-04E/PQ
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16C65B-04I/L
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16C65B-04I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 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 PIC16C65B