Next: The Board ID Up: Programming the Front Previous: The DACs

The High Voltage Card

The data is shifted in serially through six 8-bit registers. The data then comes out via HV_DATA_OUT. Thus bits of (serial) data are in general needed. However, not all 48 bits are used. There are bits used with the remaining lines left unconnected. If we decide that we want to shift in 48 bits every time we perform a function then the programming is easy.



An example:
-----------
NOTE: bit 47 is shifted in first and bit 0 last in this naming scheme. 
      i.e. time runs as shown.

     TIME ----------------------------------------------------->

              |-|--> Unused (45..47)
              |-|
              |-| |---|--> Binary enable PMT base current measurment
              |-| |---|
              |-| |---| |--|--> Unused (36..39)
              |-| |---| |--|
              |-| |---| |--| |--|--> Enable some of 4 relays on HV card
              |-| |---| |--| |--|
              |-| |---| |--| |--| |--> Choose which channel to charge inject
              |-| |---| |--| |--| |-->
              |-| |---| |--| |--| |-->
        Bit:  444 44444 3333 3333 3322222222221111111111
              765 43210 9876 5432 10987654321098765432109876543210

      HVLOAD: 000 00000 0000 0000 000000000000000000000000000000001

        Data: 000 10010 0000 1010 10000100000000000001000010000000
                    |        | |  |    |             |    |
                    |        | |  |    |             |    |---> Chan. 7 (CHG INJ)
                    |        | |  |    |             |   
                    |        | |  |    |             |--> Chan. 12 (CHG INJ)
                    |        | |  |    |
                    |        | |  |    |--> Chan. 26 (CHG INJ)
                    |        | |  | 
                    |        | |  |--> Chan. 31 (CHG INJ)
                    |        | |
                    |        | |--> Enable Relay 2
                    |        |
                    |        |--> Enable Relay 4
                    |      
                    |--> 10010 => Ch 18 (PMT 19) base current measurement

Note: HVLOAD wasn't enabled until all 48 bits (0..47) had been shifted through. This is not necessary. If we wanted to only enable charge injection in channel 0, we'd only need 1 bit shifted in and then enable HVLOAD. I think we should stay away from this however. It would get confusing and increase the probability of error.


cowen@upenn5.hep.upenn.edu
Thu Dec 28 12:23:22 EST 1995