source: avrstuff/chiptest/readme.md@ 6390cc3

main
Last change on this file since 6390cc3 was 6390cc3, checked in by Adrien Destugues <pulkomandy@…>, 7 years ago

chiptest: Start to hack on ATmega128 and STK500 devboard.

  • Set the proper clock for it (generated by the STK500 master MCU, did

not get crystal working reliably yet)

  • Instead of just 'H', generate the whole alphabet for more action!
  • Use ATmega128 since that's what happens to be seated on my board for

now.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1Chiptest - The quick and dirty AVR tester.
2==========================================
3
4So, you made a new project board using an AVR microcontroller, and you want to
5make sure it works before starting to develop your firmware. Debugging both
6software and hardware at the same time is a pain.
7
8Enters chiptest. This is a simple test program that makes sure the most basic
9stuff is working.
10
11Right now chiptest supports the following devices:
12* ATTiny2313.
13* ATmega128
14
15It tests the following features:
16* USART
17* Timers
18* One GPIO
19
20How to use it
21=============
22
23* Adjust the pinout at the top of main.c and the CPU clock in the makefile to
24your needs
25* Plug your usbasp and board
26* make flash
27
28How to tell if it works
29=======================
30
31If everything goes well:
32* The LED will blink at FCPU/(8^3). This should be visible for all reasonable
33clock speeds:
34 - 20 MHz - 0.8s
35 - 12 MHz - 1.4s
36 - 1 MHz - 16.8s
37* The character 'H' is sent to the serial port at the same speed. Baudrate is
389600 baud to be safe (it's more likely that a low baudrate can be generated
39in a reasonably accurate way with any clock speed as a base).
Note: See TracBrowser for help on using the repository browser.