ChibiOS/testhal/AVR/MEGA/PWM
Giovanni Di Sirio fa854a079b Mass update... again.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15923 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2022-12-26 10:47:54 +00:00
..
Makefile Mass EOL change to Unix mode. 2022-12-11 14:52:30 +00:00
chconf.h Mass EOL change to Unix mode. 2022-12-11 14:52:30 +00:00
halconf.h Mass update... again. 2022-12-26 10:47:54 +00:00
main.c Mass change: Source code convention changed from CRLF to just CR (Unix). 2022-08-29 15:54:32 +00:00
mcuconf.h Mass EOL change to Unix mode. 2022-12-11 14:52:30 +00:00
readme.txt Mass EOL change to Unix mode. 2022-12-11 14:52:30 +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.