
Lab exercises
Last session you presumably:
• Followed the start-up instructions in the start-up documents:
1. NNDK Programming Guide (pages 1-20)
2. Development C++ Quick Start Guide
3. The NetBurner Cook Book – Getting Started (in the NNDK Users Manual)
• Played with the Factory Demo Program (Including the HTML page)
• Wrote some simple programs of your own and played with them\
• Investigated some example programs in the Nburn folder in the C drive.
This session we want to continue getting familiar with the NetBurner:
• Write a program that uses the 8 LED’s:
You can use the method: void putleds ( unsigned int i);
• Write a program that uses the 8 Dip Switches:
You can use the method: unsigned int getdipsw ();
• Write a program that uses the 4 7-segment LED’s:
You can use the method: void putdisp ( unsigned int i);
{the display expects a 4 digit Binary-Coded-Decimal number}
• Write a program that uses the A/D converter as an output device:
See the MCF5282 User’s Manual (There is a link in the Platform Hardware document) Sections 27.4 & 27.6
Set the sim.qadc.ddrqa Port A Data Direction Register for pins 0,1,3, & 4 to be digital outputs
Set the outputs with sim.qadc.portqa Port A Data Register
Use the Oscilloscope to observe the output (s). (See the Schematics in the Platform Hardware document)
{ PLEASE BE VERY CAREFUL using the scope probes! We don’t want to sacrifice any NetBurners}
• Write up you programs with documentation to share. Give team members credit for their contributions and acknowledge
appropriately help received from others.