1 registered members (AndrewAMD),
1,241
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Serial Communications Header
[Re: EvilSOB]
#280822
07/24/09 10:55
07/24/09 10:55
|
Joined: Dec 2008
Posts: 528 Wagga, Australia
the_mehmaster
User
|
User
Joined: Dec 2008
Posts: 528
Wagga, Australia
|
That should work fine . I'm testing PIC communication. [EDIT] Setup, if you need it: Test 1: PIC(TX)->Serial2UsbCable(COM3)->Computer(RX) Test 2: PIC(TX)->SerialCable(COM1)->Computer(RX) The PIC (16F84A at 20mhz) is programmed to transmit 'A' (ASCII 65) every second. I'll post the results when I'm done.
Last edited by the_mehmaster; 07/24/09 11:05.
|
|
|
Re: Serial Communications Header
[Re: the_mehmaster]
#280857
07/24/09 12:41
07/24/09 12:41
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
OP
Expert
|
OP
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
Try changing the loop to something like this then. It will make your 'input' more noticable. The sample I gave before will only show the arrival of the first, unless you re-code the pic to transmit "changing" numbers.
while(1)
{
str_cpy((debug.pstring)[0], "Last Byte Recieved = ");
if(port_read_bytes(hPort,&last_recieved,1))
str_cat((debug.pstring)[0], _chr(str_for_int(NULL,(long)last_recieved)));
if(key_esc) break;
wait(-0.25);
}
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: Serial Communications Header
[Re: EvilSOB]
#282033
07/30/09 00:00
07/30/09 00:00
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
OP
Expert
|
OP
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
BUMP...
Does anyone have any further comments on this? I haven found any further bugs, but has anyone had any successes/failures with it? And any suggestions for improvement / enhancements?
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: Serial Communications Header
[Re: EvilSOB]
#282066
07/30/09 08:12
07/30/09 08:12
|
Joined: Apr 2009
Posts: 248 Philippines
seecah
Member
|
Member
Joined: Apr 2009
Posts: 248
Philippines
|
Wow meh, I wish I have time doing that thing also... I'm really interested in PIC and some interfacing programming.. :-)
By the way how much is the cost of 16F84A in your country recently? During my college years, it costs about 3-5 US dollar - converted to piso..
It's really nice to hear about this stuff...
Can't is not an option™
|
|
|
Re: Serial Communications Header
[Re: seecah]
#282071
07/30/09 08:36
07/30/09 08:36
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
OP
Expert
|
OP
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
Ive still go 20+ in stock, and I bought those a couple of years back. But I just checked my local stores website and they are Aus$ 6.50 each.($4.50 bulk 10+) [EDIT] Thats about 2 loaves of bread...
Last edited by EvilSOB; 07/30/09 08:37.
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: Serial Communications Header
[Re: seecah]
#282072
07/30/09 08:44
07/30/09 08:44
|
Joined: Dec 2008
Posts: 528 Wagga, Australia
the_mehmaster
User
|
User
Joined: Dec 2008
Posts: 528
Wagga, Australia
|
@EvilSOB: My programmer broke(no joke, this isn't a lame excuse) I guess i'll have to buy a proper one. (The one i used I built myself..). Computer-to-computer communication works fine though on my end. @Seecah: The 'Wow' should go to EvilSOB, who was the one who made this! Prices in $AU, from a local electronics shop: - PIC16F88.....$12 - PIC10F**.....$6 - dsPIC30F**...$20 - PIC16F877A...$13 - PIC16F84A....$7 @Everyone reading this thread: If anyone owns a programmer or similar, could they carry out some simple tests?
Last edited by the_mehmaster; 07/30/09 08:56.
|
|
|
Re: Serial Communications Header
[Re: the_mehmaster]
#282081
07/30/09 09:50
07/30/09 09:50
|
Joined: Apr 2009
Posts: 248 Philippines
seecah
Member
|
Member
Joined: Apr 2009
Posts: 248
Philippines
|
Actually I have a circuit for PIC programmer.. hahahahhaa.. I still have to find it.. You can program your PIC just in the breadboard.. so what did you use? MPLab? and load the hex file?
Can't is not an option™
|
|
|
Re: Serial Communications Header
[Re: the_mehmaster]
#282102
07/30/09 11:51
07/30/09 11:51
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
OP
Expert
|
OP
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
@Everyone reading this thread: If anyone owns a programmer or similar, could they carry out some simple tests?
I've three or four in a drawer somewhere gathering dust, both purchased and self-designed. One is even a parallel-port one, but my main PC doesnt even have one of them anymore... What do you need to know? (I'll need a day to find and re-connect one of them)[EDIT]Ha! Found the software, PicPro v3.63 January 2000.....GOD, has it been that long?
Last edited by EvilSOB; 07/30/09 11:54.
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: Serial Communications Header
[Re: EvilSOB]
#282104
07/30/09 12:00
07/30/09 12:00
|
Joined: Dec 2008
Posts: 528 Wagga, Australia
the_mehmaster
User
|
User
Joined: Dec 2008
Posts: 528
Wagga, Australia
|
What do you need to know? The main thing i would like to know is if lite-c will successfully read bytes sent from a PIC through a USB-serial(rs232) cable. Those are the tests i was going to do but my programmer broke. thankyou
|
|
|
|