Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PIC 18f1452 USART communication problem

Status
Not open for further replies.

hemanth919

Newbie level 3
Joined
Sep 8, 2009
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Bangalore
Activity points
1,318
PIC 18f1452 USART

hi i'm doing a project using pic 18f452..i need to interface it to pc for serial communiction with 9600 baud rate...i'm trying to dispaly a character on hyper terminal but i'm not able to see a character on hyper terminal.can any1 pls help me

i here by attaching my c code...i'm using Mplab IDE n microchip C18 compiler....

#include <p18f4620.h>
#include <usart.h>


void main (void)
{


// Open the USART configured as 8N1, 9600 baud
OpenUSART ( USART_TX_INT_OFF &
USART_RX_INT_OFF &
USART_ASYNCH_MODE &
USART_EIGHT_BIT &
USART_CONT_RX &
USART_BRGH_LOW,17);

// write to the USART

WriteUSART('a');
CloseUSART();

while (1)
;
}


Thank you
 

Re: PIC 18f1452 USART

Hello

I can recommend the **broken link removed**. I found their tutorials very clear and understandable.
Although you use a slightly different PIC, the way to communicate with rs232 is the same.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top