Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
resources:tools-software:uc-drivers:renesas:ad7792 [16 Feb 2012 13:14] – Added the functions' description. Dragos Bogdanresources:tools-software:uc-drivers:renesas:ad7792 [25 Jan 2021 05:40] (current) – update renesas links after their web site update Robin Getz
Line 16: Line 16:
  
 **HW Platform(s):**  **HW Platform(s):** 
-  * [[adi>EVAL-AD7792EBZ|EVAL-AD7792EBZ]]   +  * [[https://www.renesas.com/us/en/products/microcontrollers-microprocessors/rl78-low-power-8-16-bit-mcus/yrdkrl78g13-yrdkrl78g13-demonstration-kit-rl78g13|Renesas Demo Kit for RL78G13 (Renesas)]] 
-  * [[http://am.renesas.com/products/tools/introductory_evaluation_tools/renesas_demo_kits/yrdkrx62n/index.jsp|Renesas Demo Kit for RX62N (Renesas)]]+  * [[https://www.renesas.com/us/en/products/microcontrollers-microprocessors/rx-32-bit-performance-efficiency-mcus/yrdkrx62n-yrdkrx62n-demonstration-kit-rx62n|Renesas Demo Kit for RX62N (Renesas)]]
  
 ===== Driver Description ===== ===== Driver Description =====
Line 42: Line 42:
 | unsigned long AD7792_GetRegisterValue(unsigned char regAddress, unsigned char size) | Reads the value of the selected register. | | unsigned long AD7792_GetRegisterValue(unsigned char regAddress, unsigned char size) | Reads the value of the selected register. |
 | void AD7792_SetRegisterValue(unsigned char regAddress, unsigned long regValue, unsigned char size) | Writes a value to the register. | | void AD7792_SetRegisterValue(unsigned char regAddress, unsigned long regValue, unsigned char size) | Writes a value to the register. |
 +| void AD7792_WaitRdyGoLow(void) | Waits for RDY pin to go low. |
 | void AD7792_SetMode(unsigned long mode) | Sets the operating mode of AD7792. | | void AD7792_SetMode(unsigned long mode) | Sets the operating mode of AD7792. |
-| unsigned char AD7792_Ready(void) | Reads /RDY bit of Status register. | 
 | void AD7792_SetChannel(unsigned long channel) | Selects the channel of AD7792. | | void AD7792_SetChannel(unsigned long channel) | Selects the channel of AD7792. |
 | void AD7792_SetGain(unsigned long gain) | Sets the gain of the In-Amp. | | void AD7792_SetGain(unsigned long gain) | Sets the gain of the In-Amp. |
-| void AD7792_SetReference(unsigned char type) | Sets the reference source for the ADC. |+| void AD7792_SetIntReference(unsigned char type) | Sets the reference source for the ADC. | 
 +| void AD7792_Calibrate(unsigned char mode, unsigned char channel) | Performs the given calibration to the specified channel. | 
 +| unsigned long AD7792_SingleConversion(void) | Returns the result of a single conversion. | 
 +| unsigned long AD7792_ContinuousReadAvg(unsigned char sampleNumber) | Returns the average of several conversion results. |
  
 ===== Downloads ===== ===== Downloads =====
   * {{:resources:tools-software:uc-drivers:renesas:ad7792_generic.zip|AD7792 Generic Driver}}   * {{:resources:tools-software:uc-drivers:renesas:ad7792_generic.zip|AD7792 Generic Driver}}
 +  * {{:resources:tools-software:uc-drivers:renesas:ad7792_rl78g13.zip|AD7792 RL78G13 Driver}}
   * {{:resources:tools-software:uc-drivers:renesas:ad7792_rx62n.zip|AD7792 RX62N Driver}}   * {{:resources:tools-software:uc-drivers:renesas:ad7792_rx62n.zip|AD7792 RX62N Driver}}
 +
 +====== Renesas RL78G13 Quick Start Guide ======
 +This section contains a description of the steps required to run the AD7792 demonstration project on a Renesas RL78G13 platform.
 +
 +==== Required Hardware ====
 +  * [[https://www.renesas.com/us/en/products/microcontrollers-microprocessors/rl78-low-power-8-16-bit-mcus/yrdkrl78g13-yrdkrl78g13-demonstration-kit-rl78g13|Renesas Demo Kit for RL78G13 (Renesas)]]
 +  * [[adi>EVAL-AD7792EBZ]]
 +
 +==== Required Software ====
 +  * [[http://www.iar.com/en/Products/IAR-Embedded-Workbench/Renesas-RL78/|IAR Embedded Workbench for Renesas RL78 Kickstart]]
 +  * [[https://www.renesas.com/us/en/software-tool/ap4-applilet|Applilet4 for RL78G13]]
 +
 +==== Hardware Setup ====
 +An EVAL-AD7792EBZ has to be interfaced with the Renesas Demonstration Kit (RDK) for RL78G13:
 +
 +    EVAL-AD7792EBZ J2 connector connector CS   → YRDKRL78G13 J11 connector Pin 1
 +    EVAL-AD7792EBZ J2 connector connector DIN  → YRDKRL78G13 J11 connector Pin 2
 +    EVAL-AD7792EBZ J2 connector connector DOUT → YRDKRL78G13 J11 connector Pin 3
 +    EVAL-AD7792EBZ J2 connector connector SCLK → YRDKRL78G13 J11 connector Pin 4
 +    EVAL-AD7792EBZ J3 connector connector AGND → YRDKRL78G13 J11 connector Pin 5
 +    EVAL-AD7792EBZ J3 connector connector AVDD → YRDKRL78G13 J11 connector Pin 6
 +{{ :resources:tools-software:uc-drivers:renesas:eval_ad7792ebz_rl78g13.jpg? |}}
 +
 +==== Software Setup ====
 +With the //**Applilet3 for RL78G13**// tool the following peripherals have to be configured:
 +
 +=== CSI10 (Clocked Serial Interface 10) – For the AD7792 part and the ST7579 LCD ===
 +Choose to generate the Transmit/receive function for the CSI10 and configure the interface with the following settings:
 +  * Transfer mode setting: //**Single transfer mode**//
 +  * Data length setting : //**8 bits**//
 +  * Transfer direction setting: //**MSB**//
 +  * Specification of data timing: //**Type 1**//
 +  * Transfer rate setting – Clock mode: //**Internal clock (master)**//
 +  * Transfer rate setting – Baudrate: //**1000000**// (bps)
 +  * Interrupt setting – Transfer interrupt priority (INTCSI10): //**Low**//
 +  * Uncheck the callback functions.
 +
 +=== TM00 (Timer 00) – For the DelayMs() function === 
 +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 ===
 +Disable the watchdog timer:
 +  * Choose for the Watchdog timer operation setting: //**Unused**// option.
 +
 +==== Reference Project Overview ====
 +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.
 +
 +{{ :resources:tools-software:uc-drivers:renesas:eval_ad7792ebz_rl78g13_screen.jpg? |}}
 +
 +==== Software Project Tutorial ====
 +{{page>rl78g13_software_tutorial}}
  
 ====== Renesas RX62N Quick Start Guide ====== ====== Renesas RX62N Quick Start Guide ======
Line 57: Line 115:
  
 ==== Required Hardware ==== ==== Required Hardware ====
-  * [[http://am.renesas.com/products/tools/introductory_evaluation_tools/renesas_demo_kits/yrdkrx62n/index.jsp|Renesas Demo Kit for RX62N (Renesas)]]+  * [[https://www.renesas.com/us/en/products/microcontrollers-microprocessors/rx-32-bit-performance-efficiency-mcus/yrdkrx62n-yrdkrx62n-demonstration-kit-rx62n|Renesas Demo Kit for RX62N (Renesas)]]
   * [[adi>EVAL-AD7792EBZ|EVAL-AD7792EBZ (ADI)]]   * [[adi>EVAL-AD7792EBZ|EVAL-AD7792EBZ (ADI)]]
  
 ==== Required Software ==== ==== Required Software ====
-  * [[http://www.renesas.com/products/tools/ide/ide_hew/index.jsp|High-performance Embedded Workshop for RX62N family]]+  * [[https://www.renesas.com/us/en/software-tool/high-performance-embedded-workshop|High-performance Embedded Workshop for RX62N family]]
  
 ==== Hardware Setup ==== ==== Hardware Setup ====
Line 71: Line 129:
     EVAL-AD7792EBZ J2 connector Pin CS   → YRDKRX62N J8 connector Pin 15     EVAL-AD7792EBZ J2 connector Pin CS   → YRDKRX62N J8 connector Pin 15
     EVAL-AD7792EBZ J3 connector Pin AVDD → YRDKRX62N J8 connector Pin 3     EVAL-AD7792EBZ J3 connector Pin AVDD → YRDKRX62N J8 connector Pin 3
-    EVAL-AD7792EBZ J3 connector Pin DGND → YRDKRX62N J8 connector Pin 4 +    EVAL-AD7792EBZ J3 connector Pin AGND → YRDKRX62N J8 connector Pin 4
 {{ :resources:tools-software:uc-drivers:renesas:eval_ad7792ebz_rx62n.jpg? |}} {{ :resources:tools-software:uc-drivers:renesas:eval_ad7792ebz_rx62n.jpg? |}}
 +
 +==== Reference Project Overview ====
 +
 +The demo program samples channel 1 at 16.7 Hz. The ADC is configured to work in bipolar mode and the gain of the In-Amp is set to 1. The hex values of the configuration and data registers are displayed on the LCD. The value of the Data register is also formatted to be displayed in mV.
 +
 {{ :resources:tools-software:uc-drivers:renesas:eval_ad7792ebz_rx62n_screen.jpg? |}} {{ :resources:tools-software:uc-drivers:renesas:eval_ad7792ebz_rx62n_screen.jpg? |}}
  
Line 79: Line 141:
 {{page>rx62n_software_design}} {{page>rx62n_software_design}}
  
 +====== More information ======
 +{{page>more-information}}
resources/tools-software/uc-drivers/renesas/ad7792.1329394449.txt.gz · Last modified: 16 Feb 2012 13:14 (external edit)