hw11 - T = 1 ms rational t1 = {100, 1000} // T 1 = 100 ms...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
ECE 332 Homework 11 Spring 2010 Due: 04/12/2010 Assignment: Complete the following You must show your work for full credit. 1. If f 0 = 20k Hz find T 0 . 2. If f 0 = 20k Hz and T = 10 ms, find C T and C D for a duty cycle of 20% and the resolution R . 3. If T 0 = 100 μ s and f = 10 Hz, find C T and C D for a duty cycle of 45%. 4. If T 0 = 50 μ s and T = 200 ms, find C T and C D for a duty cycle of 60%. 5. Complete the following code to compute the values for ct1, cd1, ct2, cd2. void main (void) { rational t0 = {1, 1000}; //
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: T = 1 ms rational t1 = {100, 1000} // T 1 = 100 ms rational t2 = {5, 1} // T 2 = 5 seconds int ct1, cd1; int ct2, cd2; // todo: ct1 = ??? // C T for T 1 with T as reference cd1 = ??? // C D for T 1 with T as reference ct2 = ??? // C T for T 2 with T as reference cd2 = ??? // C D for T 2 with T as reference } Supply a) NIOS II code and b) snapshot of output from simulation and c) hand calculations that match output produced from simulation....
View Full Document

Ask a homework question - tutors are online