Altera_Forum
Honored Contributor
14 years agocyclone 2 LPM_COUNTER begginer problem
hello im new to the whole fpga programming scenario and im trying to implemnent a niosII processor on a cycloneII FPGA(on a DE2 board).
in addition to my niosII processor i require some sort of additional circuitry to divide my 50Mhz clock signal to 100Hz. I was trying to do this using the LPM_COUNTER megafunction. I was able to create an up counter with a 26bit output but my problem is to get a single output of that to my processor. Im using the block diagram editor. My counter output is a 26bit bus so i cant just take the 24th pin and connect it to an input in my processor. I just want to get a single input to my processor after 500000 counts. How can i achive this with the LPM_COUNTER? or any other circuit? (besides building the whole divider using logic) please help :(