8051 MCU Training Board for Educational Purposes
At the Chemnitz University of Technology we use to teach the computer science students how to program in assembly language (i.e. how to program processors directly). As exemplary processor-target the wide spreaded 80x86 architecture was used. Of course, the primary reason for this target was the fact that development host and the test system are the same.
Over the years the software has evolved and you cannot leave the students working with some outdated technology such as DOS. Instead, they start asking you: "Hey, with what kind of antiquated tools we are forced to work here?" As a result, their interest in the matter is reduced significantly. This is not true for all students, but for the broad mass.
Now one would ask why it is not possible to write assembly programs in the framework of modern operating systems such as Linux or Windows. Of course, it is well possible. But these operating systems restict the use of several important features due to safety reasons. This is especially true for IO related stuff (interrupts etc.).
So the decision has been made to switch at least partly to a micro controller based system where one has total control
Of course, there are also other options to cope with the limitations. Virtual machines or even complete simulators are an example. However, working with a real hardware is much more fun. Also, the students can identify themself much better with a small piece of hardware rather than with a big complicated system. And the more fun, the better the learning curve. Additionally, the field of micro controllers became extremely important during the last years.
Because there were no suitable evaluation boards available, we decided to built one by ourself. So it was finally my task to do this while I got some help from Ralph Schlosser, a student in Chemnitz.
The training board is based on an 8051 derivate from Cypress (AN2131SC). This MCU has an integrated USB interface that can also be used to load programs into the system. This makes it quite easy and simple to use. The USB interface is actually not just a simple interface. It plays a key role in the MCU as it can take full control on the actual micro controller.
Here's a list of some AN2131SC features:
For more information refer to the manufacturer's web site:
First of all there is an appropriate USB-driver (kernel module)
needed. A free one that has been written by Tony Cureington
is available here:
A small free assembler (as31) has been written by Ken Stauffer and
it can be downloaded from here:
IO-Stuff implemented on the Board:
The following picture is a view from above the board.
Most of the aforementioned components are clearly visible. The bigger chip in the middle is the AN2131SC micro controller.
The two ICs at the left side of the board are a standard logic D-FlipFlop (74HCT74) and NANDs (74HCT00). Both are related to the buzzer handling.
Below the standard 9Pin SUB-D connector for the serial port is the RS232 level converter (left) and the serial EEPROM (right) visible.
Above the 7-Segment displays two standard logic inverter ICs (74HCT04) can be found. They are needed for the control of the displays. Besides the inverter functionality, they convert 3.3V logic levels to 5V logic levels that are needed for the (blue :-) LEDs.
A small reset button can also be found bottom-left.
At the left and the right side the board is prepared for taking up expansion connectors. Almost all signals of the MCU are available there and might be used for other applications.The bottom side is looking as following.
There's not much to say here. The circuitry in the lower-left area can be called the end-stage for the 7-Segment displays. These are a few (four dual) MOSFETs and current-limiting resistors.Finally, a perspective view showing the board in action.