next up previous contents

[ENGN3213 Home]

Timer

As a next step, you may wish to develop timer software for the SBC. You may wish to write some assembler and/or C code that is capable of measuring the time taken from the instant the code starts to the instant an external event occurs, at least up to the required accuracy. Remember that the SBC clock frequency is 25MHz, and the timer module is driven by this clock signal.

Note: The 7-segement display on the digital trainer board is to be used to display the reaction time. You may need to consider how the time value is represented in the microprocessor, and how to convert the value for correct display. Keep in mind decimal, hex, and binary.

Initially, it might be helpful to print the time to the monitor screen.


next up previous contents

[ENGN3213 Home]

ANU Engineering - ENGN3213