[NUC240] Simulate UART Transmission by Software

Post Reply
chhsieh3
Posts: 307
Joined: 13 Mar 2020, 09:08

10 Jun 2020, 17:08

  • Application: This code uses GPIO and TIMER to simulate UART waveform.
  • BSP Version: NUC230_240 Series BSP CMSIS V3.01.001
  • Hardware: NuTiny-EVB-NUC240 V1.2
If we do not have enough UART channel to use in the application, we can use TIMER interrupt with GPIO to generate UART waveform. Since the waveform is processed by software, other interrupts have to be disabled to avoid interruption while waveform transmitting.

You can download the sample code at https://www.nuvoton.com/resource-downlo ... 1227151523
Nuvoton

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 80 guests