The AD7476/AD7477/AD7478 are, respectively, 12-bit, 10-bit, and 8-bit, high speed, low power, successive approximation ADCs. The parts operate from a single 2.35 V to 5.25 V power supply and feature throughput rates up to 1 MSPS. Each part contains a low noise, wide bandwidth track-and-hold amplifier that can handle input frequencies in excess of 6 MHz.
The conversion process and data acquisition are controlled using CS the serial clock, allowing the devices to interface with microprocessors or DSPs. The input signal is sampled on the falling edge of CS and the conversion is initiated at this point. There are no pipeline delays associated with these parts.
The AD7476/AD7477/AD7478 use advanced design techniques to achieve very low power dissipation at high throughput rates. The reference for the parts is taken internally from VDD. This allows the widest dynamic input range to the ADC. Thus, the analog input range for the parts are 0 V to VDD. The conversion rate is determined by the SCLK.
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 different microcontroller platforms.
The driver contains two parts:
The Communication Driver has a standard interface, so the AD74xx driver can be used exactly as it is provided.
There are three functions which are called by the AD74xx driver:
SPI driver architecture
The following functions are implemented in this version of AD74xx driver:
Function | Description |
---|---|
char AD74xx_Init(char partNumber) | Initializes the device. |
void AD74xx_PowerDown(void) | Powers down the device. |
void AD74xx_PowerUp(void) | Powers up the device by performing a dummy read. |
unsigned short AD74xx_GetRegisterValue(void) | Reads the conversion value. |
float AD74xx_ConvertToVolts(unsigned short rawValue, float vRef) | Converts a raw sample to volts. |
This section contains a description of the steps required to run the AD7476 demonstration project on a Renesas RL78G13 platform using the PmodAD1.
A PmodAD1 has to be interfaced with the Renesas Demonstration Kit (RDK) for RL78G13:
PmodAD1 J1 connector Pin CS → YRDKRL78G13 J11 connector Pin 1 PmodAD1 J1 connector Pin D0 → YRDKRL78G13 J11 connector Pin 3 PmodAD1 J1 connector Pin CLK → YRDKRL78G13 J11 connector Pin 4 PmodAD1 J1 connector Pin GND → YRDKRL78G13 J11 connector Pin 5 PmodAD1 J1 connector Pin VCC → YRDKRL78G13 J11 connector Pin 6
PmodAD1 should not be inserted in the pmod connector like the other pmods because pin D1(J1 connector) of PmodAD1 is an output pin, same as MOSI pin(pin 2 of J11 connector) of YRDKRL78G13. Damage could result when connecting the two pins togheter. The MOSI pin cannot be changed to be an input pin, as it is used to display data on the LCD. Therefore the connection above should be used to avoid this situation.
The reference project:
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.
This section contains a description of the steps required to run the AD7476 demonstration project on a Renesas RL78G14 platform using the PmodAD1.
The AD7476 demonstration project for the Renesas RL78G14 platform consists of three parts: the AD7476 Driver, the PmodAD1 Demo for RL78G14 and the RL78G14 Common Drivers.
All three parts have to be downloaded.
A PmodAD1 has to be interfaced with the Renesas Demonstration Kit (RDK) for RL78G14:
PmodAD1 J1 connector Pin CS → RDKRL78G14 J11 connector Pin 1 PmodAD1 J1 connector Pin D0 → RDKRL78G14 J11 connector Pin 3 PmodAD1 J1 connector Pin CLK → RDKRL78G14 J11 connector Pin 4 PmodAD1 J1 connector Pin GND → RDKRL78G14 J11 connector Pin 5 PmodAD1 J1 connector Pin VCC → RDKRL78G14 J11 connector Pin 6
PmodAD1 should not be inserted in the pmod connector like the other pmods because pin D1(J1 connector) of PmodAD1 is an output pin, same as MOSI pin(pin 2 of J11 connector) of RDKRL78G14. Damage could result when connecting the two pins togheter. The MOSI pin cannot be changed to be an input pin, as it is used to display data on the LCD. Therefore the connection above should be used to avoid this situation.
The reference project:
This section presents the steps for developing a software application that will run on the Renesas Demo Kit for RL78G14 for controlling and monitoring the operation of the ADI part.
This section contains a description of the steps required to run the AD7476 demonstration project on a Renesas RX62N platform using the PmodAD1.
A PmodAD1 has to be interfaced with the Renesas Demonstration Kit (RDK) for RX62N:
PmodAD1 Pin 1 (CS) → YRDKRX62N J8 connector Pin 15 PmodAD1 Pin 3 (MISO) → YRDKRX62N J8 connector Pin 22 PmodAD1 Pin 4 (CLK) → YRDKRX62N J8 connector Pin 20 PmodAD1 Pin 5 (GND) → YRDKRX62N J8 connector Pin 4 PmodAD1 Pin 6 (VCC) → YRDKRX62N J8 connector Pin 3
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条评论
快来发表一下你的评论吧 !