This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
resources:tools-software:uc-drivers:renesas:adxl362 [03 Sep 2012 13:58] – created Dragos Bogdan | resources:tools-software:uc-drivers:renesas:adxl362 [24 Jan 2021 18:36] (current) – Fix bad links Dragos Bogdan | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== ADXL362 - Microcontroller | + | ====== ADXL362 - No-OS Driver |
- | + | {{page>: | |
- | ===== Supported Devices ===== | + | |
- | * [[adi> | + | |
- | ===== 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 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/ | + | * [[https://www.renesas.com/ |
- | * [[http://www.digilentinc.com/Products/Detail.cfm? | + | * [[https://www.renesas.com/us/en/ |
- | ===== Driver Description | + | ===== Downloads |
- | The driver contains two parts: | + | |
- | * The driver for the ADXL362 part, which may be used, without modifications, | + | |
- | * 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%> |
- | + | * {{: | |
- | There are three functions which are called by the ADXL362 driver: | + | * {{: |
- | * SPI_Init() – initializes the communication peripheral. | + | * {{: |
- | * SPI_Write() – writes data to the device. | + | * **ADXL362 Driver: |
- | * SPI_Read() – reads data from the device. | + | * **PmodACL2 Demo for RL78G14: ** https:// |
- | + | * **RL78G14 Common Drivers: | |
- | {{ : | + | |
- | <WRAP centeralign> | + | |
- | SPI driver architecture | + | |
</ | </ | ||
- | |||
- | The following functions are implemented in this version of ADXL362 driver: | ||
- | ^ Function | ||
- | | unsigned char ADXL362_Init(void) | Initializes the device. | | ||
- | | void ADXL362_SetRegisterValue(unsigned short registerValue, | ||
- | | void ADXL362_GetRegisterValue(unsigned char *pReadData, unsigned char registerAddress, | ||
- | | void ADXL362_GetFifoValue(unsigned char *pBuffer, unsigned short bytesNumber) | Reads multiple bytes from the device' | ||
- | | void ADXL362_SoftwareReset(void) | Resets the device via SPI communication bus. | | ||
- | | void ADXL362_SetPowerMode(unsigned char pwrMode) | Places the device into standby/ | ||
- | | 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, | ||
- | | 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 ===== | ||
- | * {{: | ||
- | * {{: | ||
- | * {{: | ||
- | * {{: | ||
====== Renesas RL78G13 Quick Start Guide ====== | ====== Renesas RL78G13 Quick Start Guide ====== | ||
Line 60: | Line 21: | ||
==== Required Hardware ==== | ==== Required Hardware ==== | ||
- | * [[http://am.renesas.com/ | + | * [[https://www.renesas.com/ |
- | * PmodACL2 | + | * [[http:// |
==== Required Software ==== | ==== Required Software ==== | ||
Line 79: | Line 40: | ||
{{page> | {{page> | ||
- | ====== | + | ====== |
- | 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 |
==== Required Hardware ==== | ==== Required Hardware ==== | ||
- | * [[http:// | + | |
- | * PmodACL2 | + | |
==== Required Software ==== | ==== Required Software ==== | ||
- | * [[http:// | + | * [[http:// |
- | * [[http:// | + | * 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**, | ||
+ | |||
+ | All three parts have to be downloaded. | ||
+ | </ | ||
==== Hardware Setup ==== | ==== Hardware Setup ==== | ||
- | A PmodACL2 has to be connected to the JE connector | + | A PmodACL2 has to be connected to the PMOD1 connector |
- | {{ : | + | {{ : |
==== Reference Project Overview ==== | ==== Reference Project Overview ==== | ||
- | Following commands were implemented in this version of ADXL362 | + | The reference project: |
- | ^ Command ^ Description ^ | + | * displays |
- | | help? | Displays all available commands. | | + | * displays temperature; |
- | | id? | Device details. | | + | * detects any activity |
- | | 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 | + | |
- | | activity? | Displays the activity status of the device. | + | |
- | Commands can be executed using a serial terminal connected to the UART1 peripheral of PIC32MX320F128H. | + | {{ : |
+ | |||
+ | |||
+ | ==== Software Project Tutorial ==== | ||
+ | {{page> | ||
- | The following image shows a list of commands in a serial terminal connected to processor’s UART peripheral. | ||
- | {{ : | ||
- | ==== Software Project Setup ==== | ||
- | {{page>: | ||
- | ====== | + | ====== |
- | This section contains a description of the steps required to run the ADXL362 | + | 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? | + | * [[https://www.renesas.com/us/en/ |
* 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:// | ||
==== Hardware Setup ==== | ==== Hardware Setup ==== | ||
- | A PmodACL2 has to be connected to the JE connector | + | A PmodACL2 has to be connected to the PMOD1 connector. |
- | {{ : | + | {{ : |
==== 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? | ||
- | | 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. |
- | // | + | {{ : |
- | + | ||
- | The following image shows a list of commands in the serial monitor. | + | |
- | + | ||
- | {{ : | + | |
==== Software Project Setup ==== | ==== Software Project Setup ==== | ||
- | {{page>: | + | {{page>rx63n_software_design}} |
====== More information ====== | ====== More information ====== | ||
- | {{page> | + | {{page>: |