- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I will discuss the contents of the past inquiries once again.
I have heard that the behavior in question has been reproduced.
Have you found this problem?
PSoC4S CY8C4126AXI-S445 EXTCLK settings
As we confirmed, even PSoC4 does not work depending on the series.
PSoC4S has confirmed the operation of changing clock.
However, it does not work with PSoC4S +.
PSoC4S : CY8CKIT-145
PSoC4S+ : CY8CKIT-149
Both of them have the same project contents and input the external clock to P0[6].
Is there any necessary steps to switch clocks?
Regards,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Masashi,
Please use the following code for switching clock to EXTCLK in case of PSoC 4100S Plus
#include "project.h"
int main(void)
{
CY_SET_REG32((void *)(CYREG_HSIOM_PORT_SEL0), (CYVAL_HSIOM_IO0_SEL_ACT_0 << (6 * 4))); /* HSIOM_IO0_SEL_ACT_0 */
CY_SET_REG32((void *)(CYREG_GPIO_PRT0_PC), (LED_DM_DIG_HIZ << (6 * 3))); /* High Impedance Digital */
/* 6 is a pin number, 3 and 4 are bitfield widths */
CySysClkWriteHfclkDirect(CY_SYS_CLK_HFCLK_EXTCLK);
for(;;)
{
LED_Write(0);
CyDelay(500);
LED_Write(1);
CyDelay(500);
}
}
I have attached the sample project below.
Best Regards
Ekta