This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:tools-software:uc-drivers:renesas:ad7980 [24 Jul 2012 10:03] – Added Arduino driver. Dragos Bogdan | resources:tools-software:uc-drivers:renesas:ad7980 [27 Jan 2021 23:00] (current) – use interwiki links Robin Getz | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== AD7980 - Microcontroller | + | ====== AD7980 - No-OS Driver |
+ | {{page>: | ||
- | ===== Supported Devices ===== | + | **HW Platform(s): |
- | * [[adi> | + | * [[https:// |
+ | * [[https:// | ||
- | ===== Evaluation Boards | + | ===== Downloads |
- | * PmodAD4 | + | |
- | ===== Overview ===== | + | <WRAP round download round 80%> |
+ | * {{: | ||
+ | * {{: | ||
+ | * {{: | ||
+ | * **AD7980 Driver: | ||
+ | * **[[adi> | ||
+ | * **RL78G14 Common Drivers: | ||
+ | </ | ||
- | The [[adi> | + | ====== Renesas RL78G13 Quick Start Guide ====== |
+ | This section | ||
- | {{ : | + | ==== Required Hardware ==== |
+ | * [[https://www.renesas.com/ | ||
+ | * [[adi> | ||
- | 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 | + | ==== Required Software ==== |
+ | * [[http:// | ||
- | **HW Platform(s): | + | ==== Hardware Setup ==== |
- | | + | A [[adi> |
- | * [[http:// | + | |
- | * [[http:// | + | |
- | * [[http:// | + | |
- | ===== Driver Description ===== | + | {{ :resources: |
- | The driver contains two parts: | + | |
- | * The driver for the AD7980 part, which may be used, without modifications, | + | |
- | * The Communication Driver, where the specific communication functions for the desired type of processor and communication protocol have to be implemented. This driver implements the communication with the device and hides the actual details of the communication protocol to the ADI driver. | + | |
- | The Communication Driver has a standard interface, so the AD7980 driver can be used exactly as it is provided. | + | <WRAP round important round 80%> |
+ | \\ | ||
+ | * If you want to use AVDD > DVDD (= 3.3V) then JP3 on PmodAD4 must be removed. The range for AVDD is 3.0V ≤ AVDD ≤ 5.5V. | ||
+ | \\ | ||
+ | </ | ||
- | There are three functions which are called by the AD7980 driver: | + | ==== Reference Project Overview ==== |
- | * SPI_Init() – initializes the communication peripheral. | + | |
- | * SPI_Write() – writes data to the device. | + | |
- | * SPI_Read() – reads data from the device. | + | |
- | {{ :resources: | + | The reference project: |
- | < | + | * samples the input voltage; |
- | SPI driver architecture | + | * displays the value on the LCD (in hexa, decimal and volts). |
+ | |||
+ | < | ||
+ | * The reference voltage for the AD7980 is 2.5V. | ||
+ | * If you want to use another reference voltage, you will need to modify the vRef parameter in ‘AD7980_ConvertToVolts()’ function from ‘PmodAD4.c’. The range for VREF is 2.4V ≤ VREF ≤ 5.1V. | ||
</ | </ | ||
- | The following functions are implemented in this version of AD7980 driver: | + | {{ :resources: |
- | ^ Function | + | |
- | | unsigned char AD7980_Init(void) | Initializes the communication peripheral. | | + | |
- | | unsigned short AD7980_Conversion(void) | Initiates conversion and reads data. | | + | |
- | This version of AD7980 driver uses the //**CS Mode 4-Wire, without Busy Indicator **// mode; the device has to be connected to an SPI-compatible digital host as following: | + | ==== Software Project Tutorial ==== |
+ | {{page> | ||
- | * The AD7980 CNV signal (C2 on the oscilloscope) has to be connected to the SPI MOSI signal. | + | ====== Renesas |
- | * The AD7980 SDI signal (C1 on the oscilloscope) has to be connected to the SPI CS signal (Chip Select has to be controlled manually). | + | This section contains a description of the steps required to run the AD7980 demonstration project on a Renesas |
- | * The AD7980 SCK signal (C4 on the oscilloscope) has to be connected to the SPI SCK signal. | + | |
- | * The AD7980 SDO signal (C3 on the oscilloscope) has to be connected to the SPI MISO signal. | + | |
- | + | ||
- | {{ : | + | |
- | <WRAP centeralign> | + | |
- | Signals generated by the driver on the SPI port | + | |
- | </ | + | |
- | + | ||
- | ===== Downloads ===== | + | |
- | * {{: | + | |
- | * {{: | + | |
- | * {{: | + | |
- | * {{: | + | |
- | * {{: | + | |
- | ====== Renesas | + | |
- | This section contains a description of the steps required to run the AD7980 demonstration project on a Renesas | + | |
==== Required Hardware ==== | ==== Required Hardware ==== | ||
- | * [[http://am.renesas.com/ | + | * [[https://www.renesas.com/ |
- | * PmodAD4 | + | * [[adi> |
==== Required Software ==== | ==== Required Software ==== | ||
* [[http:// | * [[http:// | ||
- | * [[http://am.renesas.com/ | + | * The AD7980 demonstration project for the Renesas RL78G14 platform. |
+ | <WRAP round info 80%> | ||
+ | The AD7980 demonstration project for the Renesas RL78G14 platform consists of three parts: the **AD7980 Driver**, | ||
+ | |||
+ | All three parts have to be downloaded. | ||
+ | </ | ||
==== Hardware Setup ==== | ==== Hardware Setup ==== | ||
- | A PmodAD4 | + | A [[adi> |
- | {{ : | + | {{ : |
- | ==== Software Setup ==== | + | <WRAP round important round 80%> |
- | With the //**Applilet3 | + | \\ |
+ | * If you want to use AVDD > DVDD (= 3.3V) then JP3 on PmodAD4 must be removed. The range for AVDD is 3.0V ≤ AVDD ≤ 5.5V. | ||
+ | \\ | ||
+ | </WRAP> | ||
- | === CSI10 (Clocked Serial Interface 10) – For the AD7980 part and the ST7579 LCD === | + | The reference project: |
- | Choose to generate the Transmit/ | + | * samples the input voltage; |
- | * Transfer mode setting: //**Single transfer mode**// | + | * displays the value on the LCD (in hexa, decimal and volts). |
- | * Data length setting : //**8 bits**// | + | |
- | * Transfer direction setting: // | + | |
- | * Specification of data timing: //**Type 3**// | + | |
- | * Transfer rate setting – Clock mode: // | + | |
- | * Transfer rate setting – Baudrate: // | + | |
- | * Interrupt setting – Transfer interrupt priority (INTCSI10): // | + | |
- | * Uncheck the callback functions. | + | |
- | === TM00 (Timer 00) – For the DelayMs() function === | + | <WRAP round important 80%> |
- | Configure TM00 as an interval timer: | + | |
- | * Interval timer setting - Interval value(16 bits): //**1**// ms | + | |
- | * Interval timer setting - Uncheck //Generates INTM00 when counting is started// | + | |
- | * Interrupt setting - Uncheck // End of timer channel 0 count, generate an interrupt (INTM00)// | + | |
- | === Watchdog Timer === | + | * The reference voltage for the AD7980 is 2.5V. |
- | Disable | + | * If you want to use another reference voltage, you will need to modify the vRef parameter in ‘AD7980_ConvertToVolts()’ function from ‘PmodAD4.c’. The range for VREF is 2.4V ≤ VREF ≤ 5.1V. |
- | * Choose | + | |
- | ==== Reference Project Overview ==== | + | </ |
- | The reference project initiates conversions and reads the captured data from the AD7980. | + | |
+ | {{ : | ||
- | {{ : | ||
==== Software Project Tutorial ==== | ==== Software Project Tutorial ==== | ||
- | {{page>rl78g13_software_tutorial}} | + | {{page>rl78g14_software_tutorial}} |
====== Renesas RX62N Quick Start Guide ====== | ====== Renesas RX62N Quick Start Guide ====== | ||
Line 113: | Line 102: | ||
==== Required Hardware ==== | ==== Required Hardware ==== | ||
- | * [[http://am.renesas.com/ | + | * [[https://www.renesas.com/ |
- | * PmodAD4 | + | * [[adi> |
==== Required Software ==== | ==== Required Software ==== | ||
- | * [[http:// | + | * [[https:// |
- | * [[http://am.renesas.com/ | + | * [[https://www.renesas.com/ |
==== Hardware Setup ==== | ==== Hardware Setup ==== | ||
- | A PmodAD4 | + | A [[adi> |
PmodAD4 Pin 1 (CS) → YRDKRX62N J8 connector Pin 15 | PmodAD4 Pin 1 (CS) → YRDKRX62N J8 connector Pin 15 | ||
Line 137: | Line 126: | ||
==== Software Project Setup ==== | ==== Software Project Setup ==== | ||
{{page> | {{page> | ||
- | |||
- | ====== Digilent Cerebot MX3cK Quick Start Guide ====== | ||
- | This section contains a description of the steps required to run the AD7980 demonstration project on a Digilent Cerebot MX3cK platform. | ||
- | |||
- | ==== Required Hardware ==== | ||
- | * [[http:// | ||
- | * PmodAD4 | ||
- | |||
- | ==== Required Software ==== | ||
- | * [[http:// | ||
- | * [[http:// | ||
- | |||
- | ==== Hardware Setup ==== | ||
- | A PmodAD4 has to be connected to the JE connector of Cerebot MX3cK development board. | ||
- | |||
- | {{ : | ||
- | |||
- | ==== Reference Project Overview ==== | ||
- | Following commands were implemented in this version of AD7980 reference project for Cerebot MX3cK board. | ||
- | ^ Command ^ Description ^ | ||
- | | help? | Displays all available commands. | | ||
- | | voltage? | Initiates a conversion and displays the captured voltage. | | ||
- | | register? | Initiates a conversion and displays the raw data in decimal format. | | ||
- | |||
- | Commands can be executed using a serial terminal connected to the UART1 peripheral of PIC32MX320F128H. | ||
- | |||
- | The following image shows a list of commands in a serial terminal connected to processor’s UART peripheral. | ||
- | {{ : | ||
- | |||
- | ==== Software Project Setup ==== | ||
- | {{page>: | ||
- | |||
- | ====== Digilent Cerebot MC7 Quick Start Guide ====== | ||
- | This section contains a description of the steps required to run the AD7980 demonstration project on a Digilent Cerebot MC7 platform. | ||
- | |||
- | ==== Required Hardware ==== | ||
- | * [[http:// | ||
- | * PmodAD4 | ||
- | |||
- | ==== Required Software ==== | ||
- | * [[http:// | ||
- | * [[http:// | ||
- | |||
- | ==== Hardware Setup ==== | ||
- | A PmodAD4 has to be connected to the JB connector of Cerebot MC7 development board. | ||
- | |||
- | {{ : | ||
- | |||
- | ==== Reference Project Overview ==== | ||
- | Following commands were implemented in this version of AD7980 reference project for Cerebot MC7 board. | ||
- | ^ Command ^ Description ^ | ||
- | | help? | Displays all available commands. | | ||
- | | voltage? | Initiates a conversion and displays the captured voltage. | | ||
- | | register? | Initiates a conversion and displays the raw data in decimal format. | | ||
- | |||
- | Commands can be executed using a serial terminal connected to the UART1 peripheral of dsPIC33FJ128MC706A. | ||
- | |||
- | The following image shows a list of commands in a serial terminal connected to processor’s UART peripheral. | ||
- | {{ : | ||
- | |||
- | ==== Software Project Setup ==== | ||
- | {{page>: | ||
- | |||
- | ====== Digilent Cerebot MX3cK Quick Start Guide - Arduino ====== | ||
- | This section contains a description of the steps required to run the AD7980 Arduino demonstration project on a Digilent Cerebot MX3cK platform. | ||
- | |||
- | ==== Required Hardware ==== | ||
- | * [[http:// | ||
- | * PmodAD4 | ||
- | |||
- | ==== Required Software ==== | ||
- | * [[https:// | ||
- | |||
- | ==== Hardware Setup ==== | ||
- | A PmodAD4 has to be connected to the JE connector of Cerebot MX3cK development board. | ||
- | |||
- | {{ : | ||
- | |||
- | ==== Reference Project Overview ==== | ||
- | Following commands were implemented in this version of AD7980 Arduino reference project for Cerebot MX3cK board. | ||
- | ^ Command ^ Description ^ | ||
- | | help? | Displays all available commands. | | ||
- | | voltage? | Initiates a conversion and displays the captured voltage. | | ||
- | | register? | Initiates a conversion and displays the raw data in decimal format. | | ||
- | |||
- | Commands can be executed using the serial monitor. | ||
- | |||
- | // | ||
- | |||
- | The following image shows a list of commands in the serial monitor. | ||
- | |||
- | {{ : | ||
- | |||
- | ==== Software Project Setup ==== | ||
- | {{page>: | ||
- | |||
====== More information ====== | ====== More information ====== | ||
- | {{page> | + | {{page>: |