ice40 Oscillator Usage Guide

Similar documents
Arbitration and Switching Between Bus Masters

LatticeECP3 High-Speed I/O Interface

SPI Flash Programming and Hardware Interfacing Using ispvm System

LMS is a simple but powerful algorithm and can be implemented to take advantage of the Lattice FPGA architecture.

AN LPC1700 timer triggered memory to GPIO data transfer. Document information. LPC1700, GPIO, DMA, Timer0, Sleep Mode

Software Real Time Clock Implementation on MC9S08LG32

LEVERAGING FPGA AND CPLD DIGITAL LOGIC TO IMPLEMENT ANALOG TO DIGITAL CONVERTERS

Simulating Power Supply Sequences for Power Manager Devices Using PAC-Designer LogiBuilder

71M6521 Energy Meter IC. Real Time Clock Compensation. The Challenge. The RTC in the 71M6521D/F. Theory of Operation APPLICATION NOTE

Ingar Fredriksen AVR Applications Manager. Tromsø August 12, 2005

AN LPC1700 RTC hardware auto calibration. Document information. RTC, Hardware Auto Calibration, LPC1700, Graphic LCD

EMC6D103S. Fan Control Device with High Frequency PWM Support and Hardware Monitoring Features PRODUCT FEATURES ORDER NUMBERS: Data Brief

76-77 GHz RF Transmitter Front-end for W-band Radar Applications

Scanning Comparator (ScanComp) Features. General Description. Input/Output Connections. When to Use a Scanning Comparator. clock - Digital Input* 1.

MAX II ISP Update with I/O Control & Register Data Retention

AN2604 Application note

White Paper Utilizing Leveling Techniques in DDR3 SDRAM Memory Interfaces


Transmission of High-Speed Serial Signals Over Common Cable Media

AND8336. Design Examples of On Board Dual Supply Voltage Logic Translators. Prepared by: Jim Lepkowski ON Semiconductor.

AVR1003: Using the XMEGA Clock System. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AN588 ENERGY HARVESTING REFERENCE DESIGN USER S GUIDE. 1. Kit Contents. 2. Introduction. Figure 1. Energy Harvesting Sensor Node

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

AN_6521_035 APRIL 2009

Microtronics technologies Mobile:

AN974 APPLICATION NOTE

White Paper Reduce Total System Cost in Portable Applications Using Zero-Power CPLDs

APPLICATION NOTE. Atmel AVR134: Real Time Clock (RTC) Using the Asynchronous Timer. Atmel AVR 8-bit Microcontroller. Introduction.

Intel architecture. Platform Basics. White Paper Todd Langley Systems Engineer/ Architect Intel Corporation. September 2010

Theory of Operation. Figure 1 illustrates a fan motor circuit used in an automobile application. The TPIC kω AREF.

AN111: Using 8-Bit MCUs in 5 Volt Systems

ES_LPC4357/53/37/33. Errata sheet LPC4357/53/37/33. Document information

MicroMag3 3-Axis Magnetic Sensor Module

Real-Time Clock. * Real-Time Computing, edited by Duncan A. Mellichamp, Van Nostrand Reinhold

8-bit Microcontroller. Application Note. AVR415: RC5 IR Remote Control Transmitter. Features. Introduction. Figure 1.

Designing an efficient Programmable Logic Controller using Programmable System On Chip

Switch board datasheet EB

AND9035/D. BELASIGNA 250 and 300 for Low-Bandwidth Applications APPLICATION NOTE

Flexible Active Shutter Control Interface using the MC1323x

Wireless Temperature

HT1632C 32 8 &24 16 LED Driver

ISP Engineering Kit Model 300

Adding WiFi to Your Embedded System. WPG Americas & Gainspan Titus Wandinger (WPG) & Su Li (Gainspan) April 23, 2013

AN3332 Application note

14-stage ripple-carry binary counter/divider and oscillator

Microcontroller for Variable Speed BLDC Fan Control System. T.C. Lun System Engineer, Freescale Semiconductor, Inc.

AVR134: Real Time Clock (RTC) using the Asynchronous Timer. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

ICS514 LOCO PLL CLOCK GENERATOR. Description. Features. Block Diagram DATASHEET

Simplifying System Design Using the CS4350 PLL DAC

IRTC Compensation and 1 Hz Clock Generation

Pre-tested System-on-Chip Design. Accelerates PLD Development

Driving SERDES Devices with the ispclock5400d Differential Clock Buffer

Application Note AN_299. FT800_FT801_Internal_Clock _Trimming

DC Motor Driver 24V 20A [RKI-1340]

SmartDesign MSS. Clock Configuration

GTS-4E Hardware User Manual. Version: V1.1.0 Date:

MX PIC24F Educational Module User Manual

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

USER GUIDE EDBG. Description

LC898300XA. Functions Automatic adjustment to the individual resonance frequency Automatic brake function Initial drive frequency adjustment function

Timer A (0 and 1) and PWM EE3376

AP KHz, 2A PWM BUCK DC/DC CONVERTER. Description. Pin Assignments V IN. Applications. Features. (Top View) GND GND. Output AP1509 GND GND

LatticeXP2 Configuration Encryption and Security Usage Guide

AN2760 Application note

Spread-Spectrum Crystal Multiplier DS1080L. Features

AN862. OPTIMIZING Si534X JITTER PERFORMANCE IN NEXT GENERATION INTERNET INFRASTRUCTURE SYSTEMS. 1. Introduction

AVR Timer/Counter. Prof Prabhat Ranjan DA-IICT, Gandhinagar

CS V/250 ma, 5.0 V/100 ma Micropower Low Dropout Regulator with ENABLE

8-bit Microcontroller. Application Note. AVR134: Real-Time Clock (RTC) using the Asynchronous Timer. Features. Theory of Operation.

How To Use A Watt Saver On A Microcontroller (Watt Saver) On A Cell Phone Or Mp3 Player

RPLIDAR. Low Cost 360 degree 2D Laser Scanner (LIDAR) System Development Kit User Manual Rev.1

Testing Low Power Designs with Power-Aware Test Manage Manufacturing Test Power Issues with DFTMAX and TetraMAX

ICS379. Quad PLL with VCXO Quick Turn Clock. Description. Features. Block Diagram

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

STLQ ma, ultra low quiescent current linear voltage regulator. Description. Features. Application

Clocking Wizard v5.1

Serial port interface for microcontroller embedded into integrated power meter

Tire pressure monitoring

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

LatticeECP2/M S-Series Configuration Encryption Usage Guide

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

3-input EXCLUSIVE-OR gate. The 74LVC1G386 provides a 3-input EXCLUSIVE-OR function.

AT15007: Differences between ATmega328/P and ATmega328PB. Introduction. Features. Atmel AVR 8-bit Microcontrollers APPLICATION NOTE

DDS. 16-bit Direct Digital Synthesizer / Periodic waveform generator Rev Key Design Features. Block Diagram. Generic Parameters.

AVR131: Using the AVR s High-speed PWM. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE

Description. Table 1. Device summary. Order code Temperature range Package Packaging Marking

ADS9850 Signal Generator Module

Freescale Semiconductor, Inc. Product Brief Integrated Portable System Processor DragonBall ΤΜ

AP KHz, 3A PWM BUCK DC/DC CONVERTER. Pin Assignments. Description. Features. Applications. ( Top View ) 5 SD 4 FB 3 Gnd 2 Output 1 V IN

AN1991. Audio decibel level detector with meter driver

Measuring Metastability

Optimizing VCO PLL Evaluations & PLL Synthesizer Designs

Power Reduction Techniques in the SoC Clock Network. Clock Power

LOW POWER SPREAD SPECTRUM OSCILLATOR

Hello and welcome to this training module for the STM32L4 Liquid Crystal Display (LCD) controller. This controller can be used in a wide range of

MAINTENANCE & ADJUSTMENT

AN4646 Application note

Transcription:

April 2015 Technical Note TN1296 Introduction The family, specifically Ultra and UltraLite, features two on-chip oscillators. An ultra-low power 10 khz oscillator is provided for Always-On applications and background polling that allow higher power processors to remain in power-down or sleep mode, conserving overall power consumption. A low power 48 MHz oscillator with output divider is provided for sensor management and pre-processing functions. These oscillators are intended for general clocking of internal logic and state machines. Key Features Two oscillators are available to users: SB_LFOSC Low Frequency Oscillator High Frequency Oscillator with output divider On-Chip Oscillator Overview You can access the two modules: SB_LFOSC and SB_HSOSC with enabled inputs and which you can dynamically control as shown in Figure 1. SB_LFOSC runs at 10 khz and runs at maximum 48 MHz with output divider by 1, 2, 4 or 8. SB_LFOSC and provide internal clock sources to user designs. These clocks can directly route to the global clock network or to local fabric. Figure 1. On-Chip Oscillator CLKHF_EN CLKHF_PU CLKHF CLKLF_EN CLKLF_PU SB_LFOSC CLKLF 2015 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice. www.latticesemi.com 1 TN1296_1.2

I/O Port Description Table 1. I/O Pin Name Pin Direction Description CLKHF_EN Enabling CLKHF output to be oscillating. I This does not stop the oscil- lator, but only disables the output. CLKHF O Oscillator Clock Output. CLKHF_PU I Powering up the. Table 2. SB_LFOSC Pin Name Pin Direction Description CLKLF_EN Enabling CLKLF output to be oscillating. I This does not stop the oscil- lator, but only disables the output CLKLF O Oscillator clock output CLKLF_PU I Powering up the SB_LFOSC Connectivity Guideline The and SB_LFOSC can be used as clock source. Their outputs are available for the user. They should be connected to the global clock network or local fabric. By default, the outputs will be routed to global clock network. To route to local fabric, please see the examples in the Appendix: Design Entry section. Note that Oscillator cannot provide accurate frequency. For applications that require more accuracy, it is recommended to use calibration circuit to support the oscillator used as clock source. Figure 2 shows an example of the use of a reference clock that is only temporarily available for calibration. Figure 2. Oscillator Calibration Example Internal 48 MHz Counter AP Reference Clock The calibration circuit for Oscillator can be improved for the purpose of power saving as shown in Figure 3. In this example, 10 khz oscillator is always on. Calibrated divider provides timing for LED on-off. When LED is on, SB_LFOSC Enable turns on 48 MHz oscillator ( turns on in two cycles). PWM provides accurate PWM for LED. Power benefit is 48 MHz only when LED is on and minimum power when LED is off. 2

Figure 3. Oscillator Used for Dynamic Clock Calibration That Can Be Used On Service LED Internal 10 KHz SB_LFOSC 16 Divider 10 Hz LED Control Enable Counter Preload Internal PWM LED PWM OUT AP 24 MHz Reference Enable LED PWM OUT For applications that need clocks within + 10% tolerance, such as USB Type-C PHY, a compensated clock generation logic must be used. An example clock generation logic for generating compensated 600 khz clock is shown in Figure 4. The target clock is generated by dividing the 48 MHz high speed clock by a variable divisor. The value of the divisor is dynamically calculated from the ratio of the high speed clock (48 MHz) frequency to the low speed clock (10 khz) frequency. The circuit described here uses some approximations to the calculations to achieve lower LUT utilization. The 600 khz output clock from this circuit is expected to be within + 10% range as the 10 khz slow speed clock is known to have under + 10% tolerance. Figure 4. Example Clock Generation Logic LFCK 10 khz HFCK 48 MHz Calibration design PHY Clock Please refer to UGxx for further details of this clock calibration design. Power Management Options When disabled, the SB_LFOSC and are in standby mode by default and consume only DC leakage. It is suggested to always enable SB_LFOSC and enable after there is an activity detected and the products return to full power mode for data analysis/processing. Technical Support Assistance Submit a technical support case via www.latticesemi.com/techsupport. 3

Revision History Date Version Change Summary April 2015 1.2 Updated Connectivity Guideline section. Added example of clock generation logic. Updated Technical Support Assistance section. January 2015 1.1 Added support for UltraLite. June 2014 01.0 Initial release. 4

Appendix: Design Entry The following examples illustrate and SB_LFOSC usage with VHDL and Verilog. SB_LFOSC Usage with Verilog Synthesis Attributes /* synthesis ROUTE_THROUGH_FABRIC = <value> */ Value: 0: Use dedicated clock network. Default option. 1: Use fabric routes. Verilog Instantiation SB_LFOSC OSCInst1 (.CLKLF_EN(ENCLKLF),.CLKLF_PU(CLKLF_POWERUP),.CLKLF(CLKLF) ) /* synthesis ROUTE_THROUGH_FABRIC= [0 1] */; Usage with Verilog Synthesis Attributes /* synthesis ROUTE_THROUGH_FABRIC = <value> */ Value: 0: Use dedicated clock network. Default option. 1: Use fabric routes. Parameter Values The primitive contains the following parameter and their default values: Parameter CLKHF_DIV = 2 b00 : 00 = div1, 01 = div2, 10 = div4, 11 = div8 ; Default = 00 Verilog Instantiation OSCInst0 (.CLKHF_EN(ENCLKHF),.CLKHF_PU(CLKHF_POWERUP),.CLKHF(CLKHF) ) /* synthesis ROUTE_THROUGH_FABRIC= [0 1] */; Defparam OSCInst0.CLKHF_DIV = 2 b00; Oscillator Usage Guide 5