ChibiOS/testhal/AVR/MEGA/ICU
Giovanni Di Sirio c01e5a7c22 Added a new CH_CFG_HARDENING_LEVEL option to RT.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15242 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
2021-12-13 15:44:12 +00:00
..
Makefile More Nil enhancements. 2019-02-08 14:36:53 +00:00
chconf.h Added a new CH_CFG_HARDENING_LEVEL option to RT. 2021-12-13 15:44:12 +00:00
halconf.h Mass update of halconf.h files. 2021-10-24 15:48:38 +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 Add a specific directory for AVR MEGA in the testhal. 2017-08-16 06:39:57 +00:00

readme.txt

*****************************************************************************
** ChibiOS/RT port for Atmel AVR ATmega1280.                                **
*****************************************************************************

** TARGET **

The demo runs on an Arduino Mega board.

** The Demo **

This demo uses ICP3 (ICU3 input) which is located on pin PE7 to measure signal
width and period. The signal is output on pin PD4 using standard PAL calls and
thread sleep functions. PD4 must be wired to PE7. It outputs three different
waveforms with aproximately 1s duration using 50%, 25% and 75% respective duty
cycles. After that it just turns on ICU3 and waits for it to overflow. The values
read on each of these operations is output to SERIAL1.

** Build Procedure **

The demo was built using the GCC AVR toolchain. It should build with WinAVR too!

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