I am facing problems in Interfacing the PIC 16F886 with the Digital POT MCP4162
Here is the code for the same if i am sending 0x00 and 0x00 my pot output should be 0 ohms but it is showing 96 Ohms and if i send any other value the pot is not changing pls help me with this
What does this mean: "CKE=1,CKE=0"
What does this mean: "Clock Frequecy is Fclock/16"
What does this mean: "delay(1);" one second, one millisecond, one microsecond?
* Show the complete code.
* show your schematic, with supply and supply voltages.
* show a scope picture of CS, SCK, MOSI
hi Mate thanks i missed that in the data sheet now it is working properly
i need one more help i am trying to take a variable resistance of 10 ohms to 200 ohms using this MCP is it possible to add a parallel resistance between the two terminals
Simple idea:
* when your wiper is in "high position" you want 200 Ohms
* when your wiper is in "low position" you want 10 Ohms
First calculate what parallel resistor you need to get 10 Ohms when wiper is in low position.
Now use this resistor and calculate the resulting resistance when wiper is in high position.
i already tried to connect 10 ohms across when the wiper is 0x00(90 Ohms) the rest can be done in coding when the wiper is 0xFF it is still showing 10 ohms only that is the problem i am facing any idea i did the math already
i think it is impossible to get a 10 Ohms output even with a parallel resistor i may switch towards to a motor + pot solution thanks for your support and help regarding my project