Feb 27, 2019
02:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 27, 2019
02:41 AM
Hello
I have CY51F526 mcu. There is an crystal 4.0MHz connected.
I would like to use PLL to drive mcu with 40MHz.
How can I do it using C not assembler?
Do you have any code examples?
Best regards
Jakub
Labels
- Labels:
-
Other Legacy MCU
2 Replies
Feb 27, 2019
10:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 27, 2019
10:34 PM
Hello,
Here is the link of CY91520 sample code but the PLL is configured in startup.asm in assembler:
//Select tab "Sample Program"
https://www.cypress.com/products/cy91520
If you need to configure PLL in C code, please kindly refer to the start.asm and chapter 5 of CY91520.
https://www.cypress.com/file/251301/download
Best regards,
Amy Wang
Mar 01, 2019
02:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 01, 2019
02:50 AM
Hello Amy
Thank you for your reply. You are right. I done something similiar.
What I did:
void PLL_INIT()
{
#pragma asm
Here I copy pased pll init rountine from asm file
#pragma endasm
}
And it works perfect:)