Download Basic analog and digital. Student guide, version 1.2 by Andy Lindsay PDF

By Andy Lindsay

Show description

Read or Download Basic analog and digital. Student guide, version 1.2 PDF

Best technique books

Practical Aspects of Declarative Languages: 9th International Symposium, PADL 2007, Nice, France, January 14-15, 2007. Proceedings

This publication constitutes the refereed complaints of the ninth overseas Symposium on useful elements of Declarative Languages, PADL 2007, held in great, France, in January 2007, co-located with POPL 2007, the Symposium on ideas of Programming Languages. the nineteen revised complete papers provided including invited papers have been conscientiously reviewed and chosen from fifty eight submissions.

Additional info for Basic analog and digital. Student guide, version 1.2

Sample text

Synchronous: Sending data synchronously means we are sending the data in time coordinated manner (in sync). bs2. 2 Revision 0. ", CR, CR DEBUG "Decimal value: ", DEC2 d, CR, CR The Output The Debug Terminal will initially show a blank screen when you run the program. Follow these instructions carefully to send the synchronous, serial data. First, press and hold the right button. Then press and release the left button. The output should look like Figure 2-5 below. 2. Next, release the right button, and press and release the left button again.

Whenever you want to print a text message to the Debug Terminal, use quotes. The third item is BIN a, which tells the Debug Terminal to print the binary value of the variable a. The fourth item is CR, which makes the Debug Terminal print a carriage return. DEBUG HOME, "State of pin P0 is ", BIN a, CR A similar message is printed for the variable b, without the HOME command. The HOME command works well when it's used once per loop. Remember that DEBUG HOME sends the cursor to the top-left corner of the Debug Terminal.

It will be modified to display the decimal equivalent of the 8-bit binary value. It will also be modified to display the voltage measurement. The following DEBUG commands send the cursor to the top-left "home" position in the Debug Terminal. Then it prints the message in quotes. The modifier BIN8 makes it so the value of the adcBits variable is displayed as 8 binary digits. DEBUG HOME DEBUG "8-bit binary value: ", BIN8 adcBits If the number of digits displayed is likely to vary, when using the DEBUG HOME command, always specify how many digits the numeric outputs should have with modifiers like BIN8, DEC3, etc.

Download PDF sample

Rated 4.25 of 5 – based on 8 votes