ChibiOS/testhal/AVR/PWM
Giovanni Di Sirio 5928999fd5 Mass update of configuration files with QSPI settings.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9486 35acf78f-673a-0410-8e92-d51de3d6d3f4
2016-05-15 09:18:27 +00:00
..
Makefile.ch Makefiles mass update. 2016-04-23 06:03:22 +00:00
Makefile.nil Makefiles mass update. 2016-04-23 06:03:22 +00:00
chconf.h Separate trace module, simplified tracer configuration. 2016-04-05 07:36:15 +00:00
halconf.h Mass update of configuration files with QSPI settings. 2016-05-15 09:18:27 +00:00
main.c Mass license update. 2016-03-18 10:29:35 +00:00
mcuconf.h git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9153 35acf78f-673a-0410-8e92-d51de3d6d3f4 2016-03-23 18:43:19 +00:00
nilconf.h Mass license update. 2016-03-18 10:29:35 +00:00
readme.txt Added AVR PWM test demo 2014-07-09 01:27:25 +00:00

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.