Reflex function block: Single electronic CAM
(Original Document)
Role
This function is used to detect when the two thresholds th1 and th2 have been crossed.
Structure
The table below shows the block's different interfaces.
Name
Meaning
E
Enable input.
  • E = 0: Up input frozen,
  • E = 1: Up input valid.
Up
Counting input.
Note: the maximum performance of the counter is 2 Khz (with the Up input directly controlled by the physical input (without filtering)).
RESET 0
Output x forced to 0.
RESET 1
Counter initialization input.
Note: If the counter is not reset to 0, when it reaches the maximum value (65536 points), it will change to 0,1,2 etc. Therefore it is advisable to inhibit counting (E=0) by using the x Aux output in series with output E.
x
Cam's physical output.
x Aux
Block's internal auxiliary output.
Illustration
Operation
This table describes the different operating phases of the simple cam.
Phase
Description
1
On the rising edge of input RESET 1:
  • counter initialized to 0
  • input x Aux changes to 1,
On the high status of input RESET 0:
  • input x is forced to 0.
2
On the rising edge of input Up, the counter is increased.
3
When threshold th1 is reached, output x changes to 1.
4
When threshold th2 is reached, outputs x and x Aux change to 0.
Illustration
The illustration below shows the trend diagram of the simple cam function block.