Hello
I did some debugging and i found out that when i use clock divider function i see no output and when i disable it i just see clock output and not the SENT also i went a level in and found that selecting SIRC is causing the problem.
void SCG_clock_dividers_setup(void)
{
SCG->RCCR = SCG_RCCR_SCS(1) | /* SCS=2: System Clock Source is SIRC */
SCG_RCCR_DIVCORE(1) | /* DIVCORE=1: Divided by 2, thus CORE/SYS_CLK frequency is 8 / 1 = 8MHz */
SCG_RCCR_DIVBUS(1) | /* DIVBUS=1: Divided by 2, thus BUS_CLK frequency is 8 / 2 = 4MHz */
SCG_RCCR_DIVSLOW(2); /* DIVSLOW=2: Divided by 3, thus FLASH_CLK is 8 / 3 = 2.67MHz */
SCG->RCCR |= SCG_RCCR_SCS(6); /* SCS=6: System Clock Source is System PLL */
/* DIVCORE=1: Divided by 2, thus CORE/SYS_CLK frequency is 80 / 1 = 80MHz */
/* DIVBUS=1: Divided by 2, thus BUS_CLK frequency is 80 / 2 = 40MHz */
/* DIVSLOW=2: Divided by 3, thus FLASH_CLK is 80 / 3 = 26.6MHz */
}
Best regards,
JustMet