readme.txt 937 B

123456789101112131415161718192021222324252627282930
  1. *****************************************************************************
  2. ** ChibiOS/RT and NIL PWM demos for Atmel AVR ATmega1280. **
  3. *****************************************************************************
  4. ** TARGET **
  5. The demo runs on an Arduino Mega board.
  6. ** The Demo **
  7. This demo creates three PWM channels on pins PB5, PB6 and PB7. Each channel uses
  8. a different duty cycle with PB7 having a duty cycle of 50%, PB6 a duty cycle of
  9. 25% and PB5 a duty cycle of 75%. Since the LED is connected to PB7 on the Arduino
  10. Mega, it can be seen flashing in high speed.
  11. ** Build Procedure **
  12. The demo was built using the GCC AVR toolchain.
  13. To build linking with ChibiOS:
  14. $ make -f Makefile.ch
  15. To build linking with NIL:
  16. $ make -f Makefile.nil
  17. ** Notes **
  18. This demo runs natively so the Arduino bootloader must be removed and the FUSEs
  19. reprogrammed. The values used for fuses are LFUSE=0xe7 and HFUSE=0x99.