![]() |
![]() |
| ECE 315 Introductory Microprocessor Laboratory |
Testing the ADuC7026-Cyclone Development Board:
To test the ADuC7026-Cyclone development board, you need to use Quartus to configure the FPGA, and use Keil uVision to program the ADuC7026 with the project below (there is no source code, but you can run the debugger with just the executable file). Both are in ZIP format.
Configure the FPGA, then load and run the Keil project. (Refer to the FPGA schematic for connection information.)
When the ADuC7026 initially starts running, it does a loopback test on the GPIO pins that are not otherwise used in the test. These pins are simply connected directly through the FPGA. The lines are tested by walking a single 1 bit through the GPIO pins, with P4.7-P4.0, P1.4-P1.2 used as outputs and P3.7-P3.0, P1.7-P1.5 used as inputs. The test starts by driving the 1 on P4.7 and goes through the pins in the order shown in the table below. If the test fails, it stops with a single 1 driven on the line where a problem was first detected. (Note that an input that is read as a 1 when it should be a 0 will also cause the test to halt.)
| Output | Input |
| P4.7 | P3.7 |
| P4.6 | P3.6 |
| P4.5 | P3.5 |
| P4.4 | P3.4 |
| P4.3 | P3.3 |
| P4.2 | P3.2 |
| P4.1 | P3.1 |
| P4.0 | P3.0 |
| P1.4 | P1.7 |
| P1.3 | P1.6 |
| P1.2 | P1.5 |
If the loopback test is successful, the ADuC7026 automatically advances to its initial program loop to test the 7-segment LED displays. In this mode it sequentially illuminates just a single segment of a single display. The segment is illuminated on the displays from left to right, then the process repeats with the next segment illuminated. LED bar segment 9 (leftmost) flashes at approximately 1 Hz to indicate that the processor successfully completed the GPIO loopback test. The ADuC7026 will remain in this mode until either PB1 or PB2 are pressed.
Once PB1 or PB2 are pressed, the ADuC7026 enters and remains in the main test loop. In this mode, the following can be observed;
| SW7 | SW6 | Motor Current |
| OFF | OFF | 100% |
| OFF | ON | 67% |
| ON | OFF | 33% |
| ON | ON | 0% |
|
Copyright © College of Engineering, University of Wisconsin-Madison Content By: morrow@engr.wisc.edu |