Hi, Ken
1) just modify Duty and Frequency ... ONLY if pots inputs changes.
no need any PAUSE then ...
2) "Frequency" is a Byte ... and the minimum available frequency is ... 489 Hz !!!
rings you a bell somewhere ???
Alain
Hi, Ken
1) just modify Duty and Frequency ... ONLY if pots inputs changes.
no need any PAUSE then ...
2) "Frequency" is a Byte ... and the minimum available frequency is ... 489 Hz !!!
rings you a bell somewhere ???
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Do you need PAUSE 100 after setting ADCON0?
Robert
Alain,
why should it change the data on 'only' if POT changes. It still should give me the same value and not going from 100hz then 2khz !!!
Y I have 256 bits so I SHOULD BE GETTING MAX 256 Hz .......
Like I said the duty cycle works fine, on both AN0 And AN1 !!
I will try the Dont change thing, because i have no more idea
ken
I am getting 1200 Hz with this HPWM command:
HPWM 1,DutyCycle,350 'channel, dutycycle, frequency
Do not make sense..... My OSCON is good at 8Mhz
Try fixed values just to test setup.
Robert
Bookmarks