ChibiOS/testhal/AVR/MEGA/PWM
Giovanni Di Sirio 5806f29b87 New halconf.h template.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11788 110e8d01-0319-4d1e-a829-52ad28d1bb01
2018-03-17 09:03:27 +00:00
..
Makefile Update testhal makefile to avoid compîlation errors with chlib.h and chlicense files. 2018-03-15 08:03:58 +00:00
chconf.h Configuration files realignment. 2018-03-14 12:29:24 +00:00
halconf.h New halconf.h template. 2018-03-17 09:03:27 +00:00
main.c Mass update of the Apache 2.0 license statement. 2018-01-20 11:44:14 +00:00
mcuconf.h Mass update of the Apache 2.0 license statement. 2018-01-20 11:44:14 +00:00
readme.txt

readme.txt

*****************************************************************************
** ChibiOS/RT and NIL PWM demos for Atmel AVR ATmega1280.                  **
*****************************************************************************

** TARGET **

The demo runs on an Arduino Mega board.

** The Demo **

This demo creates three PWM channels on pins PB5, PB6 and PB7. Each channel uses
a different duty cycle with PB7 having a duty cycle of 50%, PB6 a duty cycle of
25% and PB5 a duty cycle of 75%. Since the LED is connected to PB7 on the Arduino
Mega, it can be seen flashing in high speed.

** Build Procedure **

The demo was built using the GCC AVR toolchain.
To build linking with ChibiOS:

$ make -f Makefile.ch

To build linking with NIL:

$ make -f Makefile.nil

** Notes **

This demo runs natively so the Arduino bootloader must be removed and the FUSEs
reprogrammed. The values used for fuses are LFUSE=0xe7 and HFUSE=0x99.