Wiki

Differences

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

Link to this comparison view

Next revision
Previous revision
Last revision Both sides next revision
resources:tools-software:uc-drivers:renesas:adis16227 [28 Feb 2012 14:43]
dragosb Created.
resources:tools-software:uc-drivers:renesas:adis16227 [01 Jun 2012 12:50]
DragosB Added the "More Information" section
Line 8: Line 8:
  
 ===== Overview ===== ===== Overview =====
- 
 The [[adi>​ADIS16227]] iSensor® is a complete vibration sensing system that combines wide bandwidth, triaxial acceleration sensing with advanced time domain and frequency domain signal processing. Time domain signal processing includes a programmable decimation filter and selectable windowing function. Frequency domain processing includes a 512 point, real-valued FFT for each axis, along with FFT averaging, which reduces the noise floor variation for finer resolution. The 16-record FFT storage system offers users the ability to track changes over time and to capture FFTs with multiple decimation filter settings. The [[adi>​ADIS16227]] iSensor® is a complete vibration sensing system that combines wide bandwidth, triaxial acceleration sensing with advanced time domain and frequency domain signal processing. Time domain signal processing includes a programmable decimation filter and selectable windowing function. Frequency domain processing includes a 512 point, real-valued FFT for each axis, along with FFT averaging, which reduces the noise floor variation for finer resolution. The 16-record FFT storage system offers users the ability to track changes over time and to capture FFTs with multiple decimation filter settings.
  
Line 17: Line 16:
 **HW Platform(s):​** **HW Platform(s):​**
   * [[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/​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)]]
 +===== Driver Description =====
 +The driver contains two parts:
 +  * The driver for the ADIS16227 part, which may be used, without modifications,​ with any microcontroller.
 +  * 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.
  
-====== Renesas RL78G13 Quick Start Guide ======+The Communication Driver has a standard interface, so the ADIS16227 driver can be used exactly as it is provided. There are three functions which are called by the ADIS16227 driver: 
 +  * SPI_Init() – initializes the communication peripheral. 
 +  * SPI_Write() – writes data to the device. 
 +  * SPI_Read() – reads data from the device.
  
-This section contains a description of the steps required to run the ADF4118 ​demonstration project on a Renesas RL78G13 platform. ​+{{ :​resources:​tools-software:​uc-drivers:​renesas:​spi_architecture.png?​ |}} 
 +<WRAP centeralign>​ 
 +Driver architecture 
 +</​WRAP>​ 
 + 
 +The implementation of these three functions depends on the used microcontroller. 
 + 
 +The following functions are implemented in this version of ADIS16227 driver: 
 +^ Function ​      ^ Description ​    ^ 
 +| unsigned short ADIS16227_GetRegister16Value(unsigned char registerAddress) | Reads the value of a register. | 
 +| void ADIS16227_SetRegister8Value(unsigned char registerAddress,​ unsigned char registerValue) | Writes 1 byte into a register. | 
 +| void ADIS16227_SetRegister16Value(unsigned char registerAddress,​ unsigned short registerValue) | Writes 2 bytes into a register. | 
 +| unsigned char ADIS16227_Init(void) | Initializes the SPI and checks if the ADIS16227 part is present. | 
 +| void ADIS16227_ConfigCapture(unsigned char window, unsigned char sampleRate, unsigned char pwrDwn, unsigned char range, unsigned char mode) | Configures the ADIS16227_REC_CTRL register. | 
 +| unsigned char ADIS16227_DataReady(void) | Reads the value of the "Data ready/​busy"​ bit (DIAG_STAT register). | 
 +| void ADIS16227_Capture(void) | Initiates a manual data capture and wait until the process is finished. | 
 +| void ADIS16227_GetBuffers(unsigned short* x, unsigned short* y, unsigned short* z, unsigned short samplesNumber) | Reads "​samplesNumber"​ samples from each axis's buffer. | 
 +| unsigned short ADIS16227_GetPowerSupplyInfo(void) | Reads the power supply voltage and returns the data in mV. | 
 +| char ADIS16227_GetTemperatureInfo(void) | Reads the internal temperature and returns the data in degrees Celsius. | 
 + 
 +===== Downloads ===== 
 +  * {{:​resources:​tools-software:​uc-drivers:​renesas:​adis16227_generic.zip|ADIS16227 Generic Driver}} 
 +  * {{:​resources:​tools-software:​uc-drivers:​renesas:​adis16227_rl78g13.zip|ADIS16227 RL78G13 Driver}} 
 +  * {{:​resources:​tools-software:​uc-drivers:​renesas:​adis16227_rx62n.zip|ADIS16227 RX62N Driver}} 
 + 
 +====== Renesas RL78G13 Quick Start Guide ====== 
 +This section contains a description of the steps required to run the ADIS16227 ​demonstration project on a Renesas RL78G13 platform. ​
  
 ==== Required Hardware ==== ==== Required Hardware ====
Line 28: Line 61:
 ==== Required Software ==== ==== Required Software ====
   * [[http://​www.iar.com/​en/​Products/​IAR-Embedded-Workbench/​Renesas-RL78/​|IAR Embedded Workbench for Renesas RL78 Kickstart]]   * [[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 ==== ==== Hardware Setup ====
Line 41: Line 75:
  
 {{ :​resources:​tools-software:​uc-drivers:​renesas:​adis16227_pcbz_rl78g13.jpg?​ |}} {{ :​resources:​tools-software:​uc-drivers:​renesas:​adis16227_pcbz_rl78g13.jpg?​ |}}
 +
 +==== Software Setup ====
 +With the //​**Applilet3 for RL78G13**// tool the following peripherals have to be configured:
 +
 +=== CSI10 (Clocked Serial Interface 10) – For the ADIS16227 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 ==== ==== Reference Project Overview ====
Line 48: Line 106:
  
 ==== Software Project Setup ==== ==== Software Project Setup ====
-{{page>rl78g13_software_design}}+{{page>rl78g13_software_tutorial}} 
 + 
 +====== Renesas RX62N Quick Start Guide ====== 
 +This section contains a description of the steps required to run the ADIS16227 demonstration project on a Renesas RX62N platform. 
 + 
 +==== Required Hardware ==== 
 +  * [[http://​am.renesas.com/​products/​tools/​introductory_evaluation_tools/​renesas_demo_kits/​yrdkrx62n/​index.jsp|Renesas Demo Kit for RX62N (Renesas)]] 
 +  * [[adi>​ADIS16227 | ADIS16227/​PCBZ (Analog Devices)]] 
 +==== Required Software ==== 
 +  * [[http://​www.renesas.com/​products/​tools/​ide/​ide_hew/​index.jsp|High-performance Embedded Workshop for RX62N family]] 
 +  * [[http://​am.renesas.com/​products/​tools/​middleware_and_drivers/​c_driver_gen/​driver_gen_rpdl/​index.jsp|Renesas Peripheral Driver Library for RX62N family]] 
 + 
 +==== Hardware Setup ==== 
 +An ADIS16227/​PCBZ board has to be interfaced with the Renesas Demonstration Kit (RDK) for RX62N: 
 + 
 +    ADIS16227/​PCBZ J1 connector Pin 3 (CS)   → YRDKRX62N J8 connector Pin 15 
 +    ADIS16227/​PCBZ J1 connector Pin 6 (MOSI) → YRDKRX62N J8 connector Pin 19 
 +    ADIS16227/​PCBZ J1 connector Pin 4 (MISO) → YRDKRX62N J8 connector Pin 22 
 +    ADIS16227/​PCBZ J1 connector Pin 2 (SCLK) → YRDKRX62N J8 connector Pin 20 
 +    ADIS16227/​PCBZ J1 connector Pin 1 (RST)  → YRDKRX62N JN1 connector Pin 16 
 +    ADIS16227/​PCBZ J1 connector Pin 7 (GND)  → YRDKRX62N J8 connector Pin 4 
 +    ADIS16227/​PCBZ J1 connector Pin 10 (VCC) → YRDKRX62N J8 connector Pin 3 
 + 
 +{{ :​resources:​tools-software:​uc-drivers:​renesas:​adis16227_rx62n.jpg?​ |}} 
 + 
 +==== Reference Project Overview ==== 
 +The reference project runs an offset correction operation, configures the REC_CTRL register and initiates a Manual Time recording. After the process is finished on the LCD are displayed the internal temperature,​ the power supply voltage and the first value of each axis's buffer. 
 + 
 +{{ :​resources:​tools-software:​uc-drivers:​renesas:​adis16227_rx62n_screen.jpg?​ |}} 
 + 
 +==== Software Project Setup ==== 
 +{{page>​rx62n_software_design}}
  
 +====== More information ======
 +{{page>​more-information}}
resources/tools-software/uc-drivers/renesas/adis16227.txt · Last modified: 16 Nov 2012 16:46 by larsc