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.

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
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" : TIRED.jpg

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top