1
Microcontrollers / Re: Divide clock by 3 on a ATF16V8B
« Last post by PCB.Wiz on Today at 12:35:09 am »I don't know if this is possible on the ATF16V8B but this code will divide by 3 symmetrically only on the posedge of the clk
It's a cheat where you make a counter count to 3 and mux the output between 0, clk and 1 so I get the symmetrically from the clk input
That could be done, with some caveats.
The 16V8 has no CLK in the product term array, so you need to join 2 input pins.
Generating a CLK from an async MUX like that, exposes the risk of a runt pulse, in the handover from MUX=CLK to MUX='1'