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

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

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

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

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

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

APPLICATION NOTE. Generating Random Secrets. ATSHA204A, ATECC108A, and ATECC508A. Description. Topics

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

QT3 Xplained Pro. Preface. Atmel QTouch USER GUIDE

APPLICATION NOTE. 3-lead CONTACT Package Usage. ATSHA204A, ATECC108A, and ATECC508A. Introduction. 3-lead CONTACT Package

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

APPLICATION NOTE. How to Securely Switch Atmel s LIN Transceiver ATA6662/ATA6662C to Sleep Mode ATA6662/ATA6662C. Concerning Atmel ATA6662

Ethernet1 Xplained Pro

EDBG. Description. Programmers and Debuggers USER GUIDE

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

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

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

USER GUIDE. Atmel QT6 Xplained Pro. Preface

This user guide describes how to run the Atmel ATWINC3400 Bluetooth Low Energy (BLE) Provisioning demo from out-of-box conditions.

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

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

ATtiny817 QTouch Moisture Demo User Guide. Description. Features. AVR 8-bit Microcontrollers USER GUIDE

64K (8K x 8) Battery-Voltage Parallel EEPROM with Page Write and Software Data Protection AT28BV64B

AT88CK101 HARDWARE USER GUIDE. Atmel CryptoAuthentication Development Kit. Atmel CryptoAuthentication AT88CK101 Daughterboard

ATECC508A Public Key Validation. Introduction. Atmel CryptoAuthentication APPLICATION NOTE

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

QT2 Xplained Pro. Preface. Atmel QTouch USER GUIDE

APPLICATION NOTE. AT04470: Differences between SAM D21 Variants A, B, and L. 32-bit Microcontroller. Introduction

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

APPLICATION NOTE. AT05567: TC Capture on External Interrupt with the Event System on SAM D20. Preface ASF PROJECT DOCUMENTATION

Native route discovery algorithm

AVR42772: Data Logger Demo Application on XMEGA A1U Xplained Pro. Introduction. Features. AVR XMEGA Microcontrollers APPLICATION NOTE

APPLICATION NOTE. CryptoAuthentication Personalization Guide. ATSHA204A and ATECC508A. Introduction. Features

USER GUIDE. ATWINC1500 Xplained Pro. Preface

Smart RF Device Family - Getting Started Guide. Features. Description. References ATAN0115 APPLICATION NOTE

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

Single-Wire, I/O Powered 1-Kbit (128 x 8) Serial EEPROM with a Unique, Factory-Programmed 64-Bit Serial Number

DGILib USER GUIDE Atmel-42771A-DGILib_User Guide-09/2016

ATtiny104 Xplained Nano. Preface. AVR 8-bit Microcontrollers USER GUIDE

SAM4 Reset Controller (RSTC)

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

USER GUIDE. Atmel OLED1 Xplained Pro. Preface

APPLICATION NOTE. Atmel AT02260: Driving AT42QT1085. Atmel QTouch. Features. Description

SAMA5D2 Quad SPI (QSPI) Performance. Introduction. SMART ARM-based Microprocessor APPLICATION NOTE

AT17F040A and AT17F080A

I/O1 Xplained Pro. Preface. Atmel MCUs USER GUIDE

Figure 1. Single-Wire Graphical User Interface

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

APPLICATION NOTE. AT07216: SAM G55 Schematic Checklist. Atmel SMART SAM G55. Introduction

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

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

USER GUIDE. Atmel QT1 Xplained Pro. Preface

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

USER GUIDE EDBG. Description

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

USER GUIDE. Atmel Segment LCD1 Xplained Pro. Preface

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

APPLICATION NOTE. Scope. Reference Documents. Software Ethernet Bridge on SAMA5D3/D4. Atmel SMART SAMA5D3/D4 Series

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

USER GUIDE. Atmel maxtouch Xplained Pro. Preface

AT17LV65A (1), AT17LV128A (1), AT17LV256A (1) AT17LV512A, AT17LV010A, AT17LV002A

AT88RF04C. CryptoRF EEPROM Memory 13.56MHz, 4 Kilobits SUMMARY DATASHEET. Features

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

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

USER GUIDE. ZigBit USB Stick User Guide. Introduction

Atmel ATtiny1634 MCU Atmel ATA SBC LIN transceiver with integrated voltage regulator Touch. Three Atmel QTouch buttons One Atmel QTouch slider

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

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

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

USER GUIDE. Atmel PROTO1 Xplained Pro. Preface

AT88SC3216CRF. CryptoRF EEPROM Memory 13.56MHz, 32 Kilobits SUMMARY DATASHEET. Features

ATECC108. Atmel CryptoAuthentication SUMMARY DATASHEET. Features. Applications NOT RECOMMENDED FOR NEW DESIGNS. Replaced by ATECC108A

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

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

Interfacing the internal serial EEPROM

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

8-bit Microcontroller with 2K/4K/8K Bytes In-System Programmable Flash. Appendix A. Preliminary. ATtiny261 ATtiny461 ATtiny861 Automotive

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

SMART ARM-based Microcontrollers ATSAMD21E16LMOTOR USER GUIDE

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

AT02667: XMEGA-E5 Xplained Hardware User's Guide. Features. Description. AVR XMEGA Microcontrollers APPLICATION NOTE

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

Application Note Using the ATV750, ATV750B, and ATF750C Erasable Programmable Logic Device Introduction 1.1 Device Names and Pin/Node Assignments

MIC1832. General Description. Features. Applications. Typical Application

ATZB-SAMR21-XPRO. Preface. SmartConnect USER GUIDE

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

AN2672 Application note

MySonicWall Secure Upgrade Plus

STK521. User Guide B AVR 01/12

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

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

Atmel QT600 Quick Start Guide Touch Solutions

APPLICATION NOTE. AT03197: Thermostat with Touch and Wireless Connectivity Hardware User's Guide. Atmel 32-bit Microcontroller. Description.

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

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

Atmel CryptoAuthentication Starter Kit

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

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

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

RELEASE NOTES. GNU Toolchain for Atmel ARM Embedded Processors. Introduction

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

Transcription:

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, a comparison between the Atmel Single-Wire Discovery event and the Maxim/Dallas One- Wire discovery event is discussed to facilitate the understanding of which device type is on the bus.

Table of Contents Introduction...1 1. Overview...3 1.1. Atmel Single-Wire Protocol and the AT21CS Series...3 1.2. Device Reset/Power-up and Discovery Response...3 2. Atmel Single-Wire Reset/Discharge and Discovery Response Waveform... 4 3. Atmel Single-Wire and Maxim One-Wire Discovery Difference...8 4. Revision History...10 2

1. Overview 1.1. Atmel Single-Wire Protocol and the AT21CS Series The AT21CS Series has only two pins, GND and SI/O. The SI/O pin is the only signal between the Master microcontroller and the Slave (the AT21CS Series) hence the name Atmel Single-Wire. The SI/O signal is pulled high using an external pull-up resistor that is tied to the Master s power source. The SI/O signal must idle (rest) at a high state due to the pull up. The open collector (open drain) Master I/O port pin must signal the Slave by pulling SI/O low as seen in the Atmel Single-Wire protocol. Since there is no reset signal pin, the Reset event is achieved as defined in the Atmel Single-Wire protocol. Even though there is no V CC (power pin), the AT21CS Series extracts power from the Atmel Single-Wire protocol sent to it. Data sent to the device over the Single-Wire bus is interpreted by the state of the SI/O pin during specific time intervals or slots. 1.2. Device Reset/Power-up and Discovery Response A Reset and Discovery Response sequence is used by the Master to reset the device, as well as to perform a general bus call to determine if any devices are present on the bus. This sequence is comprised of two events, a Reset/Discharge event followed by a Discovery query. The AT21CS Series responds to the Discovery query if the SI/O signal was previously held low for a sufficient amount of time to create a Reset event or a Discharge event. The Reset event is needed to enable the Discovery response from the AT21CS Series as defined in the Atmel Single-Wire protocol. If the AT21CS Series is busy internally executing a command, the Reset event is ignored, and therefore the device does not respond to the Discovery query. The application firmware should utilize the Reset event if the system experienced uncontrolled power brown out events while the device was idle. After power has stabilized, a forced Reset event guarantees the device is ready for operation. A Discharge event also enables the Discovery response from the AT21CS Series. The Discharge event requires the Master to hold SI/O low for a longer time than for the Reset event. The Discharge event is utilized to override the internal busy state of the device by depleting the internally stored charge necessary for device internal operation. Note: A Discharge event immediately stops completion of any internal operation. The user should not expect the interrupted operation to have been completed properly. Atmel recommends utilizing only the Discharge event to immediately stop any internal AT21CS Series operations. The AT21CS Series Discovery response is a feature that distinguishes Atmel Single-Wire devices from other One-Wire protocol devices on the market. The Atmel AT21CS Series Discovery sequence is detailed in the AT21CS Series datasheet. Atmel recommends utilizing this sequence if the system has a mix of One-Wire protocol devices. 3

2. Atmel Single-Wire Reset/Discharge and Discovery Response Waveform Figure 2-1. Reset and Discovery Response Waveform MASTER AT21CS01 PULL-UP RESISTOR t PUP t HTSS SI/O V IH V IL t DRR Master Sampling Window Begin Next Command with Start Condition t RESET / t DSCHG t RRT t MSDR t DACK 1 2 3 4 5 6 7 When the system first powers up, the AT21CS Series is in a standby mode waiting for the Master to send the Discovery protocol. Event 1 The SI/O signal is pulled high by the pull up resistor. At power-up, SI/O follows the V CC rampup waveform. This waveform begins after system power is stable. Event 2 Master initiates a reset by holding SI/O low for t RESET, and then releasing SI/O (stop driving low). Alternately, the Master can hold SI/O low for t DSCHG to interrupt an internal operation, and then release SI/O. Event 3 SI/O transitions to the high state after the Master releases SI/O. After the time specified by t RRT (Reset Recovery Time), the Master drives SI/O low to request a Discovery Response Acknowledge from the slave device. Event 4 The Master continues holding SI/O low for during the entire t DRR interval. Event 5 The slave device detects SI/O low within the t DRR interval and concurrently holds SI/O low for t DACK. The slave device releases SI/O after t DACK. Event 6 The Master samples SI/O state at t MSDR. Since t DACK is longer than t MSDR, the Master sees the correct state on SI/O before the Slave device releases SI/O at the end of t DACK. A low inside this window means that the Slave AT21CS Series is present on the bus. Event 7 The Master must wait for t HTSS to create a Start condition before continuing with the first command. The Atmel AT21CSMK100 Single-Wire Memory Product Evaluation Kit was utilized to make oscilloscope captures to illustrate the AT21CS01 reset/discovery response. The duration of the measured datasheet parameters are seen in the waveform measurement window to the top right of a capture. Note: The DC low level when the Atmel AT90USB1287 host microcontroller in the AT21CSMK100 Kit is driving the SI/O bus low is slightly higher (still a good V IL level) than when the AT21CS is driving SI/O low. This is due to the I/O driver strength of the host and the slave. The waveforms were made at pins 5 (SI/O) and 9 (GND) of the AT21CSMK100 Kit slave socket board. 4

Figure 2-2. Datasheet t RESET / t DSCG Measurement 5

Figure 2-3. Datasheet t RRT Measurement 6

Figure 2-4. Datasheet t DACK Measurement 7

3. Atmel Single-Wire and Maxim One-Wire Discovery Difference When initiating communications with both an Atmel Single-Wire device and a Maxim One-Wire device, the Master must drive the I/O signal low (reset/discharge) to begin the Discovery query. After the I/O signal is driven low for the required reset/discharge time, the Master releases the I/O signal. The Atmel device expects the Master to initiate a low on the I/O signal to query for a Discovery Response in comparison to the Maxim device which initiates the low I/O signal to acknowledge it is present on the bus. Therefore, the Master can easily determine which single-wire slave is on the bus by sampling the state of the I/O signal within t MSDR. If the Master initiated the low on the I/O signal and Atmel is present, the I/O signal is low. If the Master did not initiate the low on the I/O signal and the I/O signal is low, Maxim is present. Figure 3-1. Single-Wire and Maxim One-Wire Discovery Flow Master Drive I/O Signal Low for Reset/Discharge Time. Master Releases I/O Signal Wait Recovery Period Check of for Maxim device by sampling I/O signal for < V IL within t MSP(max 10us) Was I/O Low? YES Maxim One-Wire Device Detected. Continue with Maxim Software/Protocol. NO Look for Atmel Device: Drive I/O Low for t DRR (1µs minimum) Sample for I/O < V IL within t MSDR (2-6µs) 8

Table 3-1. Reset and Discovery Response Timing Standard Speed (1) High Speed Symbol Parameter and Condition Min Max Min Max Units treset Reset Low Time, Device in Inactive State 480 48 µs tdschg Discharge Low Time, Device in Active Write Cycle (twr) 150 150 µs trrt Reset Recovery Time N/A N/A 8 µs tdrr Discovery Response Request N/A N/A 1 2 - tpup (2) µs tdack Discovery Response Acknowledge Time N/A N/A 8 24 µs tmsdr Master Strobe Discovery Response Time N/A N/A 2 6 µs thtss SI/O High Time for Start / Stop Condition N/A N/A 150 µs Note: 1. Due to the fact that the device defaults to High Speed Mode upon reset, the Reset and Discovery Response Timing after t RESET does not apply for Standard Speed Mode. High Speed Mode timing applies in all cases after t RESET. 2. t PUP is the time required once the SI/O line is released to be pulled up from V IL to V IH. This value is application specific and is a function of the loading capacitance on the SI/O line as well as the R PUP chosen. 3. AC measurement test conditions for the table above: Loading capacitance on SI/O: 100pF R PUP (bus line pull-up resistor to V PUP ): 1kΩ; V PUP : 2.7V 9

4. Revision History Doc Rev. Date Comments A 02/2016 Initial document release. 10

Atmel Corporation 1600 Technology Drive, San Jose, CA 95110 USA T: (+1)(408) 441.0311 F: (+1)(408) 436.4200 www.atmel.com 2016 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. 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. 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 of nuclear facilities and weapons systems. Atmel products are not designed nor intended for use in military or aerospace applications or environments unless specifically designated by Atmel as military-grade. Atmel products are not designed nor intended for use in automotive applications unless specifically designated by Atmel as automotive-grade.