Clock Mode Selection for MSC8122 Mask Set K98M

Similar documents
Upgrade the Solution With No Changes 2 Upgrade the Solution With No Changes If a Codebase does not contain updates to its properties, it is possible t

PCB Layout Guidelines for the MC1321x

Mechanical Differences Between the 196-pin MAP-BGA and 196-pin PBGA Packages

MPC8349E-mITX-GP Board Errata

Electrode Graphing Tool IIC Driver Errata Microcontroller Division

Functional Differences Between the DSP56307 and DSP56L307

HC912D60A / HC912Dx128A 0.5µ Microcontrollers Mask sets 2K38K, 1L02H/2L02H/3L02H & K91D, 0L05H/1L05H/2L05H

56F8300 BLDC Motor Control Application

ColdFire Convert 1.0 Users Manual by: Ernest Holloway

Using the Project Board LCD Display at 3.3 volts

Functional Differences Between DSP56302 and DSP56309 (formerly DSP56302A)

Component Development Environment Installation Guide

MC33696MODxxx Kit. 1 Overview. Freescale Semiconductor Quick Start Guide. Document Number: MC33696MODUG Rev. 0, 05/2007

Using the Multi-Axis g-select Evaluation Boards

56F805. BLDC Motor Control Application with Quadrature Encoder using Processor Expert TM Targeting Document. 56F bit Digital Signal Controllers

Using IIC to Read ADC Values on MC9S08QG8

MPC8260 IDMA Timing Diagrams

etpu General Function Set (Set 1) David Paterson MCD Applications Engineer

Interfacing MPC5xx Microcontrollers to the MFR4310 FlexRay Controller David Paterson MCD Applications, East Kilbride

Updating the Firmware on USB SPI Boards (KITUSBSPIEVME, KITUSBSPIDGLEVME)

MCF5216 Device Errata

USB Bootloader GUI User s Guide

Using the PowerQUICC II Auto-Load Feature

MC56F825x/MC56F824x (2M53V) Chip Errata

Design Recommendations to Implement Compatibility Between the MC13783VK and the MC13783VK5

Affected Chips Description Impact and Workaround

MCF5445x Configuration and Boot Options Michael Norman Microcontroller Division

Interfacing HCS12 Microcontrollers to the MFR4200 FlexRay Controller

EchoRemote Evaluation Software for Windows

MC33897 Single-Wire CAN Transceiver Reliability and Quality Documents

MTIM Driver for the MC9S08GW64

DSP56F827 Digital Signal Controller

MC33794 Touch Panel System Using E-Field Sensor Setup Instructions

etpu Automotive Function Set (Set 2)

Introduction to LIN 2.0 Connectivity Using Volcano LTP

Symphony SoundBite: Quick Start with Symphony Studio. Installation and Configuration

SGTL5000 I 2 S DSP Mode

56F805. Digital Power Factor Correction using Processor Expert TM Targeting Document. 56F bit Digital Signal Controllers. freescale.

Freescale BeeStack Documentation Overview Document Number: BSDO Rev /2008

MPC5200(b) ATA MDMA, UDMA Functionality BestComm Setup Recommendations

Differences Between the DSP56301, DSP56311, and DSP56321

Implementing a Double-Precision (32-Bit) Complex FIR Filter on the MSC8101 Device

Power Cycling Algorithm using the MMA73x0L 3-Axis Linear Accelerometer

Pad Configuration and GPIO Driver for MPC5500 Martin Kaspar, EMEAGTM, Roznov Daniel McKenna, MSG Applications, East Kilbride

MPC7410 RISC Microprocessor Hardware Specifications Addendum for the MPC7410TxxnnnLE Series

Migrating from the MPC852T to the MPC875

MSC8144 Device Reset Configuration For the MSC8144ADS Board

Gallium Arsenide PHEMT RF Power Field Effect Transistor

Optically-Isolated Multilink BDM Interface for the S08/S12 Microcontrollers by Michael A. Steffen

2005: 0.5 PQ-MDS-PCIEXP

IIC Driver for the MC9S08GW64

XGATE Library: ATD Average Calculating a rolling average from ATD results

Programming the Keyboard Interrupt Module (KBI) on HC(S)08 MCUs

Configuring the MCF5445x Family for PCI Host Operation

Using the Serial Peripheral Interface (SPI) Module on 68HC(9)08 Microcontrollers

MCF54451, MCF54452, MCF54453, MCF54454,

56F Phase AC Induction Motor V/Hz Control using Processor ExpertTM Targeting Document 56F bit Digital Signal Controllers

Managing Failure Detections and Using Required Components to Meet ISO7637 pulse 1 on MC33903/4/5 Common Mode Choke Implementation

MPC8260 SDRAM Timing Diagrams

Introduction to the S12G Family EEPROM Including a Comparison between the S08DZ, S12XE, and S12P Families

SynkroRF Network. User s Guide

MPR121 Jitter and False Touch Detection

Utilizing Extra FC Credits for PCI Express Inbound Posted Memory Write Transactions in PowerQUICC III Devices

MPR083 Proximity Evaluation Kit User s Guide

TLB Translation Setup for MPC745x and MPC744x in Non-Extended Mode

Using the Knock Window etpu Function

Integrating FreeMASTER-Time Debugging Tool with CodeWarrior for Microcontrollers v10.x Project

Interfacing MPC5500 Microcontrollers to the MFR4310 FlexRay Controller Robert Moran MCD Applications, East Kilbride, Scotland

XGATE Library: Using the Freescale XGATE Software Library Steve McAslan MCD Applications, East Kilbride

SDRAM Support on the StarCore - Based MSC8122 DSP

MPR121 Proximity Detection

MSC8144AMC-S Getting Started Guide

56F Phase Switched Reluctance Motor Control With Hall Sensors using Processor Expert Targeting Document

MPXHZ6400A. Freescale Semiconductor Technical Data. MPXHZ6400A Rev 0, 08/2005

PDB Driver for the MC9S08GW64

Mask Set Errata for Mask 5L35K

Mask Set Errata for Mask 2M40J

PowerQUICC HDLC Support and Example Code

Ordering Information Industry standard SOT343R package Device weight = g (typical) Available only in tape and reel packaging Available only in

MPC7455 RISC Microprocessor Hardware Specifications Addendum for the XPC74n5RXnnnNx Series

Use of PGA on MC56F800x Interaction of PDB, PGA and ADC

SCI Driver for the MC9S08GW64

Using the ColdFire+ Family Enhanced EEPROM Functionality Melissa Hunter Derrick Klotz

Using an I 2 C EEPROM During MSC8157 Initialization

Using the ColdFire EMAC Unit to Improve RSA Performance Jim Stephens Freescale Semiconductor

Using DMA to Emulate ADC Flexible Scan Mode on Kinetis K Series

Using the CAU and mmcau in ColdFire, ColdFire+ and Kinetis

Optimizing a Vocoder for Operation on a StarCore -Based DSP

16-bit MCU: S12XHY256 Automotive Cluster Demo by: Jose M. Cisneros Steven McLaughlin Applications Engineer Microcontroller Solutions Group, Scotland

1 Introduction. 2 Problem statement. Freescale Semiconductor Engineering Bulletin. Document Number: EB727 Rev. 0, 01/2010

LFAE Bootloader Example and Interface for use with AN2546 Daniel McKenna MCD Applications, East Kilbride Scotland

Integrated Silicon Pressure Sensor On-Chip Signal Conditioned, Temperature Compensated and Calibrated

Tuning an Application to Prevent M1 Memory Contention

Simplified Device Data Structures for the High-End ColdFire Family USB Modules Melissa Hunter Applications Microcontroller Solutions Group

Using the Kinetis Family Enhanced EEPROM Functionality

MBC13720 SiGe:C Low Noise Amplifier with Bypass Switch Device

PowerQUICC II Parity and ECC Capability

Using the Asynchronous DMA features of the Kinetis L Series

Using the MSC8126 Turbo Coprocessor (TCOP) Driver

Using GCR4 to Adjust Ethernet Timing in MSC8144 DSPs

Transcription:

Freescale Semiconductor Application Note AN2904 Rev. 0, 11/2004 Clock Mode Selection for MSC8122 Mask Set K98M By Donald Simon and Wes Ray This application note describes the MSC8122 clock modes for mask set K98M. It also describes a Microsoft Excel application that assists users in determining the internal/external system clock frequencies generated by the input clock and a 5- bit MODCK value. Mask set K98M supports 27 valid clock modes, as tested using the 0K98M and 1K98M mask sets. The Excel application helps you to reduce design time significantly in two ways: Quickly determine whether an input clock frequency and clock mode combination violate frequency limitations. Evaluate a wide range of input clock frequencies to determine which combinations meet system requirements. CONTENTS 1 Mask Set...2 2 Clock Configuration...2 3 Clock Modes...3 4 Excel Application...4 4.1 Mask Set K98M Clock Mode Chart Worksheet...5 4.2 Mask Set K98M Clocking Scheme Worksheet...6 5 Excel Worksheet Quick Guide...7 6 Errata...7 7 Mask Set K98M Configuration Modes...7 8 References...8 Freescale Semiconductor, Inc., 2004. All rights reserved.

Mask Set 1 Mask Set Each MSC8122 device is labeled with a mask set number (for example mask set 1K98M). 2 Clock Configuration Figure 1 shows the functional clock block diagram for mask set K98M. The clock contains an internal system phase-lock loop (SPLL), bus division factor (BUSDF), clocks for the timers, universal asynchronous receiver/transmitter (UART), time-division multiplexer (TDM), and direct slave interface (DSI). The SPLL contains a phase-lock loop feedback division factor (PLLFDF), a PLL input clock division factor (PLLRDF), a phase frequency detector (PFD) and voltage control oscillator (VCO), and a PLL output clock division factor (PLLODF). All components in Figure 1 are clock dividers except for the PFD and VCO. SPLL: system phase-lock loop PLLRDF: PLL input clock division factor PLLFDF: PLL feedback division factor PLLODF: PLL output clock division factor BUSDF: system bus division factor PFD: phase frequency detector VCO: voltage control oscillator Timers UART TDM DSI SPLL CLKIN Division by PLLFDF Division by PLLRDF PFD and VCO Division by 2 X PLLODF Division by BUSDF System Bus SC140 Cores Division by BUSDF CLKOUT Figure 1. MSC8122 Functional Clock Block Diagram for Mask Set K98M The timers, UART, TDM, and DSI modules are shown as dotted lines in Figure 1 because they can use clocks from sources other than the 60x-compatible system bus clock. The timer clock sources are selected by the Timer Configuration Registers, TCFRA and TCFRB. If the system bus clock is the source for the timer, the timer divider is always two. The timers can also be clocked by the GPIO signals, which are clocked separately from the timer interface to the IPBus. The UART baud rate is based on the system bus clock/ (16 SCIBR[12 0]), where the SCIBR is the SCI Baud-Rate register. The TDM processes the data with the system bus clock. The maximum TDM data bit rate processing is limited to half of the system bus clock. Each TDM has three clock zones: The receiver is clocked by RCLKx. The transmitter is clocked by TCLKx. The interface to the local bus is clocked by the system bus clock. 2 Freescale Semiconductor

The DSI has two clearly separated clock zones: Clock Modes The DSI interfaces with the external host asynchronously or via a synchronous interface clocked by the HCLKIN signal. The DSI interfaces with the internal local bus via the system bus clock. For details on clocking for the timers, UART, TDM, and DSI, consult the MSC8122 Reference Manual (MSC8122RM). Table 1 shows the maximum frequencies for the SC140 core and system bus for mask set K98M. You must ensure that the system design does not exceed these maximum frequencies. Table 1. Mask Set K98M Maximum Frequency Limits MSC8122 300 MHz Device 400 MHz Device 500 MHz Device SC140 cores frequency 300 MHz 400 MHz 500 System bus and CLKOUT 100 MHz 133.3 MHz 166.7 DSI clock frequency (HCLKIN) 70 MHz 70 MHz 70 MHz 3 Clock Modes All MSC8122 devices use a 5-bit MODCK value to configure the clock mode. Refer to the clock mode chart in Section 7 for valid settings for mask set K98M. The 5-bit MODCK value is determined at reset by sampling the following: Two multiplexed system pins (MODCK[1 2]) MODCK_H field in the Hard Reset Configuration Word (HRCW), corresponding to MODCK[3 5] The MODCK_H field defines the three most significant bits of the MODCK value. The MODCK[1 2] pins define the two least significant bits. The following example illustrates how the two sets of values define MODCK. The 5- bit values are organized for explanation purposes as one 3-bit and one 2-bit number: xxx-yy, where: xxx = MODCK_H. Three clock mode high bits from the HRCW (bits 28 30) (MODCK[3 5]). yy = MODCK[1 2]. Two clock mode low bits from external inputs. Table 2 shows an example of how to derive the MODCK value from the MODCK_H (aka MODCK[3 5]) and MODCK[1 2] values. Table 2. Clock Mode Example Input MODCK Determination Example HRCW[28 30] = 011 MODCK_H = 011 HD3/MODCK1 pin is pulled up MODCK1 = 0 HD4/MODCK2 pin is pulled down MODCK2 = 1 The example in Table 2 corresponds to a MODCK value of 13: MODCK_H-MODCK[1 2] = 011-01. The clock mode (MODCK) number is the decimal equivalent of the MODCK value read as a binary value: 01101 2 = 13 10 = clock mode 13. Figure 2 shows an example with clock mode 13 for mask set K98M and the functional clock diagram assuming a 50 MHz input clock (CLKIN). Freescale Semiconductor 3

Excel Application SPLL: system phase-lock loop PLLRDF: PLL s input clock division factor PLLFDF: PLL s feedback division factor PLLODF: PLL s output clock division factor BUSDF: 60x bus division factor VCO: voltage control oscillator Timers UART TDM DSI 50 MHz 6.25 MHz 50 MHz 50 MHz SPLL Division by CLKIN 50 MHz PLLFDF PFD and Division by Division by VCO 2 X PLLODF PLLRDF 50 MHz 1600 MHz 800 MHz Division by BUSDF System Bus 100 MHz SC140 Cores 400 MHz Division by BUSDF CLKOUT 100 MHz Clock Mode MODCK_H- MODCK[1 3] FDF RDF VCO System Bus/ CLKIN Ratio Core/Bus Ratio 13 011-01 2 1 32 2x 4x 4 Excel Application Figure 2. Mask Set K98M Clocking Example This section explains how to use the Microsoft Excel file listed in Table 3. Table 3. Mask Set K98M Excel File MSC8122 Mask Set 0K98M, 1K98M Excel File Name MSC8122_Mask_Set_K98M.xls When the Excel file in Table 3 is opened, a window like that shown in Figure 3 appears. Select ENABLE MACROS to enter the spreadsheet. Figure 3. Opening Clock Spreadsheet in Excel 4 Freescale Semiconductor

Excel Application The Excel file contains the following two worksheets: Clock Mode Chart Clocking Scheme. 4.1 Mask Set K98M Clock Mode Chart Worksheet Figure 4 show the Clock Mode Chart worksheet, which lists the valid clock modes for the mask set K98M. It requires two entries: CLKIN (MHZ) (cell C5) MAX CORE FREQUENCY (MHZ) (cell E6). When the desired CLKIN frequency in MHz (input clock) and MAX CORE FREQUENCY in MHz are entered into cell C5 and E6, respectively, the other cell values in the worksheet update automatically. Only rows colored in yellow are valid. All values in red are invalid. Column R in the spreadsheet indicates whether the CLKIN, MAX CORE FREQUENCY frequency, and a specific clock mode constitute a valid combination. Figure 4. Mask Set K98M Clock Mode Chart Freescale Semiconductor 5

Excel Application 4.2 Mask Set K98M Clocking Scheme Worksheet Figure 5 displays the mask set K98M Clocking Scheme worksheet, which shows the various frequencies, dividers, and multipliers used in the MSC8122 clock module. It requires three entries: CLKIN (MHz): (cell C5) Clock Mode: (cell C6) Max Core Freq: (cell C7) Figure 5 depicts an example with a clock in (CLKIN) value of 50 MHz (cell C5), a clock mode number of 13 (cell C6), and a max core frequency of 400 MHz (cell C7). Error messages are shown in cell A10. If there are no error messages, cell A10 is left blank. All values changed in the Clock Mode Chart worksheet do not change the Clocking Scheme worksheet, and vice versa. Figure 5. Mask Set K98M Clocking Scheme Worksheet Example 6 Freescale Semiconductor

Excel Worksheet Quick Guide 5 Excel Worksheet Quick Guide Table 4 lists the steps for using the Excel worksheets. Table 4. Excel Program Procedure Step Action Comments 1 Start the Excel program and open the file that corresponds to the MSC8122 mask set. 2 Select a worksheet: Clock Mode Chart Clocking Scheme 3A For the Clock Mode Chart worksheet: Enter CLKIN frequency into cell C5. Enter the maximum rated speed of the MSC8122 into cell E6. Verify that there are no frequency violations in columns R and S. 3B For the Clocking Scheme worksheet: Enter CLKIN frequency into cell C5. Enter the Clock Mode number into cell C6. Enter the maximum rated speed of the MSC8122 into cell C7. Verify that there are no frequency or errata violations (cell A10). Select MSC812x_Mask_Set_K98M.xls If Clock Mode Chart is chosen, perform step 3A. If Clocking Scheme Chart is chosen, perform step 3B. Refer to rows A22 through A55. Rows in yellow are valid modes. Items in red are out of spec. Refer to Section 7 or the Clock Mode Chart worksheet for valid clock modes. Cells A24 through D27 show the input values. Cells A30 through D33 show the output values. When calculating clock frequencies, be sure to check the data sheet for the maximum/minimum input clock frequencies and the errata for limitations. 6 Errata There are no known errata in the K98M mask set that impose clock limitations. For a complete list of errata, consult the Freescale web site listed on the back cover of this document. 7 Mask Set K98M Configuration Modes Table 6 show the clock modes for mask set K98M and their respective bus/clkin and core/bus ratios. Mode Table 5. Clock Configuration Modes MODCK[3 5] MODCK[1 2] Bus/CLKIN Ratio MSC8122 Core/Bus Ratio 0 000-00 1 3 1 000-01 2 3 2 000-10 2 4 3 000-11 4 4 4 001-00 3 3 5 001-01 4 3 Freescale Semiconductor 7

References Mode 8 References MSC8122 Technical Data. MSC8122RM, MSC8122 Reference Manual. MSC8122UG, MSC8122 User s Guide. Table 5. Clock Configuration Modes (Continued) MODCK[3 5] MODCK[1 2] Bus/CLKIN Ratio MSC8122 6 001-10 3 4 7 001-11 1 4 8 010-00 2 4 9 010-01 4 4 10 010-10 2 3 11 010-11 1.5 4 12 011-00 Reserved 13 011-01 2 4 14 011-10 2 5 15 011-11 1 5 16 100-00 2 5 17 100-01 3 5 18 100-10 2 6 19 100-11 1 6 20 101-00 2 6 21 101-01 1 8 22 101-10 2 8 23 101-11 1 10 24 110-01 Reserved 25 110-00 Reserved 26 110-10 Reserved 27 110-11 Reserved Core/Bus Ratio 28 111-00 1 3 29 111-01 1 4 30 111-10 1 5 31 111-11 1 6 8 Freescale Semiconductor

References NOTES: Freescale Semiconductor 9

References NOTES: 10 Freescale Semiconductor

References NOTES: Freescale Semiconductor 11

How to Reach Us: Home Page: www.freescale.com E-mail: support@freescale.com USA/Europe or Locations not listed: Freescale Semiconductor Technical Information Center, CH370 1300 N. Alma School Road Chandler, Arizona 85224 +1-800-521-6274 or +1-480-768-2130 support@freescale.com Europe, Middle East, and Africa: Freescale Halbleiter Deutschland GMBH Technical Information Center Schatzbogen 7 81829 München, Germany +44 1296 380 456 (English) +46 8 52200080 (English) +49 89 92103 559 (German) +33 1 69 35 48 48 (French) support@freescale.com Japan: Freescale Semiconductor Japan Ltd. Headquarters ARCO Tower 15F 1-8-1, Shimo-Meguro, Meguro-ku, Tokyo 153-0064, Japan 0120 191014 or +81 3 5437 9125 support.japan@freescale.com Asia/Pacific: Freescale Semiconductor Hong Kong Ltd. Technical Information Center 2 Dai King Street Tai Po Industrial Estate Tai Po, N.T. Hong Kong +800 2666 8080 Information in this document is provided solely to enable system and software implementers to use Freescale Semiconductor products. There are no express or implied copyright licenses granted hereunder to design or fabricate any integrated circuits or integrated circuits based on the information in this document. Freescale Semiconductor reserves the right to make changes without further notice to any products herein. Freescale Semiconductor makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does Freescale Semiconductor assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. Typical parameters which may be provided in Freescale Semiconductor data sheets and/or specifications can and do vary in different applications and actual performance may vary over time. All operating parameters, including Typicals must be validated for each customer application by customer s technical experts. Freescale Semiconductor does not convey any license under its patent rights nor the rights of others. Freescale Semiconductor products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the Freescale Semiconductor product could create a situation where personal injury or death may occur. Should Buyer purchase or use Freescale Semiconductor products for any such unintended or unauthorized application, Buyer shall indemnify and hold Freescale Semiconductor and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that Freescale Semiconductor was negligent regarding the design or manufacture of the part. Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. StarCore is a trademark of StarCore LLC. All other product or service names are the property of their respective owners. Freescale Semiconductor, Inc. 2004. For Literature Requests Only: Freescale Semiconductor Literature Distribution Center P.O. Box 5405 Denver, Colorado 80217 1-800-441-2447 or 303-675-2140 Fax: 303-675-2150 LDCForFreescaleSemiconductor@hibbertgroup.com AN2904 Rev. 0 11/2004