Carte Click ATA6570
Carte Click ATA6570
Key Features
- L'ATA6570 prend en charge les protocoles CAN et CAN FD, prend en charge le réveil local et à distance amélioré, et présente une très faible consommation d'énergie en modes veille et veille prolongée. Les broches d'E/S CAN sont protégées contre les conditions rencontrées dans les applications automobiles.
- Basé sur l'ATA6570, émetteur-récepteur CAN haute vitesse autonome qui interface un contrôleur de protocole CAN (Controller Area Network) et le bus CAN physique à deux fils
- L'ATA6570 Click offre une interface de bus CAN robuste et fiable. Ce Click est un choix parfait pour toute application CAN embarquée.
- mikroBUS : interfaces SPI et UART
Overview
La carte Click Board™ ATA6570 est une carte d'interface de mise en réseau partielle CAN. La carte Click embarque l'ATA6570, un émetteur-récepteur CAN à haut débit qui relie un contrôleur de protocole CAN (Controller Area Network) et le bus CAN physique à deux fils. Ce circuit intégré présente des caractéristiques uniques qui en font un choix parfait pour toute application CAN intégrée.
Il prend en charge les types de protocole CAN et CAN FD, la mise en réseau partielle, le réveil local et distant, une interface SPI pour la configuration des registres internes, et il dispose de six modes de fonctionnement ainsi que de la protection contre les sous-tensions et les surchauffes. La consommation d'énergie est réduite au minimum, car l'ATA6570 peut mettre hors tension l'ensemble du système jusqu'à ce qu'une trame de réveil valide soit reçue - même sur un bus CAN occupé. La broche d'alimentation de la batterie de voiture et les broches du bus CAN sont protégées contre diverses interférences et instabilités de tension, généralement observées dans les systèmes automobiles. La carte Click Board™ ATA6570 vous offre une interface de bus CAN robuste et fiable.
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. ATA6570 click provides you with a robust and reliable CAN bus interface.
How Does The ATA6570 Click Board™ Work?
The ATA6570 Click Board™ uses the ATA6570, a standalone high speed CAN transceiver IC from Microchip, with partial networking support. This IC supports both CAN and recently established CAN FD protocols, up to 1Mbit/s and 5Mbit/s respectively. The communication inside the CAN bus is differential and it is performed through the twisted pairs with the characteristic impedance of 120Ω. The differential lines are driven by the CANH and CANL drivers. This provides robustness and immunity to electromagnetic interferences, typically observed in automotive systems. The ISO 11898 standard defines a signal line of twisted-pair cable as the network topology, terminated by the resistors with the characteristic impedance of the CAN bus (120Ω) at both ends - in order to prevent signal reflection.
The dominant/recessive states are used for the message priority arbitration - the node which transmits a signal with the higher priority (the lower the binary message identifier number, the higher the priority) will win the arbitration, and the node with the lower priority will abort the transmission, waiting for the bus to become available again. Since the high logic level on the CAN line is considered as the recessive, the TXD line has the internal pull-up resistor, making the ATA6570 device stay in recessive mode if the pin is left floating.
The ATA6570 device can be driven in the recessive or the dominant state with the TXD pin: when the TXD pin is at the VCC level and the device works in Normal mode, the drivers at the CANH and CANL pins are turned off. These pins are biased at 2.5 (VCC/2), with respect to the GND, provided by the internal autonomous bus biasing circuitry and the CAN driver is in recessive state. Pulling the TXD pin to the GND will activate the CANH and CANL drivers and set the bus to the dominant state. A TXD dominant timeout timer is started when the TXD pin is set to low. If the low state on the TXD pin persists for longer than the predetermined time, the transmitter will be disabled, releasing the bus lines to the recessive state. This function prevents the hardware or software failure from driving the bus lines to a permanent dominant state, blocking all network communications. When the device is in the Sleep or Unpowered mode, the drivers will become highly resistive, rendering the device passive and completely ignored by the CAN bus network.
Although the RXD and TXD lines are interfaced with the microcontroller, the SPI bus is used to set the internal registers, such as the partial networking registers and other status and configuration related registers. The provided MikroElektronika library contains functions used to easily set the parameters via the SPI bus, as well as to establish communication with the nodes.
Partial networking allows selective wake-up of ATA6570 click. Dedicated predefined frames can wake up the device if it is configured to accept these frames. For this reason, when the device is in Standby or Sleep mode, it will still actively monitor the bus for those frames. The wake-up CAN frame ID and data can be set by SPI. Besides waking up the device by the partial networking feature, the device can also be woken up by a remote wake-up pattern on the CAN bus or with the onboard switch connected to the WAKE pin of the ATA6570 IC. Another wake-up source can be the SPI command, for those modes where the SPI module is active, and the remote wake-up pattern on the CAN bus.
When in Sleep, Microcontroller Reset or Power Off mode, the INH pin which is routed to the external regulators, will be turned off, reducing the power consumption of the external elements.The #SHDN (shutdown) pins of the two LDO regulators, which are found on ATA6570 click, are connected to the INH pin. Both regulators take power from the car battery connector (VS pin), providing 5V and 3.3V for custom needs. Outputs of those LDOs are routed via the SMD jumpers that can be populated so that the LDOs can be used to power up the mikroBUS™ 3.3V and 5V power rails. However, it should be noted that MikroElektronika does not advise powering up own systems this way - that is why these jumpers are left unpopulated by default.
Overtemperature mode is activated when the temperature of the device becomes too high and the device was previously working in Normal mode. The ATA6570 provides two levels of overtemperature protection. When the first temperature level threshold is reached, an alarm in a form of an interrupt on the RX pin (if set) and an appropriate status bit. If the temperature rises even more, the device will shut down the CAN drivers.
Microcontroller Reset mode utilizes an integrated watchdog. When the watchdog event occurs, it will trigger a pulse on the INH pin - this pin will be turned off for a predetermined period of time, performing a power cycle reset on all devices connected via the ATA6570 Click Board™ LDOs. This is meant as a power cycle reset measure for a custom system, powered via the mikroBUS™ socket.
The onboard SMD jumper labeled as the VIO SEL is used to select which voltage rail of two LDO regulators will be used as the logic voltage level (SPI, UART). It offers voltage selection between 3.3V and 5V so that the click board™ can be interfaced with both the 3.3V and 5V capable MCUs.
Specifications
Type | CAN |
Applications | The ATA6570 Click Board™ provides a robust and reliable CAN bus interface. This click is a perfect choice for any embedded CAN application. |
On-board modules | ATA6570, standalone high speed CAN transceiver that interfaces a Controller Area Network (CAN) protocol controller and the physical two wire CAN bus |
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. |
Interface | SPI,UART |
Compatibility | mikroBUS |
Click board size | L (57.15 x 25.4 mm) |
Input Voltage | 3.3V or 5V |
Pinout Diagram
This table shows how the pinout on the ATA6570 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Notes | Pin | Pin | Notes | ||||
---|---|---|---|---|---|---|---|
NC | 1 | AN | PWM | 16 | NC | ||
NC | 2 | RST | INT | 15 | NC | ||
SPI Chip Select | CS | 3 | CS | RX | 14 | TX | UART Transmit |
SPI Clock | SCK | 4 | SCK | TX | 13 | RX | UART Receive |
SPI Data Out | SDO | 5 | MISO | SCL | 12 | NC | |
SPI Data In | SDI | 6 | MOSI | SDA | 11 | NC | |
Power Supply | 3V3 | 7 | 3.3V | 5V | 10 | 5V | Power Supply |
Ground | GND | 8 | GND | GND | 9 | GND | Ground |
Note: The click is intended to be powered through the DE-9 connector, from the car battery. SMD jumpers JMPR1 and JMPR2 should not be populated if the mikroBUS™ already provides power. These jumpers should be populated only if powering up a custom board through the mikroBUS™ click, is intended.
ATA6570 click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Maximum Differential Bus Voltage | -5 | 18 | V | |
Thermal Shutdown Temperature | 150 | 175 | 190 | °C |
Additional pins
Name | I/O | Description |
---|---|---|
RXD | I | Additional RX pad |
TXD | O | Additional TX pad |
CANL | I/O | CAN L pad |
CANH | I/O | CAN H pad |
WAKE | I | Wake control |
GND | - | Ground |
Onboard settings and indicators
Label | Name | Default | Description |
---|---|---|---|
LD1 | Power LED | - | Power LED indicator |
JP1 | VIO SEL | Left | Digital voltage level select |
JMPR1 | JMP 3V3 | Unpopulated | Connects 3.3V output to the mikroBUS™ socket |
JMPR2 | JMP 5V | Unpopulated | Connects 5V output to the mikroBUS™ socket |
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.
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.
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.