mr. mister
New Member
hello all
i'm trying to feed the output of one channel of a 6 channel receiver into a PIC, the channel is controlled by a switch i can flick on or off
i've been told that the pulse window for the output generated by the receiver is about 20ms, hence in this case i am assuming that since the channel is controlled by an on and off switch there will only be two types of pulse widths generated
what i want to know is how do i go about using the PIC to detect one pulse width as a high and the other as a low???
as i am still quite a novice with the PIC, i understand tht i have to use the timer aspect but i don't really understand the prescaler business. How do i measure the pulse width and assign one width to be recognised as a high and the other a low?
i'm trying to feed the output of one channel of a 6 channel receiver into a PIC, the channel is controlled by a switch i can flick on or off
i've been told that the pulse window for the output generated by the receiver is about 20ms, hence in this case i am assuming that since the channel is controlled by an on and off switch there will only be two types of pulse widths generated
what i want to know is how do i go about using the PIC to detect one pulse width as a high and the other as a low???
as i am still quite a novice with the PIC, i understand tht i have to use the timer aspect but i don't really understand the prescaler business. How do i measure the pulse width and assign one width to be recognised as a high and the other a low?