blob: dcd7c8130a8d2cf9e72f8131251a6c18d1249544 (
plain)
1
2
3
4
5
6
7
8
9
10
|
//example 10.1
clc;
clear;
//c= input('Enter the period of the waveform at C in micro seconds : ');
c=24;// given period of waveform
clk= c/8;
clkf = 1/(clk*10^-3);
printf('The clock period is %f micro seconds \n',clk);//displaying the results
printf('The clock frequenc must be %f KHz ', clkf);
|