I am sorry to bring this up again but no replies from anyone is affecting my sleep.
I just need to be reassured with a confirmation that HPWM does go way past the 32767 Hz with a 16F628A contrary to what is indicated in the latest PBP book. V2.60
Because I keep reading threads about this limit that are suggesting that a miracle is happening on my bench.
I have reduced my code to this and I am reading 40.1 KHz on the scope.
Code:
@ __config _XT_OSC & _WDT_OFF & _MCLRE_ON & _LVP_OFF & _CP_OFF
DEFINE OSC 4
TRISA = $07
TRISB = $05
CMCON = $06
INTCON = $10
OPTION_REG = $C0
HPWM 1,127,40000
MAIN:
pause 1
GOTO MAIN
end
Bookmarks