2011_ACTIVITY #5 - CELL PHONE RINGTONES

2011_ACTIVITY #5 - CELL PHONE RINGTONES - CASE 0, 1 DEBUG

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
' What's a Microcontroller - SelectCaseWithValues.bs2 ' Enter a value and see the minimum variable size required to hold it. ' '{$STAMP BS2} '{$PBASIC 2.5} ' value VAR Word v DEBUG "Enter a value from", CR, "0 to 65535: " DO DEBUGIN DEC value SELECT value
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CASE 0, 1 DEBUG "Bit", CR PAUSE 100 CASE 2 TO 15 DEBUG "Nib (Nibble)", CR PAUSE 200 CASE 16 TO 255 DEBUG "Byte", CR PAUSE 300 CASE 256 TO 65535 DEBUG "Word", CR PAUSE 400 ENDSELECT DEBUG CR, "Enter another value: " LOOP...
View Full Document

This note was uploaded on 01/10/2011 for the course EE 1244 taught by Professor Drera during the Fall '10 term at Conestoga.

Ask a homework question - tutors are online