The AD7730L is a complete analog front end for weigh-scale and pressure measurement applications. The device accepts low-level signals directly from a transducer and outputs a serial digital word. The input signal is applied to a proprietary programmable gain front end based around an analog modulator. The modulator output is processed by a low pass programmable digital filter, allowing adjustment of filter cutoff, output rate and settling time.
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 AD7730L driver can be used exactly as it is provided.
There are three functions which are called by the AD7730L driver:
SPI driver architecture
The following functions are implemented in this version of AD7730L driver:
Function | Description |
---|---|
unsigned char AD7730L_Init(void) | Configures I/O pins from/towards the component and resets the device. |
void AD7730L_SoftReset(void) | Resets the device. |
void AD7730L_SetRegisterValue(unsigned char registerAddress, unsigned long registerValue, unsigned char bytesNumber) | Writes data into a register. |
unsigned long AD7730L_GetRegisterValue(unsigned char registerAddress, unsigned char bytesNumber) | Reads the value of a register. |
void AD7730L_WaitForReady(void) | Waits for Ready pin to go low. |
void AD7730L_SetMode(unsigned short modeOperation, unsigned char inputRange, unsigned char channel) | Writes the specified mode of operation in Mode Register. |
void AD7730L_SetFilterOutputRate(unsigned long outputRate, unsigned char chop, unsigned char skip) | Writes a value corresponding to an output rate in Filter Register. |
void AD7730L_Calibrate(unsigned char channel, unsigned char inputRange, unsigned long outputRate, unsigned char dacValue) | Performs a calibration sequence for a channel. |
unsigned long AD7730L_SingleRead(unsigned char channel, unsigned char inputRange); | Reads the result of a single conversion. |
unsigned long AD7730L_ContinuousReadAvg(unsigned char channel, unsigned char inputRange, unsigned char sampleNumber); | Returns the average of several conversion results. |
This section contains a description of the steps required to run the AD7730L demonstration project on a Renesas RL78G13 platform.
An EVAL-AD7730LEBZ has to be interfaced with the Renesas Demonstration Kit (RDK) for RL78G13:
EVAL-AD7730LEBZ SKT1 connector Pin 3 (CS) → YRDKRL78G13 J11 connector Pin 1 EVAL-AD7730LEBZ SKT1 connector Pin 5 (DIN) → YRDKRL78G13 J11 connector Pin 2 EVAL-AD7730LEBZ SKT1 connector Pin 7 (DOUT) → YRDKRL78G13 J11 connector Pin 3 EVAL-AD7730LEBZ SKT1 connector Pin 1 (SCLK) → YRDKRL78G13 J11 connector Pin 4 EVAL-AD7730LEBZ SKT1 connector Pin 6 (DGND) → YRDKRL78G13 J11 connector Pin 5 EVAL-AD7730LEBZ SKT1 connector Pin 2 (RDY) → YRDKRL78G13 J11 connector Pin 7 EVAL-AD7730LEBZ SKT1 connector Pin 4 (RESET) → YRDKRL78G13 J11 connector Pin 9 EVAL-AD7730LEBZ SKT1 connector Pin 9 (SYNC) → YRDKRL78G13 J11 connector Pin 10
With the Applilet3 for RL78G13 tool the following peripherals have to be configured:
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, calibrates it and performs single and continuous reads of an analog signal. The results are displayed 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 AD7730 demonstration project on a Renesas RX62N platform.
An EVAL-AD7730LEBZ board has to be interfaced with the Renesas Demonstration Kit (RDK) for RX62N:
EVAL-AD7730LEBZ SKT1 connector Pin 3 (CS) → YRDKRX62N J8 connector Pin 15 EVAL-AD7730LEBZ SKT1 connector Pin 5 (DIN) → YRDKRX62N J8 connector Pin 19 EVAL-AD7730LEBZ SKT1 connector Pin 7 (DOUT) → YRDKRX62N J8 connector Pin 22 EVAL-AD7730LEBZ SKT1 connector Pin 1 (SCLK) → YRDKRX62N J8 connector Pin 20 EVAL-AD7730LEBZ SKT1 connector Pin 6 (DGND) → YRDKRX62N J8 connector Pin 4 EVAL-AD7730LEBZ SKT1 connector Pin 2 (RDY) → YRDKRX62N JN1 connector Pin 18 EVAL-AD7730LEBZ SKT1 connector Pin 4 (RESET) → YRDKRX62N JN1 connector Pin 16 EVAL-AD7730LEBZ SKT1 connector Pin 9 (SYNC) → YRDKRX62N JN1 connector Pin 17
The reference project initializes the device, calibrates it and performs single and continuous reads of an analog signal. The results are displayed 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条评论
快来发表一下你的评论吧 !