Excelon-LP Click Board
Excelon-LP Click Board
The Excelon LP Click Board™ carries a ferroelectric RAM module. Ferroelectric RAM, also known as FRAM, is a non-volatile memory type, with characteristics comparable to much faster DRAM memory modules. It is a much faster alternative to common serial FLASH and EEPROM modules that use conventional technologies. Excelon LP Click Board™ is ideal for embedded applications which frequently execute write operations. It can be used for a wide range of applications, ranging from data collection where the number of write cycles may be critical, to demanding industrial controls where lengthy write intervals of conventional serial FLASH or EEPROM memory modules can cause data loss.
The Excelon LP Click Board™ comes in a package that also includes the mikroSDK software and a library with all the functions. The Click Board™ comes as a fully tested and approved prototype, making it a reliable device ready to use on the development board.
Software Support
We provide a library for the Heart rate 6 on our LibStock page , as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
The library initializes and defines the SPI bus driver and drivers that offer a choice for writing data in memory and reading data from memory.
Key Functions
void excelonlp_sendCommand(uint8_t opcode)
- Functions for send opcode commandvoid excelonlp_readData(uint8_t opcode, uint8_t *OUTBuf, uint8_t nData)
- Functions for read datavoid excelonlp_writeMemoryData(uint8_t opcode, uint32_t addr, uint8_t _data)
- Functions for write data to memoryuint8_t excelonlp_readMemoryData(uint8_t opcode, uint32_t addr)
- Functions for read data form memory
Example Description
The application is composed of the three sections :
- System Initialization - Initializes SPI module and set CS and PWM pin as OUTPUT
- Application Initialization - Initializes Driver init
- Application Task - (code snippet) - Reads device ID, writes 6-bytes (MikroE) to memory and reads 6-bytes from memory
void applicationTask() { mikrobus_logWrite("Read Device ID : ", _LOG_TEXT); excelonlp_sendCommand(_EXCELONLP_OPCODE_SET_WRITE_ENABLE_LATCH); excelonlp_readData(_EXCELONLP_OPCODE_READ_DEVICE_ID, &OUTBuf[0], 9); for(cnt = 0; cnt < 9; cnt++) { IntToHex(OUTBuf[cnt], demoText); mikrobus_logWrite(" 0x", _LOG_TEXT); mikrobus_logWrite(demoText, _LOG_TEXT); Delay_100ms(); } mikrobus_logWrite(" ", _LOG_LINE); mikrobus_logWrite("Write MikroE data.", _LOG_LINE); excelonlp_sendCommand(_EXCELONLP_OPCODE_SET_WRITE_ENABLE_LATCH); for(cnt = 0; cnt < 6; cnt++) { excelonlp_sendCommand(_EXCELONLP_OPCODE_SET_WRITE_ENABLE_LATCH); excelonlp_writeMemoryData(_EXCELONLP_OPCODE_WRITE_MEMORY_DATA, memoryAddress++, sendBuffer[cnt]); Delay_100ms(); } memoryAddress = 0x00000055; mikrobus_logWrite("Read memory data : ", _LOG_TEXT); for(cnt = 0; cnt < 6; cnt++) { MemoryData[0] = excelonlp_readMemoryData(_EXCELONLP_OPCODE_READ_MEMORY_DATA, memoryAddress++); mikrobus_logWrite(MemoryData, _LOG_TEXT); Delay_100ms(); } Delay_ms( 5000 ); }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
SPI
Additional Notes and Information
Depending on the development board you are using, you may need a USB UART click, USB UART 2 click or RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
MIKROSDK
The Excelon LP Click Board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant click board demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
Excelon-LP Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.