This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
resources:tools-software:uc-drivers:renesas:ad7792 [24 Feb 2012 08:36] – Added the "Reference Project Overview" section. Dragos Bogdan | resources:tools-software:uc-drivers:renesas:ad7792 [01 Jun 2012 12:32] – Added the "More Information" section Dragos Bogdan | ||
---|---|---|---|
Line 16: | Line 16: | ||
**HW Platform(s): | **HW Platform(s): | ||
- | * [[adi> | + | * [[http:// |
* [[http:// | * [[http:// | ||
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 ===== | ||
* {{: | * {{: | ||
+ | * {{: | ||
* {{: | * {{: | ||
+ | |||
+ | ====== 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:// | ||
+ | * [[adi> | ||
+ | |||
+ | ==== Required Software ==== | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | |||
+ | ==== 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 | ||
+ | {{ : | ||
+ | |||
+ | ==== Software Setup ==== | ||
+ | With the // | ||
+ | |||
+ | === CSI10 (Clocked Serial Interface 10) – For the AD7792 part and the ST7579 LCD === | ||
+ | Choose to generate the Transmit/ | ||
+ | * 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: // | ||
+ | * Transfer rate setting – Baudrate: // | ||
+ | * 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: // | ||
+ | |||
+ | ==== 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. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | ==== Software Project Tutorial ==== | ||
+ | {{page> | ||
====== 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 |
{{ : | {{ : | ||
Line 84: | Line 141: | ||
{{page> | {{page> | ||
+ | ====== More information ====== | ||
+ | {{page> |