Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
electro Some
You Inspire..We Create..
Tutorials PIC Microcontroller
Home
MikroC
Projects
Tutorials
Contact Us
Search Here
Search
Subscribe
Most Viewed
Voltmeter and Ammeter using PIC Microcontroller - 23,846 views USB PIC Programmer : PICKit2 - 22,320 views Interfacing Stepper Motor with PIC Microcontroller - 21,533 views Interfacing DC Motor with PIC Microcontroller using L293D - 21,037 views Digital Clock using PIC Microcontroller and DS1307 RTC - 19,903 views
Recent Posts
Using UART of PIC Microcontroller Hi Tech C Interfacing LCD with PIC Microcontroller Hi Tech C Getting Started with Scilab Beginners Tutorial Getting Started with Python Using ADC Module of PIC Microcontroller Hi Tech C
www.electrosome.com/pic-to-pic-communication-usart/2/
1/4
8/13/13
Registers of USART
To use the USART of PIC 16F877A Microcontroller, the following registers must be configured. But when using MikroC we dont want to bother about it.
Asynchronous Mode StumbleUpon Dont care. Submit Synchronous Mode 0 (clock generated internally) 1 Master Mode 0 Slave Mode (clock from external source) TX9 : 9-bit Transmit Enable 1 9-bit transmission 0 8-bit transmission TXEN : Transmit Enable 1 Transmit Enabled 0 Transmit Disabled SREN/CREN (in RCSTA register) overrides TXEN in Sync mode. SYNC : USART Mode Select 1 Synchronous Mode 0 Asynchronous Mode BRGH : High Baud Rate Select Asynchronous Mode 1 High speed 0 Low speed Synchronous Mode Not Used TRMT : Transmit Shift Register Status 1 Transmit Status Register empty 0 TSR full TX9D : 9th bit of Transmit Data or Parity bit
www.electrosome.com/pic-to-pic-communication-usart/2/
2/4
8/13/13
Mikroc
Serial Port
Protocol
You Pic
1 Serial port is enabled 0 Serial port is disabled RX9 : 9-bit Receive Enable 1 Sets 9-bit reception 0 Sets 8-bit reception SREN : Single Receive Enable Asynchronous Mode Not Used. Synchronous Master Mode 1 Enables single receive 0 Disables single receive This bit will be cleared after reception. Synchronous Slave Mode Not Used. CREN : Continuous Receive Enable Asynchronous Mode 1 Enables continuous receive 0 Disables continuous receive Synchronous Mode 1 Enables continuous receive till enable bit CREN is cleared (Note : CREN overrides SREN) 0 Disables continuous receive ADDEN : Address Detect Enable Asynchronous 9-bit Mode 1 Enables address detection 0 Disables address detection FERR : Framing Error 1 Framing error 0 No framing error OERR : Overrun Error 1 Overrun error 0 No overrun error RX9D : 9th bit or Parity Bit of Received Data Now I am not writing about configuring these registers as MikroC Pro for PIC Microcontroller has built in function to handle Asynchronous Communication.
www.electrosome.com/pic-to-pic-communication-usart/2/ 3/4
8/13/13
Related Posts
Expanding IO Ports Interfacing GLCD of PIC Microcontroller using MCP23S17 with PIC Microcontroller
Pages: 1 2 3
www.electrosome.com/pic-to-pic-communication-usart/2/
4/4