Section 5 SERCOM. Tasks SPI. In this section you will learn:

Size: px
Start display at page:

Download "Section 5 SERCOM. Tasks SPI. In this section you will learn:"

Transcription

1 Section 5 SERCOM SPI Tasks In this section you will learn: SPI protocol SERCOM Engine on SAMD20 How to use SERRCOM in SPI mode Implementation of SPI communication 04/12/2013

2 Table of Contents 1. The SPI Protocol SPI data transmission The SERCOM Serial Communication Interface Port Configuration for SERCOM SERCOM Clock Baud Rate Generator SERCOM in SPI mode Port Configuration for SERCOM in SPI mode SERCOM Registers SERCOM clock in SPI mode Address Recognition in Slave mode SPI Interrupts SPI Data Transmission in SAMD Initializing the SERCOM in SPI mode Task 1: Transfer a byte in Master Mode Which Registers Configure SERCOM in SPI mode? Understanding the SAMD20 System level header files component_sercom.h Configuring SERCOM to operate as SPI Master Accessing the SERCOM Registers for SPI Transmitting data as SPI Master Conclusion ii

3 1. The SPI Protocol Serial Peripheral Interface (SPI) is a synchronous, serial, full duplex communication protocol established by Motorola. It is a Master-Slave type protocol in which the Master initiates the communication with one or more slaves. SPI is a serial communication protocol, hence a clock signal is required to control data exchange. Since the Master initiates the data transfer, it provides the clock signal for synchronization. No data is transferred without the clock signal. The SPI protocol has the following signals as shown in Figure 1: SCLK Provides the Serial Clock. MOSI (Master Out Slave In) Serial data transmitted out of the Master and received by the Slave. MISO (Master In Slave Out) Serial Data received by the Master and Transmitted out of the Slave. SS/CS (Slave Select/Chip Select) Each Slave has a unique chip select line. When the Master drives this low, the corresponding Slave will respond to the Master s clock and data signal. Figure 1. Master and Slave devices in SPI 1 SPI is a full-duplex communication protocol, hence data is transmitted or exchanged in both directions. When either the Master or Slave is transmitting some data through the Serial Data Out (SDO) line, data is also being simultaneously received through the Serial Data In (SDI) line. Therefore, before attempting to transfer the second bit, the incoming data must be read (even if the received data is a dummy). 1 References: Page 1 of 14

4 1.1 SPI data transmission Data transmission starts with the Master holding down the chip select line of the slave it wants to talk to. Then, for each SPI transaction full-duplex communication occurs as follows: The Master starts toggling the CLK line at a set frequency and sends a bit out on its SDO (Master Out) line. The Slave immediately reads this bit from its SDI (Slave IN) line. The Slave then sends a bit out on its SDO (Slave Out) line. The Master immediately reads this bit from its SDI (Master IN) line. Therefore even if a device wants to only transmit, it MUST receive data which can then be discarded. Thus a data loop is created between the two devices as shown in Figure 2. Figure 2. Data transmission in SPI 2 Data transmission can take multiple clock cycles. Once transmission in completed, the Master stops issuing CLK signal and de-asserts the Chip Select line. Data is propagated by the transmitter during the rising or falling edge of the CLK signal and is latched by the receiver during the opposite edge, as shown in Figures 3-6. Based on how data is propagated and sampled w.r.t. clock, two parameters are defined: Clock Polarity (CPOL) and Clock Phase (CPHA). When CPOL=1, if CPHA=1, data is propagated on the clock s falling edge and captured on the rising edge, as shown in Figure 3. The four possible modes of data transmission are shown in Table 1. 2 References: Page 2 of 14

5 Figure 3. CPOL=1 CPHA=1 Figure 5. CPOL=0 CPHA=1 Figure 4. CPOL=0 CPHA=0 Figure 6. CPOL=1 CPHA=0 Table 1. SPI modes Mode CPOL CPHA Leading Edge Trailing Edge Rising, sample Falling, setup Rising, setup Falling, sample Falling, sample Rising, setup Falling, setup Rising, sample Leading edge is the first clock edge in a clock cycle, while trailing edge is the second clock edge in a clock cycle. 2. The SERCOM Serial Communication Interface The SAMD20 has a Serial Communication Interface, dubbed SERCOM, which supports a number of communication protocols such as SPI, TWI, and USART. The SERCOM engine has common resources which can be used for all three communication protocols. Figure 7 shows the SERCOM block diagram. Page 3 of 14

6 Figure 7. SERCOM block diagram It has common hardware for Baud Rate Generator, Transmitter/Receiver, and other hardware control block such as Address Matching. The Control logic to configure each of these hardware entities is also common and are configured according to the mode in which they are being used. SERCOM interrupt services are also available for which the interrupt controller needs to be configured. 2.1 Port Configuration for SERCOM There are four hardware pins dedicated to the SERCOM engine PAD[3:0]. The signals from I 2 C, SPI and USART are routed through these pins via a multiplexer. However, they need to be configured to be used in each of these modes. We have already learned Port Control in SAMD20 in the previous sections, including how to use them to perform a peripheral function. Referring to Table 6-1 of the SAMD20 datasheet, for a hardware pin to perform as SERCOM, which peripheral function must be chosen? 2.2 SERCOM Clock SERCOM uses the bus clock (APB clock) and two generic clocks core clock and slow clock. The core clock is used when the SERCOM is running as a Master and the slow clock is used to perform certain specific functions. 2.3 Baud Rate Generator Read section on page 341 of the SAMD20 datasheet and learn about the SERCOM baud-rate generator. Page 4 of 14

7 3. SERCOM in SPI mode Figure 8 shows the SERCOM transmitter and receiver in SPI mode. A SPI device, whether Master or Slave, has a transmit buffer, a shift register, and 2 receive buffers. In addition, when operating as a Master, a baud rate generator is utilized to provide clock signal. When operating as a slave, address matching logic is used to figure out if that particular slave was the intended recipient of the data transmitted by the Master. The SAMD20 SERCOM supports all four SPI modes and can operate both LSB and MSB first data transmissions. Figure 8. SERCOM in SPI mode 3.1 Port Configuration for SERCOM in SPI mode For the hardware pins to be used in SPI mode, the I/O lines must be configured to operate in peripheral mode. This has already been covered in the Port Control Section. Referring to Table 6-1 of the SAMD20 datasheet, for a hardware pin to perform as SERCOM, which peripheral function must be chosen? 3.2 SERCOM Registers The registers to configure the SERCOM engine to operate in SPI mode is as shown in Table 2. Page 5 of 14

8 Table 2. SERCOM registry summary Offset Register Name Access 0x00 Control A CTRLA R, R/W 0x04 Control B CTRLB R, R/W 0x08 Debug Control DBGCTRL R, R/W 0x0A Baud Rate BAUD R/W 0x0C Interrupt Enable Clear INTENCLR R, R/W 0x0D Interrupt Enable Set INTENSET R, R/W 0x0E Interrupt Flag Status Clear INTFLAG R, R/W 0x10 Status STATUS R, R/W 0x14 Address ADDR R, R/W 0x18 Data DATA R, R/W Read the Register Description section on page 380 of Section 26 in the SAMD20 datasheet and learn the functions of the different registers. 3.3 SERCOM clock in SPI mode In SPI master mode, the serial clock (SCK) is generated internally using the SERCOM baud rate generator. In SPI slave, the clock is provided by an external master on the SCK pin. 3.4 Address Recognition in Slave mode When the SPI is configured for slave operation with address recognition, the SERCOM address recognition logic is enabled. When address recognition is enabled, the first character in a transaction is checked for an address match. If there is a match, then the Receive Complete Interrupt flag in the Interrupt Flag Status and Clear register is set, the MISO output is enabled and the transaction is processed. If there is no match, the transaction is ignored. 3.5 SPI Interrupts The SPI has the following interrupt sources: Receive Complete Transmit Complete Data Register Empty Page 6 of 14

9 Each interrupt source has an interrupt flag associated with it. The interrupt flag in the Interrupt Flag Status and Clear register (INTFLAG) is set when the interrupt condition occurs. Each interrupt can be individually enabled setting the corresponding bit in the Interrupt Enable Set register and disabled by setting the corresponding bit in the Interrupt Enable Clear register. An interrupt request is generated when the interrupt flag is set and the corresponding interrupt is enabled. The interrupt request remains active until the interrupt flag is cleared, the interrupt is disabled, or the SPI is reset. The SPI module has one common interrupt request line for all the interrupt sources. The user must read INTFLAG to determine which interrupt condition has occurred. 3.6 SPI Data Transmission in SAMD20 Read the Transferring Data section on page 375 of Section 26 in the SAMD20 datasheet and learn how data is transmitted as Master and Slave in SAMD20 using SPI protocol. 3.7 Initializing the SERCOM in SPI mode The basic steps in configuring the SERCOM engine to operate in SPI mode are as follows: 1. The SPI mode must be set as Slave or Master by writing 0x2 or 0x3 to the operating mode bit in Control A register (CTRLA.MODE). 2. Transfer mode must be selected by writing Clock Polarity Bit and Clock Phase bit in the Control A register (CTRLA.CPOL and CTRLA.CPHA). The different SPI modes are already covered in Table Transaction format must be selected by writing the Frame Format bit group in the Control A register (CTRLA.FORM). 4. SERCOM pad to use for the receiver must be selected by writing the Data In Pinout bit in the Control A register (CTRLA.DIPO). 5. SERCOM pads to use for the transmitter, slave select, and serial clock must be selected by writing the Data Out Pinout bit group in the Control A register (CTRLA.DOPO). 6. Character size must be selected by writing the Character Size bit in the Control B register (CTRLB.CHSIZE). 7. Data direction must be selected by writing the Data Order bit in the Control A register (CTRLA.DORD). 8. If SPI is used in master mode, the Baud register (BAUD) must be written with the right value to generate the desired baud rate. 9. The receiver can be enabled by writing a one to the Receiver Enable bit in the Control B register (CTRLB.RXEN). 10. Once the entire configuration is finished, the SPI module can be enabled by setting the Enable bit in the Control A register (CTRLA.ENABLE). The SPI module can be disabled by clearing the Enable bit in the Control A register (CTRLA.ENABLE). 11. The SPI is reset by setting the Software Reset bit in the Control A register (CTRLA.SWRST). All SPI registers except DBGCTRL, will be reset to their initial state, and the SPI module will be disabled. 4. Task 1: Transfer a byte in Master Mode Your task is to write a function that will configure the SAMD20 registers to operate the SERCOM engine in SPI mode. The I/O lines have to be set to perform the SPI peripheral function. The SAMD20 device should be set to work as a SPI Master and transmit a byte of data. Page 7 of 14

10 4.1 Which Registers Configure SERCOM in SPI mode? We have already studied how to configure the SERCOM engine in SAMD20 to operate in SPI mode. We also know the registers available that configure and control the SERCOM. Let us recollect what has been covered so far: 1. Enable Core Clock and APB clock: Since we have not explained clocks in SAMD20, the function to perform this will be provided to you. 2. Port Configuration: There four I/O lines that participate in SPI transmission MISO, MOSI, SCLK, and SS. These should be configured as per Table 3. Along with setting the I/O direction, the additional settings required to perform the peripheral functions are: a. Set the PMUXEN bit of the PINCFGy register b. Configure the PMUXn register such that the I/O pins serve as SERCOM Table 3. SPI I/O lines configuration Pin Master SPI Slave SPI MOSI Output Input MISO Input Output SCK Output Input SS Output Input 3. SERCOM Configuration: The SERCOM related configuration to operate SERCOM in SPI mode are as follows: a. Set the SPI mode of the device Master or Slave b. Set the clock polarity and phase, i.e., SPI mode of transmission as covered in Table 1 c. Set the transaction format d. Set the DIPO and DOPO bits e. Set the byte size for transmission 8 bits or 9 bits f. Decide whether MSB or LSB should be transmitted first g. Assign the right value to the BAUD register h. Enable SPI module For I/O pins to serve as SERCOM, based on the table 6-1 on Page 15 of the SAMD20 datasheet, Peripheral D should be chosen. Therefore in Step #2.b what should be the value of the PMUXn register? Which registers from Table 2 can be used to accomplish Step #3 mentioned above? Now complete the Table 4 below. Page 8 of 14

11 Table 4. Registers to configure SERCOM in SPI mode Register Function 4.2 Understanding the SAMD20 System level header files You have been provided with an Atmel Studio project template to work on. To use this project, you need to understand the header file that describes everything required to configure the SERCOM engine to operate in SPI mode component_sercom.h The component_sercom.h header file has important definitions pertaining to the SERCOM engine. It defines a Union called Sercom that lists all the serial communication protocols as shown below: typedef union { SercomI2cm I2CM; /**< Offset: 0x00 I2C Master Mode */ SercomI2cs I2CS; /**< Offset: 0x00 I2C Slave Mode */ SercomSpi SPI; /**< Offset: 0x00 SPI Mode */ SercomUsart USART; /**< Offset: 0x00 USART Mode */ } Sercom; Since we are dealing with the SPI protocol in this section we are concerned with only the following member: SercomSpi SPI; The SercomSpi member is basically a structure that defines all the registers related to the SPI protocol as shown below: typedef struct { /* SPI Mode */ IO SERCOM_SPI_CTRLA_Type CTRLA; /**< Offset: 0x00 (R/W 32) SPI Control Register A */ IO SERCOM_SPI_CTRLB_Type CTRLB; /**< Offset: 0x04 (R/W 32) SPI Control Register B */ IO SERCOM_SPI_DBGCTRL_Type DBGCTRL; /**< Offset: 0x08 (R/W 8) SPI Debug Register */ RoReg8 Reserved1[0x1]; IO SERCOM_SPI_BAUD_Type BAUD; /**< Offset: 0x0A (R/W 8) SPI Baud Rate Register */ RoReg8 Reserved2[0x1]; IO SERCOM_SPI_INTENCLR_Type INTENCLR; /**< Offset: 0x0C (R/W 8) SPI Interrupt Enable Clear Register */ IO SERCOM_SPI_INTENSET_Type INTENSET; /**< Offset: 0x0D (R/W 8) SPI Interrupt Enable Set Register */ IO SERCOM_SPI_INTFLAG_Type INTFLAG; /**< Offset: 0x0E (R/W 8) SPI Interrupt Flag Status and Clear Register */ RoReg8 Reserved3[0x1]; IO SERCOM_SPI_STATUS_Type STATUS; /**< Offset: 0x10 (R/W 16) SPI Status Register */ RoReg8 Reserved4[0x2]; IO SERCOM_SPI_ADDR_Type ADDR; /**< Offset: 0x14 (R/W 32) SPI Address Register */ IO SERCOM_SPI_DATA_Type DATA; /**< Offset: 0x18 (R/W 16) SPI Data Register */ } SercomSpi; You should already be familiar with these registers which were listed in Table 2 of this section. The comment alongside each register mentions the register memory offset, read/ write permissions, register size in bits, and description of the register. Page 9 of 14

12 Each register is assigned a type such as SERCOM_SPI_CTRLA_Type: typedef union { struct { uint32_t SWRST:1; /*!< bit: 0 Software Reset */ uint32_t ENABLE:1; /*!< bit: 1 Enable */ uint32_t MODE:3; /*!< bit: Operating Mode */ uint32_t :2; /*!< bit: Reserved */ uint32_t RUNSTDBY:1; /*!< bit: 7 Run during Standby */ uint32_t :8; /*!< bit: Reserved */ uint32_t DOPO:1; /*!< bit: 16 Data Out Pinout */ uint32_t :3; /*!< bit: Reserved */ uint32_t DIPO:2; /*!< bit: Data In Pinout */ uint32_t :2; /*!< bit: Reserved */ uint32_t FORM:4; /*!< bit: Frame Format */ uint32_t CPHA:1; /*!< bit: 28 Clock Phase */ uint32_t CPOL:1; /*!< bit: 29 Clock Polarity */ uint32_t DORD:1; /*!< bit: 30 Data Order */ uint32_t :1; /*!< bit: 31 Reserved */ } bit; /*!< Structure used for bit access */ uint32_t reg; /*!< Type used for register access */ } SERCOM_SPI_CTRLA_Type; Clearly, this is a bit-wise description of the register. Refer to Figure 9 below which shows the bit wise description of the Control A register. Figure 9. Control A register. You can access the ControlA register using uint32_t reg in the following way: sercomp->spi.ctrla.reg = <value to be assigned>; Here sercomp is the pointer variable to the Sercom structure and we are implementing the SPI protocol. Page 10 of 14

13 The bitwise description of the registers is also provided in the header file. For example, the Control A register is described as below: #define SERCOM_SPI_CTRLA_SWRST_Pos 0 /**< (SERCOM_SPI_CTRLA) Software Reset */ #define SERCOM_SPI_CTRLA_SWRST (0x1u << SERCOM_SPI_CTRLA_SWRST_Pos) #define SERCOM_SPI_CTRLA_ENABLE_Pos 1 /**< (SERCOM_SPI_CTRLA) Enable */ #define SERCOM_SPI_CTRLA_ENABLE (0x1u << SERCOM_SPI_CTRLA_ENABLE_Pos) #define SERCOM_SPI_CTRLA_MODE_Pos 2 /**< (SERCOM_SPI_CTRLA) Operating Mode */ #define SERCOM_SPI_CTRLA_MODE_Msk (0x7u << SERCOM_SPI_CTRLA_MODE_Pos) #define SERCOM_SPI_CTRLA_MODE(value) ((SERCOM_SPI_CTRLA_MODE_Msk & ((value) << SERCOM_SPI_CTRLA_MODE_Pos))) #define SERCOM_SPI_CTRLA_MODE_USART_EXT_CLK (0x0u << 2) /**< (SERCOM_SPI_CTRLA) USART mode with external clock */ #define SERCOM_SPI_CTRLA_MODE_USART_INT_CLK (0x1u << 2) /**< (SERCOM_SPI_CTRLA) USART mode with internal clock */ #define SERCOM_SPI_CTRLA_MODE_SPI_SLAVE (0x2u << 2) /**< (SERCOM_SPI_CTRLA) SPI mode with external clock */ #define SERCOM_SPI_CTRLA_MODE_SPI_MASTER (0x3u << 2) /**< (SERCOM_SPI_CTRLA) SPI mode with internal clock */ #define SERCOM_SPI_CTRLA_MODE_I2C_SLAVE (0x4u << 2) /**< (SERCOM_SPI_CTRLA) I2C mode with external clock */ #define SERCOM_SPI_CTRLA_MODE_I2C_MASTER (0x5u << 2) /**< (SERCOM_SPI_CTRLA) I2C mode with internal clock */ #define SERCOM_SPI_CTRLA_RUNSTDBY_Pos 7 /**< (SERCOM_SPI_CTRLA) Run during Standby */ #define SERCOM_SPI_CTRLA_RUNSTDBY (0x1u << SERCOM_SPI_CTRLA_RUNSTDBY_Pos) #define SERCOM_SPI_CTRLA_DOPO_Pos 16 /**< (SERCOM_SPI_CTRLA) Data Out Pinout */ #define SERCOM_SPI_CTRLA_DOPO (0x1u << SERCOM_SPI_CTRLA_DOPO_Pos) #define SERCOM_SPI_CTRLA_DIPO_Pos 20 /**< (SERCOM_SPI_CTRLA) Data In Pinout */ #define SERCOM_SPI_CTRLA_DIPO_Msk (0x3u << SERCOM_SPI_CTRLA_DIPO_Pos) #define SERCOM_SPI_CTRLA_DIPO(value) ((SERCOM_SPI_CTRLA_DIPO_Msk & ((value) << SERCOM_SPI_CTRLA_DIPO_Pos))) #define SERCOM_SPI_CTRLA_FORM_Pos 24 /**< (SERCOM_SPI_CTRLA) Frame Format */ #define SERCOM_SPI_CTRLA_FORM_Msk (0xFu << SERCOM_SPI_CTRLA_FORM_Pos) #define SERCOM_SPI_CTRLA_FORM(value) ((SERCOM_SPI_CTRLA_FORM_Msk & ((value) << SERCOM_SPI_CTRLA_FORM_Pos))) #define SERCOM_SPI_CTRLA_CPHA_Pos 28 /**< (SERCOM_SPI_CTRLA) Clock Phase */ #define SERCOM_SPI_CTRLA_CPHA (0x1u << SERCOM_SPI_CTRLA_CPHA_Pos) #define SERCOM_SPI_CTRLA_CPOL_Pos 29 /**< (SERCOM_SPI_CTRLA) Clock Polarity */ #define SERCOM_SPI_CTRLA_CPOL (0x1u << SERCOM_SPI_CTRLA_CPOL_Pos) #define SERCOM_SPI_CTRLA_DORD_Pos 30 /**< (SERCOM_SPI_CTRLA) Data Order */ #define SERCOM_SPI_CTRLA_DORD (0x1u << SERCOM_SPI_CTRLA_DORD_Pos) #define SERCOM_SPI_CTRLA_MASK 0x7F31009Fu /**< (SERCOM_SPI_CTRLA) MASK Register */ To summarize the component_sercom.h completely defines the SERCOM related registers. 4.3 Configuring SERCOM to operate as SPI Master Do you know how to configure the I/O lines to perform SPI peripheral function based on exercise from the previous sections? Can you write the C function to achieve this on your own? Have you decided which registers you will use to configure SERCOM to operate in SPI mode? Page 11 of 14

14 As already mentioned, you have already been provided with the code to enable the clocks required by SERCOM Accessing the SERCOM Registers for SPI The Sercom structure defines all the communication protocols supported. One of its members, SercomSpi, defines all the structures for SPI protocol configuration. typedef struct { /* SPI Mode */ IO SERCOM_SPI_CTRLA_Type CTRLA; /**< Offset: 0x00 (R/W 32) SPI Control Register A */ IO SERCOM_SPI_CTRLB_Type CTRLB; /**< Offset: 0x04 (R/W 32) SPI Control Register B */ IO SERCOM_SPI_DBGCTRL_Type DBGCTRL; /**< Offset: 0x08 (R/W 8) SPI Debug Register */ RoReg8 Reserved1[0x1]; IO SERCOM_SPI_BAUD_Type BAUD; /**< Offset: 0x0A (R/W 8) SPI Baud Rate Register */ RoReg8 Reserved2[0x1]; IO SERCOM_SPI_INTENCLR_Type INTENCLR; /**< Offset: 0x0C (R/W 8) SPI Interrupt Enable Clear Register */ IO SERCOM_SPI_INTENSET_Type INTENSET; /**< Offset: 0x0D (R/W 8) SPI Interrupt Enable Set Register */ IO SERCOM_SPI_INTFLAG_Type INTFLAG; /**< Offset: 0x0E (R/W 8) SPI Interrupt Flag Status and Clear Register */ RoReg8 Reserved3[0x1]; IO SERCOM_SPI_STATUS_Type STATUS; /**< Offset: 0x10 (R/W 16) SPI Status Register */ RoReg8 Reserved4[0x2]; IO SERCOM_SPI_ADDR_Type ADDR; /**< Offset: 0x14 (R/W 32) SPI Address Register */ IO SERCOM_SPI_DATA_Type DATA; /**< Offset: 0x18 (R/W 16) SPI Data Register */ } SercomSpi; We could easily access these registers the following way: Sercom *sercomp = SERCOM0; Here SERCOM0 is the base address definition: #define SERCOM0 (0x U) /**< (SERCOM0) APB Base Address */ How will you use the structure variable sercomp to configure the SERCOM in SPI mode as discussed in Section 4.1 of this section? 4.4 Transmitting data as SPI Master Now that you are familiar with the SPI related registers, you probably already know that writing something to the Data register will be transmitted via the transmit data buffer. This register should be written only when the Data Register Empty Interrupt Flag bit in the Interrupt Flag Status and Clear register (INTFLAG.DREIF) is set. Figure 10 below shows a scope capture of SPI data transmission by a SPI Master device. The data transmitted is 0x02. Page 12 of 14

15 Figure 10. SPI Master data transmission Page 13 of 14

16 5. Conclusion In this section we have focused on SPI, one of the communication protocols supported by SERCOM on the SAMD20. Data is transmitted and received synchronously in a master-slave configuration. We are now familiar with the following: 1. The fundamental process of SPI data protocol. 2. The various modes of SPI data transmission. 3. SERCOM transmit and receive in SPI mode. 4. Port configuration for SERCOM. 5. How to transfer a byte in master mode. 6. SERCOM system level header files. Page 14 of 14

17 Atmel Corporation 1600 Technology Drive San Jose, CA USA Tel: (+1)(408) Fax: (+1)(408) Atmel Asia Limited Unit 01-5 & 16, 19F BEA Tower, Millennium City Kwun Tong Road Kwun Tong, Kowloon HONG KONG Tel: (+852) Fax: (+852) Atmel Munich GmbH Business Campus Parkring 4 D Garching b. Munich GERMANY Tel: (+49) Fax: (+49) Atmel Japan G.K. 16F Shin-Osaki Kangyo Bldg Osaki, Shinagawa-ku Tokyo JAPAN Tel: (+81)(3) Fax: (+81)(3) Atmel Corporation. All rights reserved. / Rev.: 04/12/2013 Atmel, Atmel logo and combinations thereof, Enabling Unlimited Possibilities, and others are registered trademarks or trademarks of Atmel Corporation or its subsidiaries. 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 right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN THE ATMEL TERMS AND CONDITIONS OF SALES LOCATED ON THE ATMEL WEBSITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS 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, DAMAGES 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 commitment 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. Atmel AT02260: Driving AT42QT1085. Atmel QTouch. Features. Description

APPLICATION NOTE. Atmel AT02260: Driving AT42QT1085. Atmel QTouch. Features. Description APPLICATION NOTE Atmel AT02260: Driving AT42QT1085 Atmel QTouch Features Overview of Atmel AT42QT1085 Circuit configuration with Host MCU SPI communication Demonstration program Description This application

More information

APPLICATION NOTE. Atmel AT03304: SAM D20 I 2 C Slave Bootloader SAM D20. Description. Features

APPLICATION NOTE. Atmel AT03304: SAM D20 I 2 C Slave Bootloader SAM D20. Description. Features APPLICATION NOTE Atmel AT03304: SAM D20 I 2 C Slave Bootloader SAM D20 Description As many electronic designs evolve rapidly there is a growing need for being able to update products, which have already

More information

Hardware Prerequisites Atmel Xplained Pro Evaluation Kit Atmel WINC1500 extension USB Micro Cable (TypeA / MicroB)

Hardware Prerequisites Atmel Xplained Pro Evaluation Kit Atmel WINC1500 extension USB Micro Cable (TypeA / MicroB) BENCHMARK WINC1500 Wi-Fi Module Benchmark using iperf 2.0.5 Prerequisites Hardware Prerequisites Atmel Xplained Pro Evaluation Kit Atmel WINC1500 extension USB Micro Cable (TypeA / MicroB) Software Prerequisites

More information

APPLICATION NOTE. Atmel AVR1638: XMEGA RTC Calibration. 8-bit Atmel Microcontrollers. Features. Introduction

APPLICATION NOTE. Atmel AVR1638: XMEGA RTC Calibration. 8-bit Atmel Microcontrollers. Features. Introduction APPLICATION NOTE Atmel AVR1638: XMEGA RTC Calibration 8-bit Atmel Microcontrollers Features Example software project which performs RTC calibration with help of an external precise clock source Software

More information

APPLICATION NOTE. AT03324: Atmel REB212BSMA-EK Quick Start Guide. Atmel MCU Wireless. Introduction

APPLICATION NOTE. AT03324: Atmel REB212BSMA-EK Quick Start Guide. Atmel MCU Wireless. Introduction APPLICATION NOTE AT03324: Atmel REB212BSMA-EK Quick Start Guide Atmel MCU Wireless This application note briefly describes how to set up and run the pre-flashed applications supplied with the Atmel REB212BSMA

More information

APPLICATION NOTE. Atmel AT03160: Migrating Bootloader from ATxmega128A1 to other Atmel XMEGA Devices. Atmel AVR XMEGA. Features.

APPLICATION NOTE. Atmel AT03160: Migrating Bootloader from ATxmega128A1 to other Atmel XMEGA Devices. Atmel AVR XMEGA. Features. APPLICATION NOTE Atmel AT03160: Migrating Bootloader from ATxmega128A1 to other Atmel XMEGA Devices Features Atmel AVR XMEGA bootloader Procedure application C-code sample application for Self Programming

More information

Atmel AVR32847: Migration from/to the UC3L0 64/32/16 from/to the UC3L0 256/ bit Atmel Microcontrollers. Application Note.

Atmel AVR32847: Migration from/to the UC3L0 64/32/16 from/to the UC3L0 256/ bit Atmel Microcontrollers. Application Note. Atmel AVR32847: Migration from/to the UC3L0 64/32/16 from/to the UC3L0 256/128 Features Features comparison Porting considerations and tools Pinout comparison 1 Introduction This application note is a

More information

USER GUIDE. Wireless Production Test Reference Protocol Specification Document. Atmel MCU Wireless. Description

USER GUIDE. Wireless Production Test Reference Protocol Specification Document. Atmel MCU Wireless. Description USER GUIDE Wireless Production Test Reference Protocol Specification Document Atmel MCU Wireless Description This document explains the serial protocol used for communication between various blocks of

More information

APPLICATION NOTE. Atmel AT01080: XMEGA E Schematic Checklist. Atmel AVR XMEGA E. Features. Introduction

APPLICATION NOTE. Atmel AT01080: XMEGA E Schematic Checklist. Atmel AVR XMEGA E. Features. Introduction APPLICATION NOTE Atmel AT01080: XMEGA E Schematic Checklist Atmel AVR XMEGA E Features Power supplies Reset circuit Clocks and crystal oscillators PDI TWI Introduction This application note describes a

More information

STK521. User Guide B AVR 01/12

STK521. User Guide B AVR 01/12 STK521... User Guide Table of Contents Section 1 1 Introduction 1 Features 2 Section 2 3 Using the STK521 Top Module 3 Connecting the Atmel STK521 to the Atmel STK500 Starter Kit 3 Powering the STK521

More information

APPLICATION NOTE. Atmel AVR3009: Driving QTouch Device with I 2 C Interface. Atmel QTouch. Introduction

APPLICATION NOTE. Atmel AVR3009: Driving QTouch Device with I 2 C Interface. Atmel QTouch. Introduction APPLICATION NOTE Atmel AVR3009: Driving QTouch Device with I 2 C Interface Introduction Atmel QTouch This application note explains the communication of I 2 C-Compatible Master microcontroller with Atmel

More information

Atmel ATMXT143E touchscreen controller Capacitive touch ITO 320 x 240 pixel LCD display with SPI interface LED backlight

Atmel ATMXT143E touchscreen controller Capacitive touch ITO 320 x 240 pixel LCD display with SPI interface LED backlight APPLICATION NOTE Features Atmel AVR32936: mxt143e Xplained Hardware Users Guide Atmel maxtouch Touchscreen Controller 2.8 inch mxt143e LCD display module from Precision Design Associates (PDA) Atmel ATMXT143E

More information

Atmel AVR1619: XMEGA-B1 Xplained Demonstration. 8-bit Atmel Microcontrollers. Application Note. Features. 1 Introduction

Atmel AVR1619: XMEGA-B1 Xplained Demonstration. 8-bit Atmel Microcontrollers. Application Note. Features. 1 Introduction Atmel AVR1619: XMEGA-B1 Xplained Demonstration Features Atmel ATxmega128B1 Atmel XMEGA -B1 Xplained kit compatible On-board LCD display USB 2.0 Full speed composite device - Mass Storage interface with

More information

OLED display with pixels resolution Ambient light sensor CPU load Analog filter Quadrature Encoder with push button Digital I/O

OLED display with pixels resolution Ambient light sensor CPU load Analog filter Quadrature Encoder with push button Digital I/O APPLICATION NOTE Atmel AT02657: XMEGA-E5 Xplained Software User Guide Features OLED display with 128 32 pixels resolution Ambient light sensor CPU load Analog filter Quadrature Encoder with push button

More information

APPLICATION NOTE. Atmel AVR057: Internal RC Oscillator Calibration for ATtiny4/5/9/10/20/40. 8-bit Atmel Microcontrollers. Features.

APPLICATION NOTE. Atmel AVR057: Internal RC Oscillator Calibration for ATtiny4/5/9/10/20/40. 8-bit Atmel Microcontrollers. Features. APPLICATION NOTE Features Atmel AVR057: Internal RC Oscillator Calibration for ATtiny4/5/9/10/20/40 8-bit Atmel Microcontrollers Calibration of the internal 8MHz RC Oscillator for Atmel ATtiny4/5/9/10/20/40

More information

AVR1518: XMEGA-A1 Xplained Training - XMEGA Clock System. 8-bit Atmel Microcontrollers. Application Note. Prerequisites.

AVR1518: XMEGA-A1 Xplained Training - XMEGA Clock System. 8-bit Atmel Microcontrollers. Application Note. Prerequisites. AVR1518: XMEGA-A1 Xplained Training - XMEGA Clock System Prerequisites Required knowledge - Basic knowledge of microcontrollers and the C programming language - Completed AVR1512 XMEGA-A1 Xplained Training

More information

APPLICATION NOTE. Atmel AVR536: Migration from ATmega644 to ATmega644A. 8-bit Atmel Microcontrollers. Introduction

APPLICATION NOTE. Atmel AVR536: Migration from ATmega644 to ATmega644A. 8-bit Atmel Microcontrollers. Introduction APPLICATION NOTE Atmel AVR536: Migration from ATmega644 to ATmega644A 8-bit Atmel Microcontrollers Introduction The Atmel ATmega644A is a functionally identical, drop-in replacement for the Atmel ATmega644.

More information

Atmel CryptoAuthentication Starter Kit

Atmel CryptoAuthentication Starter Kit Atmel CryptoAuthentication Starter Kit Hardware User Guide Features 8-lead SOIC socket Supports the Atmel ATSHA204 CryptoAuthentication IC Supports communication protocols - I 2 C - SWI (Single wire interface)

More information

Atmel QT600 Quick Start Guide Touch Solutions

Atmel QT600 Quick Start Guide Touch Solutions Atmel QT600 Quick Start Guide Touch Solutions Introduction Looking to take your design to the next level? You have made the right choice in purchasing the Atmel QT600 Development Kit. It allows you to

More information

APPLICATION NOTE. Atmel AVR2131: Lightweight Mesh Getting Started Guide. Atmel MCU Wireless. Features. Description

APPLICATION NOTE. Atmel AVR2131: Lightweight Mesh Getting Started Guide. Atmel MCU Wireless. Features. Description APPLICATION NOTE Atmel AVR2131: Lightweight Mesh Getting Started Guide Features Atmel Lightweight Mesh Software Development Kit (SDK) WSNDemo sample application Custom applications Atmel MCU Wireless Description

More information

32Kbytes on-chip SRAM. Viterbi decoding and CRC PRIME compliant 128-bit AES encryption Channel sensing and collision pre-detection

32Kbytes on-chip SRAM. Viterbi decoding and CRC PRIME compliant 128-bit AES encryption Channel sensing and collision pre-detection Atmel ATPL220A PRIME compliant Power Line Communications Modem Features SUMMARY DATASHEET Modem Power Line Carrier Modem for 50 and 60 Hz mains 97-carrier OFDM PRIME compliant Baud rate Selectable: 21400

More information

APPLICATION NOTE. Atmel AVR116: Wear Leveling on DataFlash. 32-bit Atmel Microcontrollers. Features. Description. Wear leveling

APPLICATION NOTE. Atmel AVR116: Wear Leveling on DataFlash. 32-bit Atmel Microcontrollers. Features. Description. Wear leveling APPLICATION NOTE Atmel AVR116: Wear Leveling on DataFlash 32-bit Atmel Microcontrollers Features Wear leveling Average the program/erase operations in different blocks Write not need be preceded by an

More information

Atmel AT697F. Rad-Hard 32-bit SPARC v8 Processor ERRATA SHEET. Active Errata List

Atmel AT697F. Rad-Hard 32-bit SPARC v8 Processor ERRATA SHEET. Active Errata List Atmel AT697F Rad-Hard 32-bit SPARC v8 Processor ERRATA SHEET Active Errata List 1. Odd-numbered FPU register dependency not properly checked in some doubleprecision FPU operations 2. Anomaly in instruction

More information

APPLICATION NOTE. Atmel AT03782: Using Low Power Modes in SAM4N Microcontroller. Atmel 32-bit Microcontroller. Features.

APPLICATION NOTE. Atmel AT03782: Using Low Power Modes in SAM4N Microcontroller. Atmel 32-bit Microcontroller. Features. APPLICATION NOTE Atmel AT03782: Using Low Power Modes in SAM4N Microcontroller Atmel 32-bit Microcontroller Features Low power modes in SAM4N Power supply in SAM4N Introduction The purpose of this application

More information

USER GUIDE EDBG. Description

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

More information

Atmel LF-RFID Kit Comparison Chart. Application Note. Atmel LF-RFID Kit Comparison Chart. 1. Description

Atmel LF-RFID Kit Comparison Chart. Application Note. Atmel LF-RFID Kit Comparison Chart. 1. Description Atmel LF-RFID Kit Comparison Chart 1. Description Atmel offers several types of development and evaluation kits. The Atmel ATA2270-EK1 is an evaluation kit that supports a limited number of modes in stand-alone

More information

EDBG. Description. Programmers and Debuggers USER GUIDE

EDBG. Description. Programmers and Debuggers USER GUIDE Programmers and Debuggers EDBG USER GUIDE Description The Atmel Embedded Debugger (EDBG) is an onboard debugger for integration into development kits with Atmel MCUs. In addition to programming and debugging

More information

Atmel AT697F. Rad-Hard 32-bit SPARC v8 Processor ERRATA SHEET. Active Errata List

Atmel AT697F. Rad-Hard 32-bit SPARC v8 Processor ERRATA SHEET. Active Errata List Atmel AT697F Rad-Hard 32-bit SPARC v8 Processor ERRATA SHEET Active Errata List 1. Odd-numbered FPU register dependency not properly checked in some doubleprecision FPU operations 2. Anomaly in instruction

More information

AVR1501: Xplain training XMEGA Timer/Counter 8-bit Microcontrollers Application Note Prerequisites 1 Introduction

AVR1501: Xplain training XMEGA Timer/Counter 8-bit Microcontrollers Application Note Prerequisites 1 Introduction AVR1501: Xplain training XMEGA Timer/Counter Prerequisites Required knowledge Completed AVR1500: XMEGA Basics training Software prerequisites Atmel AVR Studio 4.18 SP2 or later WinAVR/GCC 20100110 or later

More information

Atmel AVR1924: XMEGA-A1 Xplained Hardware User's Guide. 8-bit Atmel Microcontrollers. Application Note. Preliminary. Features.

Atmel AVR1924: XMEGA-A1 Xplained Hardware User's Guide. 8-bit Atmel Microcontrollers. Application Note. Preliminary. Features. Atmel AVR1924: XMEGA-A1 Xplained Hardware User's Guide Features Atmel ATxmega128A1 microcontroller External memory - 8MB SDRAM Atmel AT32UC3B1256 - Communication gateway - Programmer for Atmel AVR XMEGA

More information

AVR4018: Inertial Two (ATAVRSBIN2) Hardware User's Guide. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR4018: Inertial Two (ATAVRSBIN2) Hardware User's Guide. 8-bit Microcontrollers. Application Note. Features. 1 Introduction AVR4018: Inertial Two (ATAVRSBIN2) Hardware User's Guide Features Compatible with all Atmel AVR Xplain MCU boards Full nine-degree-of-freedom inertial sensing InvenSense three-axis MEMS gyroscope (IMU-3000

More information

AVR1503: Xplain training - XMEGA Programmable Multi Interrupt Controller 8-bit Microcontrollers Application Note Prerequisites

AVR1503: Xplain training - XMEGA Programmable Multi Interrupt Controller 8-bit Microcontrollers Application Note Prerequisites AVR1503: Xplain training - XMEGA Programmable Multi Interrupt Controller Prerequisites Required knowledge Completed AVR1500 XMEGA Basics training Software prerequisites Atmel AVR Studio 4.18 SP2 or later

More information

AVR1303: Use and configuration of IR communication module. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR1303: Use and configuration of IR communication module. 8-bit Microcontrollers. Application Note. Features. 1 Introduction AVR1303: Use and configuration of IR communication module Features IrDA 1.4 compatible for baud rates up to 115.2 Kbit/s Selectable transmitter pulse modulation schemes: - 3/16 of baud rate period - Fixed

More information

Atmel AVR ATxmega384C3 microcontroller OLED display with 128x32 pixels resolution Analog sensors. Ambient light sensor Temperature sensor

Atmel AVR ATxmega384C3 microcontroller OLED display with 128x32 pixels resolution Analog sensors. Ambient light sensor Temperature sensor APPLICATION NOTE Atmel AVR1939: XMEGA-C3 Xplained Getting Started Guide Features Atmel AVR ATxmega384C3 microcontroller OLED display with 128x32 pixels resolution Analog sensors Ambient light sensor Temperature

More information

Atmel AVR473: ATAVRSB202 Hardware User Guide. 8-bit Atmel Microcontrollers. Application Note. Features. 1 Introduction

Atmel AVR473: ATAVRSB202 Hardware User Guide. 8-bit Atmel Microcontrollers. Application Note. Features. 1 Introduction Atmel AVR473: ATAVRSB202 Hardware User Guide Features Atmel ATmega32HVB Smart Battery device evaluation and development kit High-side N-FETs 5mΩ sense resistor current measurements with 18-bit CC-ADC Input

More information

a clock signal and a bi-directional data signal (SCL, SDA)

a clock signal and a bi-directional data signal (SCL, SDA) Selecting the Best Serial EEPROM Interface Protocol for your Application 1. Introduction Atmel offers Serial Electrically Erasable Programmable Read Only Memories (SEEPROM) to designers wanting to save

More information

AVR32752: Using the AVR32 UC3 Static Memory Controller. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR32752: Using the AVR32 UC3 Static Memory Controller. 32-bit Microcontrollers. Application Note. Features. 1 Introduction AVR32752: Using the AVR32 UC3 Static Memory Controller Features Several Types of Access Supported - 8-bit Access Mode - 16-bit Access Mode Software Configurable - Timing Parameters - Initializations 32-bit

More information

Atmel AT32UC3A3256 microcontroller 64MBit SDRAM Analog input (to ADC) Temperature sensor RC filter

Atmel AT32UC3A3256 microcontroller 64MBit SDRAM Analog input (to ADC) Temperature sensor RC filter APPLICATION NOTE Features Atmel AVR32918: UC3-A3 Xplained Hardware User s Guide Atmel AT32UC3A3256 microcontroller 64MBit SDRAM Analog input (to ADC) Temperature sensor RC filter I/O One mechanical button

More information

OLED display Sensors readout. Light sensor Temperature sensor

OLED display Sensors readout. Light sensor Temperature sensor APPLICATION NOTE Atmel AT01639: XMEGA-C3 Xplained Software User Guide Features OLED display Sensors readout Light sensor Temperature sensor CPU load QTouch button demonstration microsd card Embedded file

More information

AVR1315: Accessing the XMEGA EEPROM. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR1315: Accessing the XMEGA EEPROM. 8-bit Microcontrollers. Application Note. Features. 1 Introduction AVR1315: Accessing the XMEGA EEPROM Features I/O-mapped access Memory-mapped access Split erase and write operations supported Efficient page-oriented access Driver source code included 1 Introduction

More information

AVR1922: Xplain Board Controller Firmware 8-bit Microcontrollers Application Note Features 1 Introduction

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,

More information

AVR1508: Xplain training - XMEGA DAC 8-bit Microcontrollers Application Note Features 1 Introduction

AVR1508: Xplain training - XMEGA DAC 8-bit Microcontrollers Application Note Features 1 Introduction AVR1508: Xplain training - XMEGA DAC Features Required knowledge AVR1500: Xplain training XMEGA Basic AVR1502: Xplain training XMEGA Direct Memory Access Controller Software prerequisites Atmel AVR Studio

More information

AVR42789: Writing to Flash on the New tinyavr Platform Using Assembly

AVR42789: Writing to Flash on the New tinyavr Platform Using Assembly AVR 8-bit Microcontrollers AVR42789: Writing to Flash on the New tinyavr Platform Using Assembly APPLICATION NOTE Table of Contents 1. What has Changed...3 1.1. What This Means and How to Adapt...4 2.

More information

Atmel AVR1926: XMEGA-B1 Xplained Getting Started Guide. 8-bit Atmel Microcontrollers. Application Note. Features. 1 Introduction

Atmel AVR1926: XMEGA-B1 Xplained Getting Started Guide. 8-bit Atmel Microcontrollers. Application Note. Features. 1 Introduction Atmel AVR1926: XMEGA-B1 Xplained Getting Started Guide Features Easy to reprogram with just a USB cable and a preprogrammed boot loader Easy to debug code with PDI-based debugger/emulator Can be used with

More information

SAM4 Reset Controller (RSTC)

SAM4 Reset Controller (RSTC) APPLICATION NOTE AT06864: SAM4 Reset Controller (RSTC) ASF PROGRAMMERS MANUAL SAM4 Reset Controller (RSTC) This driver for SAM devices provides an interface for the configuration and management of the

More information

AVR32401: AVR32 AP7 Linux Interfacing DataFlash. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR32401: AVR32 AP7 Linux Interfacing DataFlash. 8-bit Microcontrollers. Application Note. Features. 1 Introduction AVR32401: AVR32 AP7 Linux Interfacing DataFlash Features JFFS2 file system Communication through SPI interface 1 Introduction This application note serves as an example of how to connect, set up and use

More information

AVR1512: XMEGA-A1 Xplained training - XMEGA Basics. 8-bit Atmel Microcontrollers. Application Note. Prerequisites. 1 Introduction

AVR1512: XMEGA-A1 Xplained training - XMEGA Basics. 8-bit Atmel Microcontrollers. Application Note. Prerequisites. 1 Introduction AVR1512: XMEGA-A1 Xplained training - XMEGA Basics Prerequisites Required knowledge - Basic knowledge of microcontrollers and the C programming language Software prerequisites Atmel AVR Studio 5 Hardware

More information

One-channel Toggle-mode Touch Sensor IC with Power Management Functions AT42QT1012. Summary

One-channel Toggle-mode Touch Sensor IC with Power Management Functions AT42QT1012. Summary Features Number of Keys: One toggle mode (touch-on/touch-off), plus programmable auto-off delay and external cancel Configurable as either a single key or a proximity sensor Technology: Patented spread-spectrum

More information

Getting Started with the SAM4L-EK Demo

Getting Started with the SAM4L-EK Demo TRAINING MANUAL Getting Started with the SAM4L-EK Demo AN-4553 Prerequisites Hardware Prerequisites Atmel SAM4L-EK Evaluation Kit Software Prerequisites Atmel Studio 6.2 Atmel Software Framework 3.17.0

More information

AVR32917: picopower Board getting started. 32-bit Microcontrollers. Application Note. Preliminary. Features. 1 Introduction

AVR32917: picopower Board getting started. 32-bit Microcontrollers. Application Note. Preliminary. Features. 1 Introduction AVR32917: picopower Board getting started Features Introduction to the picopower Board Includes the evaluation demo application 1 Introduction Atmel 's picopower technology provides power saving modes

More information

AT09381: SAM D - Debugging Watchdog Timer Reset. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE

AT09381: SAM D - Debugging Watchdog Timer Reset. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE SMART ARM-based Microcontrollers AT09381: SAM D - Debugging Watchdog Timer Reset APPLICATION NOTE Introduction This application note shows how the early warning interrupt can be used to debug a WDT reset

More information

Atmel AVR ATxmega384C3 microcontroller OLED display with pixels resolution Analog sensors. Ambient light sensor Temperature sensor

Atmel AVR ATxmega384C3 microcontroller OLED display with pixels resolution Analog sensors. Ambient light sensor Temperature sensor APPLICATION NOTE AVR1925: XMEGA-C3 Xplained Hardware User s Guide Features Atmel AVR ATxmega384C3 microcontroller OLED display with 128 32 pixels resolution Analog sensors Ambient light sensor Temperature

More information

Non Volatile Rad Hard Reprogrammable FPGA. ATF280 SRAM-based FPGA AT69170 Serial EEPROM. 2x SRAM-based FPGA designed for Space use - ATF280

Non Volatile Rad Hard Reprogrammable FPGA. ATF280 SRAM-based FPGA AT69170 Serial EEPROM. 2x SRAM-based FPGA designed for Space use - ATF280 Atmel ATFEE560 Multi-Chip Rad-Hard Modules: Reprogrammable FPGA matrix (ATF280) (x2) EEPROM Memory (AT69170) (x2) DATASHEET Features Non Volatile Rad Hard Reprogrammable FPGA ATF280 SRAM-based FPGA AT69170

More information

8-bit Microcontroller. Application Note. AVR320: Software SPI Master

8-bit Microcontroller. Application Note. AVR320: Software SPI Master AVR320: Software SPI Master Features Up to 444Kb/S Throughput @ 10 MHz Directly Supports Large Block Writes Easily Expandable for Multiple SPI Slaves Operates in SPI Mode 0 16-bit Data, Easily Modified

More information

AVR532: Migration from ATmega48/88/168 to ATmega48A/88A/168A. 8-bit Microcontrollers. Application Note. 1 Introduction

AVR532: Migration from ATmega48/88/168 to ATmega48A/88A/168A. 8-bit Microcontrollers. Application Note. 1 Introduction AVR532: Migration from ATmega48/88/168 to ATmega48A/88A/168A 1 Introduction The ATmega48A/88A/168A is a functionally identical, drop-in replacement for the ATmega48/88/168. All devices are subject to the

More information

8-megabyte, 4-megabyte, and 2-megabyte 2.7-volt Only DataFlash Cards AT45DCB008D AT45DCB004D AT45DCB002D. Not Recommended for New Design

8-megabyte, 4-megabyte, and 2-megabyte 2.7-volt Only DataFlash Cards AT45DCB008D AT45DCB004D AT45DCB002D. Not Recommended for New Design Features MultiMediaCard (MMC) Form Factor Single 2.7V to 3.6V Supply 66 MHz Max Clock Frequency Serial Peripheral Interface (SPI) Compatible Low Power Dissipation 10 ma Active Read Current Typical 25 µa

More information

USER GUIDE. Atmel OLED1 Xplained Pro. Preface

USER GUIDE. Atmel OLED1 Xplained Pro. Preface USER GUIDE Atmel OLED1 Xplained Pro Preface Atmel OLED1 Xplained Pro is an extension board to the Atmel Xplained Pro evaluation platform. The board enables the user to experiment with user interface applications

More information

AVR32901: EVKLCD100/EVKLCD101 Hardware User's Guide. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR32901: EVKLCD100/EVKLCD101 Hardware User's Guide. 32-bit Microcontrollers. Application Note. Features. 1 Introduction AVR32901: EVKLCD100/EVKLCD101 Hardware User's Guide Features QVGA (EVKLCD100) or VGA (EVKLCD101) 5.7 LCD panel AC97 codec with touch controller Mono microphone input Resistive touch panel Stereo audio

More information

ATAES132A Firmware Development Library. Introduction. Features. Atmel CryptoAuthentication USER GUIDE

ATAES132A Firmware Development Library. Introduction. Features. Atmel CryptoAuthentication USER GUIDE Atmel CryptoAuthentication ATAES132A Firmware Development Library USER GUIDE Introduction This user guide describes how to use the Atmel CryptoAuthentication ATAES132A Firmware Development Library with

More information

Native route discovery algorithm

Native route discovery algorithm Native route discovery algorithm Starting conditions Node 1 needs to send data to node Routing tables are empty There is no direct path between node 1 and node Destination Next hop Destination Next hop

More information

a Serial Peripheral Interace (SPI). Embedded RISC Microcontroller Core Peripheral

a Serial Peripheral Interace (SPI). Embedded RISC Microcontroller Core Peripheral Features Full-duplex, 3-wire Synchronous Data Transfer Master or Slave Operation Maximum Bit Frequency of f CLOCK /4 (in M-bits/second) LSB First or MSB First Data Transfer Four Programmable Bit Rates

More information

AT03975: Getting Started with SAM L21. Descripton. Features. SMART ARM-Based Microcontroller APPLICATION NOTE

AT03975: Getting Started with SAM L21. Descripton. Features. SMART ARM-Based Microcontroller APPLICATION NOTE SMART ARM-Based Microcontroller AT03975: Getting Started with SAM L21 APPLICATION NOTE Descripton This application note aims at getting started with the Atmel SAM L21 ARM Cortex -M0+ based microconroller.

More information

AT06467: Getting started with SAM D09/D10/D11. Features. Description. SMART ARM-based Microcontrollers APPLICATION NOTE

AT06467: Getting started with SAM D09/D10/D11. Features. Description. SMART ARM-based Microcontrollers APPLICATION NOTE SMART ARM-based Microcontrollers AT06467: Getting started with SAM D09/D10/D11 APPLICATION NOTE Features Getting started with Atmel SMART SAM D09/D10/D11 microcontrollers and tools Getting started with

More information

QTouch 8-key Touch Sensor IC AT42QT1085. Summary

QTouch 8-key Touch Sensor IC AT42QT1085. Summary Features QTouch Sensor Channels Up to 8 keys Integrated Haptic Engine Haptic events may be triggered by touch detection or controlled by a host microcontroller over SPI Data Acquisition QTouch Dual Pulse

More information

Ethernet1 Xplained Pro

Ethernet1 Xplained Pro Ethernet1 Xplained Pro Part Number: ATETHERNET1-XPRO The Atmel Ethernet1 Xplained Pro is an extension board to the Atmel Xplained Pro evaluation platform. The board enables the user to experiment with

More information

8-bit Microcontroller with 16K Bytes In-System Programmable Flash. ATtiny87 ATtiny167 Automotive

8-bit Microcontroller with 16K Bytes In-System Programmable Flash. ATtiny87 ATtiny167 Automotive Appendix A - ATtiny87/ATtiny167 Automotive Specification at 150 C This document contains information specific to devices operating at temperatures up to 150 C. Only deviations are covered in this appendix,

More information

Serial Peripheral Interface (SPI) Host Controller Data Sheet

Serial Peripheral Interface (SPI) Host Controller Data Sheet Serial Peripheral Interface (SPI) Host Controller Data Sheet Proven System Block (PSB) for QuickLogic Customer Specific Standard Products (CSSPs) Features Supports Master configuration (Multi-Master configuration

More information

AVR097: Migration between ATmega128 and ATmega1281/ATmega bit Microcontrollers. Application Note. Features. 1 Introduction

AVR097: Migration between ATmega128 and ATmega1281/ATmega bit Microcontrollers. Application Note. Features. 1 Introduction AVR097: Migration between ATmega128 and ATmega1281/ATmega2561 Features General Porting Considerations Memory Clock sources Interrupts Power Management BOD WDT Timers/Counters USART & SPI ADC Analog Comparator

More information

8-bit RISC Microcontroller. Application Note. AVR151: Setup And Use of The SPI

8-bit RISC Microcontroller. Application Note. AVR151: Setup And Use of The SPI AVR151: Setup And Use of The SPI Features SPI Pin Functionality Multi Slave Systems SPI Timing SPI Transmission Conflicts Emulating the SPI Code examples for Polled operation Code examples for Interrupt

More information

AT91 ARM Thumb Microcontrollers. Application Note. Using the ECC Controller on AT91SAM9260/9263 and AT91SAM7SE Microcontrollers. 1.

AT91 ARM Thumb Microcontrollers. Application Note. Using the ECC Controller on AT91SAM9260/9263 and AT91SAM7SE Microcontrollers. 1. Using the ECC Controller on AT91SAM9260/9263 and AT91SAM7SE Microcontrollers 1. Scope The purpose of this document is to explain how to use the Error Corrected Code (ECC) Controller embedded in the AT91SAM9260/9263

More information

AT03262: SAM D/R/L/C System Pin Multiplexer (SYSTEM PINMUX) Driver. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE

AT03262: SAM D/R/L/C System Pin Multiplexer (SYSTEM PINMUX) Driver. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE SMART ARM-based Microcontrollers AT03262: SAM D/R/L/C System Pin Multiplexer (SYSTEM PINMUX) Driver APPLICATION NOTE Introduction This driver for Atmel SMART ARM -based microcontrollers provides an interface

More information

AT89ISP Programmer Cable Introduction AT89ISP Programmer Cable Parallel Port Settings Application Note AT89ISP Software AT89ISP Cable polarized

AT89ISP Programmer Cable Introduction AT89ISP Programmer Cable Parallel Port Settings Application Note AT89ISP Software AT89ISP Cable polarized AT89ISP Programmer Cable 1. Introduction This application note describes the Atmel AT89ISP cable interface. This in-system programmer cable communicates serially with Atmel's AT89S/AT89LP microcontrollers

More information

APPLICATION NOTE. AT11008: Migration from ATxmega16D4/32D4 Revision E to Revision I. Atmel AVR XMEGA. Introduction. Features

APPLICATION NOTE. AT11008: Migration from ATxmega16D4/32D4 Revision E to Revision I. Atmel AVR XMEGA. Introduction. Features APPLICATION NOTE AT11008: Migration from ATxmega16D4/32D4 Revision E to Revision I Atmel AVR XMEGA Introduction This application note lists out the differences and changes between Revision E and Revision

More information

ATECC108/ATSHA204 USER GUIDE. Atmel Firmware Library. Features. Introduction

ATECC108/ATSHA204 USER GUIDE. Atmel Firmware Library. Features. Introduction ATECC108/ATSHA204 Atmel Firmware Library USER GUIDE Features Layered and Modular Design Compact and Optimized for 8-bit Microcontrollers Easy to Port Supports I 2 C and Single-Wire Communication Distributed

More information

AT10942: SAM Configurable Custom Logic (CCL) Driver. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE

AT10942: SAM Configurable Custom Logic (CCL) Driver. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE SMART ARM-based Microcontrollers AT10942: SAM Configurable Custom Logic (CCL) Driver APPLICATION NOTE Introduction This driver for Atmel SMART SAM devices provides an interface for the configuration and

More information

CAN Microcontrollers. Application Note. Migrating from T89C51CC01 to AT89C51CC03. Feature Comparison

CAN Microcontrollers. Application Note. Migrating from T89C51CC01 to AT89C51CC03. Feature Comparison Migrating from T89C51CC01 to AT89C51CC03 This application note is a guide to assist T89C51CC01 users in converting existing designs to the AT89C51CC03 devices. In addition to the functional changes, the

More information

AT697E. Application Note. Checking AT697E Code for Occurrence of LDF/FPOPd Instructions Sequence with a dependency on an Odd-Numbered Register

AT697E. Application Note. Checking AT697E Code for Occurrence of LDF/FPOPd Instructions Sequence with a dependency on an Odd-Numbered Register Checking AT697E Code for Occurrence of LDF/FPOPd Instructions Sequence with a dependency on an Odd-Numbered Register AT697E This application note provides AT697E users with a description of the procedure

More information

AT60142H/HT. Rad-Hard 512Kx8 Very Low Power CMOS SRAM ERRATA-SHEET. Active Errata List. Errata History. Abbreviations. 1.

AT60142H/HT. Rad-Hard 512Kx8 Very Low Power CMOS SRAM ERRATA-SHEET. Active Errata List. Errata History. Abbreviations. 1. AT60142H/HT Rad-Hard 512Kx8 Very Low Power CMOS SRAM ERRATA-SHEET Active Errata List 1. Reading Error Errata History Lot Number Errata List All AT60142H lots 1 All AT60142HT lots 1 Abbreviations ATE :

More information

SBAT90USB162 Atmel. SBAT90USB162 Development Board User s Manual

SBAT90USB162 Atmel. SBAT90USB162 Development Board User s Manual SBAT90USB162 Atmel AT90USB162 Development Board User s manual 1 1. INTRODUCTION Thank you for choosing the SBAT90USB162 Atmel AT90USB162 development board. This board is designed to give a quick and cost-effective

More information

Atmel AVR944: Atmel LED Driver Library for 8- bit AVR. 8-bit Atmel. Microcontroller. Application Note. Features. 1 Introduction

Atmel AVR944: Atmel LED Driver Library for 8- bit AVR. 8-bit Atmel. Microcontroller. Application Note. Features. 1 Introduction Atmel AVR944: Atmel LED Driver Library for 8- bit AVR Features Library to control the Atmel LED Driver MSLxxxx series of Atmel LED drivers Includes TWI library for Atmel XMEGA, megaavr - Compatible with

More information

USER GUIDE. Atmel QT1 Xplained Pro. Preface

USER GUIDE. Atmel QT1 Xplained Pro. Preface USER GUIDE Atmel QT1 Xplained Pro Preface Atmel QT1 Xplained Pro kit is an extension board that enables evaluation of self- and mutual capacitance mode using the Peripheral Touch Controller (PTC) module.

More information

APPLICATION NOTE. Atmel AT03261: SAM D20 System Interrupt Driver (SYSTEM INTERRUPT) SAM D20 System Interrupt Driver (SYSTEM INTERRUPT)

APPLICATION NOTE. Atmel AT03261: SAM D20 System Interrupt Driver (SYSTEM INTERRUPT) SAM D20 System Interrupt Driver (SYSTEM INTERRUPT) APPLICATION NOTE Atmel AT03261: SAM D20 System Interrupt Driver (SYSTEM INTERRUPT) ASF PROGRAMMERS MANUAL SAM D20 System Interrupt Driver (SYSTEM INTERRUPT) This driver for SAM D20 devices provides an

More information

Asynchronous SRAM Operating Voltage: 5V Read Access Time: 40 ns Write Cycle Time: 30 ns Very Low Power Consumption (Pre-RAD)

Asynchronous SRAM Operating Voltage: 5V Read Access Time: 40 ns Write Cycle Time: 30 ns Very Low Power Consumption (Pre-RAD) AT65609EHV Rad Hard, 5V, 128K x 8 Very Low Power CMOS SRAM DATASHEET Features Asynchronous SRAM Operating Voltage: 5V Read Access Time: 40 ns Write Cycle Time: 30 ns Very Low Power Consumption (Pre-RAD)

More information

AT91 ARM Thumb Microcontrollers. Application Note. AT91 Host Flash Loader. 1. Package Contents. 2. Definition of Terms. 3.

AT91 ARM Thumb Microcontrollers. Application Note. AT91 Host Flash Loader. 1. Package Contents. 2. Definition of Terms. 3. AT91 Host Flash Loader This application note describes the host Flash loader used to upload and program an application in the Flash memory of a Flash-based AT91 microcontroller. Flash-based AT91 devices

More information

AT11512: SAM L Brown Out Detector (BOD) Driver. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE

AT11512: SAM L Brown Out Detector (BOD) Driver. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE SMART ARM-based Microcontrollers AT11512: SAM L Brown Out Detector (BOD) Driver APPLICATION NOTE Introduction This driver for Atmel SMART ARM -based microcontrollers provides an interface for the configuration

More information

ATDH2200E Programming Kit... User Guide

ATDH2200E Programming Kit... User Guide ATDH2200E Programming Kit... User Guide Table of Contents Section 1 Atmel s ATDH2200E Configurator Programming Kit... 1-1 1.1 Features...1-1 1.1.1 Hardware...1-1 1.1.2 Software...1-1 1.1.3 System Contents...1-1

More information

AT17F Series. Application Note. Programming Circuits for AT17F Series Configurators with Xilinx FPGAs. 1. Introduction

AT17F Series. Application Note. Programming Circuits for AT17F Series Configurators with Xilinx FPGAs. 1. Introduction Programming Circuits for ATF Series s with Xilinx s. Introduction Atmel s ATF series Flash Configuration Memory devices use a simple serial-access procedure to configure one or more Xilinx Field Programmable

More information

USER GUIDE. Atmel QT6 Xplained Pro. Preface

USER GUIDE. Atmel QT6 Xplained Pro. Preface USER GUIDE Atmel QT6 Xplained Pro Preface Atmel QT6 Xplained Pro kit is a Xplained Pro extension board that enables the evaluation of a mutual capacitance touch suface using the Peripheral Touch Controller

More information

AT21CS Series Reset and Discovery. Introduction. Serial EEPROM APPLICATION NOTE

AT21CS Series Reset and Discovery. Introduction. Serial EEPROM APPLICATION NOTE Serial EEPROM AT21CS Series Reset and Discovery APPLICATION NOTE Introduction This application note discusses the Atmel AT21CS Series Reset function and the AT21CS Series Discovery function. Additionally,

More information

AT03255: SAM D/R/L/C Serial Peripheral Interface (SERCOM SPI) Driver. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE

AT03255: SAM D/R/L/C Serial Peripheral Interface (SERCOM SPI) Driver. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE SMART ARM-based Microcontrollers AT03255: SAM D/R/L/C Serial Peripheral Interface (SERCOM SPI) Driver APPLICATION NOTE Introduction This driver for Atmel SMART ARM -based microcontrollers provides an interface

More information

AVR based 125kHz RFID Evaluation Kit (Re)Programming Guide ATA2270-EK1. Overview. Fuse Settings: ISP Programming

AVR based 125kHz RFID Evaluation Kit (Re)Programming Guide ATA2270-EK1. Overview. Fuse Settings: ISP Programming Overview Atmel encourages the use of this kit to develop a prototype platform for evaluation of the intended application. The source code is included in the CD with the kit, but for the latest revision

More information

USER GUIDE. Atmel maxtouch Xplained Pro. Preface

USER GUIDE. Atmel maxtouch Xplained Pro. Preface USER GUIDE Atmel maxtouch Xplained Pro Preface Atmel maxtouch Xplained Pro is an extension board to the Atmel Xplained Pro evaluation platform. The board enables the user to experiment with user interface

More information

32Kbytes on-chip SRAM Up to 256Kbytes external SRAM

32Kbytes on-chip SRAM Up to 256Kbytes external SRAM Atmel ATPL210A Features PRIME compliant Power Line Communications SoC SUMMARY DATASHEET Core ADD8051C3A enhanced 8051 core Speedups up to x5 vs. standard 8051 microcontroller Modem Power Line Carrier Modem

More information

QT3 Xplained Pro. Preface. Atmel QTouch USER GUIDE

QT3 Xplained Pro. Preface. Atmel QTouch USER GUIDE Atmel QTouch QT3 Xplained Pro USER GUIDE Preface The Atmel QT3 Xplained Pro is an extension board, which enables the evaluation of a capacitive touch 12 key numpad in mutual capacitance configuration.

More information

APPLICATION NOTE. Atmel QT4 Xplained Pro User Guide ATAN0114. Preface

APPLICATION NOTE. Atmel QT4 Xplained Pro User Guide ATAN0114. Preface APPLICATION NOTE Atmel QT4 Xplained Pro User Guide ATAN0114 Preface Atmel QT4 Xplained Pro kit is an extension board that enables evaluation of self-capacitance mode proximity and touch using the peripheral

More information

APPLICATION NOTE. AT6486: Using DIVAS on SAMC Microcontroller. SMART ARM-Based Microcontroller. Introduction. Features

APPLICATION NOTE. AT6486: Using DIVAS on SAMC Microcontroller. SMART ARM-Based Microcontroller. Introduction. Features APPLICATION NOTE AT6486: Using DIVAS on SAMC Microcontroller SMART ARM-Based Microcontroller Introduction DIVAS stands for Division and Square Root Accelerator. DIVAS is a brand new peripheral introduced

More information

USER GUIDE. ATmega168 Xplained Mini User Guide. Introduction

USER GUIDE. ATmega168 Xplained Mini User Guide. Introduction USER GUIDE ATmega168 Xplained Mini User Guide Introduction This user guide describes how to get started with the Atmel ATmega168 Xplained Mini board. The ATmega168 Xplained Mini evalutation kit is a hardware

More information

AVR134: Real Time Clock (RTC) Using the Asynchronous Timer. Features. Introduction. AVR 8-bit Microcontrollers APPLICATION NOTE

AVR134: Real Time Clock (RTC) Using the Asynchronous Timer. Features. Introduction. AVR 8-bit Microcontrollers APPLICATION NOTE AVR 8-bit Microcontrollers AVR134: Real Time Clock (RTC) Using the Asynchronous Timer APPLICATION NOTE Features Real Time Clock with Very Low Power Consumption (10µA @ 3.3V) Very Low Cost Solution Adjustable

More information

EE 456 Fall, Table 1 SPI bus signals. Figure 1 SPI Bus exchange of information between a master and a slave.

EE 456 Fall, Table 1 SPI bus signals. Figure 1 SPI Bus exchange of information between a master and a slave. EE 456 Fall, 2009 Notes on SPI Bus Blandford/Mitchell The Serial Peripheral Interface (SPI) bus was created by Motorola and has become a defacto standard on many microcontrollers. This is a four wire bus

More information

CAN, 80C51, AVR, Microcontroller. Application Note

CAN, 80C51, AVR, Microcontroller. Application Note Migrating from Atmel C51/CAN: T89C51CC01, AT89C51CC03 To Atmel AVR/CAN: AT90CAN128, AT90CAN64, AT90CAN32 Introduction This application note is a guide, on the CAN controller, to help current T89C51CC01,

More information