tinySA/testhal/AVR/PWM
Giovanni Di Sirio d7d709ee5a Continue merge of RT4/NIL2.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8908 35acf78f-673a-0410-8e92-d51de3d6d3f4
2016-02-18 12:05:17 +00:00
..
Makefile.ch Continue merge of RT4/NIL2. 2016-02-18 12:05:17 +00:00
Makefile.nil Added AVR PWM test demo 2014-07-09 01:27:25 +00:00
chconf.h Fixed a wrong comment in chconf.h. 2015-03-09 11:16:46 +00:00
halconf.h git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8680 35acf78f-673a-0410-8e92-d51de3d6d3f4 2016-01-03 14:33:37 +00:00
main.c git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7622 35acf78f-673a-0410-8e92-d51de3d6d3f4 2015-01-11 13:56:55 +00:00
mcuconf.h MISRA-related fixes. 2015-03-03 10:02:55 +00:00
nilconf.h git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7622 35acf78f-673a-0410-8e92-d51de3d6d3f4 2015-01-11 13:56:55 +00:00
readme.txt Added AVR PWM test demo 2014-07-09 01:27:25 +00:00

readme.txt

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

*****************************************************************************
** 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.