70 likes | 86 Views
New Peripherals. Enhanced FLASH PIC16F87X and PIC16F62X. 8K x 14 FLASH Program Memory Typ. 1000 E/W Byte/Word Read/Write at V DD 256 x 8 EEPROM Data Memory Min. 100K E/W 368 x 8 Data Memory (RAM) 33 I/O ports 25mA sink/source 3 Timers 1 - 16-bit 2 - 8-bit 10-bit A/D.
E N D
New Peripherals EnhancedFLASH PIC16F87X and PIC16F62X
8K x 14 FLASH Program Memory Typ. 1000 E/W Byte/Word Read/Write at VDD 256 x 8 EEPROM Data Memory Min. 100K E/W 368 x 8 Data Memory (RAM) 33 I/O ports 25mA sink/source 3 Timers 1 - 16-bit 2 - 8-bit 10-bit A/D Two Capture/Compare/PWMs USART 9-bit addressable High Speed Enhanced SPIä All 4 SPI modes supported Microwire Support Master I2Cä Hardware Write to I2C devices In-Circuit-Serial Programmingä In-Circuit-Debugger Parallel Slave Port PIC16F87X Features at a Glance NEW NEW NEW NEW NEW NEW NEW
Addressable USART: Address Feature • Asynchronous mode, 9-bit reception. • When ADDEN = 1: • RX9 = 1 indicates an address byte. • RSR contents transferred to RCREG FIFO. • Receive interrupt flag set. • RX9 = 0 indicates a data byte. • Reception is ignored. • Interrupt flag not set, next reception overwrites byte.
Addressable USART: Multi-Drop Serial Interface MASTER PIC16F87X or PIC16F62X 2 Wire RS-485 SLAVE 1 PIC16F87X or PIC16F62X SLAVE 2 PIC16F87X or PIC16F62X SLAVE N-1 PIC16F87X or PIC16F62X SLAVE N PIC16F87X or PIC16F62X •••
Addressable USART:Receive Example Slave Ignoring Data Packet ADDEN = 1 Data Byte Address Byte b0 b1 b2 b3 b4 b5 b6 b7 b8 RC7/RX b0 b1 b2 b3 b4 b5 b6 b7 b8 Load RSR RCIF RX9 = 0 RSR not loaded RX9 = 1 RSR loaded
Addressable USART:Receive Example Slave Accepting Data Packet Address Byte Data Byte RC7/RX b0 b1 b2 b3 b4 b5 b6 b7 b8 b0 b1 b2 b3 b4 b5 b6 b7 b8 Load RSR RCIF ADDEN RX9 = 1 RSR loaded RX9 = 0 RSR loaded
Addressable USART:Other Features • Dedicated Baud Rate Generator. • Does not utilize timer resources. • Full duplex receive and transmit supported. • Two deep receive buffer. • Transmit is double buffer. • High speed mode allows operation up to 1.25 Mbaud.