Draw the waveforms (square wave) with duty cycles (on) 25%, 50%, 75%. One of the purpose of the lab is to generate a PWM signal in one of the ports using systick timer.
- Given a signal with 1 KHz, find out the time period of each cycle. Find out the time span of the high signal and the low signal given 10%, 20%, 30% and 90% duty cycles.
- We would like to generate a signal with a certain frequency (ex. 100 Hz, 1 KHz, etc.) and certain duty cycle (10%, 20%, etc.), find out the values we need to load into the timer register? Given that the XTAL = 8 MHz.