Professional Documents
Culture Documents
V15 VI
3 Input 5 Output
.) = - . ) +
Timers Timers VoH VoB VoA
mDUtS/oUtDl& PrWr-1 e T m
The system has on-board eight programma-
ble timers [2]. These timers are based on a
free-running 16-bit counter with a four-stage
programmable prescaler. The timer starts from
Figure 3. Digital lnfared Emitter-Detector Cell a count of $0000 as the MCU is coming out of
reset and then counts up continuously. When a
maximum count is reached (SFFFF), the counter
rolls over to a count of $0000. The eight
S+andard-to-moa Converters timers are divided into three input capture
timers and five output-capture timers. Each
A general purpose, single chip (DAC- input and output timer has its own 16-bit
8800), eight channels eight-bit digital-analog register. These timers can be programmed to
converter is interfaced with one the micro- generate a hardware or a fix software inter-
controller output port [a]. Both unipolar and rupt at a fixed periodic rate for sequential
bipolar output voltage are available. A three- conversion. The user can program each input-
wire serial digital interface loads the con- capture function to detect edge polarity,
tents of the eight internal DAC registers measure a pulse width or a period of incoming
which establish the output voltage level. signal. Such information can help t o start or
Figure 4 shows the basic building block of the stop conversion, to output an analog or digi-
DAC-8800 [ll]. tal single. Also the user can program the
output-capture timers to generate a pulse or
square wave upon receiving a sequence of
optical signals via the OADCs or ODACs. More
information on the timers operation can be
found in reference 2.
P
Software package has been written in
assembly language. It was divided into two
section: User interface input driven-menu and
real-time data acquisition. The interface
subroutines enable the user to select the
number of analog or digital channels to be
v5 monitored, sampling rate per channel, direc-
DAC5
tion of the data, programming the input output
timers and some. The data acquisition subrou-
tines enable the user to read, store, and
process the data. The main function of this
data acquisition system is that it can be
I I programmed in-house for special purposes.
Figur 4. Block diagram of DAC-8800
SYSTEn FINAL FEATURES Ei SPECIFICATIC??S
1628