| 
      
        | Posted: 06:48am 31 Jan 2025 |  |  |  |  I think you need to send the channel setup data and receive the results in one command.
 
 Use 16 bits not 8
 
 
 'SPI2 OPEN 1000000, 0, 16
 
 Ch0data = SPI2(Ch0config)
 Ch1data = SPI2(Ch1config)
 
 I don't have a chip to test with.
 
 Jim
 Edited 2025-01-31 16:48 by TassyJim
 |