//Chapter-3,Example3_4,pg 3_10 fclk=12*10^3//clock frequency t1=83.33*10^-3 V1=100*10^-3 Vr=100*10^-3 D=fclk*t1*(V1/Vr) printf("digital output\n") printf("D=%.f counts",D)