Except that it'll take at least one cycle to set the pin high (probably 2), one cycle to set the pin low (probably 2), 2 cycles to execute the GOTO MAIN...
And if you'd read your PBP manual, you'd notice that pauseus has a minimum delay of 12us vs. the 4us you want.
Therefore, you're code will probably output a 50% duty cycle square wave at about 66.6Khz...give or take...
And do you want actual PWM or just a 120Khz pulse? 2 totally different things you know...
Bookmarks