Altera_Forum
Honored Contributor
14 years agohow to create low freq clock ?
Hi all, I'm a hobbyist, and I'm a bit puzzled with the following :
I have a 100 mhz, a 12 mhz and 20 mhz clock at my disposal on a cyclone1 I try to sample a signal (<100Khz) for a few millisecs. In order to fit this in the memory I need a low sample freq. It seemed handy to me to make the clock run slow (at 200Khz) so I get a long period sampled with just a few memory cells (200 samples per msec) now I get the feeling that you need a PLL to generate other clock freq. but it seems I can only generate higher frequencies with the ALTPLL. is this correct or am I overlooking something ? I also understand that you should not create a clock from plain logic, e.g. the following should not be done : always @(posedge fastclk) counter <= counter +1; assign slowclock = counter[7]; how am I supposed/advised to go about creating a low clock freq ? thanks for any advice you can offer. if there is a link to a beginners guide to clocks, I would be very grateful too.