Application note for In-System Programming of IIC Serial EEPROMs

Similar documents
PC2400 EEPROM PROGRAMMER INSTRUCTION MANUAL

WICE-SPI Hardware Operation Manual

Allows the user to protect against inadvertent write operations. Device select and address bytes are Acknowledged Data Bytes are not Acknowledged

The Programming Interface

M68EVB908QL4 Development Board for Motorola MC68HC908QL4

Fiber Optic Monitor and Control Evaluation Kit

Designing VM2 Application Boards

Introducing AVR Dragon

Pmod peripheral modules are powered by the host via the interface s power and ground pins.

ISP Engineering Kit Model 300

Data Sheet. Adaptive Design ltd. Arduino Dual L6470 Stepper Motor Shield V th November L6470 Stepper Motor Shield

MARTECH SPI Tools. MARTECH SPI Tools User Manual v1.0. User Manual

POCKET SCOPE 2. The idea 2. Design criteria 3

AN2680 Application note

UniPi technical documentation REV 1.1

Arduino Due Back. Warning: Unlike other Arduino boards, the Arduino Due board runs at 3.3V. The maximum. Overview

_ v1.0. EVB-56x Evaluation & Development Kit for Motorola PowerPC MPC56x Microcontrollers USERS MANUAL. isystem, February /8.

ET-BASE AVR ATmega64/128

- 35mA Standby, mA Speaking pre-defined phrases with up to 1925 total characters.

Arduino ADK Back. For information on using the board with the Android OS, see Google's ADK documentation.

ARDUINO SEVERINO SERIAL SINGLE SIDED VERSION 3 S3v3 (REVISION 2) USER MANUAL

8-bit RISC Microcontroller. Application Note. AVR910: In-System Programming

Elettronica dei Sistemi Digitali Costantino Giaconia SERIAL I/O COMMON PROTOCOLS

CHAPTER 11: Flip Flops

Single 2.5V - 3.6V or 2.7V - 3.6V supply Atmel RapidS serial interface: 66MHz maximum clock frequency. SPI compatible modes 0 and 3

NB3H5150 I2C Programming Guide. I2C/SMBus Custom Configuration Application Note

Raspberry Pi. Hans- Petter Halvorsen, M.Sc.

revolution Contents: Introduction Power 28-pin Project Board with input/output cables

SPI I2C LIN Ethernet. u Today: Wired embedded networks. u Next lecture: CAN bus u Then: wireless embedded network

PHYS 2P32 Project: MIDI for Arduino/ 8 Note Keyboard

TURBO PROGRAMMER USB, MMC, SIM DEVELOPMENT KIT

E-Blocks Easy Internet Bundle

Thermostat Application Module Kit

DS1307ZN. 64 x 8 Serial Real-Time Clock

Serial port interface for microcontroller embedded into integrated power meter

How To Use An Ams 5812 Pressure Sensor With A Usb Starter Kit

User s Manual of Board Microcontroller ET-MEGA2560-ADK ET-MEGA2560-ADK

ABB Drives. User s Manual HTL Encoder Interface FEN-31

TNM Programmer User Manual. For Windows 7 / Vista / XP. TNM Electronics Ltd.

Hardware Connections between Arduino and IMU Nori Wilkins Apr. 5, 2013

PICNet 1. PICNet 1 PIC18 Network & SD/MMC Development Board. Features. Applications. Description

RC2200DK Demonstration Kit User Manual

STK User Guide

AN Level shifting techniques in I 2 C-bus design. Document information

Welcome to the tutorial for the MPLAB Starter Kit for dspic DSCs

The I2C Bus. NXP Semiconductors: UM10204 I2C-bus specification and user manual HAW - Arduino 1

Serial Communications

In-System Programming Design TM. Guidelines for ispjtag Devices. Introduction. Device-specific Connections. isplsi 1000EA Family.

DK40 Datasheet & Hardware manual Version 2

Web Site: Forums: forums.parallax.com Sales: Technical:

DS1621 Digital Thermometer and Thermostat

ELK-MM443. Magic Module Automation Controller

BE635 User Manual. Rev. V Bolymin, Inc. All Rights Reserved.

Real Time Clock USB Evaluation Board V3.0

JTAG-HS2 Programming Cable for Xilinx FPGAs. Overview. Revised January 22, 2015 This manual applies to the HTAG-HS2 rev. A

MODULE BOUSSOLE ÉLECTRONIQUE CMPS03 Référence :

Accessing I2C devices with Digi Embedded Linux 5.2 example on Digi Connect ME 9210

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

AC-PG-USBASP USBASP AVR Programmer

EvB 5.1 v5 User s Guide

Using the Agilent 3070 Tester for In-System Programming in Altera CPLDs

1-Port R422/485 Serial PCIe Card

WIZ-Embedded WebServer User s Manual (Ver. 1.0)

DS12885, DS12885Q, DS12885T. Real Time Clock FEATURES PIN ASSIGNMENT

USING I2C WITH PICAXE

BIOS and CMOS. Overview. The Function of BIOS. The Bus

SPI and JTAG In-System Programming (ISP) guidelines for the Atmel ATmega AVR FLASH Microcontroller Family

DKWF121 WF121-A B/G/N MODULE EVALUATION BOARD

USB2.0 <=> I2C V4.4. Konverter Kabel und Box mit Galvanischetrennung

Adafruit SHT31-D Temperature & Humidity Sensor Breakout

BP-2600 Concurrent Programming System

Advanced Data Capture and Control Systems

Programming Flash Microcontrollers through the Controller Area Network (CAN) Interface

Switch board datasheet EB

DS1621 Digital Thermometer and Thermostat

Adafruit MCP9808 Precision I2C Temperature Sensor Guide

Modbus Communications for PanelView Terminals

Road Vehicles - Diagnostic Systems

R10 22k. R9 10k PICAXE-08M RXD. Sample Program: main: high 4 pause 1000 low 4 pause 1000 goto main R7 330 D7 LED-RED.

AVR Butterfly Training. Atmel Norway, AVR Applications Group

8-Bit Microcontroller with Flash. Application Note. Using a Personal Computer to Program the AT89C51/C52/LV51/LV52/C1051/C2051

P&E Microcomputer Systems, Inc. P.O. Box 2044, Woburn, MA 01888, USA

1000BASE-T and 10/100/1000BASE-T Copper SFP Transceiver

PACKAGE OUTLINE DALLAS DS2434 DS2434 GND. PR 35 PACKAGE See Mech. Drawings Section

Security & Chip Card ICs SLE 44R35S / Mifare

The modular concept of the MPA-3 system is designed to enable easy accommodation to a huge variety of experimental requirements.

Application Note, V2.2.1, July 2003 AP OCDS Level 1 JTAG Connector. 16-Bit & 32-Bit Microcontrollers. AI Microcontrollers. Never stop thinking.

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

DTSB35(53)12L-CD20 RoHS Compliant 1.25G 1310/1550nm(1550/1310nm) 20KM Transceiver

DS Wire Digital Thermometer and Thermostat

EMP-20 Device Programmer

A universal forensic solution to read memory chips developed by the Netherlands Forensic Institute. The NFI Memory Toolkit II

FM4100 USER MANUAL V1.4

M25P05-A. 512-Kbit, serial flash memory, 50 MHz SPI bus interface. Features

SyncLink GT2/GT4 Serial Adapter

LAB #3 VHDL RECOGNITION AND GAL IC PROGRAMMING USING ALL-11 UNIVERSAL PROGRAMMER

Introduction the Serial Communications Huang Sections 9.2, 10.2 SCI Block User Guide SPI Block User Guide

CAN bus board. EB018

Block 3 Size 0 KB 0 KB 16KB 32KB. Start Address N/A N/A F4000H F0000H. Start Address FA000H F8000H F8000H F8000H. Block 2 Size 8KB 16KB 16KB 16KB

Features INSTRUCTION DECODER CONTROL LOGIC AND CLOCK GENERATORS COMPARATOR AND WRITE ENABLE EEPROM ARRAY READ/WRITE AMPS 16

Transcription:

Application note for In-System Programming of IIC Serial EEPROMs Version 05/2006 1

General overview of serial memories There exist a lot of variations of serial programmable memories, which can be divided by capacity (from few bytes to mega bytes), manufacturing technology (EPROM, EEPROM, FLASH), organization (x8, x16), package type (DIP, SOIC, TSSOP, MLF, SON,...), pins count and alignment, special features (protection against inadvertent writes),... so you should be familiar with the device to know its operation and features before you start working with it. Considering the ISP programming, the major aspect to sort serial memories, is a type of used communication protocol: IIC (Inter Integrated Circuit), SPI (Serial Peripheral Protocol), MW (Micro Wire), JTAG (Joint Test Action Group). This Application Note discusses the IIC serial EEPROM memories. Version 05/2006 2

About IIC Serial EEPROMs IIC is a type of bi-directional 2-wire bus for inter-ic control. Each device connected to the bus is recognized by a unique address [A2, A1, A0] which is transmitted as a part of control word and compared with signal levels on hard wired pins (A2, A1, A0) of device. The communication interface of IIC devices represents signals SDA (Serial Data) and SCL (Serial Clock), which are internally connected as open collector (open drain). It means, that SDA and SCL wires of IIC bus needs to be driven with pull-up resistor (PU), to get ability to provide H level. Some IIC devices have HW write protection capability applicable on device memory. While the WP (PRE, WC\) signal is active, the data inside of protected area can not be altered. For further informations about write protected address range, please refer to technical specification of programmed EEPROM Datasheet (DS). VCC and are used to supply voltage connection. Signals: Pin name Function Description Signal level VCC WP (PRE, WC\) A2, A1, A0 SDA SCL power control communication device power supply common ground Write Protect (PRotect Enable, Write Control) device system address data input/output, open collector (open drain) clock signal, open collector (open drain) 1.8 5.5 (V) 0 (V) H, L H, L L, Pull-Up NC not connected DC don't connect Pinouts: Table 1. IIC device signals description Figure 1. Standard pinout Figure 2. Alternative pinouts Version 05/2006 3

Adaptation of target system for ISP Following text contains important notices related to correct ISP connection of in-system programmed EEPROM. Respecting this, may prevent you from undesirable signal interference on pins SDA/SCL of programmer and target system which often results in unsuccessful course of ISP operation. Detailed information about ISP pin-driver capability and pins assign is listed in control program PG4UW of programmers (see Figure 6). ISP connector target device target system SDA SDA+ *1 SCL SCL+ *1 target WP check only target VCC check only C1 22n VCC I1 VCC SDA SCL *2 J1 J2 RP1 RP2 WP A0 A1 A2 Figure 3. Circuit design SDA, SDA+, SCL, SCL+ These pins have to be driven with pull-up resistors RP1, RP2. Values must meet the IIC bus specification, otherwise the device may have problems with signal level recognition. (*1): The programmer can provide a "stronger" ("better L level") SDA/SCL signals from ISP driver, by interconnecting of coupled signals SDA, SDA+ and SCL, SCL+. (*2): If you have RP1 and RP2 resistors too low (approx. below 1.5kΩ), the programmer is not able to provide the sufficient L level at SDA/SCL pins, you have to isolate SDA and SCL signals of programmed chip (by jumpers J1, J2, for example). At this case, the programmer provides pull-up resistors for SDA/SCL pins (see Figure 3). A2, A1, A0 Device address on IIC bus, hardwired to desired level H/L. control program provides an option to select this address which have to be sent during communication (see Figure 5). WP (PRE, WC\) Write Protect pin, must be set to inactive level while programming the device. The programmer uses this signal to test the WP pin level before programming the chip. VCC Power supply for programmed device must be supplied from target system. The programmer uses this signal only to test, if the target memory is powered. You can omit to connect this signal, and disable VCC sense. Common ground for programmer and target system. Version 05/2006 4

Operating with device Device operation options: Most of the programmers offer an option to supply power for target system. If you want to use it, you must set up at least basic parameters. You can do it through menu Device Options <Alt+O> - in next <Alt+O> (see Figure 4). Voltage level limitation of logical H signal is derived from target memory VCC, set in Supply voltage edit box (value 3300mV, Figure 4). Figure 4. ISP target supply parameters setting <Alt+O> If the programmed EEPROM have the A2 A0 address inputs, you have to set the value in section IIC special parameters <Alt+O>, according to device address A2, A1, A0 in system. There exist a few devices which offer IIC address selection, and which haven't implemented this option in control program. In this case, programming algorithm has set combination A2, A1, A0 to [000]b. Values quoted (in DS) as X (Don't Care) are also interpreted as [0]b. In case of unfavourable communication conditions (longer wires, interfering environment, interference between signal from programmer and system...) you can decrease clock frequency used for communication by steps defined in IIC bus specification. Default value is set to maximum supported by selected EEPROM. Figure 5. IIC special parameters setting <Alt+O> For further description of ISP parameters, please take a look at menu Help by pressing the <F1> key, while the window <Alt+O> is opened. Version 05/2006 5

Device info (Ctrl+F1): The following window contains reduced information from this application note and details about pins assign for each programmer with short description of circuit design (see Figure 6). Figure 6. Device info Version 05/2006 6

Good advices and troubleshooting Connecting programmer to system: Turn off power supply of system before connecting/ disconnecting programmer to/from system. Before starting an operation: Before starting an operation with target memory, please make sure, that the ISP cable is correctly connected to the target system and programmer. Also make sure that no device is inserted to ZIF socket of the programmer. If you want to program the device, please make sure, that signal WP (PRE, WC\) will not be active during the action. Details about pins assign for each programmer and short description of circuit design can be found in control program (Device Info <Ctrl+F1>). Device pins marked NC (Not Connected) or DC (Don't Connect!) should be left unconnected. Also leave unconnected the pins of ISP connector marked Don't Connect!. Correctly selected values of pull-up resistors on SDA/SCL wires of IIC bus can provide reliable signal level recognition (for both, programmer and system) and successfulness of desired operation. Please make sure, that your design meets IIC bus recommendations (see also Adaptation of system for ISP, page 4). If something went wrong: If programmer reports signal interference error, may be, a signal interference occurred between programmer and system. Please make sure, your design meets IIC bus recommendations. Check the minimal value of PU resistors on SDA/SCL wires from programmer's point of view (in order to programmer be able to put L level on the pin). If you haven't yet interconnected the signals SDA, SDA+ and SCL, SCL+ of ISP connector, please do that, and try to repeat desired operation. If operation result still reports errors, please try to decrease clock frequency and repeat last operation (<Alt+O>). Be aware, that longer ISP cable (longer than 20cm/0,7ft) may cause an unpredictable signal interference. Make sure you are using correct cable. Version 05/2006 7

Used abbreviations AN Application Note. DIP, SOIC, TSSOP, MLF, SON type of device package. EEPROM (Electrical Erasable Programmable Read Only Memory) type of memory. HW WP (Hardware Write Protect) write protect feature. It's realized via appropriate signal level on device pin, not by setting some WP register. IIC (Inter Integrated Circuit) type of communication protocol, communication bus, IIC bus is registrated trademark of Philips Semiconductors Corporation. ISP (In System Programming) programming of device inserted into system. JTAG (Joint Test Action Group) an acronym for Joint Test Action Group, is the usual name used for the IEEE 1149.1 standard for Test Access Port and Boundary Scan, primarily used for testing integrated circuits, but also useful as a mechanism for debugging embedded systems. MW (MicroWire) type of communication protocol, MICROWIRE is registrated trademark of National Semiconductor, Corp. Open collector/drain type of used interface, collector/drain of transistor creates an output. In order to be output able to set H level, the device needs to be supplied with constant PU on the pin. Pull Up (PU)/Pull Down (PD) increase/decrease of signal level by connecting PU/PD resistor to VCC/. SPI (Serial Peripheral Interface) type of communication protocol, SPI is registrated trademark of Motorola Corporation. ZIF (Zero Insertion Force) type of socket, used in programmer for better manipulation with device. Version 05/2006 8

Revision history 05/2006: Changes of figures: Fig. 3 Circuit design minor changes Fig. 6 Device info minor changes 06/2005: Added sections: Revision history this section. Other: added abbreviation AN, changes in Device operation options section 02/2005: Changes of terms: target device to AN specific serial EEPROM or EEPROM, target application to target system. Changes of figures: Fig. 3 Circuit design added comment marked as (*2), Fig. 4 ISP target supply parameters setting shows different values selected in edit box. 01/2005: Initial Release. Version 05/2006 9