AN ELNEC EN ISP-HCS08. Application note for In-System Programming of Motorola/Freescale HCS08 microcontrollers

Similar documents
M68EVB908QL4 Development Board for Motorola MC68HC908QL4

USBSPYDER08 Discovery Kit for Freescale MC9RS08KA, MC9S08QD and MC9S08QG Microcontrollers User s Manual

How To Program A Microcontroller Board (Eb064) With A Psp Microcontroller (B064-74) With An Ios 2.5V (Power) And A Ppt (Power Control) (Power Supply) (

ET-BASE AVR ATmega64/128

Switch board datasheet EB

The Programming Interface

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

Fondamenti su strumenti di sviluppo per microcontrollori PIC

STK User Guide

Quick Start Guide. TWR-MECH Mechatronics Board TOWER SYSTEM

Section 28. In-Circuit Serial Programming (ICSP )

Designing VM2 Application Boards

Introducing AVR Dragon

Six-servo Robot Arm. DAGU Hi-Tech Electronic Co., LTD Six-servo Robot Arm

Application Module Student Learning Kit Users Guide featuring the Freescale MC9S08QG8

SKP16C62P Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.

WICE-SPI Hardware Operation Manual

Quick Start Guide. MRB-KW01 Development Platform Radio Utility Application Demo MODULAR REFERENCE BOARD

Allen-Bradley/Rockwell

TURBO PROGRAMMER USB, MMC, SIM DEVELOPMENT KIT

Chapter 6 PLL and Clock Generator

CHAPTER 11: Flip Flops

XPort Universal Demo Board User Guide

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

PC2400 EEPROM PROGRAMMER INSTRUCTION MANUAL

AN-812 APPLICATION NOTE

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

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

Programming PIC Microcontrollers in PicBasic Pro Lesson 1 Cornerstone Electronics Technology and Robotics II

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Electronic Circuits Spring 2007

LED board datasheet EB

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

RC2200DK Demonstration Kit User Manual

A PIC16F628 controlled FLL (Frequency Locked Loop) VFO for HF

FEATURES DESCRIPTION. PT6321 Fluorescent Display Tube Controller Driver

AVR Prog User Guide. Section 3

Getting Started with PIC24F/PIC24H Programming and Interfacing in C

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

Purchase Agreement. P&E Microcomputer Systems, Inc. 98 Galen St. Watertown, MA

Hello, and welcome to this presentation of the STM32L4 reset and clock controller.

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

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

Wireless Temperature

How to read this guide

RS232 Board datasheet

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

DHT11 Humidity & Temperature Sensor D-Robotics UK (

Lecture N -1- PHYS Microcontrollers

National CR16C Family On-Chip Emulation. Contents. Technical Notes V

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

Introduction. Getting familiar with chipkit Pi

Microcontroller Based Low Cost Portable PC Mouse and Keyboard Tester

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

An Introduction to MPLAB Integrated Development Environment

Application Note AN_299. FT800_FT801_Internal_Clock _Trimming

FlowKit in-circuit debug system

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

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

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

Backup Power Domain. AN Application Note. Introduction

Bluetooth to serial HC-06 wireless module

Using Altera MAX Series as Microcontroller I/O Expanders

Voice Dialer Speech Recognition Dialing IC

CAN bus board. EB018

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

IEC Algorithmic Alert Tone Demo

MIDECO 64-outputs MIDI note decoder USER MANUAL. Roman Sowa 2012

8-Bit Flash Microcontroller for Smart Cards. AT89SCXXXXA Summary. Features. Description. Complete datasheet available under NDA

EVAL-UFDC-1/UFDC-1M-16

In-System Programmer USER MANUAL RN-ISP-UM RN-WIFLYCR-UM

Troubleshooting and Diagnostics

POCKET SCOPE 2. The idea 2. Design criteria 3

Application Note, V 2.2, Nov AP32091 TC1766. Design Guideline for TC1766 Microcontroller Board Layout. Microcontrollers. Never stop thinking.

M52233DEMO Demonstration Board for Freescale MCF52233

1. Learn about the 555 timer integrated circuit and applications 2. Apply the 555 timer to build an infrared (IR) transmitter and receiver

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

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

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

Using the HT1632 for Dot Matrix LED Displays

C Programming Structure of a C18 Program

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

Testing Data Radio Modem with Serial Port Tool V1.20

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

AXE033 SERIAL/I2C LCD

Production Flash Programming Best Practices for Kinetis K- and L-series MCUs

Real Time Clock USB Evaluation Board V3.0

Microprocessor Home Security System

Quick Start Guide. CAN Microcontrollers. ATADAPCAN01 - STK501 CAN Extension. Requirements

Advanced Data Capture and Control Systems

HT1632C 32 8 &24 16 LED Driver

The $25 Son of a cheap timer This is not suitable for a beginner. You must have soldering skills in order to build this kit.

Digital I/O: OUTPUT: Basic, Count, Count+, Smart+

PolyBot Board. User's Guide V1.11 9/20/08

Fingerprint Based Biometric Attendance System

DRV8312-C2-KIT How to Run Guide

Fiber Optic Monitor and Control Evaluation Kit

Information Board User s Guide

Conversion Between Analog and Digital Signals

Balun Parameter Definitions & Measurement May 2004

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

Transcription:

www.elnec.com AN ELNEC EN ISP-HCS08 Application note for In-System Programming of Motorola/Freescale HCS08 microcontrollers Version 06/2016 1

Introduction The HCS08 is low-cost, high-performance family of 8-bit microcontroller units (MCUs). All MCUs in the family use the enhanced HCS08 core and are available with a variety of modules, memory sizes, memory types, and package types. In system programming (ISP) of HCS08 microcontrollers is performed via the single wire BDM (Background Debug Mode). Bellow are the most important requirements and advices to get high reliability while working with our programmers. For further information look at the MCU specific datasheet. Used signals: Figure 1. Typical HCS08 system connection Pin name Function Signal level VDD, VDDAD, VREFH supply voltage 1.8 5.5V (*), AD, VREFL ground 0 V RESET\ reset input H, L BKGD background debug communication i/o, mode select input H, L, PU EXTAL oscillator, clock input H, L XTAL oscillator output H, L (*) - depends on the MCU specification Table 1. HCS08 MCU ISP related signals description Version 06/2016 2

Recommended target circuit design In the following, you can find important notices applying to recommended connection of target MCU to the target system. Implementation of BDM in our programmers comply with Motorola/Freescale BDM connection specification. So, 6-pin header with 2 pins unconnected can be used in design stage of target system. Purpose of the R1, R2 resistors is to isolate the programmed chip from rest of target system. Recommended value of resistors for particular programmer is specified in Device info (see Figure 6). You can also use jumpers instead of the resistors. During reset, BKGD is driven LOW and the MCU enters Special Single Chip Mode. This allows programmer to communicate through BDM. ISP connector target device target system BKGD target VDD check only XTAL (optional) EXTAL (optional) RESET C1 10u C2 100n VDD reset circuit RESET VDD R1 X-tal oscillator BKGD EXTAL XTAL I1 MC9S08 R2 Figure 2. Recommended target circuit design using BDM interface (MCUs with self-clock mode have optional clock signal disabled) Note: Because communication with target board is performed only by 1 wire (pin BKGD), programming speed may vary depending on system configuration and programmer control SW settings (from x-sec to x-minutes per operation). We recommend to engage MCU's FLL circuitry (if implemented) to get MCU running on appropriate bus/bdm frequency. Because of high frequencies and fast signal transitions, please, do not omit the bypass capacitors as proposed by manufacturer. Version 06/2016 3

Device operation options You can edit the Device operation options in menu Operation options of control program (Device->Device options->operation options <Alt+O>). In the case that your programmer supports target system power supply and you intend to use this option, it is needed to set supply voltage parameters according to your requirements. If the MCU is not powered by the programmer and the supply voltage is different than the default value from device options, you should change the Programmed chip supply voltage accordingly. You may also select level of ISP signals after operation (see Figure 3). Description of particular parameters you can find in the menu Help <F1>. Figure 3. Settings ISP target supply <Alt+O> There are some additional options to give you more adjustability. Besides Target system power, for some members of HCS08 family, the programmer can provide an optional clock signal (2 different frequencies). If you prefer to use your own system oscillator (or clock), there is another option, which allows you to get the best performance engaging MCU's FLL (implemented only in some members of HCS08 family). This option is available in 3 different frequencies. Notice: may be, the programmer will not be able to communicate through BDM at your system frequency. In this case, the only way to solve this problem is to engage MCU's FLL. Programmer will set FLL to give the appropriate BDM frequency. Figure 4. Additional options, optional clock <Alt+O> Version 06/2016 4

Figure 5. Additional options, FLL <Alt+O> *1) Remark: Programming algorithm skips blank ($FF) bytes of FLASH area to be programmed. Therefore, sometimes the programming procedure can take a shorter time as verification, and programming time may vary depending on programmed data. Version 06/2016 5

Tables 2, 3. show all possible MCU clock sources/modes/settings while operating with our programmers. Oscillator Optional clock MCU runs on no off not running no on optional clock yes no oscillator clock yes on optional clock Table 2. HCS08 clock source settings/dependence (MCUs without FLL circuitry) Oscillator FLL MCU runs on no off self-clock (SCM) no on FLL clock generated from internal clock (FEI) yes no self-clock (SCM), oscillator ignored yes on FLL clock generated from internal clock (FEI), oscillator ignored Table 3. HCS08 clock source settings/dependence (MCUs with FLL circuitry) Version 06/2016 6

Device information Additional information about selected MCU, such as ISP connector pin numbering, recommended target circuit design for particular MCU etc., you can find in the menu Device info of control program (Device->Device info <Ctrl+F1>) (see Figure 6). Figure 6. Device info Version 06/2016 7

Good advices and troubleshooting Connecting programmer to target system: Turn off power supply of system before connecting/disconnecting programmer to/from system. Before starting an operation: Before starting an operation with target MCU, 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. Details about pins assign for each MCU and short description of circuit design you can find in control program (Device Info <Ctrl+F1>). Correctly selected values of resistors R1, R2 provide reliable signal level recognition (for both, programmer and system) and ensure successful finishing of desired operation (see Recommended target circuit design). If something goes wrong: If the programmer reports signal interference error, may be, a signal interference occurred between programmer and target system. Please make sure, your design meets connection recommendations. Check the minimal values of resistors R1, R2, from programmer's point of view (in order to programmer be able to put L/H level on the pin). If the programmer reports that the device does not respond, or the operation with MCU behaves suspiciously, check the following: 1. System frequency may result in BDM frequency, which don't comply with programmer's capability. If operations still give errors, you should engage MCU's FLL circuitry (if available) to achieve the appropriate BDM frequency. 2. RC network on RESET\ pin (if connected) hasn't long time constant. 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 06/2016 8

Revision history 07/2006: Initial Release. 06/2016: Table 1. HCS08 MCU ISP related signals description VDD, VDDAD, VREFH supply voltage signal level changed from 3.3V to 1.8-5.5V. Text added: If the MCU is not powered by the programmer and the supply voltage is different than the default value from device options, you should change the Programmed chip supply voltage accordingly. Figure 3. Settings ISP target supply <Alt+O> updated Version 06/2016 9