Académique Documents
Professionnel Documents
Culture Documents
Lab 1
ECEN 4213
Computer Based System Design
Lab 1: Introduction to the BASIC Stamp Editor
Max
Points
Ex #
Doc
Points
Earned
Instructor
Initial
Grading criteria
Bonus points
(1.0) ______
(0.5) ______
Completed Exercise 1
Program entered correctly, downloads
and runs
(3.5) ______
(0.5) ______
Completed Exercise 2
Program entered correctly, downloads
and runs
(4.5) ______
(0.5) ______
Completed Exercise 3
(5.5) ______
(5.0) ______
TOTAL:
In order to receive credit for this laboratory exercise, please submit this handout (in
its entirety) to your lab instructor when you are finished.
Fall (2002)
Page 1 of 5
ECEN4213
Lab 1
DESCRIPTION
Upon completion of this exercise you will have gained experience using the BASIC Stamp Editor
to send messages to the PC screen. You will also learn the various ways to format your messages
and outputs to be displayed.
Exercise 1
1. Plug the RS-232 cable to the serial port of the Board of Education (BOE).
2. Connect the power source.
3. Start the BASIC Stamp II Windows Editor by clicking on the Stampw icon on the
desktop.
4. Using the BASIC Stamp II Windows Editor, type the following:
'{$STAMP BS2}
Debug
Debug
Debug
Debug
Debug
End
Hello there.
How are you?, cr
rep -\20, cr
I am fine,, tab, Thank you, cr
rep +\20
Fall (2002)
Page 2 of 5
ECEN4213
Lab 1
Exercise 2
1. Using the BASIC Stamp II Windows Editor, type the following:
'{$STAMP BS2}
b0=100
b1=-65
w2=-100
Debug
Debug
Debug
Debug
Debug
Debug
Debug
Debug
Debug
Debug
Debug
Debug
Debug
Debug
End
? b0
b0, cr
asc ? b0
bin ? b0
ihex b0, cr
ibin b0, cr
? b1
sdec b1, cr
sdec5 w2, cr
The value of b0 is , dec b0, in Decimal, cr
The value of b0 is , bin b0, in Binary, cr
rep +\20, cr
This is , Boring!
rep +\20, cr
Fall (2002)
Page 3 of 5
ECEN4213
Lab 1
Exercise 3
-%0000000001000001
%1111111110111111
--------------------THE END----------------
Fall (2002)
Page 4 of 5
ECEN4213
Lab 1
Submission
Submit this handout to your lab instructor. Make sure your code is thoroughly commented.
NOTE:
Fall (2002)
Failure to submit this handout to your lab instructor will result in the grade of
zero for this lab.
Page 5 of 5