Access over 35 million academic & study documents

6 Develop program that generates a square signal and its opposite s

Content type
User Generated
Showing Page:
1/1
6. Develop program that generates a square signal and its
opposite signal in pins 7 and 6 of port B:
a. Without bit banding
b. With bit banding.
Solution
fs = 10000; t = 0:1/fs:1.5; x1= square(2*pi*50*t);
plot(t,x1), axis([0 0.2 -1.2 1.2]); xlabel(\'Time (sec)\');
ylabel(\'Amplitude\'); title(\'Square Periodic Wave\');

Sign up to view the full document!

lock_open Sign Up
Unformatted Attachment Preview
6. Develop program that generates a square signal and its opposite signal in pins 7 and 6 of port B: a. Without bit banding b. With bit banding. Solution fs = 10000; t = 0:1/fs:1.5; x1= square(2*pi*50*t); plot(t,x1), axis([0 0.2 -1.2 1.2]); xlabel(\'Time (sec)\'); ylabel(\'Amplitude\'); title(\'Sq ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.
Studypool
4.7
Indeed
4.5
Sitejabber
4.4