ChibiOS-Contrib/testhal/NUMICRO/NUC123/NUTINY-SDK-NUC123-V2.0/PWM
zykrahgaming 0aa26e0bee Fixed HAL version in halconf.h files 2022-01-01 18:28:46 +11:00
..
cfg Fixed HAL version in halconf.h files 2022-01-01 18:28:46 +11:00
Makefile Update Makefiles to use new test library 2022-01-01 17:34:33 +11: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.