You won’t get it continuous, it makes a call to an assembler routine itself with the arguments passed to it.
Failing the hardware PWM, DTs Elapsed Timer code is already clocking at 100Hz by default,
so you could toggle a pin in the ISR and there’s your 50Hz.
For better accuracy, toggle a bit, and write the bit to the port so you don’t have a timing change depending on the state.
Code:flipflop = flipflop + 1 ‘ if variable is a bit it will flip flop portb.x = flipflop
Bookmarks