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 support@ccsinfo.com

pic16f877 with transceiver ping pong similar code

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



Joined: 04 Apr 2013
Posts: 19

View user's profile Send private message

pic16f877 with transceiver ping pong similar code
PostPosted: Thu Apr 04, 2013 5:54 am     Reply with quote

Hi
I have a project that has 2 units: front and back, each unit contains pic16f877a connected to rs232 transceiver with 4 pushbuttons and 4 leds.
I am looking for a sample code or similar code.
The project should work like this:
Side A person press (for example) blue button -> Side A transceiver sends 0x01 byte. If side B received the byte its sends a reply byte 0x02 and starts to blink the blue led. -> side A receives the reply byte and also starts to blink the blue led. -> side B person sees the blinking blue led and Ack to side A by pressing his blue button.-> Side B transceiver sends 0x03 byte. If Side A received the 0x03 byte its sends a reply byte 0x04 and turns on for permanent the blue led.->side B receives the 0x04 reply byte and turns on for permanent the blue led.
This should work for each button and each led.
Regards
Yossi
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Thu Apr 04, 2013 6:30 am     Reply with quote

what is the purpose of this project? school work ?

what have you tried to write already?
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