From 7437bfef11387f1521f8c33e81885e186b583626 Mon Sep 17 00:00:00 2001 From: Theodore Ateba Date: Wed, 16 Aug 2017 06:39:57 +0000 Subject: Add a specific directory for AVR MEGA in the testhal. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10436 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testhal/AVR/MEGA/PWM/readme.txt | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 testhal/AVR/MEGA/PWM/readme.txt (limited to 'testhal/AVR/MEGA/PWM/readme.txt') diff --git a/testhal/AVR/MEGA/PWM/readme.txt b/testhal/AVR/MEGA/PWM/readme.txt new file mode 100644 index 000000000..854493066 --- /dev/null +++ b/testhal/AVR/MEGA/PWM/readme.txt @@ -0,0 +1,30 @@ +***************************************************************************** +** 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. -- cgit v1.2.3