- This topic has 1 reply, 2 voices, and was last updated 10 years, 3 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › joystick poling and interfacing
hey everyone,
im trying to interface joystick with P89v51rd2..im using an ADC 0808 to convert the analog joystick voltage into digital.
For each x and y axis it requires a separate adc input channel. My question is how am i suppose to poll two simultaenous lines of ADC to accordingly activate a single channel..kindly help. IM STUCK HERE. Thankyou
it is simple. you have to do multiplexing. TDM.
first select channel 1 of ADC.
do conversion
save value as x
now select channel 2
again do same conversion
save value as y
do it so rapid (5 to 10 samples/sec) that it will treat the process as continuous.
you can do even more faster.