The AD5172 is a dual-channel, 256-position, one-time programmable (OTP) digital potentiometer that employs fuse link technology to achieve memory retention of resistance settings. OTP is a cost-effective alternative to EEMEM for users who do not need to program the digital potentiometer setting in memory more than once. The AD5172 is programmed using a 2-wire, I2C®-compatible digital interface. Unlimited adjustments are allowed before permanently setting the resistance value. During OTP activation, a permanent blow fuse command freezes the wiper position (analogous to placing epoxy on a mechanical trimmer). Unlike traditional OTP digital potentiometers, the AD5172 has a unique temporary OTP overwrite feature that allows for new adjustments even after a fuse is blown. However, the OTP setting is restored during subsequent power-up conditions. This allows users to treat this digital potentiometer as volatile potentiometer with a programmable preset.
The goal of this project (Microcontroller No-OS) is to be able to provide reference projects for lower end processors, which can't run Linux, or aren't running a specific operating system, to help those customers using microcontrollers with ADI parts. Here you can find a generic driver which can be used as a base for any microcontroller platform and also specific drivers for Renesas platforms.
HW Platform(s):
The driver contains two parts:
The Communication Driver has a standard interface, so the AD5172 driver can be used exactly as it is provided.
There are three functions which are called by the AD5172 driver:
I2C driver architecture
The following functions are implemented in this version of AD5172 driver:
Function | Description |
---|---|
unsigned char AD5172_Init(void) | Initializes the communication with the device. |
void AD5172_Shutdown(unsigned char channel, unsigned char flag) | Sets or clears the Shutdown bit. |
void AD5172_Otp(unsigned char channel, unsigned char data) | The channel is being one-time programmed(OTP). |
void AD5172_WriteRDAC(unsigned char channel, unsigned char data) | Sends data to one of the 2 channels available. |
unsigned char AD5172_ReadRDAC(unsigned char channel) | Reads a byte form the selected channel. |
This section contains a description of the steps required to run the AD5172 demonstration project on a Renesas RL78G13 platform.
An EVAL-AD5172SDZ has to be interfaced with the Renesas Demonstration Kit (RDK) for RL78G13:
EVAL-AD5172SDZ A connector Pin SCL_BF (SCL) → YRDKRL78G13 J9 connector Pin 1 EVAL-AD5172SDZ A connector Pin SDA_BF (SDA) → YRDKRL78G13 J9 connector Pin 3
With the Applilet3 for RL78G13 tool the following peripherals have to be configured:
Choose the Single master transfer mode and configure the interface with the following settings:
Choose to generate the Transmit/receive function for the CSI10 and configure the interface with the following settings:
Configure TM00 as an interval timer:
Disable the watchdog timer:
The reference project initializes the device, writes two different values to both channels available on the device and then checks if the values were correctly written by reading the RDACs and displays them on the LCD.
This section presents the steps for developing a software application that will run on the Renesas Demo Kit for RL78G13 for controlling and monitoring the operation of the ADI part.
Two software applications have to be used: Applilet3 for RL78G13 (a tool that automatically generates device drivers for MCU peripheral functions) and IAR Embedded Workbench for Renesas RL78 (the integrated development environment).
This section contains a description of the steps required to run the AD5172 demonstration project on a Renesas RX62N platform.
An EVAL-AD5172EBZ board has to be interfaced with the Renesas Demonstration Kit (RDK) for RX62N:
EVAL-AD5172SDZ A connector Pin SCL_BF (SCL) → YRDKRX62N J2 connector Pin 1 EVAL-AD5172SDZ A connector Pin SDA_BF (SDA) → YRDKRX62N J2 connector Pin 3
The reference project: The reference project initializes the device, writes two different values to both channels available on the device and then checks if the values were correctly written by reading the RDACs and displays them on the LCD.
This section presents the steps for developing a software application that will run on the Renesas Demo Kit for RX62N for controlling and monitoring the operation of the ADI part.
声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉
全部0条评论
快来发表一下你的评论吧 !