Configuration of the Main Type in Free-Large Mode
Step |
Action |
---|---|
1 |
In the Devices tree, double-click Embedded Functions > HSC node. |
2 |
Set the type to Main from the HSC0• > Type drop down menu. |
3 |
The instance of the Main type is created, you can rename it from the Variable field. |
4 |
Set the mode to Free-large from the HSC0• > Parameters > Mode drop down menu. |
5 |
Set the preset value from Parameters > Preset/Modulo For the Free-Large, this parameter is the Preset Value. |
6 |
Set the anti-bounce filtering value from the HSC0• > Clock Inputs > A Filter and B Filter > drop down menus. |
7 |
Optionally, enable the SYNC and CAP auxiliary inputs from the HSC0• > Auxiliary Inputs > SYNC or CAP drop down menus, to enable the Synchronization function, and Capture function on a physical input. |
8 |
Optionally, enable the thresholds from the drop down menu, by selecting HSC0• > Thresholds > Threshold 0 to authorize the Compare function and to configure the Reflex Outputs. NOTE: For the Free-large mode, configured values must follow the rule: 0 < Threshold 0 Value < Threshold 1 Value Threshold values are not restricted by the Preset value for the Free-large mode. |
Click the IO Summarize... button to display the input and output assignments.
Refer to the hardware guide for wiring details.
The filtering value on the Main type input determines the counter maximum frequency as shown in the table:
Input |
Filter value |
Maximum counter frequency |
---|---|---|
A, B |
4 µs |
50 kHz |
40 µs |
14.5 kHz |