101-0558 Rabbit Semiconductor, 101-0558 Datasheet - Page 57

no-image

101-0558

Manufacturer Part Number
101-0558
Description
COMPUTER SNG BD BL1800 512K SRAM
Manufacturer
Rabbit Semiconductor
Datasheet

Specifications of 101-0558

Module/board Type
Single Board Computer Module
For Use With/related Products
BL1800
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
The output value is set using the following function.
Effect of Interrupts on Analog I/O
The stability of the voltage output (and hence the voltage input determination as well)
depends on the ability of the driver to respond quickly to interrupt requests. Dynamic C
debugging, use of the
pulse-width modulation utilized by the driver and cause fluctuations in the voltage out-
puts. Avoid using serial communications or
program where the voltage must remain steady. Also be aware that debugging and running
Dynamic C in polling mode will cause fluctuations. Finally, be certain to disable the PWM
drivers by setting the output values to 0 or 1024 when you are done using them to free up
the CPU.
Calibration of Values to Voltages
The analog output channels on the Jackrabbit can be more accurately calibrated for each
individual Jackrabbit in the following manner (calibration of DA0 is assumed in this
example, calibration of DA1 would proceed similarly):
• Set desired channel output to
• Measure voltage V
• Set desired channel output to
• Measure voltage V
A linear relation between input value and voltage can now be calculated:
User’s Manual
void anaOut(int channel, int value);
sets the state of an analog output channel.
jrioInit
channel
value
NOTE: See the sample program JRIOTEST.C for examples of using the anaOut func-
tion.
is an integer from 0–1024 that corresponds to an output voltage as shown in Table 5.
Table 5. Typical Analog Output Voltages Corresponding
Channel
is the output channel number (0 or 1 on the Jackrabbit).
must be called first.
DA0
DA1
min
max
printf
on DA0.
on DA0.
0.004 V
0.08 V
to Values in anaOut Function
b
0
function, or any serial communications can disrupt the
=
PWM_MIN
PWM_MAX0
V
max
PWM_MIN
0.08 V
0.63 V
.
m PWM_MAX0
.
printf
×
PWM_MAX
statements during portions of your
2.875 V
3.6 V
1024
3.4 V
3.6 V
53

Related parts for 101-0558