Other Parts Discussed in Thread: CD4017B
Hi,
I'm using the CD4541B to create an automotive timer. I know the limitations of the clock and am planning on using an external oscillator for accuracy. However, to verify the functionality of the chip, I've been experimenting with shorter times.
What I want is for the device to stay on for X time after the vehicle is turned off. I am planning on setting this time with R_tc.
My current set up:
Vdd=13.1 V (generally 12, because automotive)
A, B: Vdd for count is 65536.
Pin 5: Vdd for auto reset disable.
Pin 6: Initially ground, then pulsing to Vdd for timing applications.
Pin 9: Vdd for initially high after reset
Pin 10: Ground for single transition mode.
With R_set=100K, R_tc=47K, C_tc=.1uF (I'm currently limited with my capacitor selection). My calculated oscillator frequency from the data sheet should be ~100Hz. And it's my understanding that Run Time=Count/oscillator frequency, which should give me 65536/100=about 10 hours. I know this is incorrect because I've read forums saying that even 30 minutes is impossible with the built in RC and I'm only getting 2.3 minutes with this set up. My count is 14,500 based on this information.
So, I'm confused and here are my questions:
1.) What is the count actually? My A and B are tied to Vdd, why is my count not 65,536? The data sheet says with Q=initially low, after 2^N-1 counts the timer will go high. I can deal with that, but why the discrepancy between 2^N in the chart and 2^N-1 in the description?
2.) Is my understanding of the timing calculations correct? If not, what am I missing? Because if f_clock is 1kHz, then shouldn't the max time be 1 hour?
3.) On page 4, the data sheet suggests that the limits of an external clock is 6MHz. Is this true?
4.) Should I just get a different chip? This is extremely frustrating and I'm very confused.