summaryrefslogtreecommitdiff
path: root/3871/CH14/EX14.4/Ex14_4.sce
blob: e2c7266038aa9b79f9517bb0c0a9a534dfed5278 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//=====================================================================================
//Chapter 14 example 4
clc;
clear al;

//variable declaration
N   = 45;       //count 
t   = 0.01;     //gate enable time in s

//calculations
f   = N/t;      //frequency in Hz

//result
mprintf("frequency  = %3.1f kHz",(f*10^-3));