ATA6570 Click Board
ATA6570 Click Board
Key Features:
- The ATA6570 supports both CAN and CAN FD protocols, supports local and enhanced remote wake up, and it has very low power consumption during Standby and Sleep modes. CAN I/O pins are protected against conditions found in automotive applications.
- Based on the ATA6570, standalone high speed CAN transceiver that interfaces a Controller Area Network (CAN) protocol controller and the physical two wire CAN bus
- ATA6570 click provides a robust and reliable CAN bus interface. This click is a perfect choice for any embedded CAN application.
- mikroBUS: SPI and UART Interfaces
The ATA6570 Click Board™ is a CAN Partial Networking interface board. The click carries the ATA6570, a high-speed CAN transceiver that interfaces a Controller Area Network (CAN) protocol controller and the physical two-wire CAN Bus. This IC has some unique features that make it a perfect choice for any embedded CAN application.
It supports both CAN and CAN FD protocol types, partial networking, local and remote wake up, an SPI interface for internal registers configuration, and it features six operating modes as well as the under-voltage and overtemperature protection. The power consumption is taken to a minimum, as the ATA6570 can power down the entire system until a valid wake-up frame is received - even on a busy CAN bus. The car battery supply pin and the CAN bus pins are protected from various interferences and voltage instabilities, typically observed in automotive systems. The ATA6570 Click Board™ provides you with a robust and reliable CAN bus interface.
Software Support
We provide a library for the ATA6570 Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers and mikroSDK. The provided click library is mikroSDK standard compliant. The demo application can run on all the main MikroElektronika development boards.
Library Description
This library carries generic functions for registers writing and generic functions for communication through CAN bus.
Key functions
void ata6570_writeReg( const uint8_t address, uint8_t input )
- Writes register
uint8_t ata6570_readReg( const uint8_t address )
- Reas register
void ata6570_writeByte(uint8_t input)
- Sends single byte through CAN bus
uint8_t ata6570_readByte()
- Reads byte received from CAN bus
uint8_t ata6570_byteReady()
- Checks if new data has been received
Example Description
The application is composed of three sections :
- System Initialization - Initializes RST, CS, PWM pin as OUTPUT and INT, AN pin as INPUT and UART module
- Application Initialization - Driver initialization
- Application Task - (code snippet) - Checks if a new data byte has been received in RX buffer (ready for reading), and if ready then reads one byte from the RX buffer. In the second case application task writes message data via UART.
void applicationTask() { // RECEIVER #ifdef __RX__ if (ata6570_byteReady()) { tmp = ata6570_readByte(); mikrobus_logWrite( &tmp, _LOG_BYTE ); } #endif // TRANSMITER #ifdef __TX__ uint8_t cnt; for (cnt = 0; cnt < 9; cnt++) { ata6570_writeByte( MESSAGE_DATA[cnt] ); } Delay_ms(2000); #endif }
The full application code, and ready to use projects can be found on our LibStock page.
MikroElektronika Libraries used in the example:
- SPI
- UART
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 ATA6570 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.
ATA6570 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.