EE313 HW3 Solutions Problem 2-1

advertisement
EE313 HW3 Solutions
Problem 2-1
Determine the period given the frequency of the waveform.
a) 𝑓 = 2 𝑀𝐻𝑧
𝑇=
1
1
*𝑓 = 𝑇 => 𝑇 = 𝑓
1
= 0.5π‘₯10−6 = 𝟎. πŸ“ µπ’”
2π‘₯106
b) 𝑓 = 500 π‘˜π»π‘§
1
𝑇=
= 2π‘₯10−6 = 𝟐 µπ’”
500π‘₯103
c) 𝑓 = 4.27 𝑀𝐻𝑧
1
𝑇=
= 0.234π‘₯10−6 = 𝟎. πŸπŸ‘πŸ’ µπ’” = πŸπŸ‘πŸ’ 𝒏𝒔
4.27π‘₯106
d) 𝑓 = 17 𝑀𝐻𝑧
1
𝑇=
= 0.0588π‘₯10−6 = 𝟎. πŸŽπŸ“πŸ–πŸ– µπ’” = πŸ“πŸ–. πŸ– 𝒏𝒔
17π‘₯106
Determine the frequency given the period of the waveform.
e) 𝑇 = 2 µπ‘ 
1
𝑇=
= 0.5π‘₯106 = 𝟎. πŸ“ 𝑴𝑯𝒛 = πŸ“πŸŽπŸŽ π’Œπ‘―π’›
2π‘₯10−6
f) 𝑇 = 100 µπ‘ 
1
𝑇=
= 0.01π‘₯106 = 𝟏𝟎 π’Œπ‘―π’›
−6
100π‘₯10
g) 𝑇 = 0.75 π‘šπ‘ 
1
𝑇=
= 1.333π‘₯103 = 𝟏. πŸ‘πŸ‘πŸ‘ π’Œπ‘―π’›
0.75π‘₯10−3
h) 𝑇 = 1.5 µπ‘ 
1
𝑇=
= 0.667π‘₯106 = πŸ”πŸ”πŸ• π’Œπ‘―π’›
1.5π‘₯10−6
Problem 2-2
Draw the Serial and Parallel waveforms. Calculate how long it will take to transmit if
𝐢𝐢𝑝𝑝 = 2𝑀𝐻𝑧.
a) 45B16 = {4} {5} {𝐡} = {0100} {0101} {1011}
Serial
𝐢𝐢𝑝𝑝
π‘†π‘†π‘œπ‘œ
One
Clock
Cycle
1
0
1
1
0
1
0
1
1
0
1
0
0
0
1
LSB
MSB
1
= 0.5π‘₯10−6 = 𝟎. πŸ“ µπ’”
2π‘₯106
Duration of Transmission: 0.5 µs x 12 clock-cycles = 6 µs
𝑇=
Parallel
One Clock
Cycle
𝐢𝐢𝑝𝑝
LSB 20
21
22
MSB 23
1
0
1
0
1
0
1
0
1
0
0
1
1
0
1
0
0
0
1
1
1
0
0
1
= 0.5π‘₯10−6 = 𝟎. πŸ“ µπ’”
2π‘₯106
Duration of Transmission:
0.5 µs x 3 clock-cycles = 1.5 µs
𝑇=
b) A3C16 = {𝐴} {3} {𝐢𝐢} = {1010} {0011} {1100}
Serial
𝐢𝐢𝑝𝑝
π‘†π‘†π‘œπ‘œ
One
Clock
Cycle
1
0
1
0
0
1
0
1
1
1
0
0
0
LSB
1
0
1
MSB
1
= 0.5π‘₯10−6 = 𝟎. πŸ“ µπ’”
6
2π‘₯10
Duration of Transmission: 0.5 µs x 12 clock-cycles = 6 µs
𝑇=
Parallel
One Clock
Cycle
𝐢𝐢𝑝𝑝
LSB 20
21
22
MSB 23
1
0
1
0
1
0
1
0
1
0
0
1
0
0
1
1
1
0
0
1
0
1
1
= 0.5π‘₯10−6 = 𝟎. πŸ“ µπ’”
2π‘₯106
Duration of Transmission:
0.5 µs x 3 clock-cycles = 1.5 µs
𝑇=
Problem 2-3
a) πŸ‘πŸ‘πŸπŸŽ
Divide by Desired Base
33 ÷ 2 = 16
16 ÷ 2 = 8
8÷2=4
4÷2=2
2÷2=1
1÷2=0
πŸ‘πŸ‘πŸπŸŽ = 𝟎𝟎𝟏𝟎 𝟎𝟎𝟎𝟏𝟐
𝑇=
Remainder times Base
0.5 π‘₯ 2
0.0 π‘₯ 2
0.0 π‘₯ 2
0.0 π‘₯ 2
0.0 π‘₯ 2
0.5 π‘₯ 2
=
=
=
=
=
=
Output
1 (LSB)
0
0
0
0
1 (MSB)
1
= 0.27π‘₯10−6 = 𝟎. πŸπŸ• µπ’”
3.7π‘₯106
Duration of Transmission: 0.27 µs x 8 clock-cycles = 2.16 µs
b)
π‘‡π‘–π‘šπ‘’ π‘œπ‘œπ‘“ π‘‡π‘Ÿπ‘Žπ‘›π‘ π‘šπ‘–π‘ π‘ π‘–π‘œπ‘œπ‘›
π‘‡π‘–π‘šπ‘’ π‘œπ‘œπ‘“ 𝑂𝑛𝑒 πΆπ‘™π‘œπ‘œπ‘π‘˜−𝐢𝑦𝑐𝑙𝑒
1.21
= 0.27 = 4.48
This tells us that the transmission has already transmitted the 4th Bit and is almost half
way through transmitting the 5th Bit. Starting with the LSB the 5th Bit is “0” therefore at
1.21 µs the serial line is Low.
Problem 2-4
a) 7-Bits make up each character in ASCII code and since transmission is 8-Bit Parallel it will
take 3 clock-cycles to transmit $14.
1
𝑇=
= 0.125π‘₯10−6 = 𝟎. πŸπŸπŸ“ µπ’”
8π‘₯106
Duration of Transmission: 0.125 µs x 3 clock-cycles = 0.375 µs
b) For $78.18 it takes 6 clock-cycles.
1
𝑇=
= 0.24π‘₯10−6 = 𝟎. πŸπŸ’ µπ’”
4.17π‘₯106
Duration of Transmission: 0.24 µs x 6 clock-cycles = 1.44 µs
Download