PIC18F4550 RS232 mplab ide

Status
Not open for further replies.

clau

Newbie level 5
Joined
Nov 13, 2013
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
82
Hello,

I'm using a PIC18F4550, MAX232 and MPLAB IDE.

I'm desesperate!! I want a simple example code.

Here's my "schematic" :

I just want a simple code in c so I can confirm that RS 232 is working!

PS- I'm using RCOM Serial

Best regards,
 

Thanks for advices...now I'm using this basic code mas isn't working and I don't know why, can you help me?

Code:
#include <18f4550.h>

#use delay (clock=4000000)
#fuses HS,NOWDT,PUT,NOBROWNOUT,NOLVP
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7, bits=8, parity=N)


void main ()
{
	
	printf("Hello World \r\n");
	output_high(pin_d1);
}
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…