![Alphi IP-48ADM16 Скачать руководство пользователя страница 25](http://html1.mh-extra.com/html/alphi/ip-48adm16/ip-48adm16_reference-manual_2906578025.webp)
IP-48ADM16 HARDWARE REFERENCE MANUAL
ALPHI TECHNOLOGY CORP.
Page 21
REV 1.0
Part Number: 833-13-000-4000
Copyright
©
2007, ALPHI Technology Corporation
6.
APPLICATION EXAMPLE
6.1
HOW TO SET A CHANNEL AS AD TRIGGER.
1-Write selected channel number at location zero of the scan-list ram
2-Enable the desired threshold
3-Program the threshold level into the two threshold ram
4-Program the threshold AD counter to the desired count before the threshold AD
signal is generated.
5-Select the trigger source as the Threshold ad signal
6-Select a continuous scan when threshold is set once or a scattered scan when the
threshold is active.
7- Enable conversion by writing at address Start conversion.
The state machine will continuously convert the selected channel until a threshold_ad
signal is generated.
Then the SM will continue through the scan list.
8-A/D conversion result is available at address zero of the DATARAM.
6.2
SINGLE CHANNEL CONVERSION CONTROLLED BY HOST
1-Write selected channel number at location zero of the scan-list ram
2-Write at next location channel number $ FF. The SM will recognize it at the end of
the scan list.
5-Select the trigger source as the Host Start conversion
7- Enable conversion by writing at address Start conversion.
The state machine will convert the selected channel once.
8-A/D conversion result is available at address zero of the DATARAM.
6.3
SCAN LIST CONVERTED ONCE CONTROLLED BY HOST OR EXTERNAL
TRIGGER
Same a above but generate a scan-list with at the end channel $FF