Dear All,
I am new in pascal and i am using the lazarus with the raspberry pi. I am trying to read the MCP3202 which is an SPI 12bit ADC.
As i have see in forums there is not some SPI wrapper for lazarus with some examples so i could use it. I try to make my own code with the bit bang SPI technique.
I am attaching my code in order to somebody help me and guide me where i am doing wrong and i do not have any result.
I try some python examples i found online and i see some results. The MCP3202 is connected in SPI 0 channel with CS_0.
I connected with the trimmer at the input and i measure 1 volt and i use it from the 3.3 volt which provide the raspberry pi.
Thanks in advance for your time and your efforts.
Best regards to all.