Hi guys
I need some opinions on what to use as a Timer source for my 6502 projects as my experience with porgrammable timers is next to zero.
Looking at my needs, mostly it's going to be for writing to I2C ICs at 400KHz and also to a 44780 LCD module. I'd use the timer to prompt when the next bit/command is to be sent or received.
I know I can do this with the timer in a 65C22, but as I plan to change the PHI2 oscillator speeds at times I need an external timer and not one based off of PHI2.
Looking around I have found a programmable timer by TI: the CD4541B (
datasheet).
Obviously, as the CD4541B only goes up to 100KHz with the internal oscillator, I'd need to attach something like a 1MHz external oscillator on pin 3 and then hook pin 8 (Q) to one of CA1, CA2, CB1, or CB2 on a VIA and use that to generate interrupts. Pins for A, B, Master Reset, Auto Reset, Mode and Q /Q Select (pins 12, 13, 6, 5, 10, 9 respectively) would need to be hooked up to port A or B of the 65C22.
What do you think? Is this a good IC & implementation or is there a better way or IC?