tinySA/testhal/AVR/ICU
Giovanni Di Sirio f14b80fff1 Added missing entry to halconf.h files.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8677 35acf78f-673a-0410-8e92-d51de3d6d3f4
2016-01-03 11:22:38 +00:00
..
Makefile chprintf and streams are now part of the HAL library. 2015-02-06 11:42:26 +00:00
chconf.h Fixed a wrong comment in chconf.h. 2015-03-09 11:16:46 +00:00
halconf.h Added missing entry to halconf.h files. 2016-01-03 11:22:38 +00:00
main.c Mass change, all thread functions now return void. 2015-04-03 12:48:22 +00:00
mcuconf.h MISRA-related fixes. 2015-03-03 10:02:55 +00:00
readme.txt [AVR] Add ICU test (RT-only) 2014-07-21 13:11:35 +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 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.