Freescale Semiconductor, I

Similar documents
AN-HK-32. In-Circuit Programming of FLASH Memory in the MC68HC908GP32. nc... Freescale Semiconductor, I. PART 1 Introduction

AN-HK-32. Motorola Semiconductor Application Note. In-Circuit Programming of FLASH Memory in the MC68HC908GP32. PART 1 Introduction

MC68HC908GR8A MC68HC908GR4A Data Sheet

AN-HK-33. In-Circuit Programming of FLASH Memory in the MC68HC908JL3. Roger Fan Applications Engineering Microcontroller Division Hong Kong

EB366. In-Circuit Programming of FLASH Memory Using the Monitor Mode for the MC68HC908GP32. Introduction

MC68HC908GR16 Data Sheet

Set Up a PLL Loop Filter on the ez80f91 MCU

M68HC08 Microcontroller The MC68HC908GP32. General Description. MCU Block Diagram CPU08 1

Embedded Systems and Software

MC68HC908GR8 MC68HC908GR4. Technical Data M68HC08. Microcontrollers. MC68HC908GR8/D Rev. 4, 6/2002

PI6C557-01BQ. PCIe 3.0 Clock Generator with 1 HCSL Outputs. Features. Description. Pin Configuration (16-Pin TQFN) Block Diagram

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

Arduino Uno R3 INTRODUCTION

Obsolete Product(s) - Obsolete Product(s)

The Freescale MC908JL16 Microcontroller

Achieving EMV Electrical Compliance with the Teridian 73S8024RN

S12VR Hardware Design. Guidelines. 1 Introduction. 2 Hardware Design. Guidelines. 2.1 Voltage regulator. Freescale Semiconductor

Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their

OSC Ring Type Ring or Resonator type (optional) RESET Pin No Yes

TS04. 4-Channel Self Calibration Capacitive Touch Sensor SPECIFICATION V2.0

2:1 MULTIPLEXER CHIP FOR PCI-EXPRESS ICS Description. Features. Block Diagram DATASHEET

nc. Factors which affect reset are: 1. External components attached to the RESET pin 2. Low-voltage reset (LVR) on chip 3. Power-on reset (POR) detect

This Part-B course discusses design techniques that are used to reduce noise problems in large-scale integration (LSI) devices.

USB-4303 Specifications

AN-HK-33. Motorola Semiconductor Application Note. In-Circuit Programming of FLASH Memory in the MC68HC908JL3. PART 1 Introduction

Product Specification

PI6LC48L0201A 2-Output LVDS Networking Clock Generator

HT1628 RAM Mapping LCD Driver

Course Introduction. Content: 21 pages 4 questions. Learning Time: 35 minutes

2:1 MULTIPLEXER CHIP FOR PCI-EXPRESS ICS Features

PIC Microcontroller Introduction

Product Specification

Implementing the Teridian 73S8024RN in NDS Applications

ILI2511. ILI2511 Single Chip Capacitive Touch Sensor Controller. Specification ILI TECHNOLOGY CORP. Version: V1.4. Date: 2018/7/5

T1/E1 CLOCK MULTIPLIER. Features

Application Note, V 1.0, April 2005 AP32086 EMC. Design Guideline for TC1796 Microcontroller Board Layout. Microcontrollers. Never stop thinking.

Low Voltage, 10-Bit Digital Temperature Sensor in 8-Lead MSOP AD7314

GRAVITECH GROUP

Homework 5: Circuit Design and Theory of Operation Due: Friday, February 24, at NOON

Frequency Generator for Pentium Based Systems

AN1770. Motorola Semiconductor Application Note. In-Circuit Programming of FLASH Memory in the MC68HC908GP20. Introduction

PI6C182B. Precision 1-10 Clock Buffer. Features. Description. Diagram. Pin Configuration

Mechatronics and Measurement. Lecturer:Dung-An Wang Lecture 6

DM9051NP Layout Guide

Home Security System with Remote Home Automation Control

EMC Guidelines for MPC500-Based Automotive Powertrain Systems

XRD87L85 Low-Voltage CMOS 8-Bit High-Speed Analog-to-Digital Converter

DS1233A 3.3V EconoReset

The Atmel ATmega168A Microcontroller

MIC826. General Description. Features. Applications. Typical Application

PCIe 3.0 Clock Generator with 4 HCSL Outputs. Description OE VDDXD S0 S1 S2 X1 X2 PD OE GNDXD IREF CLK0 CLK0 CLK1 CLK1 CLK2 CLK2 CLK3 CLK3

Application Note. EMC Design Guide. F 2 MC-8L Family. History 04 th Jul 02 NFL V1.0 new version

+Denotes a lead(pb)-free/rohs-compliant package.

The Atmel ATmega328P Microcontroller

XRD8775 CMOS 8-Bit High Speed Analog-to-Digital Converter

4. Hot Socketing & Power-On Reset

Altimeter / Barometer Module SMD500 ultra low power, low voltage

THM3060. Multiple Protocols Contactless Reader IC. Features. Pinning Diagram

Features. Ordering Information. Selector Guide. Applications. Pin Configurations. I 2 C Port Expander with 8 Open-Drain I/Os

Analog Devices Welcomes Hittite Microwave Corporation NO CONTENT ON THE ATTACHED DOCUMENT HAS CHANGED

HT1621. RAM Mapping 32 4 LCD Controller for I/O µc. Features. General Description. Selection Table

RT54SX T r / T f Experiment

APPLICATION NOTE. AVR042: AVR Hardware Design Considerations. AVR 8-bit Microcontrollers. Features. Description

ILI2312. ILI2312 Single Chip Capacitive Touch Sensor Controller. Specification ILI TECHNOLOGY CORP. Version: V1.03.

Add a Non-Volatile Clock to the MC68HC705J1A. Some applications of using the DS1307 are:

DS1306. Serial Alarm Real Time Clock (RTC)

December 2000 MSDS Speech SPSU020

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

Chapter 1 Introducing the OM-USB-1608FS-Plus... 6 Functional block diagram... 6

DC/DC Point-of-Load (POL) Converter Input: 2.4 to 5.5Vdc or 8.3 to 14Vdc, Output: Vout = 0.75 to 3.3Vdc or 0.75 to 5.0Vdc, I out = 6A, 10A or 16A

BT-22 Product Specification

XNUCLEO-F030R8, Improved STM32 NUCLEO Board

and 8 Open-Drain I/Os

SN8200 LI+ DUAL BATTERY CONTROLLER

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

eprom 1 Fri Oct 13 13:01:

MIFARE Secure OEM Reader Module Data Sheet

Embedded Systems and Software

DEMO9S08SH32/SG32 Demonstration Board for Freescale MC9S08SH32/SG32

CEIBO FE-5111 Development System

Evaluation Board for 1 GSPS DDS with 14-Bit DAC AD9910/PCBZ

_ V1.1. Motorola 6809 B POD rev. C. POD Hardware Reference

2 TO 4 DIFFERENTIAL CLOCK MUX ICS Features

Freescale Semiconductor, Inc.

BT 31 Data Sheet. Amp ed RF Technology Inc.

RA8835. Dot Matrix LCD Controller Specification. Version 1.2 June 1, RAiO Technology Inc. Copyright RAiO Technology Inc.

M68HC705L4 PROGRAMMER BOARD APPLICATION NOTE

PI6C Low Power Networking Clock Generator. Description. Features. Block Diagram. 100MHz PCI-Express 0 100MHz PCI-Express 1 100MHz PCI-Express 2

Figure 1 Typical Application Circuit

RA8835A. Dot Matrix LCD Controller Specification. Version 1.1 September 18, RAiO Technology Inc. Copyright RAiO Technology Inc.

DEMO9S08SH8/SG8 Demonstration Board for Freescale MC9S08SH8/SG8

Module Introduction. PURPOSE: The intent of this module is to explain MCU processing of reset and interrupt exception events.

DEV-1 HamStack Development Board

LC75808E, 75808W. 1/8 to 1/10 Duty LCD Display Drivers with Key Input Function

AL3159 Evaluation Module

ZigBee Compliant Platform 2.4G RF Low Power Transceiver Module for IEEE Standard. DATA SHEET Version B

CV Arpeggiator Rev 2 Build Documentation.

DS1305EN. Serial Alarm Real-Time Clock

HT1611/HT1611C Timer with Dialer Interface

GRIDCHIP GC3355 DATASHEET GRIDCHIP 2013/11/28

Transcription:

nc. /D Rev. 1, 11/2001 Power-On, Clock Selection, and Noise Reduction Techniques for the Freescale MC68HC908GP32 By Yan-Tai Ng Applications Engineering Microcontroller Division Hong Kong Introduction This application note describes power-on/power-down, clock selection, and noise reduction techniques for applications using the Freescale MC68HC908GP32 MCU device, hereafter referred as the GP32. For full device specification, please refer to the datasheet, Freescale order number: MC68HC908GP32/H. The GP32 is a popular general purpose device amongst Motorola s HC08 family of Microcontrollers. It has a new generation FLASH memory array, the 32k-bytes can be programmed in less than one second. The versatility of the GP32 makes the device suitable for many applications and sometimes, finding itself in some very noisy environments. These noise and interference problems are made worse by poor circuit design and PCB layout, resulting in intermittent MCU failures and even complete breakdown. To avoid these undesirable effects, there are some basic techniques that can be applied during circuit design and PCB layout. The following text describes some recommendations. nc., 2004. All rights reserved. Motorola, Inc., 2001

nc. Power-Up and Power-Down Requirements The precautions described below should be followed for MCU power-up and power-down, otherwise unpredictable MCU behavior may occur. Power supply rise-time 5V Power-on reset (POR) circuit re-arms Power supply fall-time Meeting power-on reset requirements 0V 100ms 100mV 1 2 3 Figure 1. Power Supply Power-Up/Down Requirements 100ms 1. At power-up, supply voltage rise-time should be as short as possible; less than 143ms for 5V operation (143ms is calculated from the POR rise-time ramp rate). 2. At power-down, supply voltage should drop as quickly as possible to avoid the MCU operating with a supply voltage that is not in the MCU operating range. 3. Before power-up again, supply voltage must fall below 100mV for the GP32 power-on reset circuit to rearm. In addition, an orderly power-up can be improved by keeping the external reset pin (RST) pulled low until supply voltage has reached its operating level. Improper power-up or power-down conditions cause problems for all MCUs, not just the GP32. Since the MCU contains a microprocessor and running a program, an improper power-up may cause the MCU to behave erratically and execute runaway codes. 2

nc. Choosing the MCU Reference Clock Frequency The data related to the above requirements are specified in the GP32 datasheet. They are reproduced in the table below, with explanatory notes in the following paragraphs. Symbol Minimum Typical Maximum Unit Operating voltage V DD 5 3 5 3 5 3 V POR rearm voltage V POR 0 0 100 100 mv POR reset voltage V PORRST 0 0 700 700 800 800 mv POR rise-time ramp rate R POR 0.035 0.02 V/ms POR rearm voltage POR reset voltage POR rise-time ramp rate Data extracted from MC68HC908GP32 datasheet rev. 5. This parameter indicates the voltage where the power-on reset (POR) circuit becomes ready again (rearms) when the supply voltage falls. For a proper POR in a power-down followed by a power-up situation, the supply voltage must be allowed to fall below 100mV before a power-up. This parameter indicates the supply voltage where the POR circuit activates and performs a MCU power-on reset. This parameter indicates supply voltage rise-time requirement for the POR circuit to operate successfully. The V DD rise-time must be faster than the quoted POR rise-time minimum. Choosing the MCU Reference Clock Frequency Other than choosing the bus frequency, clocks for other GP32 modules are also important. Some modules require a minimum operating frequency, some depend on the bus frequency, and some depend on the input reference frequency. Sometimes, the choice of the input reference frequency may be a compromise; so that it satisfies the clock requirements of the GP32 modules for a particular application. Figure 2 shows the clock distribution to the modules inside the GP32. 3

nc. OSC1 OSC2 OSCILLATOR CIRCUIT CGMXCLK CGMRCLK 32kHz TO 1.5MHz PLL CIRCUIT CGMVCLK MAX. 32MHz MUX 2 2 BUS CLOCK MAX. 8MHz CGMXCLK BUS CLOCK CGMXCLK BUS CLOCK Generating the MCU Reference Clock MUX MUX CGMXCLK CGMXCLK BUS CLOCK BUS CLOCK COP MODULE TIMEBASE MODULE TIMER MODULE 1 & 2 SPI MODULE SCI MODULE ADC MODULE Figure 2. GP32 Clock Distribution A reliable, stable and clean reference clock input is very important in MCU application designs, since the clock is the heart of the MCU. The recommended method to generate the system clocks for GP32 is to use a low frequency input reference from a 32.768kHz crystal connected across OSC1 and OSC2 pins, and use the GP32 s clock generation module (the PLL circuit) to generate the high frequency clock. This method generates less noise, with the higher frequencies contained within the MCU. A low frequency crystal is also cheaper in cost. 4

nc. Generating the MCU Reference Clock Crystal connection between OSC1 and OSC2 pins Use the following components when using a 32.768kHz crystal. This is the recommended crystal oscillator configuration. OSC1 OSC2 10MΩ Crystal 100kΩ 15pF to 20pF 32.768 khz 50pF Crystal oscillator start-up time Figure 3. Components for 32kHz Oscillation The GP32 s PLL circuit uses this 32.768kHz reference clock for generating the higher frequency bus clock (see page 7). Although the GP32 s PLL can accept a reference clock from 32kHz to 1.5MHz, the 32.768kHz is chosen because it is an ideal frequency for driving the timebase module (see Figure 2), for real-time clock generation. From Figure 3, the 10MΩ feedback resistor is used as the oscillator 1 inverter, biased to ----- V, to set up a high gain inverter amplifier. For the 2 DD 32.768kHz crystal oscillator, a 100kΩ resistor with 50pF capacitor are added for oscillator start-up time delay. Unlike high frequency oscillators (greater than 1MHz), the 32.768kHz oscillator cycle is 30.52µs, which needs significant time for start-up. Figure 4 shows the typical oscillator start-up time for the 32.768kHz crystal oscillator when power is applied. The typical delay is 130ms. 5

nc. +5V V DD 0V Alternative clock source: External clock drive into OSC1 pin OSC Output 0V 1 2 V DD Bias 130ms 50ms Figure 4. Crystal Oscillator Start-Up The alternative to the crystal oscillator connection is to use a square wave from an external oscillator, driven directly into the OSC1 pin, and leaving OSC2 pin unconnected. The square wave should have a 50% duty cycle. Using this method, the maximum clock input is 32MHz. Note that the PLL circuit cannot use a 32MHz input clock. The PLL input reference clock range is from 32kHz to 1.5MHz. With the PLL off, a 32MHz clock input divides to an 8MHz bus clock. Note also that this 32MHz clock feeds to the COP and timebase modules (see Figure 2), giving a relatively short COP period. OSC1 OSC2 No connection Figure 5. External Oscillator Drive to OSC1 6

nc. Generating a High Bus Frequency from a Low Frequency Reference Generating a High Bus Frequency from a Low Frequency Reference The GP32 s PLL can generate up to the maximum bus frequency of 8MHz using a 32.768kHz clock reference. To be precise, the PLL accepts a reference clock between 32kHz and 100kHz. A prescaler is available for dividing the oscillator clock to within the accepted range. This prescaler has an integer value of divide-by-1 to divide-by-15. Therefore, the maximum input reference frequency allowed is 1.5MHz. Selecting filter components for the PLL circuit VCO drives in PLL circuit Use either of the following filter networks for connection to the GP32 s CGMXFC pin. 10 kω 0.033 µf CGMXFC V SSA 0.01 µf (a) 3-component connecttion, for best stability. CGMXFC V SSA Figure 6. Filter Components for PLL 0.47 µf (b) single-component connection, for low-cost, but less stability. Figure 7 shows a diagrammatic representation of the current drives into the voltage controlled oscillator (VCO) for frequency tracking. Low current drive 5µA High current drive 100µA CGMXFC VCO FILTER NETWORK Figure 7. VCO Drives The typical PLL lock response for the two filter networks are shown in Figure 8 (a) and (b). 7

nc. PLL lock response Figure 8 (a) and (b) show actual plots for the PLL lock time, for the two configurations of the external filter. Final tracking by low current drive Initial tracking by high current drive Programming the phase-lock loop 0ms (a) Single-component filter response 10ms Figure 8. PLL Lock Response with Different Component Configurations The following code listing is for a VCO frequency of 32MHz, from a 32.768kHz clock reference to the MCU. The 32MHz divides to an 8MHz bus clock. Note that the PLL can only be programmed when it is off. Therefore, always clear the PLLON bit before writing to the PLL programming registers. PCTL EQU $0036 ; PLL Control Register PBWC EQU $0037 ; PLL Bandwidth Control Register PMSH EQU $0038 ; PLL Multiplier Select Register High PMSL EQU $0039 ; PLL Multiplier Select Register Low PMRS EQU $003A ; PLL VCO Range Select Register PMDS EQU $003B ; PLL Reference Divider Select Register 0ms (b) 3-component filter response 10ms BRCLR 5,PCTL ; Turn Off PLL LDA #$00 ; Set P=0 for PRE[1:0] STA PCTL LDA #$02 ; Set E=2 for VPR[1:0] STA PCTL LDA #$D1 ; Set N=977 for MUL[11:0] STA PMSL LDA #$03 STA PMSH LDA #$D0 ; Set L=208 for VRS[7:0] 8

nc. PCB Layout for Critical Signals STA PMRS LDA #$01 ; Set R=1 for RDS[3:0] STA PMDS BSET 5,PCTL ; Turn On PLL BSET 7,PBWC ; Enable Auto Bandwidth Control BRCLR 6,PBWC,* ; Loop until LOCK bit set BSET 4,PCTL ; Select VCO clock as system clock NOP NOP PCB Layout for Critical Signals Power supply decoupling PLL filter network connections Crystal oscillator connections For programming the VCO to other frequencies, please refer to Programming the PLL section in the GP32 datasheet (rev. 5 datasheet, section 7.4.6, page 113). Connect these critical components as close as possible to the MCU and with the shortest return path to the MCU ground pin. Each V DD pin should be decoupled to ground with its own capacitors. Power supply decoupling PLL filter network Crystal oscillator V DD GP32 42-pin SDIP V SS Ground plane also acts as guard ring against noise. Figure 9. Critical Component PCB Layout 9

nc. Grounding multiple V SS Connect device ground pins together at the center with the shortest path. Ground V SS pins at center with shortest path Ground return for high-current devices GP32 40-pin DIP GP32 42-pin SDIP Figure 10. Grounding Multiple V SS GP32 44-pin LQFP Keep high current return ground paths separate from low current return ground paths, and join them at a single point near the regulator or the power supply input. One point GND here 7805 Low current path High current path Driver IC return loop As with all PCB tracks, use 45 corners. GP32 42-pin SDIP Figure 11. Ground Return for High Current Devices 10

nc. PCB Layout for Critical Signals Long signal line to ADC pins Connecting multiple ground planes Terminate a long PCB trace carrying analog signal with a decoupling capacitor at the MCU ADC input pin. + + Terminate each long ADC input trace with a decoupling capacitor as close to the MCU as possible. 0.01µF 0.01µF ADC GND Figure 12. Long Analog Paths Long PCB trace GP32 PTB0/AD0 PTB1/AD1 Avoid connecting multiple ground planes together using a single wire, as shown in Figure 13. Do not do this! Ground plane PCB tracks V = L di/dt Jumper wire Ground plane L = 500nH, I = 10mA, t = 5ns V = 1 volts 500nH Inductance Figure 13. Avoid Connecting Multiple Ground Planes The single wire will have inductance, causing a potential difference between the two ground planes. 11

nc. /D