Page 2 of 2

Re: MCP320x 16-bit to Nano

Posted: Wed Apr 08, 2026 12:49 am
by viktor_aust
Hi Martin
You did not use the SPI Master component.
Is the next step?

Re: MCP320x 16-bit to Nano

Posted: Wed Apr 08, 2026 6:33 am
by mnfisher
No I didn't use SPI here...

Just bit-bang the pins....

Martin

Re: MCP320x 16-bit to Nano

Posted: Wed Apr 08, 2026 7:32 am
by viktor_aust
understood

Re: MCP320x 16-bit to Nano

Posted: Tue Apr 14, 2026 9:54 pm
by mnfisher
Just tested the above bit-bang code with an Arduino (Uno) - and seems to work okay.

With a VRef (and VDD) set at 5V and IN+ and IN- connected to a PSU (I also tried connecting IN- to GND) - I got reasonable results. For example - with the PSU set to 3V - 2.987V was output to UART.

I connected the pins to the logic analyser - and again the output seems reasonable.

0 - is CLK, 1 is Data and 2 is CS. The MCP3201 seems to take a moment to shutdown after CS returns high...
LabNation_Screenshot50.png
LabNation_Screenshot50.png (161.24 KiB) Viewed 56 times
Martin