MHz External Crystal Oscillator (ECO) on CY8CKIT-050 and CY8CKIT-010 – KBA210673
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Version: **
Translation - Japanese: CY8CKIT-050 と CY8CKIT-010 の MHz 外部水晶発振器 (ECO) - KBA210673 - Community Translated (JA)
Question:
How do I configure PSoC® 5LP kit hardware and firmware to use the MHz External Crystal Oscillator (ECO)?
Answer:
See the following table that lists the internal main oscillator (IMO) accuracy of PSoC 3 and PSoC 5LP devices:
Devices | PSoC 3 | PSoC 5LP | ||||||
CY8C32 family | CY8C34 family | CY8C36 family | CY8C38 family | CY8C52LP family | CY8C54LP family | CY8C56LP family | CY8C58LP family | |
Accuracy at 3 MHz | ±2% | ±2% | ±1% | ±1% | ±2% | ±2% | ±1% | ±1% |
See the “IMO AC Specifications” section in the respective device family’s datasheet for data on accuracy of IMO at different frequencies.
If the maximum PPM error of the IMO exceeds the maximum allowed PPM error of the Component that you use in your design, you must use an ECO. Watch this video to know on when to choose ECO, based on the PPM error of different crystal oscillators and the maximum allowed PPM error of some Components such as USB and CAN.
Hardware Configuration
The MHz crystal must be placed between the XTAL pins of the PSoC device. The Load Capacitor value will be specified in the crystal datasheet. The capacitors have to be mounted appropriately as shown in Figure 1.
The Load Capacitor network along with the crystal gives a phase shift of 180 degrees. Another 180-degree phase shift is given by the inbuilt inverter to make the total phase shift as 360 degrees; this causes self-sustained oscillations of specified frequency to be generated. This arrangement is shown in Figure 1.
Figure 1: Oscillator Topology
If the load capacitors are not properly chosen to meet the specification of the given crystal, there will be a shift in the operating frequency. This can be caused due to parasitic pin capacitance. This effect is called Trim Sensitivity. To know more on how to choose the accurate capacitor values, refer to AN54439.
The MHz ECO pin can create noise in neighboring pins or vice versa. This electrical interference can be reduced from proper pin assignment. Noisy, high-frequency, and sensitive signals are assigned away from MHz crystal pins. The best practice is to place ground next to XTAL pins.
Component designators and part numbers are shown for each kit in the tables below:
CY8CKIT-050 MHz ECO Components:
Designator | Component Description | Manufacturer | Manufacturer Part Number |
Y3 | CRYSTAL 24.000MHZ 20PF SMD | ECS Inc | ECS-240-20-5PX-TR |
C30,C31 | CAP, CER, 22 pF, 50V, 5%, COG, 0603, SMD | Panasonic - ECG | ECJ-0EC1H220J |
CY8CKIT-010 MHz ECO Components:
Designator | Component Description | Manufacturer | Manufacturer Part Number |
Y2 | CRYSTAL, 24 MHz, 30 ppm, HC49, SMD | ECS Inc | ECS-240-12-5PX-TR |
C26,C27 | CAP, CER, 12 pF, 50V, 5%, COG, 0603, SMD | Murata Electronics North America | GRM1885C1H120JA01D |
in the respective device family’s datasheet for data on accuracy of IMO at different frequencies.
Firmware Configuration
The MHz ECO can be configured using the Design Wide Resources interface in PSoC Creator. To enable the MHz ECO, make sure the “XTAL” checkbox in the upper left corner of the “Configure System Clocks” dialog is checked, as shown in Figure 2. For understanding APIs to control clock settings in firmware, refer to PSoC Creator > Help > Reference > System Reference Guide > Clocking.
Figure 2: Clock Tree
The Configuration window of XTAL is shown in Figure 3.
Figure 3: Configuration Window of XTAL
The automatic gain control (AGC) option allows the MHz ECO to increase or reduce the inverter gain to increase or reduce the oscillation amplitude. This can increase or decrease the drive level. If fault recovery is enabled, the device automatically switches to the IMO clock when the ECO fails.
-
This widget could not be displayed.Anonymous