//chapter-5,Example5_7,pg 493 Vref=1//ref. voltage Vi=0.2//input voltage n=15//no. of counts before reset(n+1) N=((n+1)*Vi)/Vref//no.of counts over charging time printf("no. of counts over charging time\n") printf("N=%.2f ",N)