> > At 02:15 AM 15/02/99 -0800, you wrote: > Sorry for short explanation. I have an external clock signal which is gated > with data. I need to count the number of times that data is high when a > clock pulse arrives. To use a PIC would involve an external clock. I cannot > use the internal timers. Also as each instructiona cyclye is 0.4microsecs, I > do not have the time to store this. More information which helps. If the internal timers are not available then you definitely need another part. I'd vote for a second PIC (for its timer and serial capabilities) with an extern and gate to gate the clock signal. So the second PIC would count whenever the data signal is high using its internal counter, and could then transmit the information to the primary PIC when requested. Would take an 8 pin and a 14 pin part which is a smaller part and pin count than the 74HC4040 and serial shift register solution I saw in the other post. Well worth taking a look at before committing to the multiple counter solution I think.... BAJ > > TIA > > Peter > >At 20:28 02/15/99 +1100, Peter Grey wrote: > >>I need to be able to count to 4,000,000 (24 bits) and when complete I wish > >>to address serially for the result. The counter is clocked at about 0.5MHz > >>which is a little fast for the PIC to keep up with. > > > >how that? can't you use eg. timer 1 as a counter? > > > >ge > > > > >