18.11.2014 Views

The Microcontroller Idea Book - Jan Axelson's Lakeview Research

The Microcontroller Idea Book - Jan Axelson's Lakeview Research

The Microcontroller Idea Book - Jan Axelson's Lakeview Research

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 13<br />

10 CALL 3000h<br />

20 END<br />

If necessary, change the address in line 10 to match the value in your routine’s org directive.<br />

Each time you run the program, you should see pin 1 on the 8052 change from high to low<br />

or low to high. <strong>The</strong> routine should then return you to the BASIC-52 prompt.<br />

If the program crashes and does not return you to BASIC-52, you need to re-examine your<br />

listing file to see what went wrong. Remember that the address in BASIC-52’s CALL<br />

Figure 13-2. By writing the appropriate values to an output port, you can<br />

cause a sine wave to appear at VOUT.<br />

226 <strong>The</strong> <strong>Microcontroller</strong> <strong>Idea</strong> <strong>Book</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!