Wiki

Differences

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

Link to this comparison view

Next revision
Previous revision
resources:tools-software:uc-drivers:renesas:adxl362 [03 Sep 2012 13:58] – created Dragos Bogdanresources:tools-software:uc-drivers:renesas:adxl362 [24 Jan 2021 18:36] (current) – Fix bad links Dragos Bogdan
Line 1: Line 1:
-====== ADXL362 - Microcontroller No-OS Driver ====== +====== ADXL362 - No-OS Driver for Renesas Microcontroller Platforms ====== 
- +{{page>:resources:tools-software:uc-drivers:adxl362}}
-===== Supported Devices ===== +
-  * [[adi>ADXL362]] +
-===== Evaluation Boards ===== +
-  * PmodACL2  +
-===== Overview ===== +
-The ADXL362 is an ultralow power, 3-axis MEMS accelerometer that consumes less than 2 μA at a 100 Hz output data rate and 270 nA when in motion triggered wake-up mode. +
-The ADXL362 always provides 12-bit output resolution; 8-bit formatted data is also provided for more efficient single-byte transfers when a lower resolution is sufficient. Measurement ranges of ±2 g, ±4 g, and ±8 g are available, with a resolution of 1 mg/LSB on the ±2 g range. For applications where a noise level lower than the normal 550 μg/√Hz of the ADXL362 is desired, either of two lower noise modes (down to 175 μg/√Hz typical) can be selected at minimal increase in supply current. In addition to its ultralow power consumption, the ADXL362 has many features to enable true system level power reduction. It includes a deep multimode output FIFO, a built-in micropower temperature sensor, and several activity detection modes including adjustable threshold sleep and wake-up operation that can run as low as 270 nA at a 6 Hz (approximate) measurement rate. A pin output is provided to directly control an external switch when activity is detected, if desired. In addition, the ADXL362 has provisions for external control of sampling time and/or an external clock. +
- +
-{{ :resources:tools-software:uc-drivers:renesas:pmod_acl2.jpg? |}} +
- +
-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 for Renesas platforms.+
  
 **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)]] +  * [[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://www.digilentinc.com/Products/Detail.cfm?Prod=CEREBOT-MX3CK|Digilent Cerebot MX3cK (Digilent)]]+  * [[https://www.renesas.com/us/en/products/microcontrollers-microprocessors/rx-32-bit-performance-efficiency-mcus/yrdkrx63n-yrdkrx63n-demonstration-kit-rx63n|Renesas Demo Kit for RX63N (Renesas)]]
  
-===== Driver Description ===== +===== Downloads =====
-The driver contains two parts: +
-  * The driver for the ADXL362 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.+
  
-The Communication Driver has a standard interface, so the ADXL362 driver can be used exactly as it is provided. +<WRAP round download 80%> 
- +  * {{:resources:tools-software:uc-drivers:adxl362_generic.zip|ADXL362 Generic Driver}} 
-There are three functions which are called by the ADXL362 driver: +  * {{:resources:tools-software:uc-drivers:renesas:adxl362_rl78g13.zip|ADXL362 RL78G13 Driver}} 
-  * SPI_Init() – initializes the communication peripheral+  * {{:resources:tools-software:uc-drivers:renesas:adxl362_rx63n.zip|ADXL362 RX63N Driver}} 
-  * SPI_Write() – writes data to the device+  * **ADXL362 Driver:           ** https://github.com/analogdevicesinc/no-OS/tree/master/drivers/accel/adxl362 
-  * SPI_Read() – reads data from the device. +  * **PmodACL2 Demo for RL78G14: ** https://github.com/analogdevicesinc/no-OS/tree/master/Renesas/RL78G14/PmodACL2 
- +  * **RL78G14 Common Drivers:   ** https://github.com/analogdevicesinc/no-OS/tree/master/Renesas/RL78G14/Common
-{{ :resources:tools-software:uc-drivers:renesas:spi_architecture.png? |}} +
-<WRAP centeralign> +
-SPI driver architecture+
 </WRAP> </WRAP>
- 
-The following functions are implemented in this version of ADXL362 driver: 
-^ Function       ^ Description     ^ 
-| unsigned char ADXL362_Init(void) | Initializes the device. | 
-| void ADXL362_SetRegisterValue(unsigned short registerValue, unsigned char  registerAddress, unsigned char bytesNumber) | Writes data into a register. | 
-| void ADXL362_GetRegisterValue(unsigned char *pReadData, unsigned char registerAddress, unsigned char bytesNumber) | Performs a burst read of a specified number of registers. | 
-| void ADXL362_GetFifoValue(unsigned char *pBuffer, unsigned short bytesNumber) | Reads multiple bytes from the device's FIFO buffer. | 
-| void ADXL362_SoftwareReset(void) | Resets the device via SPI communication bus. | 
-| void ADXL362_SetPowerMode(unsigned char pwrMode) | Places the device into standby/measure mode. | 
-| void ADXL362_SetRange(unsigned char gRange) | Selects the measurement range. | 
-| void ADXL362_SetOutputRate(unsigned char outRate) | Selects the Output Data Rate of the device. | 
-| void ADXL362_GetXyz(short *x, short *y, short *z) | Reads the 3-axis raw data from the accelerometer. | 
-| float ADXL362_ReadTemperature(void) | Reads the temperature of the device. | 
-| void ADXL362_FifoSetup(unsigned char  mode, unsigned short waterMarkLvl, unsigned char  enTempRead) | Configures the FIFO feature. | 
-| void ADXL362_SetupActivityDetection(unsigned char  refOrAbs, unsigned short threshold, unsigned char  time) | Configures activity detection. | 
-| void ADXL362_SetupInactivityDetection(unsigned char  refOrAbs, unsigned short threshold, unsigned short time) | Configures inactivity detection. | 
- 
-===== Downloads ===== 
-  * {{:resources:tools-software:uc-drivers:renesas:adxl362_generic.zip|ADXL362 Generic Driver}} 
-  * {{:resources:tools-software:uc-drivers:renesas:adxl362_rl78g13.zip|ADXL362 RL78G13 Driver}} 
-  * {{:resources:tools-software:uc-drivers:microchip:adxl362_pic32.zip|ADXL362 PIC32 Driver}} 
-  * {{:resources:tools-software:uc-drivers:microchip:adxl362_arduino.zip|ADXL362 Arduino Driver}} 
  
 ====== Renesas RL78G13 Quick Start Guide ====== ====== Renesas RL78G13 Quick Start Guide ======
Line 60: Line 21:
  
 ==== Required Hardware ==== ==== Required Hardware ====
-  * [[http://am.renesas.com/products/tools/introductory_evaluation_tools/renesas_demo_kits/yrdkrl78g13/index.jsp|Renesas Demo Kit for RL78G13 (Renesas)]] +  * [[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)]] 
-  * PmodACL2+  * [[http://www.digilentinc.com/Products/Detail.cfm?Prod=PMOD-ACL2|PmodACL2]]
  
 ==== Required Software ==== ==== Required Software ====
Line 79: Line 40:
 {{page>rl78g13_software_tutorial_without_applilet3}} {{page>rl78g13_software_tutorial_without_applilet3}}
  
-====== Digilent Cerebot MX3cK Quick Start Guide ====== +====== Renesas RL78G14 Quick Start Guide ====== 
-This section contains a description of the steps required to run the ADXL362 demonstration project on a Digilent Cerebot MX3cK platform.+This section contains a description of the steps required to run the ADXL362 demonstration project on a Renesas RL78G14 platform using the PmodACL2.
  
 ==== Required Hardware ==== ==== Required Hardware ====
-  * [[http://www.digilentinc.com/Products/Detail.cfm?Prod=CEREBOT-MX3CK|Cerebot MX3cK (Digilent)]] +  * [[https://www.renesas.com/us/en/products/microcontrollers-microprocessors/rl78-low-power-8-16-bit-mcus/yrdkrl78g14-yrdkrl78g14-demonstration-kit-rl78g14|Renesas Demo Kit for RL78G14 (Renesas)]] 
-  * PmodACL2+  * [[http://www.digilentinc.com/Products/Detail.cfm?Prod=PMOD-ACL2|PmodACL2]]
  
 ==== Required Software ==== ==== Required Software ====
-  * [[http://www.microchip.com/mplabx|MPLAB X Integrated Development Environment]] +  * [[http://www.iar.com/en/Products/IAR-Embedded-Workbench/Renesas-RL78/|IAR Embedded Workbench for Renesas RL78 Kickstart]] 
-  * [[http://www.microchip.com/mplabxc|MPLAB XC32 compiler]]+  * The ADXL362 demonstration project for the Renesas RL78G14 platform.
  
 +<WRAP round info 80%>
 +The ADXL362 demonstration project for the Renesas RL78G14 platform consists of three parts: the **ADXL362 Driver**,  the **PmodACL2 Demo for RL78G14** and the **RL78G14 Common Drivers**.
 +
 +All three parts have to be downloaded.
 +</WRAP>
 ==== Hardware Setup ==== ==== Hardware Setup ====
-A PmodACL2 has to be connected to the JE connector of Cerebot MX3cK development board.+A PmodACL2 has to be connected to the PMOD1 connector (see image below).
  
-{{ :resources:tools-software:uc-drivers:microchip:pmod_acl2_pic32.jpg? |}}+{{ :resources:tools-software:uc-drivers:renesas:pmod_acl2_rl78g14.jpg? |}}
  
 ==== Reference Project Overview ==== ==== Reference Project Overview ====
-Following commands were implemented in this version of ADXL362 reference project for Cerebot MX3cK board. +The reference project: 
-^ Command ^ Description ^ +  * displays the acceleration values on x, y and z axis; 
-| help? | Displays all available commands. | +  * displays temperature; 
-| id? | Device details. | +  * detects any activity or inactivity supported by the device.  
-| measure= | Start/stop the measure process of the device. Accepted values0 - 1. | +
-| temp? | Read the temperature. | +
-| reset= | Reset the device. | +
-acceleration? | Displays the accelerations on XYZ axis. | +
-activity? | Displays the activity status of the device. It runs for 5 motion detections. |+
  
-Commands can be executed using a serial terminal connected to the UART1 peripheral of PIC32MX320F128H.+{{ :resources:tools-software:uc-drivers:renesas:pmod_acl2_rl78g14_screen.jpg? |}} 
 + 
 + 
 +==== Software Project Tutorial ==== 
 +{{page>rl78g14_software_tutorial}}
  
-The following image shows a list of commands in a serial terminal connected to processor’s UART peripheral. 
-{{ :resources:tools-software:uc-drivers:microchip:terminal_pic32.png? |}} 
  
-==== Software Project Setup ==== 
-{{page>:resources:tools-software:uc-drivers:microchip:pic32_software_design}} 
  
-====== Digilent Cerebot MX3cK Quick Start Guide - Arduino ====== +====== Renesas RX63N Quick Start Guide ====== 
-This section contains a description of the steps required to run the ADXL362 Arduino demonstration project on a Digilent Cerebot MX3cK platform.+This section contains a description of the steps required to run the ADXL362 demonstration project on a Renesas RX63N platform.
  
 ==== Required Hardware ==== ==== Required Hardware ====
-  * [[http://www.digilentinc.com/Products/Detail.cfm?Prod=CEREBOT-MX3CK|Cerebot MX3cK (Digilent)]]+  * [[https://www.renesas.com/us/en/products/microcontrollers-microprocessors/rx-32-bit-performance-efficiency-mcus/yrdkrx63n-yrdkrx63n-demonstration-kit-rx63n|Renesas Demo Kit for RX63N (Renesas)]] 
   * PmodACL2   * PmodACL2
  
 ==== Required Software ==== ==== Required Software ====
-  * [[https://github.com/chipKIT32/chipKIT32-MAX/downloads|MPIDE]]+  * [[https://www.renesas.com/us/en/software-tool/high-performance-embedded-workshop|High-performance Embedded Workshop for RX63N family]] 
 +  * [[https://www.renesas.com/us/en/software-tool/renesas-peripheral-driver-library|Renesas Peripheral Driver Library for RX63N family]]
  
 ==== Hardware Setup ==== ==== Hardware Setup ====
-A PmodACL2 has to be connected to the JE connector of Cerebot MX3cK development board.+A PmodACL2 has to be connected to the PMOD1 connector.
  
-{{ :resources:tools-software:uc-drivers:microchip:pmod_acl2_pic32_arduino.jpg? |}}+{{ :resources:tools-software:uc-drivers:renesas:pmod_acl2_rx63n.jpg? |}}
  
 ==== Reference Project Overview ==== ==== Reference Project Overview ====
-Following commands were implemented in this version of ADXL362 Arduino reference project for Cerebot MX3cK board. 
-^ Command ^ Description ^ 
-| help? | Displays all available commands. | 
-| id? | Device details. | 
-| measure= | Start/stop the measure process of the device. Accepted values: 0 - 1. | 
-| temp? | Read the temperature. | 
-| reset= | Reset the device. | 
-| acceleration? | Displays the accelerations on XYZ axis. | 
-| activity? | Displays the activity status of the device. It runs for 5 motion detections. | 
  
-Commands can be executed using the serial monitor.+The reference project continuously displays on the LCD the accelerations on x-axis, y-axis and x-axis and simultaneously detects any activity or inactivity detected by the device.
  
-//**Carriage return**// has to be selected as a line ending character. The required baud rate is //**9600 baud**//. +{{ :resources:tools-software:uc-drivers:renesas:pmod_acl2_rx63n_screen.jpg? |}}
- +
-The following image shows a list of commands in the serial monitor. +
- +
-{{ :resources:tools-software:uc-drivers:microchip:terminal_arduino.png? |}}+
  
 ==== Software Project Setup ==== ==== Software Project Setup ====
-{{page>:resources:tools-software:uc-drivers:microchip:arduino_software_design}} +{{page>rx63n_software_design}}
  
 ====== More information ====== ====== More information ======
-{{page>more-information}} +{{page>:resources:tools-software:uc-drivers:more-information}}
resources/tools-software/uc-drivers/renesas/adxl362.1346673531.txt.gz · Last modified: 03 Sep 2012 13:58 by Dragos Bogdan