Search found 2 matches

by ycchen
17 May 2019, 15:20
Forum: Nuvoton Cortex-M0/M23 MCU
Topic: NuMaker-PFM-M2351 UART1 Programming
Replies: 3
Views: 12667

Re: NuMaker-PFM-M2351 UART1 Programming

The UART1 clock is seems to not enabled in your program. Please try to enable UART1 clock and set UART1 clcok source by adding the following codes: /* Select UART1 clock source */ CLK->CLKSEL1 = (CLK->CLKSEL1 & (~CLK_CLKSEL1_UART0SEL_Msk)) | CLK_CLKSEL1_UART0SEL_HIRC; /* Enable UART1 clock */ CLK->A...
by ycchen
09 Nov 2018, 10:46
Forum: Development Platform
Topic: IO pin function setting
Replies: 1
Views: 39490

Re: IO pin function setting

The first writing method configures PA.9~PA.11 function only.
For the sencond writing method, it will overwrite others IO setting, which are not assigned, to GPIO. (for example, PA.8 and PA.12~PA.15).
It is recommonded to use the first method to avoid configuration overwriting.