Tell the FPGA designers that the next time they design a UART, they are NOT to use 76687.12 (!!!!!!?????) as a base frequency, furthermore, they will be SHOT ON SIGHT if they design anything such that any other designer has to divide any frequency by a prime number larger than 11, and even 11 is silly. That being said, are you certian they don't have a few extra gates available on the fpga to do the division for you? Honestly, it'd look silly (as well as be cost ineffective) to have this great FPGA which has to be supported by a bunch of smaller logic chips. If you don't need a perfect square wave, you can use many of the other suggestions in this thread. If you do need a perfect square wave, then you're probably going to have to use a PLL to double some frequency somewhere, then divide by 326, then put it through a flip flop. But I suggest you eye the specifications /very/ closely, because no reasonable UART design would use a clock of 76687.12Hz. -Adam Vic Lopez wrote: >This is a clock for a processor implemented in an fpga. The division >comes about because there is a uart implemented as well inside the >processor to avoid framing errors. So, yes, it is a square wave. -Vic > >-----Original Message----- >From: Robert Rolf >To: PICLIST@MITVMA.MIT.EDU >Date: Fri, 22 Nov 2002 11:39:21 -0700 >Subject: Re: [OT]:Need to divide Frequency by 163. > > > >>Does it need to be a square wave? If single pulses are OK, use a >>reloadable >>down counter that reloads 162 on every underflow. >> >>Vic Lopez wrote: >> >> >>>Hello, >>> I am in need to divide a 12.5 Mhz clock by 163. How can this >>> >>> >>be >> >> >>>done with a counter? I know that if this division were a power of >>> >>> >>two, >> >> >>>then it would be very straight forward, but this is not my case at >>> >>> >>all. >> >> >>>Any pointers will be greatly appreciated. -Vic >>> >>>********************************* >>>Get your free E-Mail and Homepage >>>Go to http://www.networld.com >>>********************************* >>> >>>-- >>>http://www.piclist.com hint: To leave the PICList >>>mailto:piclist-unsubscribe-request@mitvma.mit.edu >>> >>> >>-- >>http://www.piclist.com hint: To leave the PICList >>mailto:piclist-unsubscribe-request@mitvma.mit.edu >> >> >> >> > > > > >********************************* >Get your free E-Mail and Homepage >Go to http://www.networld.com >********************************* > >-- >http://www.piclist.com hint: To leave the PICList >mailto:piclist-unsubscribe-request@mitvma.mit.edu > > > > > > > -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu