Testing the AD Converter

In order to begin testing the A/D converter you'll need to make a temporary modification to the Main Routine section.

V Modify the Main Routine section by adding three lines to the do...loop code block, before the gosub commands, so it reads like this:

Main Routine

Main: DO

a2dMuxId = A2dMuxId0

GOSUB A2D

ch0 = a2dResult

Set A/D to convert Ch 0 Do the conversion 8-bit result into ch0

GOSUB Plot_It

GOSUB Exp_1 GOSUB Exp_2 GOSUB Exp_3 GOSUB Exp_4 GOSUB Exp_5

Programmable Battery Charger Dueling Solar Cells Solar Cell Sun Tracker Half&Full Wave Rectification Three-Phase AC Alternator Plot Data w/ StampPlot Pro

LOOP

This is what we will call a programming "hack", since it violates our structured coding rules. However, it is an acceptable hack since it will help test the A/D converter. After we run our tests and know that it's working, we'll erase these three lines.

If successful, the Debug Terminal will pop up, showing the RX LED flashing and, possibly, some gibberish scrolling across the screen.

Solar Power Sensation V2

Solar Power Sensation V2

This is a product all about solar power. Within this product you will get 24 videos, 5 guides, reviews and much more. This product is great for affiliate marketers who is trying to market products all about alternative energy.

Get My Free Ebook


Post a comment