I have a receiver with 8 channels. I want to use one of that channels as a auxiliary switch to send a PPM signal to a pic to control a LED which is connected to another pin of PIC.
You really need to give more details about this project.
1) the 'receiver' that has 8 channels. WHAT kind of 'receiver'? I can take a HUGE 'leap of faith' and think it's a regular RC hobby type receiver though it might not be !
IF it is then the 'normal' output is a data train of 1.0 to 2.0 ms pulses, where the width determines the 'control' value.
IF that is the case your first PIC just needs to compute the width of the pulse and store the result. How 'fine' a control is up to you. If you can live with 8 bits it's real easy.
Now PIC to PIC communications is equally simple depending on what you're communicating. sending a single byte is easy and CCS does supply examples in the 'examples' folder as well as the FAQ or help section of the manual.
break down the project into 3 or 4 sections...
1) get first PIC to receive and show data from 'receiver'
2) get 1st PIC to talk to 2nd PIC
3) get 2nd PIC to recv from 1st PIC
4) get 2nd PIC to do something with the data.
I do suggest using the same type PIC for both units as it makes coding/debugging a lot easier !!
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