# digital_potentiometer_mcp4131

Digital potentiometer mcp4131

Author | Matthew Schinkel - borntechi.com, copyright © 2009..2012, all rights reserved.
Adapted-by |
Compiler | >=2.4o

Description

    This library controls digital potentiometer mcp4131

Sources

    http://ww1.microchip.com/downloads/en/DeviceDoc/22060b.pdf

Dependencies

No dependency found

## Summary

### Global variables/contants

- `const _MCP4131_WRITE = 0b00_00`
- `const _MCP4131_INCREMENT = 0b01_00`
- `const MCP4131_TCON_REG = 0x04_0000`
- `const MCP4131_WIPER_0 = 0x00_0000`
- `const _MCP4131_DECREMENT = 0b10_00`
- `const _MCP4131_READ = 0b11_00`
- `const MCP4131_STATUS_REG = 0x05_0000`

### Procedures

- `mcp4131_wiper'put(byte in value)`
- `mcp4131_increment()`
- `mcp4131_write(byte in address, byte in command, word in value, byte in mode_16_bit)`
- `mcp4131_decrement()`
- `mcp4131_init()`

### Functions

## API details

### Global variables/contants

- `const _MCP4131_WRITE = 0b00_00`

      16bit

- `const _MCP4131_INCREMENT = 0b01_00`

      8bit

- `const MCP4131_TCON_REG = 0x04_0000`

  No documentation found

- `const MCP4131_WIPER_0 = 0x00_0000`

  No documentation found

- `const _MCP4131_DECREMENT = 0b10_00`

      8bit

- `const _MCP4131_READ = 0b11_00`

      constants

- `const MCP4131_STATUS_REG = 0x05_0000`

  No documentation found

### Procedures

- `mcp4131_wiper'put(byte in value)`

      Set the location of the wiper to change pot resistance.

- `mcp4131_increment()`

      Increment the location of the wiper to change pot resistance.

- `mcp4131_write(byte in address, byte in command, word in value, byte in mode_16_bit)`

      Send data and command to mcp4131.

- `mcp4131_decrement()`

      Decrement the location of the wiper to change pot resistance.

- `mcp4131_init()`

      Init.

### Functions

## Related samples

Here are the list of samples which use this library:

16f877 | 16f877_digital_potentiometer_mcp4131.jal
16f877a | 16f877a_digital_potentiometer_mcp4131.jal
18f452 | 18f452_digital_potentiometer_mcp4131.jal
18f4525 | 18f4525_digital_potentiometer_mcp4131.jal
18f4550 | 18f4550_digital_potentiometer_mcp4131.jal
18f4620 | 18f4620_digital_potentiometer_mcp4131.jal
18f67j50 | 18f67j50_digital_potentiometer_mcp4131.jal