6 Test Results

The duty cycle of PWM generated to test the application varies over the range from 0 to 255. The range of the duty cycle can be modified based on the application. This helps in easy visualization of varying duty cycle through the LEDs available in the STK600. When the code is compiled and tested, the LEDs of STK600 shall display cycles repeatedly from 0x00 to 0xFF like a binary counter.
Note: In the application demonstrated, the input pulse width is less than the time spent by CPU in the capture ISR. As explained in Application Constraints, LED port shows the lower steps (0 & 1) of PWM's duty cycle as 0x00.