Im sorry about that..what i meant was PORTC.4 and PORTC.5
and will they be connected to the pins 2 and 3 of the rs232 which i believe is the receive and transmit pins.
what will be the values of the resistors and where will i be putting them?
Im sorry about that..what i meant was PORTC.4 and PORTC.5
and will they be connected to the pins 2 and 3 of the rs232 which i believe is the receive and transmit pins.
what will be the values of the resistors and where will i be putting them?
Last edited by newbie; - 2nd February 2010 at 13:44. Reason: additional question.
Ive did what you told me to do but i had no response from the pc. i even found a code which i think is the simplest serial communication code there is in this page:
http://www.cornerstonerobotics.org/c...out2_hello.pbp
though had to do some changes since the code requires PIC16F88
but still i have no response from the pc...
i also tried to use serout and serin to see if the pic would work with them but still no success..
how can this be when the pic works normally with LCDs, pushbuttons, leds etc...
Hi Newbie,
I am guessing, you do not have the manual. Just put a 1k resistor in series with your PIC ports to the PC. This is to protect the PIC from excessive current, due to the different voltages present in the PC. I suggest you download Realterm (it's free ) and use instead of the Miserable hyperterm in WinDoZE . Send your data inverted without the RS232 converter or if you ARE using it, send your data TRUE.
Example: serout PortC.4,N9600,["Hello World"]
You will have to include modedefs.bas if you use the mode aliases T9600, N9600 . . . . and make sure whatever terminal program you use is connected to the same serial port you are using, that alone may be your problem.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
it was already too late when i found the right schematic for interfacing the pic to the pc. my pic was already not working with any program probably because i failed to put a 1k resistor like what Joe said the first time i interfaced it. I will purchase a new pic16f877a right away and get going with my project once again.
finally something good happend...
i can already print the file names inside the flash drive to the LCD![]()
the cause of why i could not print anything earlier was maybe because of the timing of the execution of the command. there where probably times when the vdip was already sending data to the pic but the pic was still busy of doing another thing like printing welcome notes to the lcd (or something like that..) so the data could not the printed to the the lcd.so what i can is, the PAUSE command plays a major role.
as for the printing of the file names, im having trouble arranging the files line by line to the lcd..primarily because they do vary in length and also other weird characters come in between some of the words which i guess are due to the line feed or carriage return..
does anyone have any idea of how i can save a string into a different variable each time a line feed of carriage return is encountered?
or are there any alternative way...id like to see it...
hi, izzit possible to connect vdip2 with hyper terminal using max233 instead of max232
Glad to hear you have something working..i can already print the file names inside the flash drive to the LCD![]()
the cause of why i could not print anything earlier was maybe because of the timing of the execution of the command. there where probably times when the vdip was already sending data to the pic but the pic was still busy of doing another thing like printing welcome notes to the lcd (or something like that..) so the data could not the printed to the the lcd.so what i can is, the PAUSE command plays a major role.
as for the printing of the file names, im having trouble arranging the files line by line to the lcd..primarily because they do vary in length and also other weird characters come in between some of the words which i guess are due to the line feed or carriage return..
does anyone have any idea of how i can save a string into a different variable each time a line feed of carriage return is encountered?
or are there any alternative way...id like to see it...
Joe's idea http://www.picbasic.co.uk/forum/show...7&postcount=73 is probably the way to do this. Just have the string terminate when EOF is returned.
Dave
Always wear safety glasses while programming.
Bookmarks