Electronics: Basic Programming

26 terms by CorneliusTullius 

Create a new folder

Advertisement Upgrade to remove ads

A new approach to quizlet for the system of BASIC programming!

i2cslave

This command calls on a part on something outside of the memory chip

byte

A collection of bits. Traditionally, 8 bits make up one of this. From binary arithmetic, one of these can hold 2 to the 8th power, or 256, possible numbers.

for b3 = 1 to 5; pause 1000; next b3;

write the syntax of a for loop of b3 from 1-5. write the essential parts, and nothing inside except a 1 second pause. Seperate each line with a semicolon unless another puncuation mark is needed even though in basic there are none in BASIC

pause

This command stops the program for a milisecond

i2c

This part in many commands is a commercial trademark

i2cfast

This command tells the setting of pace to be as fast as possible.

low 7

Turn off output port 7 using high/low commands

high 3

Turn on output port 3 using high/low commands

do; pause 1000; loop;

write the syntax of a continuing do loop. write the essential parts, and nothing inside except a 1 second pause. Seperate each line with a semicolon unless another puncuation mark is needed even though in basic there are none in BASIC

electrically erasable programmable read-only memory

EEPROM

do; GOSUB PAUS; GOSUB LEDON; loop; PAUS: pause 5000; return; LEDON: high 6; pause 10000; low 6; return;

write the syntax of a continuing do loop with two GOSUBs in them. write one GOSUB labelled PAUS, with a 5 second pause. write the other GOSUB called LEDON to turn on the ouput port 6 and then turn it off after 10 seconds. Place PAUS before LEDON in the do loop. Seperate each line with a semicolon unless another puncuation mark is needed even though in basic there are none in BASIC

Let pins = %11000000

Turn on pins 7 and 6 using a let pins command, Turn on pins 7 and 6 using a let pins command

pause 500

Write the line for pausing a half a second

pause 333

Write the line for pausing as close as you can to one third of a second

pause 250

Write the line for pausing a quarter of a second

pause 200

Write the line for pausing a fifth of a second

pause 100

Write the line for pausing a tenth of a second

Left

In the Let Pins command, does port 7 start on the left or the right?

SERVO 6, 254

How do you set servo 6 to move at a speed of 254?

wait 60

How do you wait minute using wait commands?

16

How many GOSUB can there be in a program

65

what is the maximum parameter for wait?

65535

what is the maximum parameter for pause?

readi2c b1,(b0)

This command reads the address of b1 to the temp b0

address

in the command i2cslave %10100000, what does the 10100000 refer to of a part?

0 to 255

value range of a byte

Please allow access to your computer’s microphone to use Voice Recording.

Having trouble? Click here for help.

We can’t access your microphone!

Click the icon above to update your browser permissions above and try again

Example:

Reload the page to try again!

Reload

Press Cmd-0 to reset your zoom

Press Ctrl-0 to reset your zoom

It looks like your browser might be zoomed in or out. Your browser needs to be zoomed to a normal size to record audio.

Please upgrade Flash or install Chrome
to use Voice Recording.

For more help, see our troubleshooting page.

Your microphone is muted

For help fixing this issue, see this FAQ.

Star this term

You can study starred terms together

NEW! Voice Recording

Create Set