Generate a Clock Signal at a Pin

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User18369
Level 2
Level 2
Hello,

how to generate a 16Mhz Clock output signal at a Pin on an XMC4800?
Thanks

Best regards
Florian
0 Likes
5 Replies
User18369
Level 2
Level 2
Has nobody got a hint or an example?
0 Likes
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked
Hi Florian,

If you are using Dave Apps,

In CLOCK_XMC4 APP, Clock selection tab has an option to enable clock source.
4789.attach

The clock source and divider can be selected in such a way that you obtain 16MHz.
The output can be driven to P0[8] or P1[15].

You can checkout following APIs too.

/* External output source clock */
XMC_SCU_CLOCK_SetExternalOutputClockSource();
/* External clock divider setting */
XMC_SCU_CLOCK_SetExternalOutputClockDivider();
/* External clock output pin setting */
XMC_GPIO_Init((XMC_GPIO_PORT_t *)PORT1_BASE, 15U, &CLOCK_XMC4_0_extclk_config);

Best Regards,
Vasanth
0 Likes
User18369
Level 2
Level 2
Hi Vasanth,

thank you. If check the box of External Clock (fEXT) I got an error:

4790.attach

What can be the problem ?
0 Likes
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked
Hi,

Could you make sure that both pins P0[8] and P1[15] are not already placed and in your design ?

Best Regards,
Vasanth
0 Likes
User18369
Level 2
Level 2
Vasanth wrote:
Hi,

Could you make sure that both pins P0[8] and P1[15] are not already placed and in your design ?

Best Regards,
Vasanth



Thank you for that tip !!!! It solved the Problem !!! I put a DIGITAL OUTPUT PIN on 0.8
0 Likes