CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Send / Receive Routine for PIC16F877

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
monapi
Guest







Send / Receive Routine for PIC16F877
PostPosted: Tue Apr 12, 2005 1:57 pm     Reply with quote

Hi,

I am kinda new to this and im sure that my question is very simple. Could anyone help me in preparing a simple test program that would ensure that my hardware is working.

Basically i would like to transmit a Character 'A', from an output of my PIC to the input pin of a transceiver. The transceiver is a ER400TRS and only implies RS232 data. It does not require any Manchester coding. All this transceiver needs at the input is the basic PICC functions such as getc(), putchar(), and fprintf().

Also how could i then receive this char at the receiving end 250meters away and store in another PIC16F877.

Thank you
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Wed Apr 13, 2005 3:30 pm     Reply with quote

There aren�t any plug & play solution to your inquire.
I will suggest my point of view on how to.

1. I would start playing with 2 PICs, one in each module trying
to gain confidence doing the most trivial task like turning On/Off a LED.
2. Then I would follow sending out a single ASCII chars, while watching with
a scope what is going on the Tx pin. Learnig Start / Stop and Data Bits
3. Then I would connect the Tx Pin of module A to Rx Pin of module B and
would try to catch and store the incoming char in module B.
Once you get running this configuration in a reliable way, then and only then
4. I would try to connect a transceiver to replace the existing wiring link.

I�m almost sure that to reach step 4 depending on your background you will
need to learn some basic theory and skills that will require spending some days
(weeks ?) reading all the info/papers regarding this matter that you will find out,
googling and asking. Of course getting the right book will help strongly.

May be this answer doesn�t solve your problem, but it�s all I can do by now.

Humberto
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group