Difference between revisions of "Clock generator (CLOCK)"

From LogicBox
Jump to: navigation, search
(Created page with "= LogicPool (CLOCK) = A clock can be implemented using the GATEGEN VHDL modul, due to this the address and register map is the same as by the GATEGEN == LabVIEW Vi == === ...")
 
(LabVIEW Vi)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
= LogicPool (CLOCK) =
 
= LogicPool (CLOCK) =
  
A clock can be implemented using the GATEGEN VHDL modul, due to this the address and register map is the same as by the GATEGEN  
+
A clock can be implemented using the GATEGEN VHDL module, due to this the address and register map is the same as by the GATEGEN  
  
 
== LabVIEW Vi ==
 
== LabVIEW Vi ==
Line 7: Line 7:
 
=== CLOCK.vi ===
 
=== CLOCK.vi ===
  
Template VI for new designs
+
CLOCK module for generating free running clocks.
 +
All frequencies on output CLK are derived from the system clock (100 MHz) by a divider.
  
  
 
[[File:CLOCKc.png]]
 
[[File:CLOCKc.png]]
  
Introduction.
 
  
 
The meaning of almost inputs and outputs of this Vi depends on the input "Function". The global inputs and outputs does not depend on the "function" input:
 
The meaning of almost inputs and outputs of this Vi depends on the input "Function". The global inputs and outputs does not depend on the "function" input:
Line 18: Line 18:
 
=== Glogal Inputs ===
 
=== Glogal Inputs ===
  
DIO_HV#: number of HV digital output to be accesed (1..255).
+
GATEGEN#: number of gate generator to be configured as clock (1..255).
  
 
USB In: Handle to the LogicBox (create by open.vi), if not connected will take a global. parameter, this only works with one LogicBox at a time.
 
USB In: Handle to the LogicBox (create by open.vi), if not connected will take a global. parameter, this only works with one LogicBox at a time.
Line 33: Line 33:
  
  
   Connect: enable, configurate and set input/value of the HV digital output.
+
   Connect: enable, configurate and set the trigger driver signal.
          Inputs:
+
    Inputs:
          "DO" : set the signal number which will drive the output, this signal can be set or clear
+
        "Freq" set the clock frequency
                  manually using the module "B_S.vi" (Bool to Signal).
+
        "Enable" enable/disbale Clock (synchronous)
           "DI" : get the signal number of which drives this input.
+
        "Width" specifies lenght of High state in 10 ns (=0 generates 50% duty cycle!)
       
+
            
 +
  Outputs:
 +
        "CLK" signal number in which the clock is generated 
  
   Get Status: the cicuitry of the digital output can detect two errors, under voltage or logic state
+
   Get CLK:
              undifined. Only the first 8 channels support this features
+
    Outputs: "CLK" return output state of CLK
              Input: "Channel": number of channel to be configured
 
              Output: Output Status
 
  
   Set DO: set the signal number which will drive the output, this signal can be set or clear manually
+
   Set ENABLE:
          using the module "B_S.vi" (Bool to Signal).
+
    Input: "ENABLE" enable/disbale Clock (synchronous)
          Input: "Channel": number of channel to be configured
+
 
                "DO" set the signal number which will set the output value.
+
  Gen/Hz:  
 +
    Output: "Gen" current generated frequency in Hz 
  
 
=== Example VIs ===
 
=== Example VIs ===
  
SU7XX_XX_test.vi
+
LP_CLOCK_test.vi

Latest revision as of 10:31, 10 May 2016

LogicPool (CLOCK)

A clock can be implemented using the GATEGEN VHDL module, due to this the address and register map is the same as by the GATEGEN

LabVIEW Vi

CLOCK.vi

CLOCK module for generating free running clocks. All frequencies on output CLK are derived from the system clock (100 MHz) by a divider.


CLOCKc.png


The meaning of almost inputs and outputs of this Vi depends on the input "Function". The global inputs and outputs does not depend on the "function" input:

Glogal Inputs

GATEGEN#: number of gate generator to be configured as clock (1..255).

USB In: Handle to the LogicBox (create by open.vi), if not connected will take a global. parameter, this only works with one LogicBox at a time.

error in: error handling input

Global Outputs

USB out: Handle to the LogicBox.

error out: error handling output

Functions

 Connect: enable, configurate and set the trigger driver signal.
   Inputs:
        "Freq" set the clock frequency
        "Enable" enable/disbale Clock (synchronous)
        "Width" specifies lenght of High state in 10 ns (=0 generates 50% duty cycle!)
          
 Outputs:
        "CLK" signal number in which the clock is generated  
 Get CLK: 	
   Outputs: "CLK" return output state of CLK
 Set ENABLE:
   Input: "ENABLE" enable/disbale Clock (synchronous)
 Gen/Hz: 
   Output: "Gen" current generated frequency in Hz   

Example VIs

LP_CLOCK_test.vi