Picomite issues with MCP3002, dual channel ADC SPI


Author Message
apalert
Newbie

Joined: 06/07/2023
Location: Australia
Posts: 30
Posted: 07:29am 02 Feb 2025      

  karlelch said  P.S.: I think in `SPI2 OPEN 100000, 0, 10` the 10 bits is the problem. The bit width refers to whether you read/write bytes (I read/write bytes) or 16 bit words to communicate with the SPI device - it is not related to the bit depth of your ADC.


Thanks Thomas. Didn't have any luck with 16 bit but TassyJim has made progress as you will see in next post. Interesting reading your Arduino C++ approach. I installed the IDE, time to make a start with it!