Help needed to program pulse counter

hi :) i'm looking for help on how to program the counter to count the number of pulses on my stm32 board.. i've a rough idea about how to go about doing it, but not sure if it is correct.

enable the counter
start the timer
stops the timer
disable the timer
read counter

i'm using uvision 4, ulink2.

is the above the correct way of programming the counter? i would appreciate any help!! thanks so much!!

More questions in this forum