
Chapter 5 Analog Modules | SMART I/O User’s Manual | |||
|
|
|
|
|
|
|
|
|
|
Figure 5.3.8.1. illustrates a typical programming structure for the correct operation of an SM-THERM SMART-Module.
Figure 5.3.8.1 SM-THERM Programming Flow Diagram
START
SMADCInit()
Install Signal Handler
-
SMADCSetSensorType()
(for a channel)
SMADCEnableRead()
(for a channel)
SMADCEnableConversion()
(for a channel)
SMADCSetSignal()
(for a channel)
SMADCSetCyclicCalib() |
(for a channel) |
Sleep(0) |
SMADCReadConverted() |
(for a channel) |
No |
Finished |
Yes |
SMADCDeinit() |
END |
5
|
|
|
|
March 12, 1996 | ©1996 PEP Modular Computers GmbH | Page 5 - 67 | |
|
|