Wiki

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
resources:tools-software:uc-drivers:renesas:ad7792 [24 Feb 2012 08:36]
dragosb Added the "Reference Project Overview" section.
resources:tools-software:uc-drivers:renesas:ad7792 [21 Mar 2012 15:48]
DragosB Added the AD7792 driver for RL78G13.
Line 16: Line 16:
  
 **HW Platform(s):​** ​ **HW Platform(s):​** ​
-  * [[adi>​EVAL-AD7792EBZ|EVAL-AD7792EBZ]]  +  * [[http://​am.renesas.com/​products/​tools/​introductory_evaluation_tools/​renesas_demo_kits/​yrdkrl78g13/​index.jsp|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)]]   * [[http://​am.renesas.com/​products/​tools/​introductory_evaluation_tools/​renesas_demo_kits/​yrdkrx62n/​index.jsp|Renesas Demo Kit for RX62N (Renesas)]]
  
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 ====
 +  * [[http://​am.renesas.com/​products/​tools/​introductory_evaluation_tools/​renesas_demo_kits/​yrdkrl78g13/​index.jsp|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]]
 +  * [[http://​am.renesas.com/​|Applilet3 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 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?​ |}}
  
resources/tools-software/uc-drivers/renesas/ad7792.txt · Last modified: 01 Jun 2012 12:32 by DragosB