Did you know...
|
|
Analog To Digital Raw Conversion
A channel configured to CHANNEL_MODE_AD_RAW
provides the latest A/D conversion data performed on that pin to
its public data buffer. This happens every time the channel is
serviced. In order for this to be useful, the pin must be capable
of doing analog-to-digital conversions, and must be configured as
an analog-input pin (see SET_SYSTEM_PARAMETER for
configuration of the number of analog-input pins). See the documentation section on analog
inputs for more information about how the Serial Wombat
expresses conversions.
Message format:
| Data Sent to the Wombat: |
200 |
Pin # |
6 |
0x55 |
0x55 |
0x55 |
0x55 |
0x55 |
| Meaning: |
Configure Pin First message |
Pin Number to be set to Raw
Analog data mode |
Raw A/D conversion mode |
Unused. |
Unused. |
Unused. |
Unused. |
Unused. |
| This message is echoed back by
the Wombat. |
|
|