Assembly Language Tutorial for using the Silicon Labs University Daughter Card

If necessary, download the Silicon Labs software from the class web page.

Under development software download and install the Silicon Laboratories IDE and the MCUniversity Development Tools. After this has be done follow the steps below.

1.  Create a directory for containing your source code and copy the files from silabs_udc_ex1_asm.zip to this directory. I used “C:/silabs_udc” as my directory

2.  Start the Silicon Laboratories IDE. You may use Start à Programs à Silicon Laborites à Silicon Laborites IDE.

3.  In the IDE menu select Options à Connection Options. Be sure USB and JTAG are selected. Do not change the values in the Adapter Selection box.

4.  Create a directory for the

5.  Select Project à New Project.

6.  Select and click on New_Project.

7.  Select Save Project New_Project.

8.  Save the project to your source directory as ex1_asm.

9.  Select and right click on ex1_asm and add the files UNI.ASM and UNIEX1.asm to the project.

10.  Select and right click on UNI.ASM and add this file to the build. Select and right click on UNIEX1.ASM and add this file to the build.

11.  Click on the Rebuild All, the Connect, and the Download icons.

12.  Click on the green GO icon to run the program.

13.  The green LED’s should count up in a binary sequence. Pressing any button should cause the LED’s to count down.

14.  The green GO icon should now be red, and can be used to stop the program.

15.  With the program stopped press the 8051 and REGS icons. Notice that windows are opened showing the contents of the internal registes.

16.  Use View à Debug Window à SFR’s à Ports to open a window showing the IO ports. The buttons and led’s are connected to port P5. By stepping through the program you can see how the registers and ports change.

1