ChibiOS-Contrib/testhal/NUMICRO/NUC123/NUTINY-SDK-NUC123-V2.0/PWM
Alex Lewontin 0b4b1d7542
NUC123SD4AN0 -> NUC123 conversion
2020-12-12 18:18:57 -05:00
..
cfg NUC123SD4AN0 -> NUC123 conversion 2020-12-12 18:18:57 -05:00
Makefile NUC123SD4AN0 -> NUC123 conversion 2020-12-12 18:18:57 -05:00
main.c NUC123 PWM testhal 2020-12-10 21:51:16 -05:00
readme.txt NUC123 PWM testhal 2020-12-10 21:51:16 -05:00

readme.txt

*****************************************************************************
** ChibiOS/HAL - PWM driver demo for NUC123.                               **
*****************************************************************************

** TARGET **

The demo runs on a NUTINY-SDK-NUC123-V2.0 board with a NUC123SD4AN0 MCU.

** The Demo **

The application demonstrates the use of the NUC123 PWM driver. When successful,
pins 44 and 45 should carry a 750 Hz square wave, the duty cycle of which 
sinusoidally oscillates between 0% and 100%. One channel is active high, and
the other is active low.

** Board Setup **

There are multiple ways to observe the PWM output:
- Attach channels of a logic analyzer to pins 44 & 45, and a ground pin. Set it
  to trigger on either (but not both) the rising or falling edge of either (but
  not both) channel.

** Build Procedure **

The demo has been tested using gcc version 9.3.1 (GNU Arm Embedded Toolchain 9-2020-q2-update).
Just modify the TRGT line in the makefile in order to use different GCC ports.