Setting Oscillation Stabilization Wait Time of the main clock (CLKMO) and sub clock (CLKSO)

Similar documents
Base Timer Channel (BT) Features. General Description. When to Use a PDL_BT Component 1.0

Capable of adjusting detection timings for start bit and data bit

Multifunction Serial Interface (PDL_MFS) Features. General Description. When to Use a PDL_MFS Component. Quick Start 1.0

PSoC Creator Quick Start Guide

Digital Multiplexer and Demultiplexer. Features. General Description. Input/Output Connections. When to Use a Multiplexer. Multiplexer 1.

This section describes the various input and output connections for the SysInt Component.

Use the Status Register when the firmware needs to query the state of internal digital signals.

Digital Logic Gates. Features. General Description. Input/Output Connections. When to Use a Logic Gate. Input 1. Input 2. Inputs 3-8 * 1.

This input determines the next value of the output. The output does not change until the next rising edge of the clock.

One 32-bit counter that can be free running or generate periodic interrupts

This optional pin is present if the Mode parameter is set to SyncMode or PulseMode. Otherwise, the clock input does not show.

Use the Status Register when the firmware needs to query the state of internal digital signals.

The AMuxSeq is capable of having between 2 and 32 analog inputs. The paired inputs are present when the MuxType parameter is set to "Differential.

PSoC 6 Current Digital to Analog Converter (IDAC7)

Use a DieTemp component when you want to measure the die temperature of a device.

Automatic reload of the period to the count register on terminal count

For More Information Please contact your local sales office for additional information about Cypress products and solutions.

THIS SPEC IS OBSOLETE

Comparator (Comp) Features. General Description. When to use a Comparator Low input offset. User controlled offset calibration

PSoC 4 Current Digital to Analog Converter (IDAC)

CE CY8CKIT-042-BLE F-RAM Data Logger

ModusToolbox USB Configurator Guide

Optional Pause Pulse for constant frame length of 282 clock ticks

W H I T E P A P E R. Timing Uncertainty in High Performance Clock Distribution. Introduction

Analog Multiplexer (AMux) Features. General Description. Input/Output Connections. When to Use an AMux Single or differential connections

For More Information Please contact your local sales office for additional information about Cypress products and solutions.

EZ-PD Analyzer Utility User Guide

Cypress BLE-Beacon ios App User Guide

Supports a range of speeds of external memories (from 5 to 200 ns) Supports external memory power-down, sleep, and wakeup modes

W H I T E P A P E R. Introduction. Devices. Energy Comparison of Cypress F-RAM and EEPROM

Configurable transfer modes: single transfer, 1D transfer (using X loop) and 2D transfer (using both X and Y loops).

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

CE95314 PSoC 3, PSoC 4, and PSoC 5LP EZI2C

AN F²MC-16FX Family, I2C. Contents. 1 Introduction. This application note describes how to communicate via I2C with a Serial EEPROM.

F²MC-8FX Family MB95200H/210H Series Capacitance Touch Sensor

FM3 Family Motor Graphical Interface User Manual

Supports Analog, Digital I/O and Bidirectional signal types

AN FR Family, MB91F467S Emulation. 1 Introduction. 2 Hardware Setup. 2.1 Required parts

BGM Adaptor MB E Operation Manual. 8FX Family 8-bit Microcontroller. Doc. # Rev. *A

The Emulated EEPROM Component should be used to store nonvolatile data on a target device.

Nine-Output 3.3 V Buffer

Chip Errata for the MB96300/MB96600 Series MOVS/MOVSW Overlap of source and destination region, F 2 MC-16FX Microcontroller

Shift Register. Features. General Description 1.20

For More Information Please contact your local sales office for additional information about Cypress products and solutions.

TI: Uses a short pulse on spi_select to indicate start of transaction. National Semiconductor (Microwire): Transmission and Reception occur separately

PSoC Creator 4.2 Production Release Notes

EZ I2C Slave. Features. General Description. When to use a EZ I 2 C Slave Industry standard Philips I 2 C bus compatible interface

Use the Status Register when the firmware needs to query the state of internal digital signals.

FM4 S6E2Cx Series Over The Air Update 32-Bit Microcontroller With Embedded Dual Flash

Use the Status Register when the firmware needs to query the state of internal digital signals.

FM Universal Peripheral Driver Library Quick Start Guide

MB39C811-EVB-03. PMIC for Solar/Vibration Energy Harvesting, Evaluation Board Operation Guide. Doc. No Rev. *B

Peripheral Driver Library (PDL) Component (PDL Application Programming Interface (API) only)

Master modes provide all functionality necessary to work in a multi-master environment.

This optional pin is present if the Mode parameter is set to SyncMode or PulseMode. Otherwise, the clock input does not show.

Sequencing Successive Approximation ADC (ADC_SAR_Seq) Features. General Description. When to Use the ADC_SAR_Seq Supports PSoC 5LP devices

CY8CKIT-002. PSoC MiniProg3 Program and Debug Kit Guide. Doc. # Rev. *H

FM0+ Family S6E1A1 Series, Flash Programming Guide

External Library. Features. General Description 1.0. The library provides documentation for external components

Version February 02, 2018

PSoC 1 In-Circuit Emulator Development Kit Guide

This optional pin is present if the Mode parameter is set to SyncMode or PulseMode. Otherwise, the clock input does not show.

Voltage Reference (Vref) Features. General Description. Input/Output Connections. When to Use a Vref Voltage references and supplies

PSoC 4 Voltage Comparator (Comp) Features. General Description. When to Use Comparator Low input offset. User controlled offset calibration

Cypress EZ-PD Configuration Utility User Manual

Operational Amplifier (Opamp) Features. General Description. Input/Output Connections. Noninverting Analog Follower or Opamp configuration

FR Family SOFTUNE Workbench User's Manual for V6

GPIF II Designer - Quick Start Guide

CY4701 EZ-USB GX3 Reference Design Guide

Comparator (Comp) Features. General Description. When to use a Comparator 1.60

PSoC 1 I 2 C Bootloader

The color of the Clock component waveform symbol will change based on the clock's domain (as shown in the DWR Clock Editor), as follows:

Filter_ADC_VDAC_poll Example Project Features. General Description. Development Kit Configuration

Cypress HX2VL Configuration Utility Blaster User Guide

Graphic LCD Interface (GraphicLCDIntf) Features. General Description. When to Use a GraphicLCDIntf 1.80

THIS SPEC IS OBSOLETE

Hardware Design Guidelines for Using EZ-PD CCG3PA Devices in Power Adapter Applications

16-Mbit (512 K words 32 bits) Static RAM with Error-Correcting Code (ECC)

CE PSoC 4: Time-Stamped ADC Data Transfer Using DMA

PSoC 4 Operational Amplifier (Opamp) Features. General Description. When to Use the Opamp Follower or Opamp configuration

Writing to Internal Flash in PSoC 3 and PSoC 5

CY7C603xx CYWUSB

HX2VL Development Kit Guide. Doc. # Rev. *A

PSoC 4 Low Power Comparator (LPComp) Features. General Description. When to Use a LPComp 2.0. Low input offset. User controlled offset calibration

CE56273 Associated Part Families: CY8C38xx/CY8C55xx Software: PSoC Creator Related Hardware: CY8CKIT-001 Author: Anu M D

For one or more fully configured, functional example projects that use this user module go to

Cypress HX2VL Configuration Utility Blaster User Guide

HX2VL Development Kit Guide. Doc. # Rev. **

PSoC Creator Component Datasheet

EZ-PD Dock Reference Design Guide

Controller Continuum. for Microcontrollers V6.3. Quick Start

Application Development Guide

The following document contains information on Cypress products.

CCG2 Power Adapter Reference Design and API Guide. Doc. No Rev.**

Cypress Peripheral Driver Library v2.1 Quick Start Guide

MB39C831-EVB-02 Thermal Energy Harvesting Evaluation Board Operation Guide

8 to 1 Analog Multiplexer Datasheet AMux8 V 1.1. Features and Overview

16-Bit Hardware Density Modulated PWM Data Sheet

16K/64K/128K 9 Low-Voltage Deep Sync FIFOs

AN SIO Tips and Tricks in PSoC 3 / PSoC 5. Application Note Abstract. Introduction

Transcription:

1.0 Features Selecting Clock mode Internal Bus Clock Frequency Division Control PLL Clock Control Setting Oscillation Stabilization Wait Time of the main clock (CLKMO) and sub clock (CLKSO) Interrupts Factors General The Peripheral Driver Library (PDL) Clock functions (CLK) unit generates various types of clocks used to operate the MCU. Source clock is the generic name for external and internal oscillation clocks of this MCU. The source clocks can be: Main clock (CLKMO), Sub clock (CLKSO), Highspeed CR clock (CLKHC), Low-speed CR clock (CLKLC), Main PLL clock (CLKPLL). Dividing the master clock frequency can generate a base clock. In addition, dividing the base clock can generate each bus clock. This component uses firmware drivers from the PDL_CLK module, which is automatically added to your project after a successful build. When to Use a PDL_CLK Component Use the PDL_CLK component for configuration of the settings of timing. Quick Start 1. Drag a PDL_CLK component from the Component Catalog FMx/System/ folder onto your schematic. The placed instance takes the name CLK_1. 2. Double-click to open the component s Configure dialog. 3. On the Basic tab set the following parameters: enable needed peripheral buses set clock divider value Cypress Semiconductor Corporation 198 Champion Court San Jose, CA 95134-1709 408-943-2600 Document Number: 002-15595 Rev. ** Revised September 21, 2016

PSoC Creator Component Datasheet 4. Build the project to verify the correctness of your design. This will add the required PDL modules to the Workspace Explorer and generate configuration data for the CLK_1 instance. 5. In the main.c file, initialize the peripheral and start the application. Clk_Init(&CLK_1_Config); Clk_EnableMainClock(TRUE);/* enable Main oscillator */ Clk_EnablePllClock(TRUE);/* enable PLL oscillator */ Clk_SetSource(ClkPll);/* transit to main clock */ 6. Build and program the device. Component Parameters The PDL_CLK component Configure dialog allows you to edit the configuration parameters for the component instance. Basic Tab This tab contains the component parameters used in the basic peripheral initialization settings. enapb0div bapb1disable enapb1div bapb2disable enapb2div enbaseclkdiv APB0 clock divider. Disable APB1 over-rides the divider setting. APB1 clock divider. Disable APB2 over-rides the divider setting. APB2 clock divider. Base clock divider. Oscilators Tab This tab contains the Oscilators configuration settings. bmcoirq enmcowaittime pfnmcostabcb bpllirq enpllowaittime Enable main clock oscillation stabilization completion interrupt. Main clock oscillator startup wait time (2^ enmcowaittime/clk). Main clock stabilization call-back function. Note: this generates a declaration only - USER must implement the function. Enable PLL oscillation stabilization completion interrupt. PLL startup wait time (2^ enpllowaittime/clk). Page 2 of 5 Document Number: 002-15595 Rev. **

pfnpllstabcb u8pllk u8pllm u8plln bscoirq enscowaittime pfnscostabcb PLL stabilization call-back function enter function name or address, or modify in firmware. PLL input clock frequency division ratio, PLLK. PLL VCO clock frequency division ratio, PLLM. PLL feedback frequency division ratio, PLLN. Enable sub-clock oscillation stabilization completion interrupt. Sub-clock oscillator startup wait time (2^ enscowaittime/clk). Sub-clock stabilization call-back function. Note: this generates a declaration only - USER must implement the function. Component Usage After a successful build firmware drivers from the PDL_CLK module, are added to your project in the pdl/drivers/clk folder. Pass the generated data structures to the associated PDL functions in your application initialization code to configure the peripheral. Generated Data The PDL_CLK component populates the following peripheral initialization data structure(s). The generated code is placed in C source and header files that are named after the instance of the component (e.g. CLK_1_config.c). Each variable is also prefixed with the instance name of the component. Data Structure Type Name stc_clk_config_t CLK_1_Config Configuration structure. Pass this to Clk_Init() in order to initialize the peripheral. Once the component is initialized, the application code should use the peripheral functions provided in the referenced PDL files. Refer to the PDL for the list of provided API functions. To access this document, right-click on the component symbol on the schematic and choose Open API Documentation option in the drop-down menu. Data in RAM The generated data may be placed in flash memory (const) or RAM. The former is the more memory-efficient choice if you do not wish to modify the configuration data at run-time. Under the Built-In tab of the Configure dialog set the parameter CONST_CONFIG to make your selection. The default option is to place the data in flash. Document Number: 002-15595 Rev. ** Page 3 of 5

PSoC Creator Component Datasheet Interrupt Support If the PDL_CLK component is specified to trigger interrupts, it will generate the callback function declaration that will be called from the CLK ISR. The user is then required to provide the actual callback code. If a null string is provided the struct is populated with zeroes and the callback declaration is not generated. Thus, it is the user s responsibility to modify the struct in firmware. The component generates the following function declarations. Function Callback CLK_1_PllStabIrqCb PLL stabilization call-back function enter function name or address, or modify in firmware. Note: this generates a declaration only - USER must implement the function. CLK_1_McoStabIrqCb Main clock stabilization call-back function. Note: this generates a declaration only - USER must implement the function. CLK_1_ScoStabIrqCb Sub-clock stabilization call-back function. Note: this generates a declaration only - USER must implement the function. Code Examples and Application Notes There are numerous code examples that include schematics and example code available online at the Cypress Code Examples web page. Cypress also provides a number of application notes describing how FMx devices can be integrated into your design. You can access the Cypress Application Notes search web page at www.cypress.com/appnotes. Resources The PDL_CLK component uses the Clock Functions (CLK) peripheral block. References FM0+ Family of 32-bit ARM Cortex -M0+ Microcontrollers Peripheral Manuals Cypress FM0+ Family of 32-bit ARM Cortex -M0+ Microcontrollers Page 4 of 5 Document Number: 002-15595 Rev. **

Component Changes This section lists the major changes in the component from the previous version. Version of Changes Reason for Changes / Impact 1.0 Initial Version Cypress Semiconductor Corporation, 2016. This document is the property of Cypress Semiconductor Corporation and its subsidiaries, including Spansion LLC ( Cypress ). This document, including any software or firmware included or referenced in this document ( Software ), is owned by Cypress under the intellectual property laws and treaties of the United States and other countries worldwide. Cypress reserves all rights under such laws and treaties and does not, except as specifically stated in this paragraph, grant any license under its patents, copyrights, trademarks, or other intellectual property rights. If the Software is not accompanied by a license agreement and you do not otherwise have a written agreement with Cypress governing the use of the Software, then Cypress hereby grants you a personal, non-exclusive, nontransferable license (without the right to sublicense) (1) under its copyright rights in the Software (a) for Software provided in source code form, to modify and reproduce the Software solely for use with Cypress hardware products, only internally within your organization, and (b) to distribute the Software in binary code form externally to end users (either directly or indirectly through resellers and distributors), solely for use on Cypress hardware product units, and (2) under those claims of Cypress s patents that are infringed by the Software (as provided by Cypress, unmodified) to make, use, distribute, and import the Software solely for use with Cypress hardware products. Any other use, reproduction, modification, translation, or compilation of the Software is prohibited. TO THE EXTENT PERMITTED BY APPLICABLE LAW, CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS DOCUMENT OR ANY SOFTWARE OR ACCOMPANYING HARDWARE, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. To the extent permitted by applicable law, Cypress reserves the right to make changes to this document without further notice. Cypress does not assume any liability arising out of the application or use of any product or circuit described in this document. Any information provided in this document, including any sample design information or programming code, is provided only for reference purposes. It is the responsibility of the user of this document to properly design, program, and test the functionality and safety of any application made of this information and any resulting product. Cypress products are not designed, intended, or authorized for use as critical components in systems designed or intended for the operation of weapons, weapons systems, nuclear installations, life-support devices or systems, other medical devices or systems (including resuscitation equipment and surgical implants), pollution control or hazardous substances management, or other uses where the failure of the device or system could cause personal injury, death, or property damage ( Unintended Uses ). A critical component is any component of a device or system whose failure to perform can be reasonably expected to cause the failure of the device or system, or to affect its safety or effectiveness. Cypress is not liable, in whole or in part, and you shall and hereby do release Cypress from any claim, damage, or other liability arising from or related to all Unintended Uses of Cypress products. You shall indemnify and hold Cypress harmless from and against all claims, costs, damages, and other liabilities, including claims for personal injury or death, arising from or related to any Unintended Uses of Cypress products. Cypress, the Cypress logo, Spansion, the Spansion logo, and combinations thereof, WICED, PSoC, CapSense, EZ-USB, F-RAM, and Traveo are trademarks or registered trademarks of Cypress in the United States and other countries. For a more complete list of Cypress trademarks, visit cypress.com. Other names and brands may be claimed as property of their respective owners. Document Number: 002-15595 Rev. ** Page 5 of 5