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.

DIY Battery Repair

DIY Battery Repair

You can now recondition your old batteries at home and bring them back to 100 percent of their working condition. This guide will enable you to revive All NiCd batteries regardless of brand and battery volt. It will give you the required information on how to re-energize and revive your NiCd batteries through the RVD process, charging method and charging guidelines.

Get My Free Ebook


Post a comment