Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (AndrewAMD, monk12, TipmyPip, Quad, aliswee), 1,029 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Page 2 of 7 1 2 3 4 5 6 7
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 Offline
User
the_mehmaster  Offline
User

Joined: Dec 2008
Posts: 528
Wagga, Australia
That should work finesmile. 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 Offline OP
Expert
EvilSOB  Offline 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.

Code:
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 Offline OP
Expert
EvilSOB  Offline 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 Offline
Member
seecah  Offline
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 Offline OP
Expert
EvilSOB  Offline 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 Offline
User
the_mehmaster  Offline
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!smile
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 Offline
Member
seecah  Offline
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: seecah] #282090
07/30/09 10:31
07/30/09 10:31
Joined: Dec 2008
Posts: 528
Wagga, Australia
the_mehmaster Offline
User
the_mehmaster  Offline
User

Joined: Dec 2008
Posts: 528
Wagga, Australia
I use GCbasic which is a free BASIC compiler. It makes the .asm and .hex
WinPic is what i use to load the hex file onto the chip

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 Offline OP
Expert
EvilSOB  Offline OP
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Quote:
@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 Offline
User
the_mehmaster  Offline
User

Joined: Dec 2008
Posts: 528
Wagga, Australia
Quote:
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. frown

thankyousmile

Page 2 of 7 1 2 3 4 5 6 7

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1