Configuration of the Main Type in One-shot Mode
Step |
Action |
---|---|
1 |
Double-click Embedded Functions > HSC. |
2 |
Select the HSC• tab. |
3 |
Set the value of the HSC > HSC0• > Type parameter to Main. |
4 |
Set the value of the HSC > HSC0• > Parameters > Mode parameter to One-Shot. |
5 |
Enter the value of the HSC > HSC0• > Parameters > Preset/Modulo parameter. |
6 |
Select the value of the HSC > HSC0• > Clock Inputs > A Filter parameter. |
7 |
Optionally, enable the SYNC, EN and CAP auxiliary inputs from the drop-down menu, to enable the Synchronization function, Enable function and Capture function with a physical input. |
8 |
Optionally, enable the Thresholds from the drop-down menu, to authorize the Compare function and to configure the Reflex Outputs. |
NOTE: The IO Summary window displays the DM72F• I/O mapping. You can see the I/O used by expert function.
The filtering value on the Main type input determines the counter maximum frequency as shown in the table below:
Input |
Filter Value |
Maximum Counter Frequency |
---|---|---|
A |
0.004 ms (default value) |
100 kHz |
0.4 ms |
1 kHz |
|
1.2 ms |
350 Hz |
|
4 ms |
100 Hz |