- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I want to make an adjustable square project using kit59.
Can I create a 48Mhz Square Wave?
I reviewed WaveDAC8 Example project."Error in component: WaveDAC8_1. Clock frequency for selected DAC range must be between 0 and 1000.000 kHz."
Best Regards
Solved! Go to Solution.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
eeEn,
To set P and Q directly use API:
CY_SET_REG8(&FASTCLK_PLL_Q, PLL_Q ); // Q-divider, PLL_Q value in range [1 to 16]
//The Q divider output Freq (and PFD input Freq) must be between 1-3MHz.
CY_SET_REG8(&FASTCLK_PLL_Q, PLL_P ); // P-divider, PLL_P value in range [8 to 255]
//Valid range is 8 - 255, but this must still give a divided frequency of 1 - 3 MHz (PLLOUT / P); this is the limit of the implementation.
See registers TRM
1.3.41 FASTCLK_PLL_P
1.3.42 FASTCLK_PLL_Q
There are some restrictions on selecting P and Q values
/odissey1