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