MCP3208 code
72sonett
Posts: 82
I am planning a project wih an MCP3208 ADC, got the https://www.parallax.com/Portals/0/Downloads/docs/prod/compshop/MCP3208Demo.zip example code and I understand how that works, but one line puzzles me;
What does the ´Offset | channel´ part do? Why do I need an offset? The example code does not explain that.
..
... [B]Offset [/B] CON 24 ... SHIFTOUT DataIn, Clock, MSBFIRST, [ [B]Offset |[/B] channel ]
What does the ´Offset | channel´ part do? Why do I need an offset? The example code does not explain that.
..
Comments
bit 4 = 1 for single ended analog input, 0 for differential
bits 3..0 = channel 0 .. 7 (BIN000 ..BIN111)
so why not just add 8 to the channel number for single ended input?
I'll use