Help SPI ADC MCP3202 with 16F877A

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
mohamedwaly
Posts: 5
Joined: Mon Mar 17, 2014 3:10 am
Has thanked: 1 time

Help SPI ADC MCP3202 with 16F877A

Post by mohamedwaly »

Hello
i want to connect 16f877a with adc MCP3202-C http://ww1.microchip.com/downloads/en/D ... 21034D.pdf
i connect it as following
1-CS :A0
2-CH0 :GND
3-CH1 : Sensor output or 10K (VCC,CH1,GND)
4-Vss : GND
5-Din : RC5/SDO
6-Dout : RC4/SDI
7-CLK : RC3/SCK
8-Vdd : 5v
I try to connect to MCP3202 but i get number which jump in reading +-/200 or more (upto 1000) from 4096
i see some video with more stable than my one.
i attach the file which used with MCP3202 but i try to send 0b11100000 and 0b01110000 ===> no changes
i try also some methods like
http://www.phanderson.com/picaxe/mcp3202.html
https://www.ccsinfo.com/forum/viewtopic ... ht=mcp3202

Please if any more know how can i connect to it,and get the value from 0 to 4096
Image
Attachments
204.fcf
(15.5 KiB) Downloaded 289 times

mohamedwaly
Posts: 5
Joined: Mon Mar 17, 2014 3:10 am
Has thanked: 1 time

Re: Help SPI ADC MCP3202 with 16F877A

Post by mohamedwaly »

hello
yesterday i try PIC18f4620 with 10bit A/D and coonect the sensor direct to A0
the sensor output is 0.5v so the result on the LCD about 100 from 1024
but when i use the MCP3202 the result is about 1000 from 4095 !!!!
so there is something wrong in reading or configuration.

Post Reply