hi
can anybody help me
i want write a code spi to control 3 chip MCP4131 digital pot i read the datasheet of MCP4131 but i couldn't understand the command and address and how i send a value to change the resistor value my compiler Mikroc 7.1.0 and controller PIC 18F4431
i want a sample code to understand
thank you
ALI GENIDY
MCP4131 SPI
- filip.grujcic
- Posts: 822
- Joined: 14 May 2018 08:34
Re: MCP4131 SPI
Hello,
Can you send the schematic of the connection of your MCU with MCP4131?
Kind regards,
Can you send the schematic of the connection of your MCU with MCP4131?
Kind regards,
Filip Grujcic
-
- Posts: 54
- Joined: 03 Apr 2017 09:17
Re: MCP4131 SPI
this is my schematic
can you give me a working example code to change the value of resistor
thank you very much
can you give me a working example code to change the value of resistor
thank you very much
- Attachments
-
- Sheet1.pdf
- (45.46 KiB) Downloaded 163 times
- filip.grujcic
- Posts: 822
- Joined: 14 May 2018 08:34
Re: MCP4131 SPI
Hello,
There is a click board called Digi Pot Click, which has an almost identical digital potentiometer to yours on board.
You can download the examples for it from the following link:
https://libstock.mikroe.com/projects/vi ... ck-example
Examine them and you will understand how to use SPI to communicate with it.
Kind regards,
There is a click board called Digi Pot Click, which has an almost identical digital potentiometer to yours on board.
You can download the examples for it from the following link:
https://libstock.mikroe.com/projects/vi ... ck-example
Examine them and you will understand how to use SPI to communicate with it.
Kind regards,
Filip Grujcic
-
- Posts: 54
- Joined: 03 Apr 2017 09:17
Re: MCP4131 SPI
thank you so much i understand good after reading the code you told me about
and i wrote my code and try it on Proteus it working good
i wish a good time and health for you thank you very much
Ali
and i wrote my code and try it on Proteus it working good
i wish a good time and health for you thank you very much
Ali