Delta 36-R31 User Manual Page 26

  • Download
  • Add to my manuals
  • Print
  • Page
    / 84
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 25
ACC-36E Manual
USing acc-36E with power umac 26
ADC Automatic Read Example 1
Setting up Power UMAC with an ACC-36E at I/O base address offset $A00000 to automatically read all
16 ADCs, allowing the user to choose unipolar or bipolar mode:
1. A/D Ring Pointers:
AdcDemux.Address[0] = $A00000; // ADC Pair #1 (ADC#1 & #09)
AdcDemux.Address[1] = $A00000; // ADC Pair #2 (ADC#2 & #10)
AdcDemux.Address[2] = $A00000; // ADC Pair #3 (ADC#3 & #11)
AdcDemux.Address[3] = $A00000; // ADC Pair #4 (ADC#4 & #12)
AdcDemux.Address[4] = $A00000; // ADC Pair #5 (ADC#5 & #13)
AdcDemux.Address[5] = $A00000; // ADC Pair #6 (ADC#6 & #14)
AdcDemux.Address[6] = $A00000; // ADC Pair #7 (ADC#7 & #15)
AdcDemux.Address[7] = $A00000; // ADC Pair #8 (ADC#8 & #16)
2. A/D Convert Codes:
Pair #
Unipolar
Bipolar
1
AdcDemux.ConvertCode[0]=$000000;
AdcDemux.ConvertCode[0]=$800800;
2
AdcDemux.ConvertCode[1]=$100100;
AdcDemux.ConvertCode[1]=$900900;
3
AdcDemux.ConvertCode[2]=$200200;
AdcDemux.ConvertCode[2]=$A00A00;
4
AdcDemux.ConvertCode[3]=$300300;
AdcDemux.ConvertCode[3]=$B00B00;
5
AdcDemux.ConvertCode[4]=$400400;
AdcDemux.ConvertCode[4]=$C00C00;
6
AdcDemux.ConvertCode[5]=$500500;
AdcDemux.ConvertCode[5]=$D00D00;
7
AdcDemux.ConvertCode[6]=$600600;
AdcDemux.ConvertCode[6]=$E00E00;
8
AdcDemux.ConvertCode[7]=$700700;
AdcDemux.ConvertCode[7]=$F00F00;
3. A/D Processing Ring Size:
AdcDemux.Enable = 8; // Demux 8 ADC pairs
4. Accessing the A/D Registers:
The resulting data is found in AdcDemux.ResultLow[i], containing the ADC result for the
lower-numbered ADC in the pair (e.g. ADC #1 in the pair consisting of ADCs #1 and #9), and
AdcDemux.ResultHigh[i], containing the ADC result for the higher-numbered ADC in the pair
(e.g. ADC #9 in the pair consisting of ADCs #1 and #9).
Page view 25
1 2 ... 21 22 23 24 25 26 27 28 29 30 31 ... 83 84

Comments to this Manuals

No comments