A/D conversions

Questions about the BASICtools and MakeItC
Post Reply
Posts: 1463
Joined: Fri Oct 19, 2012 5:11 am

A/D conversions

Post by YahooArchive »

> 1. Can the Armite A/D sample every 20 us using compiled BASIC?

Yes, it can sample > 110 KHz, and its actually waiting for the A/D to
complete so you would have some time to do some calculations.
Additions and multiplications are single cycle ops though division is
a bit slower

> 2. If I just sample and then do the averaging, I would end up with
> 8,000 points. I don't think the Armite has enough memory to allow
> this, so I will need to do an addition step in between sample points
> for the averaging. If the Armite can do a 20 us acquisition, is there
> enough time in between sampling to do an addition step, and still get
> a sample every 20 us?

It depends on the calculation, if you send me an example I'll time it
for you, but most likely it can be done. You are correct that the
ARMmite only has room for 5K words of data. (out of 8K total RAM)

> 3. I am a bit confused about the A/D description in the manual. It
> states that the A/D is 10 bit, but says that "AD will return 0..65472
> " for 0-3.3 volts. Why not 1023?

thats the way the hardware does it, and if they ever do 12 bits they
will add at the low end so code that works with 10bit would not have
to change. A >>6 takes less than 100 nsec

> 4. I assume that the A/D is limited to 3.3 V. I see that some pins
> are designated 5 V tolerant, but I assume that this does not apply to
> the A/D. Is this correct?


> Is ArmBasic fairly simple
> to pick up, coming from MBasic?

it should be quite similar
> In short, is the ARMite the right choice for me?

I would think so, I'll let others answer the support question

Post Reply