欢迎访问ic37.com |
会员登录 免费注册
发布采购

PIC16C74B-04/P 参数 Datasheet PDF下载

PIC16C74B-04/P图片预览
型号: PIC16C74B-04/P
PDF下载: 下载PDF文件 查看货源
内容描述: 40分之28引脚8位CMOS微控制器 [28/40-Pin 8-Bit CMOS Microcontrollers]
分类和应用: 微控制器和处理器外围集成电路光电二极管可编程只读存储器时钟
文件页数/大小: 184 页 / 2122 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC16C74B-04/P的Datasheet PDF文件第65页浏览型号PIC16C74B-04/P的Datasheet PDF文件第66页浏览型号PIC16C74B-04/P的Datasheet PDF文件第67页浏览型号PIC16C74B-04/P的Datasheet PDF文件第68页浏览型号PIC16C74B-04/P的Datasheet PDF文件第70页浏览型号PIC16C74B-04/P的Datasheet PDF文件第71页浏览型号PIC16C74B-04/P的Datasheet PDF文件第72页浏览型号PIC16C74B-04/P的Datasheet PDF文件第73页  
PIC16C63A/65B/73B/74B  
Steps to follow when setting up an Asynchronous  
Transmission:  
4. If 9-bit transmission is desired, then set transmit  
bit TX9.  
5. Enable the transmission by setting bit TXEN,  
which will also set flag bit TXIF.  
1. Initialize the SPBRG register for the appropriate  
baud rate. If a high speed baud rate is desired,  
set bit BRGH. (Section 11.1)  
6. If 9-bit transmission is selected, the ninth bit  
should be loaded in bit TX9D.  
2. Enable the asynchronous serial port by clearing  
bit SYNC and setting bit SPEN.  
7. Load data to the TXREG register (starts trans-  
mission).  
3. If interrupts are desired, set interrupt enable bits  
TXIE (PIE1<4>), PEIE (INTCON<6>), and GIE  
(INTCON<7>), as required.  
FIGURE 11-2:  
ASYNCHRONOUS MASTER TRANSMISSION  
Write to TXREG  
Word 1  
BRG output  
(shift clock)  
RC6/TX/CK (pin)  
START Bit  
Bit 0  
Bit 1  
Word 1  
Bit 7/8  
STOP Bit  
TXIF bit  
(Transmit buffer  
reg. empty flag)  
Word 1  
Transmit Shift Reg  
TRMT bit  
(Transmit shift  
reg. empty flag)  
FIGURE 11-3:  
ASYNCHRONOUS MASTER TRANSMISSION (BACK TO BACK)  
Write to TXREG  
Word 2  
Word 1  
BRG output  
(shift clock)  
RC6/TX/CK (pin)  
START Bit  
START Bit  
Word 2  
Bit 0  
Bit 1  
Word 1  
Bit 7/8  
Bit 0  
STOP Bit  
TXIF bit  
(interrupt reg. flag)  
TRMT bit  
(Transmit shift  
reg. empty flag)  
Word 1  
Transmit Shift Reg.  
Word 2  
Transmit Shift Reg.  
Note: This timing diagram shows two consecutive transmissions.  
TABLE 11-3: REGISTERS ASSOCIATED WITH ASYNCHRONOUS TRANSMISSION  
Value on:  
POR,  
BOR  
Value on  
all other  
RESETS  
Address  
Name  
Bit 7  
Bit 6  
Bit 5  
Bit 4  
Bit 3  
Bit 2  
Bit 1  
Bit 0  
0Bh,8Bh  
INTCON  
GIE  
PEIE  
T0IE  
INTE  
TXIF  
RBIE  
T0IF  
INTF  
RBIF  
0000 000x 0000 000u  
(1)  
(2)  
0Ch  
18h  
19h  
8Ch  
98h  
99h  
PIR1  
PSPIF  
SPEN  
ADIF  
RX9  
RCIF  
SSPIF CCP1IF TMR2IF TMR1IF 0000 0000 0000 0000  
RCSTA  
SREN CREN  
FERR  
OERR  
RX9D 0000 -00x 0000 -00x  
TXREG USART Transmit Register  
0000 0000 0000 0000  
(1)  
(2)  
PIE1  
PSPIE  
CSRC  
ADIE  
TX9  
RCIE  
TXIE SSPIE CCP1IE TMR2IE TMR1IE 0000 0000 0000 0000  
TXSTA  
TXEN  
SYNC  
BRGH  
TRMT  
TX9D 0000 -010 0000 -010  
SPBRG Baud Rate Generator Register  
0000 0000 0000 0000  
Legend: u= unchanged, x= unknown, - = unimplemented locations read as '0'.  
Shaded cells are not used for asynchronous transmission.  
Note 1: Bits PSPIE and PSPIF are reserved on the PIC16C63A/73B; always maintain these bits clear.  
2: Bits ADIE and ADIF are reserved on the PIC16C63A/65B; always maintain these bits clear.  
2000 Microchip Technology Inc.  
DS30605C-page 69