Version history
1.1 | Now 2020 | First Release |
General:
The Fast shutter Controller is a Firmware for the PiLC to generate gate signals that is
synchronized with an external signal.
The gate signal can defined as follow:
Name | Task | Value |
---|---|---|
Control | Controlling the gate | 0= Reset 1= Arm 2= Gate manually open |
Gate Delay | Delay from the rising edge from the external signal and the rising edge from the gate | Time in us (32bit) |
Gate High | High Time from the gate | Time in us (32bit) |
Gate Low | Low Time from the gate | Time in us (32bit) |
Gate Repletion | How often the gate should be repeat |
Instruction:
Before you Arm the system the Gate Delay/High/Low and Repletion must be set. This setting must only set once.
Example: Make a Gate 2sec after the external rising edge, 2sec High Time, 2sec Low Time and repeat it 5 times.
Pyhton:
pilc.WriteFPGA([0x03,2000000]) #Delay
pilc.WriteFPGA([0x05,2000000]) # High time
pilc.WriteFPGA([0x07,2000000]) # Low Time
pilc.WriteFPGA([0x09,5]) # Repeat
After the gate defines a set. It is possible to set now the control to arm.
Pyhton:
pilc.WriteFPGA([0x01,1]) # Cntrl
When the Gates are produce and you want to start a new run you must reset the control
Pyhton:
pilc.WriteFPGA([0x01,0]) # Cntrl
Also you can stop the gate, when you reset the control.
PiLC I/Os:
Number | Typ | Function |
---|---|---|
1 | Input | Trigger |
2 | Output | Gate/Shutter |
3 | Output | Busy |
4 | N/A | N/A |
5 | N/A | N/A |
6 | N/A | N/A |
7 | N/A | N/A |
8 | N/A | N/A |
9 | N/A | N/A |
10 | N/A | N/A |
11 | N/A | N/A |
12 | N/A | N/A |
13 | N/A | N/A |
14 | N/A | N/A |
15 | N/A | N/A |
16 | N/A | N/A |
PiLC Register:
Number | In Register | Out Register |
---|---|---|
1 | Control | Remain Gates |
2 | Gate Delay in us | N/A |
3 | Gate High Time in us | N/A |
4 | Gate Low Time in us | N/A |
5 | Gate Quantity | N/A |
6 | N/A | N/A |
7 | N/A | N/A |
8 | N/A | N/A |
9 | N/A | N/A |
10 | N/A | N/A |
11 | N/A | N/A |
12 | N/A | N/A |
13 | N/A | N/A |
14 | N/A | N/A |
15 | N/A | N/A |
16 | N/A | N/A |