Search the Community
Showing results for tags 'timers'.
I've been creating a small collection of useful modules like Timers, Counters, etc. as part of my learning of HDL. There are many great examples of Timers out there but I'm offering up my own as yet another option. The timer has a pre-scaler option that divides down the incoming clock signal. Both the timer bit resolution and pre-scaler size are configurable parameters. Here is the module declaration as an example. module timer_scaled #( parameter TIMER_BITS = 8, SCALER_BITS = 2 ) ( input clk, // clock input input rst, // async reset input en, /
Hi guys, I'll looking to use 3 of the 5 compare pwm outputs available on the uC32. I would like to use them to generate 3 square waves all around 830Hz. They'll all be fixed frequency from the start of the program. I've seen the sample code in the datasheet, but I think there must be easier higher level functions I can call. I would like to send the output on the OCx pins. Can anyone point me in the direction of some resources for this? I can't seem to get anything out of the OC pins. Thanks, djcheezy