Propeller C3 ADC (MCP3202)
I inherited a prop c3 board from my dad, and I am in the process of writing a game for it. I am attempting to connect a joystick I have to the board's built in ADC, but so far, I have had no success. The board uses a 4-bit counter to access several spi devices without having multiple chip select lines. I have been heavily using the
"Unleashing the Propeller C3" pdf by Andre LaMothe (https://www1.parallax.com/sites/default/files/downloads/32209-Unleashing-Propeller-C3v1.0.pdf)
The PDF further discusses the structure of the adc.
Attached is the code I am using to select the adc from the several spi devices, initialize it, read the channel and display it to the serial terminal. This is code from the "Unleashing the propeller c3" PDF.
When I run this program, the serial terminal displays "Channel 0: 0" and nothing else, even when I rotate the joystick.
I know that the device has been selected, because I have an oscilloscope and I can see the clock pin going high and low. I can also see the MOSI pin going high and low, but the MISO pin does not change at all.
I would like to make sure that there isn't anything else wrong before I decide the adc is shot.
Any help would be appreciated!