Frequency measures how many times a periodic cycle repeats per second. Hertz (Hz) is cycles per second; kilohertz (kHz) represents thousands of cycles per second. section 3.4.1
For a repeating signal, frequency and period are inverses: period = 1 / frequency, while frequency = 1 / period. A higher frequency means shorter cycles. section 3.4.1
In pulse-width modulation (PWM), frequency determines how quickly a digital output switches between on and off. Duty cycle separately determines the percentage of each cycle spent on, influencing average delivered power. section 3.4.1
A 1 kHz PWM signal
A 1 kHz signal completes 1,000 cycles per second, so each cycle lasts 1 millisecond. Toggling manually in software requires at least two state changes per cycle, making precise timing difficult when other robot tasks must also run. section 3.4.1








