Write a C-language program to generate 4 simultaneous waveforms on RD0, RD1, RD2, and RD3 with the following attributes. RD0: Frequency 100 Hz, Dutycycle 30%
Write a C-language program to generate 4 simultaneous waveforms on RD0, RD1, RD2, and RD3 with the following attributes.
RD0: Frequency 100 Hz, Dutycycle 30%
RD1: Frequency 1 kHz, Dutycycle 45%
RD2: Frequency 10 kHz, Dutycycle 60%
RD3: Frequency 100 kHz, Dutycycle 75%
You may use all four timers at a time and turn them on together with interrupts enabled for all of them. One timer can be used to generate one waveform independent of the other. You can use any timer in any mode for any waveform as per your choice.
You must used internal clock source for all timers.
The system clock frequency is equal to the sum of last 2 digits of your registration number plus one.
verify the code by simulating it on Proteus before submission also.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started