PROGRAMMING THE MSC1210

Similar documents
Maximizing Endurance of MSC1210 Flash Memory

TFP101, TFP201, TFP401, TFP401A 2Pix/Clk Output Mode

Techniques for Profiling on ROM-Based Applications

Debugging Shared Memory Systems

Increase Current Drive Using LVDS

This document describes the features of the GUI program used to control Power Line Modem with E-Meter Platform.

TMS320C64x DSP Peripheral Component Interconnect (PCI) Performance

INVENTORY HISTORY REPORT EXTENSION. User Guide. User Guide Page 1

Using the TMS320C5509 USB Bootloader

CUSTOM GOOGLE SEARCH. User Guide. User Guide Page 1

I2C and the TAS3001C. Introduction. The I2C Protocol. Digital Audio Group ABSTRACT

Configuring Code Composer Studio for OMAP Debugging

TMS470R1x External Clock Prescale (ECP) Reference Guide

FlashBurn: A DSK Flash Memory Programmer

INVENTORY REPORT EXTENSION. User Guide. User Guide Page 1

ADD RELATED PRODUCTS TO CART. User Guide. User Guide Page 1

PCIxx12 Single Socket CardBus Controller with Integrated 1394a-2000 OHCI Two-Port PHY/Link-Layer Controller

Hardware UART for the TMS320C3x

TMS320C6000 DSP Software-Programmable Phase-Locked Loop (PLL) Controller Reference Guide

Table 1. Proper Termination of Unused (Port) Pins in a Single-Port PSE System

EV Software Rev Evaluation System User Guide. Introduction. Contents. Hardware and Software Setup. Software Installation

A DSP/BIOS AIC23 Codec Device Driver for the TMS320C5510 DSK

Stereo Dac Motherboard application information

IMPORT/EXPORT Newsletter Subscribers. User Guide. User Guide Page 1

Application Report. 1 Hardware Description. John Fahrenbruch... MSP430 Applications

C Fast RTS Library User Guide (Rev 1.0)

Texas Instruments Voltage-Level-Translation Devices

IndoTraq Development Kit 1: Command Reference

PMC to PCI Express Adapter with JN4 Connector Breakout

TMS320C620x/C670x DSP Boot Modes and Configuration Reference Guide

TMS320UC5409/TMS320VC5409 Digital Signal Processors Silicon Errata

Application Report. 1 Introduction. MSP430 Applications. Keith Quiring... ABSTRACT

NO P.O. BOXES ALLOWED AT CHECKOUT. User Guide. User Guide Page 1

COMMUNICATIONS WITH THE MULTI- CHANNEL HOST P RT INTERFACE

SN65DSI86 SW Examples

TMS320C6000 DSP 32-Bit Timer Reference Guide

SavvyCube Ecommerce Analytics Connector by MageWorx. User Guide

Using Endianess Conversion in the OMAP5910 Device

Application Report. Low-Power Wireless. Shreharsha Rao... ABSTRACT

TMS320VC5409A Digital Signal Processor Silicon Errata

Protecting the TPS25810 from High Voltage DFPs

System-on-Chip Battery Board User s Guide

TLK10081 EVM Quick Start Guide Texas Instruments Communications Interface Products

UCC3917 Floating Hot Swap Power Manager Evaluation Board

OMAP SW. Release Notes. OMAP Software Tools OST version 2.5 Release. 16xx/1710/242x platforms. Document Revision: 2.5 Release

A DSP/BIOS AIC23 Codec Device Driver for the TMS320C6416 DSK

SN54LVTH16374, SN74LVTH V ABT 16-BIT EDGE-TRIGGERED D-TYPE FLIP-FLOPS WITH 3-STATE OUTPUTS

Programming the TMS320VC5509 RTC Peripheral

TMS320C6000 DSP Interrupt Selector Reference Guide

XIO1100 NAND-Tree Test

Calibration Routines and Register Value Generation for the ADS1216, ADS1217 and ADS1218

TMS470R1x Serial Communication Interface (SCI) Reference Guide

WL1271 ini File Description and Parameters User's Guide

GUEST CHECKOUT TO REGISTERED CUSTOMERS. User Guide. User Guide Page 1

SN5446A, 47A, 48, SN54LS47, LS48, LS49 SN7446A, 47A, 48, SN74LS47, LS48, LS49 BCD-TO-SEVEN-SEGMENT DECODERS/DRIVERS

Power Line Modem with E-Meter Platform Quick Start Guide

TMS470R1VF334E TMS470 Microcontrollers Silicon Errata

AC Induction Motor (ACIM) Control Board

Using the TMS320 DSP Algorithm Standard in a Dynamic DSP System

IMPORT/EXPORT CUSTOMERS FOR MAGENTO 2. User Guide. User Guide Page 1

Digital IP Cell 8-bit Microcontroller PE80

CCD VERTICAL DRIVER FOR DIGITAL CAMERAS

Memory Allocation Techniques in System with Dynamic Swapping of Application Codes

IMPORT/EXPORT WISH LIST ITEMS FOR MAGENTO 2. User Guide. User Guide Page 1

Bootstrap Loader (BSL) Scripter User s Guide

Wolverine - based microcontrollers. Slashing all MCU power consumption in half

GUEST CHECKOUT TO REGISTERED CUSTOMERS

TMS320C6000 DSP Expansion Bus: Multiple DSP Connection Using Asynchronous Host Mode

Important Notice. All company and brand products and service names are trademarks or registered trademarks of their respective holders.

Board Layout Adjustments Between the TNETE2201B and TLK2201/TLK1201

DS25BR204 Evaluation Kit

HSKT TM Technology Specifications

DSP/BIOS Link. Platform Guide Published on 20 th JUNE Copyright 2009 Texas Instruments Incorporated.

SN5476, SN54LS76A SN7476, SN74LS76A DUAL J-K FLIP-FLOPS WITH PRESET AND CLEAR

TMS320C6000 DSP General-Purpose Input/Output (GPIO) Reference Guide

DSP/BIOS LINK. Pool LNK 082 DES. Version 1.30

Application Report. 1 System Requirements. 2 Using the DM643x Pin Multiplexing Utility. Bernard Thompson...

UCD3138 Responding to Multiple PMBus Slave Addresses

Quad-Channel TEC Controller Getting Started Guide. Contents. Introduction. Contents of Evaluation Kit

1. Installation Instructions

The photograph below shows the PMP9730 Rev E prototype assembly. This circuit was built on a PMP9730 Rev D PCB.

TMS320C672x DSP Software-Programmable Phase-Locked Loop (PLL) Controller. Reference Guide

Store & Currency Auto Switcher

Application Report. 1 Overview. Marc Sousa... Power Supply ABSTRACT

October 2002 PMP Portable Power SLVU074

File Downloads User Guide

Stacking the REF50xx for High-Voltage References

1 Photo. 7/15/2014 PMP10283 Rev A Test Results

PROFIT AND LOSS REPORT EXTENSION. User Guide. User Guide Page 1

EV Evaluation System User Guide. Contents. Kit Contents. Introduction

Using the bq3285/7e in a Green or Portable Environment

February 2003 PMP EVMs SLVU081

Test Report PMP Test Data For PMP /20/2015

XMC Adapter for 3U cpci/pxi

PCI Express XMC to PCI Express Adapter with J16 Connector Breakout DESCRIPTION

HIDE PRODUCT PRICE. User Guide. User Guide Page 1

AntMiner L3+ Installation Guide

IMPORT/EXPORT URL REWRITES FOR MAGENTO 2. User Guide. User Guide Page 1

Stereo Audio Volume Control

Getting Started Guide: TMS-FET470A256 IAR Kickstart Development Kit

Transcription:

Application Report SBAA076 - April 2002 PROGRAMMING THE MSC1210 By Russell Anderson SERIAL FLASH PROGRAMMING AUTOBAUD AND SETUP The BootROM start address is F800 H for User Application Mode (UAM), and 0000 H for Flash Programming Mode (FPM). Since the 2kB BootROM code is using only an 11-bit address (e.g. ACALL, AJMP), all commands run both at F800 H and 0000 H (for UAM and FPM). Autobaud measures the host asynchronous serial port 0 baud rate. Autobaud is expecting a carriage-return (0D H ) from the host. When Autobaud completes, a greeting message with the version number is sent to the host via serial port 0. The monitor serial transmit and receive has no specific flow control with the host machine. Turning off echo during Intel Hex transfer will yield the highest possible throughput. Timers Setup Flash programming requires accurate timing. This is controlled through related SFRs. For example, at 1MHz crystal clock, the following SFRs are initialized before any flash write, mass erase, or page erase: Intel Hex Addressing During Serial and Parallel Flash Programming, the Hardware Configuration bytes are mapped into the memory address starting at 8000 H, as shown in Figure 2. The address translation is done in the embedded ROM. 64K 32K 128 bytes Hardware Configuration Memory USEC = 00 H MSECL = 0E7 H MSECH = 03 H 16K Y5 4K to 32K Flash Memory FTCON = 0A5 H SFR modification is done through the RW command (see Table VIII). Flash Erase Before Load To load new data into flash memory, the flash memory must be erased before write. In FPM, the Mass Erase command ( Mnnnn ) or the Code Page Erase command ( CPnnnn ) must be used before the Load command. Input Format and Responses Load command recognizes Intel Hex format, as shown in Figure 1. Address Field 8K 4K Y2 Y3 Y4 FIGURE 2. Flash Programming Mode Memory Orginization. All of the flash memory is fully accessible when in FPM, assuming the security bit is disabled. This address map allows program flash setup, data flash setup, and configuration/info flash setup all in one Intel Hex file download. Note that the data flash starting address (e.g., 4000 H for 16kB data flash and 16kB program flash) will map to 0400 H when in UAM. Data Field :0300C000C08322D8 Check Sum Line Type: 00 Data Line 01 Terminal Line Byte Count FIGURE 1. Intel Hex Format.

SERIAL PROGRAMMING AND UAM MONITOR COMMANDS COMMAND COMMAND NAME RESPONSE PARAMETERS XRnnnn External Data Read Display: None Read 16 Bytes from nnnn (External Data Memory) XWnnnnyy External Data Write Display: None Write to nnnn (External Data Memory) with yy XFnnnnyy Data Flash Write Display: ok or x for Failing Write to nnnn (flash byte data flash memory) with yy XPnnnn Data Flash Page Erase Display: ok or x for Failing Erase a 128-Byte Data Flash Page CRnnnn Code Memory Read Display 16-Byte Code Memory Starting from nnnn Read 16 Bytes from nnnn (Code Memory) CWnnnnyy Code Flash Write Display: ok or x for failing Write to nnnn (32kB Code Memory) with yy CPnnnn Code Flash Page Erase Display: ok or x for failing Erase a 128-Byte Code Flash Page at nnnn, Lower 7 Bits are Ignored RRnn Register (SFR) Read Display 1-byte SFR at nn Read from nn (128-byte SFR) RWnnyy Register (SFR) Write Display: None Write to nn (128-byte SFR) with yy Fnn PS1 Flash Memory Read Display 16-byte PS1 Flash memory starting from nn Read 16 Bytes of Config/Info Flash (128-Byte PS1 Flash Memory) Mnnnn Mass Erase Display: ok or x for Failing 0~7FFFF H for PS0 Program Memory Mass Erase, 8000h~807F H for PS1 Flash Memory. Q Continue Execution from Break Display: None E Toggle Echo Display: None L Load Intel Hex Display:. Data Line Write Passes Command is Disabled when HCR0.EPMA = 0. X Line Write Error E Line Checksum Error T Termination of Transfer NOTE: nnn, nn, andyy are hex digits. TABLE I. Serial Programming Command List. Reset Circuit (or V DD ) MSC1210 PSEN ALE Serial Port 0 P3.1 TXD P3.0 RXD RS232 Transceiver Host PC or Serial Terminal 1MHz to 24MHz or Crystal X IN NOTE: Serial programming is selected with PSEN = 0 and ALE = 1 or open. FIGURE 3. Serial Programming and Monitor Configuration. 2 SBAA076

PARALLEL FLASH PROGRAMMING Configuration When the MSC1210 is configured to parallel programming mode by pulling PSEN HIGH (or NC) and pulling ALE LOW while is asserted, the device ports will be configured for parallel interface with the Host Flash Programming, as shown in Figure 4. Table III shows the port definitions. The host will provide Addr/Cmd/Req//Clk signals, and the MSC1210 will respond with Ack/Pass/Data. The command address Addr[14:0] is divided into two parts, AddrHi[6:0] and AddrLo[7:0], i.e. Addr[14:0] = (AddrHi[6:0], AddrLo[7:0]). P3[1:0] are reserved. and must not be connected (NC). NC PSEN ALE MSC1210 P2[7:0] P1[&:0] P0[7:0] P3[7:5] P3[4] P3[3] P3[2] XIN PSEL/AddrHi[6:0] AddrLo[7:0] Data[3:0] Cmd[2:0] Req Ack Pass CLK HOST Flash Programmer FIGURE 4. Parallel Programming Configuration. Command Handshaking Figure 5 shows the parallel programming sequence starting from power-on reset. After power-on with PSEN HIGH and ALE LOW, the MSC1210 is setup for parallel programming, reference the numbers in Figure 5. (1) Power-On Ack and Pass signals have internal pull-ups. Ack and Pass will change to zero when the MSC1210 is ready to accept new or first commands. (2) Command Request After the Host detects a LOW on Ack, the host should setup Addr/Dara/Cmd, and raise the Req flag. For Host read commands (SFR Read, Flash Read), the host must drive Data with hi-z. For Host write-commands, the host must drive Data with command data. (3) Command Done After the MSC1210 detects Req, it executes the command, will set Pass line if the command is successful, and will clear the Pass line if the command fails, e.g. Flash Write Value Check Error. If the command is a read command, it will drive the read result on the Data bus. Ack is driven HIGH to acknowledge a command or signal command done. (4) Host Acknowledge The host should detect the Ack signal, drive hi-z to Data for write commands, or fetch Data for read commands, and release the Req line to signal the MSC1210 to acknowledge command complete. Setting up a new Addr and Cmd is optional. (5) MSC1210 Acknowledge After the MSC1210 detects Req release, Data is driven with hi-z for read commands to avoid bus conflict, and Ack/Pass will be released to prepare for a new command. (6) New Command Procedure repeats from (2) to (5). Read Data[7:0] t RS t RS Write Data[7:0] PSEL/AddrHi[6:0] AddrLo[7:0] Cmd[3:0] Req Ack 1 2 3 4 5 6 Pass t AS t CD FIGURE 5. Parallel Programming Handshaking and Timing. SBAA076 3

PORT DIRECTION NUMBER PORT NAME FROM TO DESCRIPTION P2[7] PSEL Host MSC1210 Host Flash Memory PS0/PS1 Select P2[6:0] AddrHi[6:0] Host MSC1210 Host Command Address 14 to 0 P1[7:0] AddrLo[7:0] Host MSC1210 P0[7:0] Data[7:0] Host MSC1210 Host Data for Write Commands MSC1210 Host MSC1210 Data for Read Commands P3[7:5] Cmd[2:0] Host MSC1210 Host Programming Command P3[4] Req Host MSC1210 Host Command Request Handshake Line P3[3] Ack MSC1210 Host MSC1210 Command Acknowledge Handshake Line P3[2] Pass MSC1210 Host MSC1210 Command Pass/Fail Line TABLE III. Parallel Programming Port Definitions. COMMAND DATA BUS Cmd[2:0] NAME DRIVER DESCRIPTION 000 Flash Read MSC1210 PSEL = 0 for PS0, PSEL = 1 for PS1, Addr[14:0] is the Read Address 001 Flash Write Host PSEL = 0 for PS0, PSEL = 1 for PS1, Addr[14:0] is the Write Address 010 Flash Mass Erase None PSEL = 0 for PS0, PSEL = 1 for PS1, Addr[14:0] is Ignored 011 Flash Page Erase None PSEL = 0 for PS0, PSEL = 1 for PS1, Addr[14:7] is the Page Address, Addr[6:0] is Ignored (Page Size is 128 Byte) 100 Reserved None 101 Reserved None 110 SFR Read MSC1210 PSEL and Addr[14:8] are Ignored, Addr[7:0] is the SFR Read Address 111 SFR Write Host PSEL and Addr[14:8] are Ignored, Addr[7:0] is the SFR Write Address TABLE IV. Parallel Programming Commands. PARAMETER DESCRIPTION MIN MAX DESCRIPTION t RS Req Setup 0µs Data/Addr/PSEL/Cmd Setup Before Req t AS Ack Setup 1µs Data/Pass Setup Before Ack t (1) CD Command Delay 11ms Command Delay for Mass Erase and Page Erase Commands 0.5ms Command Delay for Flash Write Commands 0.1ms Command Delay for Flash Read/SFR Read/SFR Write Commands CLK Clock Frequency 1MHz 24MHz System Clock Input. NOTE: t CD is limited by Flash programming timing, higher CLK will not reduce timing significantly. TABLE V. Parallel Programming Timing. DIRECTION Command Timing Programming Setup Flash programming requires accurate timing. This is controlled through related SFRs. For example, at 1MHz crystal clock, the following SFRs must be initialized before any Flash Write, Mass Erase, and Page Erase: USEC = 00 H MSECL = 0e7 H MSECH = 03 H FTCON = 0a5 H SFR modification is done through the SFR Write command (see the Command Section). Code Security All parallel commands, as shown in Table IV, are enabled if the security bit, SBn bit of HCR0, is 1. If the security bit is cleared to 0, Flash Write, Flash Read for 0000 H ~7FFF H (see Figure 2), and Flash Page Erase commands are disabled (after reset) for code security. Flash Read for addresses 8000 H ~807F H for PS1 areas are always enabled, such that the manufacturer s information and device Flash configuration (HCR0/1) are accessible. SFR Read and SFR Write are not affected by the security bit. 4 SBAA076

IMPORTANT NOTICE Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, modifications, enhancements, improvements, and other changes to its products and services at any time and to discontinue any product or service without notice. Customers should obtain the latest relevant information before placing orders and should verify that such information is current and complete. All products are sold subject to TI s terms and conditions of sale supplied at the time of order acknowledgment. TI warrants performance of its hardware products to the specifications applicable at the time of sale in accordance with TI s standard warranty. Testing and other quality control techniques are used to the extent TI deems necessary to support this warranty. Except where mandated by government requirements, testing of all parameters of each product is not necessarily performed. TI assumes no liability for applications assistance or customer product design. Customers are responsible for their products and applications using TI components. To minimize the risks associated with customer products and applications, customers should provide adequate design and operating safeguards. TI does not warrant or represent that any license, either express or implied, is granted under any TI patent right, copyright, mask work right, or other TI intellectual property right relating to any combination, machine, or process in which TI products or services are used. Information published by TI regarding third party products or services does not constitute a license from TI to use such products or services or a warranty or endorsement thereof. Use of such information may require a license from a third party under the patents or other intellectual property of the third party, or a license from TI under the patents or other intellectual property of TI. Reproduction of information in TI data books or data sheets is permissible only if reproduction is without alteration and is accompanied by all associated warranties, conditions, limitations, and notices. Reproduction of this information with alteration is an unfair and deceptive business practice. TI is not responsible or liable for such altered documentation. Resale of TI products or services with statements different from or beyond the parameters stated by TI for that product or service voids all express and any implied warranties for the associated TI product or service and is an unfair and deceptive business practice. TI is not responsible or liable for any such statements. Mailing Address: Texas Instruments Post Office Box 655303 Dallas, Texas 75265 Copyright 2002, Texas Instruments Incorporated