Hello,
I am a newbie, sorry if this is a stupid question, but i can find anything on this issue. Trying to learn small programming at a time to pick it apart.
I am wanting to experiment with serial communication with this chip. does anyone have an example of serial communication with the 18f4520.
My circuit board uses portc.6 for tx and portc.7 for rx. I have tried the sample program and find that i can not get it to work.
All i would like to do is transfer a text message to hyperterminal to see how data transfer works.
I take it that is the program that i would use. I hear people talking about using Microcode to receive this, not sure about this.
This is what i have at the moment.
I would also like to see how receivinig data works too. Let say i hit a key and i get it back on the screen,Echo.

include "modedefs.bas"


CMCON = 7
TRISC.7 = O
PORTC.7 = 0

print:
Serout PORTC.7, N2400, ["test"] ' Send string
pause 100 ' pause 1/10 sec
Goto print ' Forever

end

Appreciate any help. I probably missed some type of configuration of the PIC chip but i think this is it.

Thanks,
Merlinknight