2.7.1 A/D conversion flow
Before using the A/D converter, the user should configure the following hardware settings:
1.select
2.select internal trigger or external trigger (JP4)
3.select IRQ level if needed (JP5)
4.select DMA channel if needed (JP7,JP8)
5.select internal clock or external clock for counter0 if needed (JP6)
The user must decide which A/D conversion mode will be used. The software driver supports three different modes: polling, interrupt and DMA. The polling mode (sec. 2.4.9) is the simplest but most limited. The software driver should be used for interrupt or DMA mode.
The analog input signals come from CN3. These signals may be
The multiplexer can select 16
The gain control module also requires settling time if the gain control code is changed.
Since the software doesn’t account for settling time, the user should provide sufficient delay if the gain control code is changed. (sec. 2.4.6)
The software driver provides a machine independent timer,
The A/D converter needs a trigger signal to start an A/D conversion cycle. The
The result of the A/D conversion can be transferred into the PC memory by three modes: