-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TrigSrc-Sel doesn't set 0x500 register #55
Comments
The problem is that FPGA clears the sequence trigger bits of 0x500 (Front Panel 0 Input Mapping Register) while writing zero to 0x504 (Front Panel 1...). It happens like this:
In order to assure that only "Front0" evgInput is triggering the sequence, it goes through all the evgInputs, and if the evgInput is "Front0" ( mrfioc2/evgMrmApp/src/mrmevgseq.cpp Lines 63 to 75 in a8cb48d
When clearing the SEQ0 bit of 0x504 (FP1), bit SEQ0 of 0x500 (FP0) also gets cleared. So function doesn't achieve what it wanted because of FPGA behavior. To see what the FPGA is doing do the following: # EPICS IOC shell
pcidiagset 13 # <--- change 13 to bus number of your EVM
pciwrite 32 0x500 0x100 # <-- set SEQ0 bit of FP0 mapping register
pciread 32 0x500 # 0x100
pciwrite 32 0x504 0 # <-- clear SEQ0 bit of FP1 mapping register
pciread 32 0x500 # gives 0! it is interesting that setting (instead of clearing) the SEQ0 bit of 0x504 doesn't affect 0x500. pciwrite 32 0x500 0x100 # <-- set SEQ0 bit of FP0 mapping register
pciread 32 0x500 # 0x100
pciwrite 32 0x504 0x100 # <-- set SEQ0 bit of FP1 mapping register
pciread 32 0x500 # still 0x100 P.S. |
0x500, 0x504... 0x50C refer to the same register. |
My PR still needs to solve the problem of |
@krmpotic , is this issue still valid? Could you redo the test with "Front1"? |
Setting SoftSeq*TrigSrc-Sel PV to "Front0" does not cause the sequence to be triggered by front panel input. What is missing is setting the EVM 0x500 register's bit 8 (FP0SEQ0) (and bit 9 FP0SEQ1, for "Front1").
Example test procedure (mTCA-EVM-300):
## linux shell camonitor MRF:{EVR1}EvtBCnt-I
only after step 5 does MRF:{EVR1}EvtBCnt-I start increasing
The text was updated successfully, but these errors were encountered: