On Fri, 24 Jun 2005 15:19:06 -0700, you wrote: >Hello, >I am working on an FPGA design which I want to have a counter which >counts pulses from a V/F converter. I want the counter to be read out >via I2C. My question is, what is the standard way of accomplishing >something like this because it seems to violate some of the rules of >synchonous logic design. How is this done in an RTC (which seems to be >a very analogous situation to this one)? My main concern is that when >the latch signal comes from the I2C address match (to store the >current counter value to be transfered over the I2C bus), how can I >ensure (at least with very high probability) that the counter is not >in the middle of rippling? I suppose I need some sort of synchronizer, >but since I don't want to have to have a 3rd clock source, I'm not >sure what the best way to do this is. >Thank you for any help, >Glenn Why not use a synchronous counter, and have an output latch to freeze the count when it needs reading. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist