APPLICATION NOTE. AT6493: SAM C21/CAN BUS/Firmware. SMART ARM-Based Microcontroller. Introduction. Features
|
|
|
- Frederick Ford
- 9 years ago
- Views:
Transcription
1 APPLICATION NOTE AT6493: SAM C21/CAN BUS/Firmware SMART ARM-Based Microcontroller Introduction CAN bus is a message based protocol designed specifically for automotive applications, but is also used in areas such as aerospace, maritime, railway vehicles, industrial automation, and medical equipment. This application note will cover the firmware required to initialize and start the SAM C21 CAN controller and send/receive message in both standard and extended formats. Firmware within this document was created using Atmel Software Framework (ASF), which is an extension to Atmel Studio. Features +5V operation Dual independent CAN controllers Supports CAN 2.0, which is the latest specification consisting of two parts Part A (CAN 2.0A) Standard format with an 11-bit identifier Data rates up to 256kbit/sec Part B (CAN 2.0B) Extended format with a 29-bit identifier Data rates up to 1Mbit/sec
2 Table of Contents 1 CAN Hardware Connecting the SAM C21 to the CAN bus CAN Setup CAN bus Bitrate Message IDs Transmit Message ID Receive Message ID CAN Configuration CAN TX/RX Pins CAN Module Initialization Standard RX Filtering (11-bit Message ID) Extended RX Filtering (29-bit Message ID) Sending a Standard Message (11-bit Message ID) Sending an Extended Message (29-bit Message ID) Interrupt Handler (Received Messages) Summary Revision History
3 1 CAN Hardware 1.1 Connecting the SAM C21 to the CAN bus CAN is a multi-master serial bus used for connected nodes called Electronic Control Units (ECUs) these are usually referred to as Nodes; all nodes are connected to each other over a two-wire bus. In order to connect the SAM C21 to the CAN bus, an external CAN transceiver is required. The bus should be terminated at both ends with 120Ω resistors. Figure 1-1 shows a typical CAN bus layout. Figure 1-1. Typical CAN bus Layout CAN bus transceivers are readily available from a number of semiconductor manufacturers, however, we would prefer that you use the Atmel ATA6560 or ATA6561 CAN bus transceivers. 3
4 2 CAN Setup 2.1 CAN bus Bitrate The nominal and databit rates, among other basic CAN settings, can be found in the header file conf_can.h. Assuming the use of a 48MHz generic clock (GLCK) and a desired CAN bus speed of 500kHz the following defines are used to set the nominal bitrate: Nominal Bitrate Prescaler #define CONF_CAN_NBTP_NBRP_VALUE 5 Nominal bit (Re)Synchronization Jump Width #define CONF_CAN_NBTP_NSJW_VALUE 3 Nominal bit Time segment before sample point #define CONF_CAN_NBTP_NTSEG1_VALUE 10 Nominal bit Time segment after sample point #define CONF_CAN_NBTP_NTSEG2_VALUE 3 Given the above #defines the time quanta is 48MHz / (5 + 1) = 8MHz, and each bit is ( ) or 16 time quanta which is 8MHz / 16 = 500kHz. In a similar manner, the following defines are used to set the databit rate: Databit Baud Rate Prescaler #define CONF_CAN_DBTP_DBRP_VALUE 5 Databit (Re)Synchronization Jump Width #define CONF_CAN_DBTP_DSJW_VALUE 3 Databit Time segment before sample point #define CONF_CAN_DBTP_DTSEG1_VALUE 10 Databit Time segment after sample point #define CONF_CAN_DBTP_DTSEG2_VALUE 3 Given the above #defines the time quanta is 48MHz / (5 + 1) = 8MHz, and each bit is ( ) or 16 time quanta which is 8MHz / 16 = 500kHz. 2.2 Message IDs Transmit Message ID The CAN message ID not only provides identification for the type of message being sent or received, it also determines the priority of the message. For example a message with an ID of 10 is of higher priority than a message with an ID of 15. In addition message IDs must be unique on a single CAN bus no two nodes should send a message with the same ID. The transmit message ID should be based on the type of data being sent and its priority Receive Message ID The CAN offers the possibility to configure two sets of acceptance filters; one for standard identifiers and one for extended identifiers. These filters can be assigned to an RX Buffer or to RX FIFO 0 or 1. For acceptance filtering each list of filters is executed from element #0 until the first matching element. Acceptance filtering stops at the first matching element. The following filter elements are not evaluated for this message. 4
5 The main features of the acceptance filters are: Each filter element can be configured as Range filter (from - to) Filter for one or two dedicated IDs Classic bit mask filter Each filter element is configurable for acceptance or rejection filtering Each filter element can be enabled / disabled individually Filters are checked sequentially, execution stops with the first matching filter element The type of filtering is based on the settings of register bits SF1ID/SF2ID for standard frames and EF1ID/EF2ID for extended frames. Range Filtering The filter matches for all received frames with Message IDs in the range defined by SF1ID/SF2ID for standard frames or EF1ID/EF2ID for extended frames There are two possibilities when range filtering is used with extended frames: EFT = 00 : The Message ID of received frames is AND ed with the Extended ID AND Mask (XIDAM) before the range filter is applied EFT = 11 : Filter for Specific IDs The Extended ID AND Mask (XIDAM) is not used for range filtering A filter element can be configured to filter for one or two specific Message IDs. To filter for one specific Message ID, the filter element has to be configured with SF1ID = SF2ID for standard message format and EF1ID = EF2ID for extended format. Classic Bit Mask Filter Classic bit mask filtering is intended to filter groups of Message IDs by masking single bits of a received Message ID. With classic bit mask filtering SF1ID/EF1ID is used as Message ID filter, while SF2ID/EF2ID is used as filter mask. A zero bit at the filter mask will mask out the corresponding bit position of the configured ID filter, e.g. the value of the received Message ID at that bit position is not relevant for acceptance filtering. Only those bits of the received Message ID where the corresponding mask bits are one are relevant for acceptance filtering. In case all mask bits are one, a match occurs only when the received Message ID and the Message ID filter are identical. If all mask bits are zero, all Message IDs match. Settings of acceptance filtering will be done during initialization of the SAM C21 s CAN module as shown later in this application note. 5
6 3 CAN Configuration 3.1 CAN TX/RX Pins In order to connect the CAN controllers TX and RX pins to the I/O pins of the processor, the pin MUX and correct I/O pins need to be set. There are two discrete CAN controllers on the SAM C21, referred to as CAN0 and CAN1, each can be connected to one of two I/O pairs (refer to the I/O Multiplexing section of the SAM C21 datasheet for more details). The pin MUX and I/O pin settings are handled by the following code: #define CAN_TX_MUX_SETTING #define CAN_TX_PIN #define CAN_RX_MUX_SETTING #define CAN_RX_PIN MUX_PA24G_CAN0_TX PIN_PA24G_CAN0_TX MUX_PA25G_CAN0_RX PIN_PA25G_CAN0_RX struct system_pinmux_config pin_config; system_pinmux_get_config_defaults(&pin_config); pin_config.mux_position = CAN_TX_MUX_SETTING; system_pinmux_pin_set_config(can_tx_pin, &pin_config); pin_config.mux_position = CAN_RX_MUX_SETTING; system_pinmux_pin_set_config(can_rx_pin, &pin_config); The CAN_TX_PIN and CAN_RX_PIN pin constants can be modified to select either one of the two I/O pin pairs supported by the pin MUX. 3.2 CAN Module Initialization Once the CAN TX and RX pins have been defined the CAN module can be initialized. Sample initialization code for the CAN module running in normal mode is shown below: #define CAN_MODULE CAN0 struct can_config config_can; can_get_config_defaults(&config_can); can_init(&can_instance, CAN_MODULE, &config_can); can_switch_operation_mode(&can_instance, CAN_OPERATION_MODE_NORMAL_OPERATION); system_interrupt_enable(system_interrupt_module_can0); The code initializes the CAN0 module, similar code can be placed for the CAN1 module for SAM C21 parts supporting its I/O pins. 6
7 3.3 Standard RX Filtering (11-bit Message ID) The following function will enable standard message filtering: #define CAN_RX_STANDARD_FILTER_INDEX 0 static void can_set_standard_filter(uint32_t filter_value) struct can_standard_message_filter_element sd_filter; can_get_standard_message_filter_element_default(&sd_filter); sd_filter.s0.bit.sfid1 = filter_value; can_set_rx_standand_filter(&can_instance, &sd_filter, CAN_RX_STANDARD_FILTER_INDEX); can_enable_interrupt(&can_instance, CAN_RX_FIFO_0_NEW_MESSAGE); 3.4 Extended RX Filtering (29-bit Message ID) The following function will enable extended message filtering: #define CAN_RX_EXTENDED_FILTER_INDEX 0 static void can_set_extended_filter(uint32_t filter_value) struct can_extended_message_filter_element et_filter; can_get_extended_message_filter_element_default(&et_filter); et_filter.f0.bit.efid1 = filter_value; can_set_rx_extended_filter(&can_instance, &et_filter, CAN_RX_EXTENDED_FILTER_INDEX); can_enable_interrupt(&can_instance, CAN_RX_FIFO_1_NEW_MESSAGE); 7
8 3.5 Sending a Standard Message (11-bit Message ID) The following function is used to send a standard message with 11-bit message identifier: static void can_send_standard_message(uint32_t id_value, uint8_t *data) uint32_t i; struct can_tx_element tx_element; can_get_tx_buffer_element_defaults(&tx_element); tx_element.t0.reg = CAN_TX_ELEMENT_T0_ID(id_value << 18); for (i = 0; i < 8; i++) tx_element.data[i] = *data; data++; can_set_tx_buffer_element(&can_instance, &tx_element, CAN_TX_BUFFER_INDEX); can_tx_transfer_request(&can_instance, 1 << CAN_TX_BUFFER_INDEX); 3.6 Sending an Extended Message (29-bit Message ID) The following function is used to send an extended message with 29-bit message identifier: static void can_send_extended_message(uint32_t id_value, uint8_t *data) uint32_t i; struct can_tx_element tx_element; can_get_tx_buffer_element_defaults(&tx_element); tx_element.t0.reg = CAN_TX_ELEMENT_T0_ID(id_value) CAN_TX_ELEMENT_T0_XTD; for (i = 0; i < 8; i++) tx_element.data[i] = *data; data++; can_set_tx_buffer_element(&can_instance, &tx_element, CAN_TX_BUFFER_INDEX); can_tx_transfer_request(&can_instance, 1 << CAN_TX_BUFFER_INDEX); 8
9 3.7 Interrupt Handler (Received Messages) Messages received by the CAN controller are placed in one or two FIFOs depending on the message type (these were set using defines in the file conf_can.h ). The files also contains defines for the TX data size, and the size of the FIFOs and buffers used by the CAN controller. The example below uses data blocks of eight bytes for both standard and extended messages. In this example, data received in a message with a standard 11-bit identifier are placed in FIFO 0, and in FIFO 1 if the message received contains an extended 29-bit identifier. void CAN0_Handler(void) uint32_t status; status = can_read_interrupt_status(&can_instance); if (status & CAN_RX_FIFO_0_NEW_MESSAGE) can_clear_interrupt_status(&can_instance, CAN_RX_FIFO_0_NEW_MESSAGE); can_get_rx_fifo_0_element(&can_instance, &rx_element_fifo_0, standard_receive_index); can_rx_fifo_acknowledge(&can_instance, 0, standard_receive_index); standard_receive_index++; if (standard_receive_index == CONF_CAN0_RX_FIFO_0_NUM) standard_receive_index = 0; // Received data is in rx_element_fifo_0_data->data[x], where x is 0..7 if (status & CAN_RX_FIFO_1_NEW_MESSAGE) can_clear_interrupt_status(&can_instance, CAN_RX_FIFO_1_NEW_MESSAGE); can_get_rx_fifo_1_element(&can_instance, &rx_element_fifo_1, extended_receive_index); can_rx_fifo_acknowledge(&can_instance, 0, extended_receive_index); extended_receive_index++; if (extended_receive_index == CONF_CAN0_RX_FIFO_1_NUM) extended_receive_index = 0; // Received data is in rx_element_fifo_1_data->data[x], where x is
10 4 Summary The firmware used as a basis for this application note is attached. 10
11 5 Revision History Doc Rev. Date Comments 6493A 06/2015 Initial document release. 11
12 SAFETY-CRITICAL, MILITARY, AND AUTOMOTIVE APPLICATIONS DISCLAIMER: Atmel products are not designed for and will not be used in connection with any applications where the failure of such products would reasonably be expected to result in significant personal injury or death ( Safety -Critical Applications ) without an Atmel officer's specific written consent. Safety-Critical Applications include, without limitation, life support devices and systems, equipment or systems for the operation o f nuclear facilities and weapons systems. Atmel products are not designed AT6493: nor intended SAM for use C21/CAN in military or BUS/Firmware aerospace applications or [APPLICATION environments unless specifically NOTE] designated by Atmel as military -grade. Atmel products are not designed nor intended for use in automotive applications unless specifically designated by as automotive -grade. 12 Atmel Corporation 1600 Technology Drive, San Jose, CA USA T: (+1)(408) F: (+1)(408) Atmel Corporation. / Rev.:. Atmel, Atmel logo and combinations thereof, Enabling Unlimited Possibilities, and others are registered trademarks or trademarks of Atmel Corporation in U.S. and other countries. ARM, ARM Connected logo, and others are the registered trademarks or trademarks of ARM Ltd. Other terms and product names may be trademarks of others. DISCLAIMER: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any intellectual property rig ht is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN THE ATMEL TERMS AND COND ITIONS OF SALES LOCATED ON THE ATMEL WEBSITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODU CTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAG ES FOR LOSS AND PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes no representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and products descriptions at any time without notice. Atmel does not make any com mitment to update the information contained herein. Unless specifically provided otherwise, Atmel products are not suitable for, and shall not be used in, automotive applications. Atmel products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life.
APPLICATION NOTE. Secure Personalization with Transport Key Authentication. ATSHA204A, ATECC108A, and ATECC508A. Introduction.
APPLICATION NOTE Secure Personalization with Transport Key Authentication ATSHA204A, ATECC108A, and ATECC508A Introduction The Atmel CryptoAuthentication ATSHA204A, ATECC108A, and ATECC508A devices (crypto
CryptoAuth Xplained Pro
CryptoAuth Xplained Pro CryptoAuthentication Xplained Pro Extension Board HARDWARE USER GUIDE Atmel CryptoAuth Xplained Pro Extension Board Introduction The Atmel CryptoAuth Xplained Pro (CAXPro) Evaluation
AVR151: Setup and Use of the SPI. Introduction. Features. Atmel AVR 8-bit Microcontroller APPLICATION NOTE
Atmel AVR 8-bit Microcontroller AVR151: Setup and Use of the SPI APPLICATION NOTE Introduction This application note describes how to set up and use the on-chip Serial Peripheral Interface (SPI) of the
APPLICATION NOTE. Authentication Counting. Atmel CryptoAuthentication. Features. Introduction
APPLICATION NOTE Authentication Counting Atmel CryptoAuthentication Features How to achieve high endurance counters in excess of 800,000 counts. How to disable the Atmel CryptoAuthentication ATSHA204A
SMARTCARD XPRO. Preface. SMART ARM-based Microcontrollers USER GUIDE
SMART ARM-based Microcontrollers SMARTCARD XPRO USER GUIDE Preface Atmel SMARTCARD Xplained Pro is an extension board to the Atmel Xplained Pro evaluation platform. Atmel SMARTCARD Xplained Pro is designed
AT88CK490 Evaluation Kit
AT88CK490 Evaluation Kit CryptoAuthentication USB Dongle HARDWARE USER GUIDE Atmel AT88CK490 CryptoAuthentication Evaluation Kit Introduction The Atmel AT88CK490 CryptoAuthentication Evaluation Kit is
APPLICATION NOTE. Atmel AT04389: Connecting SAMD20E to the AT86RF233 Transceiver. Atmel SAMD20. Description. Features
APPLICATION NOTE Atmel AT04389: Connecting SAMD20E to the AT86RF233 Transceiver Description Atmel SAMD20 This application note describes a method to connect an Atmel ATSAMD20E microcontroller to an Atmel
APPLICATION NOTE. AT16268: JD Smart Cloud Based Smart Plug Getting. Started Guide ATSAMW25. Introduction. Features
APPLICATION NOTE AT16268: JD Smart Cloud Based Smart Plug Getting Started Guide ATSAMW25 Introduction This application note aims to help readers to get started with the Atmel smart plug reference design
APPLICATION NOTE. AT07175: SAM-BA Bootloader for SAM D21. Atmel SAM D21. Introduction. Features
APPLICATION NOTE AT07175: SAM-BA Bootloader for SAM D21 Atmel SAM D21 Introduction Atmel SAM Boot Assistant (Atmel SAM-BA ) allows In-System Programming (ISP) from USB or UART host without any external
USER GUIDE EDBG. Description
USER GUIDE EDBG Description The Atmel Embedded Debugger (EDBG) is an onboard debugger for integration into development kits with Atmel MCUs. In addition to programming and debugging support through Atmel
AVR1309: Using the XMEGA SPI. 8-bit Microcontrollers. Application Note. Features. 1 Introduction SCK MOSI MISO SS
AVR1309: Using the XMEGA SPI Features Introduction to SPI and the XMEGA SPI module Setup and use of the XMEGA SPI module Implementation of module drivers Polled master Interrupt controlled master Polled
AVR317: Using the Master SPI Mode of the USART module. 8-bit Microcontrollers. Application Note. Features. Introduction
AVR317: Using the Master SPI Mode of the USART module Features Enables Two SPI buses in one device Hardware buffered SPI communication Polled communication example Interrupt-controlled communication example
Atmel AVR4921: ASF - USB Device Stack Differences between ASF V1 and V2. 8-bit Atmel Microcontrollers. Application Note. Features.
Atmel AVR4921: ASF - USB Device Stack Differences between ASF V1 and V2 Features Advantages Implementation differences Integration Migration from stack V1 to stack V2 8-bit Atmel Microcontrollers Application
APPLICATION NOTE. Atmel AVR134: Real Time Clock (RTC) Using the Asynchronous Timer. Atmel AVR 8-bit Microcontroller. Introduction.
APPLICATION NOTE Atmel AVR134: Real Time Clock (RTC) Using the Asynchronous Timer Introduction Atmel AVR 8-bit Microcontroller This application note describes how to implement a real time counter (RTC)
AT11805: Capacitive Touch Long Slider Design with PTC. Introduction. Features. Touch Solutions APPLICATION NOTE
Touch Solutions AT11805: Capacitive Touch Long Slider Design with PTC APPLICATION NOTE Introduction Slider is a one-dimensional sensor that detects the linear movement of a finger during touch. Sliders
AVR106: C Functions for Reading and Writing to Flash Memory. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE
AVR 8-bit Microcontrollers AVR106: C Functions for Reading and Writing to Flash Memory APPLICATION NOTE Introduction The Atmel AVR devices have a feature called Self programming Program memory. This feature
Application Note. Atmel ATSHA204 Authentication Modes. Prerequisites. Overview. Introduction
Application Note Atmel Authentication Modes Prerequisites Hardware Atmel AT88CK454BLACK Evaluation Board Atmel AT88CK109STK8 Kit Software Atmel Crypto Evaluation Studio (ACES) Overview Understand which
USER GUIDE. ZigBit USB Stick User Guide. Introduction
USER GUIDE ZigBit USB Stick User Guide Introduction This user guide describes how to get started with the Atmel ZigBit USB sticks. The ZigBit USB sticks is targeted for evaluating the USB features of the
APPLICATION NOTE. Atmel AT02985: User s Guide for USB-CAN Demo on SAM4E-EK. Atmel AVR 32-bit Microcontroller. Features. Description.
APPLICATION NOTE Atmel AT02985: User s Guide for USB-CAN Demo on SAM4E-EK Atmel AVR 32-bit Microcontroller Features USB-CAN gateway USB CDC class (virtual serial port) provides low level data stream Customized
AVR32701: AVR32AP7 USB Performance. 32-bit Microcontrollers. Application Note. Features. 1 Introduction
AVR32701: AVR32AP7 USB Performance Features Linux USB bulk transfer performance ATSTK1000 (32-bit SDRAM bus width) ATNGW100 (16-bit SDRAM bus width) GadgetFS driver and gadgetfs-test application USB performance
AVR311: Using the TWI Module as I2C Slave. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE
AVR 8-bit Microcontrollers AVR311: Using the TWI Module as I2C Slave APPLICATION NOTE Introduction The Two-wire Serial Interface (TWI) is compatible with Philips I 2 C protocol. The bus allows simple,
AVR315: Using the TWI Module as I2C Master. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE
AVR 8-bit Microcontrollers AVR315: Using the TWI Module as I2C Master APPLICATION NOTE Introduction The Two-wire Serial Interface (TWI) is compatible with Philips I 2 C protocol. The bus allows simple,
AT15007: Differences between ATmega328/P and ATmega328PB. Introduction. Features. Atmel AVR 8-bit Microcontrollers APPLICATION NOTE
Atmel AVR 8-bit Microcontrollers AT15007: Differences between ATmega328/P and ATmega328PB APPLICATION NOTE Introduction This application note assists the users of Atmel ATmega328 variants to understand
Atmel AVR4903: ASF - USB Device HID Mouse Application. Atmel Microcontrollers. Application Note. Features. 1 Introduction
Atmel AVR4903: ASF - USB Device HID Mouse Application Features USB 2.0 compliance - Chapter 9 compliance - HID compliance - Low-speed (1.5Mb/s) and full-speed (12Mb/s) data rates Standard USB HID mouse
Atmel AVR4920: ASF - USB Device Stack - Compliance and Performance Figures. Atmel Microcontrollers. Application Note. Features.
Atmel AVR4920: ASF - USB Device Stack - Compliance and Performance Figures Features Compliance to USB 2.0 - Chapters 8 and 9 - Classes: HID, MSC, CDC, PHDC Interoperability: OS, classes, self- and bus-powered
AVR1510: Xplain training - XMEGA USART. 8-bit Microcontrollers. Application Note. Prerequisites. 1 Introduction
AVR1510: Xplain training - XMEGA USART Prerequisites Required knowledge AVR1500: Xplain training XMEGA Basics AVR1502: Xplain training XMEGA Direct Memory Access Controller Software prerequisites Atmel
8-bit. Application Note. Microcontrollers. AVR282: USB Firmware Upgrade for AT90USB
AVR282: USB Firmware Upgrade for AT90USB Features Supported by Atmel FLIP program on all Microsoft O/S from Windows 98SE and later FLIP 3.2.1 or greater supports Linux Default on chip USB bootloader In-System
Using CryptoMemory in Full I 2 C Compliant Mode. Using CryptoMemory in Full I 2 C Compliant Mode AT88SC0104CA AT88SC0204CA AT88SC0404CA AT88SC0808CA
Using CryptoMemory in Full I 2 C Compliant Mode 1. Introduction This application note describes how to communicate with CryptoMemory devices in full I 2 C compliant mode. Full I 2 C compliance permits
QT1 Xplained Pro. Preface. Atmel QTouch USER GUIDE
Atmel QTouch QT1 Xplained Pro USER GUIDE Preface Atmel QT1 Xplained Pro kit is a set of two extension boards that enables evaluation of self- and mutual capacitance mode touch using the Peripheral Touch
AVR131: Using the AVR s High-speed PWM. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE
AVR 8-bit Microcontrollers AVR131: Using the AVR s High-speed PWM APPLICATION NOTE Introduction This application note is an introduction to the use of the high-speed Pulse Width Modulator (PWM) available
APPLICATION NOTE. AT12405: Low Power Sensor Design with PTC. Atmel MCU Integrated Touch. Introduction
APPLICATION NOTE AT12405: Low Power Sensor Design with PTC Atmel MCU Integrated Touch Introduction A ma saved (reduced) is a mah gained the philosophical engineer The challenges for improving battery life
APPLICATION NOTE Atmel AT02509: In House Unit with Bluetooth Low Energy Module Hardware User Guide 8-bit Atmel Microcontroller Features Description
APPLICATION NOTE Atmel AT259: In House Unit with Bluetooth Low Energy Module Hardware User Guide Features 8-bit Atmel Microcontroller Low power consumption Interface with BLE with UART Bi-direction wake
AN3998 Application note
Application note PDM audio software decoding on STM32 microcontrollers 1 Introduction This application note presents the algorithms and architecture of an optimized software implementation for PDM signal
APPLICATION NOTE. AT05558: Wireless Manufacturing Test Kit. Atmel ATmega256RFR2. Description. Features
APPLICATION NOTE AT05558: Wireless Manufacturing Test Kit Atmel ATmega256RFR2 Description Manufacturers need rapid test capability for mass production of wireless products. This Manufacturing Tool Kit
Application Note. 8-bit Microcontrollers. AVR270: USB Mouse Demonstration
AVR270: USB Mouse Demonstration Features Runs with AT90USB Microcontrollers at 8MHz USB Low Power Bus Powered Device (less then 100mA) Supported by any PC running Windows (98SE or later), Linux or Mac
How To Use An Atmel Atmel Avr32848 Demo For Android (32Bit) With A Microcontroller (32B) And An Android Accessory (32D) On A Microcontroller (32Gb) On An Android Phone Or
APPLICATION NOTE Atmel AVR32848: Android Accessory Demo 32-bit Atmel Microcontrollers Features Control an accessory from an Android device Send data to and from an Android device to an accessory Supported
AVR32138: How to optimize the ADC usage on AT32UC3A0/1, AT32UC3A3 and AT32UC3B0/1 series. 32-bit Microcontrollers. Application Note.
AVR32138: How to optimize the ADC usage on AT32UC3A0/1, AT32UC3A3 and AT32UC3B0/1 series 1 Introduction This application note outlines the steps necessary to optimize analog to digital conversions on AT32UC3A0/1,
General Porting Considerations. Memory EEPROM XRAM
AVR097: Migration between ATmega128 and ATmega2561 Features General Porting Considerations Memory Clock sources Interrupts Power Management BOD WDT Timers/Counters USART & SPI ADC Analog Comparator ATmega103
AVR115: Data Logging with Atmel File System on ATmega32U4. Microcontrollers. Application Note. 1 Introduction. Atmel
AVR115: Data Logging with Atmel File System on ATmega32U4 Microcontrollers 01101010 11010101 01010111 10010101 Application Note 1 Introduction Atmel provides a File System management for AT90USBx and ATmegaxxUx
AVR125: ADC of tinyavr in Single Ended Mode. 8-bit Microcontrollers. Application Note. Features. 1 Introduction
AVR125: ADC of tinyavr in Single Ended Mode Features Up to 10bit resolution Up to 15kSPS Auto triggered and single conversion mode Optional left adjustment for ADC result readout Driver source code included
Application Note. Atmel CryptoAuthentication Product Uses. Atmel ATSHA204. Abstract. Overview
Application Note Atmel CryptoAuthentication Product Uses Atmel Abstract Companies are continuously searching for ways to protect property using various security implementations; however, the cost of security
AVR319: Using the USI module for SPI communication. 8-bit Microcontrollers. Application Note. Features. Introduction
AVR319: Using the USI module for SPI communication Features C-code driver for SPI master and slave Uses the USI module Supports SPI Mode 0 and 1 Introduction The Serial Peripheral Interface (SPI) allows
AVR127: Understanding ADC Parameters. Introduction. Features. Atmel 8-bit and 32-bit Microcontrollers APPLICATION NOTE
Atmel 8-bit and 32-bit Microcontrollers AVR127: Understanding ADC Parameters APPLICATION NOTE Introduction This application note explains the basic concepts of analog-to-digital converter (ADC) and the
AVR1318: Using the XMEGA built-in AES accelerator. 8-bit Microcontrollers. Application Note. Features. 1 Introduction
AVR1318: Using the XMEGA built-in AES accelerator Features Full compliance with AES (FIPS Publication 197, 2002) - Both encryption and decryption procedures 128-bit Key and State memory XOR load option
AVR1922: Xplain Board Controller Firmware. 8-bit Microcontrollers. Application Note. Features. 1 Introduction
AVR1922: Xplain Board Controller Firmware Features USB interface - Mass-storage to on-board DataFlash memory Atmel AVR XMEGA TM reset control 1 Introduction The Xplain board controller, an AT90USB1287,
AN3332 Application note
Application note Generating PWM signals using STM8S-DISCOVERY Application overview This application user manual provides a short description of how to use the Timer 2 peripheral (TIM2) to generate three
AVR32788: AVR 32 How to use the SSC in I2S mode. 32-bit Microcontrollers. Application Note. Features. 1 Introduction
AVR32788: AVR 32 How to use the SSC in I2S mode Features I²S protocol overview I²S on the AVR32 I²S sample rate configurations Example of use with AT32UC3A on EVK1105 board 32-bit Microcontrollers Application
AT09333: USB Host Interface (UHI) for Communication Class Device (CDC) Introduction. Atmel Microcontrollers APPLICATION NOTE
Atmel Microcontrollers AT09333: USB Host Interface (UHI) for Communication Class Device (CDC) APPLICATION NOTE Introduction USB Host Interface (UHI) for Communication Class Device (CDC) provides an interface
AVR1900: Getting started with ATxmega128A1 on STK600. 8-bit Microcontrollers. Application Note. 1 Introduction
AVR1900: Getting started with ATxmega128A1 on STK600 1 Introduction This document contains information about how to get started with the ATxmega128A1 on STK 600. The first three sections contain information
APPLICATION NOTE. Atmel LF-RFID Kits Overview. Atmel LF-RFID Kit. LF-RFID Kit Introduction
APPLICATION NOTE Atmel LF-RFID Kits Overview Atmel LF-RFID Kit LF-RFID Kit Introduction Atmel offers several design and evaluation kits for a fast and easy way to test the LF-RFID technology but also developing
APPLICATION NOTE. RF System Architecture Considerations ATAN0014. Description
APPLICATION NOTE RF System Architecture Considerations ATAN0014 Description Highly integrated and advanced radio designs available today, such as the Atmel ATA5830 transceiver and Atmel ATA5780 receiver,
Dell Statistica. Statistica Document Management System (SDMS) Requirements
Dell Statistica Statistica Document Management System (SDMS) Requirements 2014 Dell Inc. ALL RIGHTS RESERVED. This guide contains proprietary information protected by copyright. The software described
AVR305: Half Duplex Compact Software UART. 8-bit Microcontrollers. Application Note. Features. 1 Introduction
AVR305: Half Duplex Compact Software UART Features 32 Words of Code, Only Handles Baud Rates of up to 38.4 kbps with a 1 MHz XTAL Runs on Any AVR Device Only Two Port Pins Required Does Not Use Any Timer
AVR033: Getting Started with the CodeVisionAVR C Compiler. 8-bit Microcontrollers. Application Note. Features. 1 Introduction
AVR033: Getting Started with the CodeVisionAVR C Compiler Features Installing and Configuring CodeVisionAVR to Work with the Atmel STK 500 Starter Kit and AVR Studio Debugger Creating a New Project Using
AT91 ARM Thumb Microcontrollers. AT91SAM CAN Bootloader. AT91SAM CAN Bootloader User Notes. 1. Description. 2. Key Features
User Notes 1. Description The CAN bootloader SAM-BA Boot4CAN allows the user to program the different memories and registers of any Atmel AT91SAM product that includes a CAN without removing them from
Designing Feature-Rich User Interfaces for Home and Industrial Controllers
Designing Feature-Rich User Interfaces for Home and Industrial Controllers Author: Frédéric Gaillard, Product Marketing Manager, Atmel We have all become familiar with intuitive user interfaces on our
Atmel SMART ARM Core-based Embedded Microprocessors
Atmel SMART ARM Core-based Embedded Microprocessors High Performance, Power Efficient, Easy to Use Atmel SMART SAMA5 ARM Cortex-A5 MPUs Core Sub-System Memory Connectivity Device Name Core VFPU / NEON
AVR287: USB Host HID and Mass Storage Demonstration. 8-bit Microcontrollers. Application Note. Features. 1 Introduction
AVR287: USB Host HID and Mass Storage Demonstration Features Based on AVR USB OTG Reduced Host Runs on AT90USB647/1287 Support bootable/non-bootable standard USB mouse Support USB Hub feature (Mass Storage
AT12181: ATWINC1500 Wi-Fi Network Controller - AP Provision Mode. Introduction. Features. Atmel SmartConnect APPLICATION NOTE
Atmel SmartConnect AT12181: ATWINC1500 Wi-Fi Network Controller - AP Provision Mode APPLICATION NOTE Introduction This application note explains how to build the state-of-art Internet of Things (IoT) applications
APPLICATION NOTE. Atmel AT01095: Joystick Game Controller Reference Design. 8-/16-bit Atmel Microcontrollers. Features.
APPLICATION NOTE Features Atmel AT01095: Joystick Game Controller Reference Design 8-/16-bit Atmel Microcontrollers Joystick Game Controller Atmel ATxmega32A4U microcontroller In System Programming (ISP)
AN11241. AES encryption and decryption software on LPC microcontrollers. Document information
AES encryption and decryption software on LPC microcontrollers Rev. 1 25 July 2012 Application note Document information Info Content Keywords AES, encryption, decryption, FIPS-197, Cortex-M0, Cortex-M3
AT91SAM ARM-based Flash MCU. Application Note
Modbus Slave Stack for the Atmel Family of SAM3 Microcontrollers (Free Modbus Stack from Embedded Solutions) 1. Scope This application note provides directions and instructions to application engineers
Dell One Identity Cloud Access Manager 8.0 - How to Configure vworkspace Integration
Dell One Identity Cloud Access Manager 8.0 - How to Configure vworkspace Integration February 2015 This guide describes how to configure Dell One Identity Cloud Access Manager to communicate with a Dell
Dell Spotlight on Active Directory 6.8.3. Server Health Wizard Configuration Guide
Dell Spotlight on Active Directory 6.8.3 Server Health Wizard Configuration Guide 2013 Dell Software Inc. ALL RIGHTS RESERVED. This guide contains proprietary information protected by copyright. The software
More Secure, Less Costly IoT Edge Node Security Provisioning
More Secure, Less Costly IoT Edge Node Security Provisioning Authors: Nicolas Schieli, Sr. Director, Secure Products Group Ron Ih, Sr. Manager, Marketing and Business Development Eustace Asanghanwa, Manager,
AVR1600: Using the XMEGA Quadrature Decoder. 8-bit Microcontrollers. Application Note. Features. 1 Introduction. Sensors
AVR1600: Using the XMEGA Quadrature Decoder Features Quadrature Decoders 16-bit angular resolution Rotation speed and acceleration 1 Introduction Quadrature encoders are used to determine the position
Dell InTrust 11.0. Preparing for Auditing Cisco PIX Firewall
2014 Dell Inc. ALL RIGHTS RESERVED. This guide contains proprietary information protected by copyright. The software described in this guide is furnished under a software license or nondisclosure agreement.
AVR1301: Using the XMEGA DAC. 8-bit Microcontrollers. Application Note. Features. 1 Introduction
AVR1301: Using the XMEGA DAC Features 12 bit resolution Up to 1 M conversions per second Continuous drive or sample-and-hold output Built-in offset and gain calibration High drive capabilities Driver source
Atmel AVR1017: XMEGA - USB Hardware Design Recommendations. 8-bit Atmel Microcontrollers. Application Note. Features.
Atmel AVR1017: XMEGA - USB Hardware Design Recommendations Features USB 2.0 compliance - Signal integrity - Power consumption - Back driver voltage - Inrush current EMC/EMI considerations Layout considerations
Programming Audio Applications in the i.mx21 MC9328MX21
Freescale Semiconductor Application Note Document Number: AN2628 Rev. 1, 10/2005 Programming Audio Applications in the MC9328MX21 by: Alfred Sin 1 Abstract The MC9328MX21 () processor has two dedicated
USER GUIDE. ATWINC1500B Hardware Design Guidelines - IEEE 802.11 b/g/n IoT Module. Atmel SmartConnect. Introduction
USER GUIDE ATWINC1500B Hardware Design Guidelines - IEEE 802.11 b/g/n IoT Module Atmel SmartConnect Introduction This document details the hardware design guidelines for a customer to design the Atmel
AVR353: Voltage Reference Calibration and Voltage ADC Usage. 8-bit Microcontrollers. Application Note. Features. 1 Introduction
AVR353: Voltage Reference Calibration and Voltage ADC Usage Features Voltage reference calibration. - 1.100V +/-1mV (typical) and < 90ppm/ C drift from 10 C to +70 C. Interrupt controlled voltage ADC sampling.
SAMA5D2. Scope. Reference Documents. Atmel SMART ARM-based MPU ERRATA
SAMA5D2 Atmel SMART ARM-based MPU ERRATA Scope This document contains the known errata found on the following Atmel SMART ARM -based SAMA5D2 devices, and planned to be fixed in the next silicon version:
AN3265 Application note
Application note Handling hardware and software failures with the STM8S-DISCOVERY Application overview This application is based on the STM8S-DISCOVERY. It demonstrates how to use the STM8S window watchdog
Spotlight Management Pack for SCOM
Spotlight Management Pack for SCOM User Guide January 2015 The is used to display data from alarms raised by Spotlight on SQL Server Enterprise in SCOM (System Center Operations Manager). About System
AVR1321: Using the Atmel AVR XMEGA 32-bit Real Time Counter and Battery Backup System. 8-bit Microcontrollers. Application Note.
AVR1321: Using the Atmel AVR XMEGA 32-bit Real Time Counter and Battery Backup System Features 32-bit Real Time Counter (RTC) - 32-bit counter - Selectable clock source 1.024kHz 1Hz - Long overflow time
How To Design An Ism Band Antenna For 915Mhz/2.4Ghz Ism Bands On A Pbbb (Bcm) Board
APPLICATION NOTE Features AT09567: ISM Band PCB Antenna Reference Design Atmel Wireless Compact PCB antennas for 915MHz and 2.4GHz ISM bands Easy to integrate Altium design files and gerber files Return
DACC (Digital-to-Analog Converter Controller) The outline of this documentation is as follows: Module Overview. Special Considerations
APPLICATION NOTE AT07900: SAM4 Digital-to-Analog Converter Controller (DACC) ASF PROGRAMMERS MANUAL SAM4 Digital-to-Analog Converter Controller (DACC) This driver for SAM4 (and SAM3) devices provides an
Using the RS232 serial evaluation boards on a USB port
Document information Info Content Keywords Serial evaluation Board, PN512,PN532, MFRC663, MFRC522, MFRC523, MFRC52x, MFRD522, MFRD523, MFRD52x MIFARE Contactless Smart Card Reader Reference Design, MIFARE
Introduction to Version Control in
Introduction to Version Control in In you can use Version Control to work with different versions of database objects and to keep the database updated. You can review, manage, compare, and revert to any
Simplifying System Design Using the CS4350 PLL DAC
Simplifying System Design Using the CS4350 PLL 1. INTRODUCTION Typical Digital to Analog Converters (s) require a high-speed Master Clock to clock their digital filters and modulators, as well as some
formerly Help Desk Authority 9.1.2 Quest Free Network Tools User Manual
formerly Help Desk Authority 9.1.2 Quest Free Network Tools User Manual 2 Contacting Quest Software Email: Mail: Web site: [email protected] Quest Software, Inc. World Headquarters 5 Polaris Way Aliso Viejo,
Application Note. 8-bit Microcontrollers. AVR272: USB CDC Demonstration UART to USB Bridge
AVR272: USB CDC Demonstration UART to USB Bridge Features Supported by Windows 2000 or later No driver installation Virtual COM Port Enumeration USB to RS232 Bridge with dynamic baudrate Bus powered 8-bit
Wireless Subwoofer TI Design Tests
Wireless Subwoofer TI Design Tests This system design was tested for THD+N vs. frequency at 5 watts and 30 watts and THD+N vs. power at 00. Both the direct analog input and the wireless systems were tested.
Capacitive Touch Technology Opens the Door to a New Generation of Automotive User Interfaces
Capacitive Touch Technology Opens the Door to a New Generation of Automotive User Interfaces Stephan Thaler, Thomas Wenzel When designing a modern car, the spotlight is on the driving experience, from
32-bit AVR UC3 Microcontrollers. 32-bit AtmelAVR Application Note. AVR32769: How to Compile the standalone AVR32 Software Framework in AVR32 Studio V2
AVR32769: How to Compile the standalone AVR32 Software Framework in AVR32 Studio V2 1. Introduction The purpose of this application note is to show how to compile any of the application and driver examples
MODFLEX MINI GATEWAY ETHERNET USER S GUIDE
MODFLEX MINI GATEWAY ETHERNET Last updated March 15 th, 2012 330-0076-R1.0 Copyright 2011-2012 LS Research, LLC Page 1 of 19 Table of Contents 1 Introduction... 3 1.1 Purpose & Scope... 3 1.2 Applicable
AN3354 Application note
Application note STM32F105/107 in-application programming using a USB host 1 Introduction An important requirement for most Flash-memory-based systems is the ability to update firmware installed in the
AN11239. Boot mode jumper settings for LPC1800 and LPC4300. Document information
Rev. 1 1 July 2012 Application note Document information Info Keywords Abstract Content Hitex Rev A4, NGX Xplorer, Keil, element14, LPC1830, LPC1850, LPC4330, LPC4350, MCB1800, MCB4300 This application
New Features and Enhancements
Dell Migration Manager for SharePoint 4.7 Build number: 4.7.20141207 December 9, 2014 These release notes provide information about the Dell Migration Manager for SharePoint release. New Features and Enhancements
Atmel Power Line Communications. Solutions for the Smart Grid
Atmel Power Line Communications Solutions for the Smart Grid Key Applications Powering the Smart Grid Home and industrial automation Control systems Smart metering Intelligent lighting Smart appliances
Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs
Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs AN033101-0412 Abstract This describes how to interface the Dallas 1-Wire bus with Zilog s Z8F1680 Series of MCUs as master devices. The Z8F0880,
APPLICATION NOTE. AT17284: Proximetry Cloud Based Smart Plug User Guide. SMART ARM-based Microcontrollers. Introduction. Features
APPLICATION NOTE AT17284: Proximetry Cloud Based Smart Plug User Guide SMART ARM-based Microcontrollers Introduction This document introduces the Proximetry cloud based Atmel Smart Plug. It explains how
AVR126: ADC of megaavr in Single Ended Mode. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE
AVR 8-bit Microcontrollers AVR126: ADC of megaavr in Single Ended Mode APPLICATION NOTE Introduction Atmel megaavr devices have a successive approximation Analog-to- Digital Converter (ADC) capable of
Dell One Identity Cloud Access Manager 8.0.1 - How to Configure for SSO to SAP NetWeaver using SAML 2.0
Dell One Identity Cloud Access Manager 8.0.1 - How to Configure for SSO to SAP NetWeaver using SAML 2.0 May 2015 About this guide Prerequisites and requirements NetWeaver configuration Legal notices About
AVR2006: Design and characterization of the Radio Controller Board's 2.4GHz PCB Antenna. Application Note. Features.
AVR26: Design and characterization of the Radio Controller Board's 2.4GHz PCB Antenna Features Radiation pattern Impedance measurements WIPL design files NEC model Application Note 1 Introduction This
Dell Statistica 13.0. Statistica Enterprise Installation Instructions
Dell Statistica 13.0 2015 Dell Inc. ALL RIGHTS RESERVED. This guide contains proprietary information protected by copyright. The software described in this guide is furnished under a software license or
APPLICATION NOTE. Atmel AVR443: Sensor-based Control of Three Phase Brushless DC Motor. Atmel AVR 8-bit Microcontrollers. Features.
APPLICATION NOTE Features Atmel AVR443: Sensor-based Control of Three Phase Brushless DC Motor Less than 5µs response time on Hall sensor output change Theoretical maximum of 1600k RPM Over-current sensing
AN2680 Application note
Application note Fan speed controller based on STDS75 or STLM75 digital temperature sensor and ST72651AR6 MCU Introduction This application note describes the method of defining the system for regulating
Application Note. 1. Introduction. 2. Associated Documentation. 3. Gigabit Ethernet Implementation on SAMA5D3 Series. AT91SAM ARM-based Embedded MPU
Application Note AT91SAM ARM-based Embedded MPU Gigabit Ethernet Implementation on SAMA5D3 Series 1. Introduction The SAMA5D3 series is a member of the Atmel microprocessor family which is based on the
