2001 Microchip Technology Inc.
DS30292C-page 103
PIC16F87X
10.2.3
SETTING UP 9-BIT MODE WITH
ADDRESS DETECT
When setting up an Asynchronous Reception with
Address Detect Enabled:
Initialize the SPBRG register for the appropriate
baud rate. If a high speed baud rate is desired, set
bit BRGH.
Enable the asynchronous serial port by clearing
bit SYNC and setting bit SPEN.
If interrupts are desired, then set enable bit RCIE.
Set bit RX9 to enable 9-bit reception.
Set ADDEN to enable address detect.
Enable the reception by setting enable 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 and
determine if any error occurred during reception.
Read the 8-bit received data by reading the
RCREG register, to determine if the device is
being addressed.
If any error occurred, clear the error by clearing
enable bit CREN.
If the device has been addressed, clear the
ADDEN bit to allow data bytes and address bytes
to be read into the receive buffer, and interrupt the
CPU.
FIGURE 10-6:
USART RECEIVE BLOCK DIAGRAM
x64 Baud Rate CLK
SPBRG
Baud Rate Generator
RC7/RX/DT
Pin Buffer
and Control
SPEN
Data
Recovery
CREN
OERR
FERR
RSR Register
MSb
LSb
RX9D
RCREG Register
FIFO
Interrupt
RCIF
RCIE
Data Bus
8
÷ 64
÷ 16
or
STOP
START
(8)
7
1
0
RX9
RX9
ADDEN
RX9
ADDEN
RSR<8>
Enable
Load of
Receive
Buffer
8
FOSC
相关PDF资料
PIC18LF4525-I/PT IC MCU FLASH 24KX16 44TQFP
PIC16C66-10/SP IC MCU OTP 8KX14 PWM 28DIP
PIC16F873-20I/SO IC MCU FLASH 4KX14 EE 28SOIC
PIC18F4480-I/P IC PIC MCU FLASH 8KX16 40DIP
PIC16F873-20I/SP IC MCU FLASH 4KX14 EE 28DIP
PIC16C66-20/SP IC MCU OTP 8KX14 PWM 28DIP
PIC16C66-20/SO IC MCU OTP 8KX14 PWM 28SOIC
PIC32MX340F128H-80V/PT IC MCU 32BIT 128KB FLASH 64TQFP
相关代理商/技术参数
PIC16F877-04/P 制造商:Microchip Technology Inc 功能描述:IC 8BIT FLASH MCU 16F877 DIP40
PIC16F877-04/PQ 功能描述:8位微控制器 -MCU 14KB 368 RAM 33 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16F877-04/PQ 制造商:Microchip Technology Inc 功能描述:8BIT FLASH MCU SMD 16F877 PQFP44
PIC16F877-04/PT 功能描述:8位微控制器 -MCU 14KB 368 RAM 33 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16F877-04/PT 制造商:Microchip Technology Inc 功能描述:8BIT FLASH MCU SMD 16F877 TQFP44
PIC16F877-04/PT 制造商:Microchip Technology Inc 功能描述:Microcontroller IC Number of I/Os:33
PIC16F877-04E/L 功能描述:8位微控制器 -MCU 14KB 368 RAM 33 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16F877-04E/P 功能描述:8位微控制器 -MCU 14KB 368 RAM 33 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT