Configuration of the Simple 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 Simple. |
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. |
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 Simple type input determines the counter maximum frequency as shown in the table:
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 |
NOTE: The filter is not support for controllers that have reduced (10 kHz) HSCs.