blob: 2c8acc81ed9ec41eb15bde35dc83b1932c7e35ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
//chapter-5,Example5_6,pg 493
Tz=0.6*10^-3//discharge time
Vref=1//ref. voltage
t=4*10^-3//integrator time const.
Vk=((Vref*Tz)/t)//rise in output integrator
printf("rise in integrator output\n")
printf("Vk=%.2f V\n",Vk)
Vi=0.2//input voltage
Tu=Vref*(Tz/Vi)//charging time
printf("charging time\n")
printf("Tu=%.4f sec",Tu)
|