Yes a hserin timeout that is too small causes some grief even the odd reset, i had to increase it to 300 for hand typed input for a successful
test.
my previous tests had the timeout commented out...
Even in proteus 8 simulator appears the same behavior. After sending a few commands the PWPS stops working and the PIC freezes.
I tested PIC12F1840, that's strange.
what did you try , post your code
all those calc's are for a 20MHz clock if you use a different OSC then they must be recalculated
the internal OSC is not brilliantly accurate and could...
how sure are you that your code is compiled with the modified inc as i suggested ?
if you examine the lst file generated and search for NoTimerInt
do you see
9248
pbp can be tricky if...
I tested the PIC12F1840 and PIC16F1824 with software serial input. PIC frequency set to 8MHz as required PBP at 9600 baud.
It's working, but the response is kinda slow.
'* Notes :...
FYI:
1. I just requested a current PBP manual to see if the HWPWM feature now includes >32767Hz.
2. I have the PIC12F1572 data sheet which seems to have a completely differenct PWM operation than...
Unfortunately, same behavior. After sending the command via Bluetooth (I send the command for example: hserout ["Q",dec 155,10,11] in a loop while the pushbutton is pressed). After a while, the servo...
louislouis - 5th July 2022, 13:14What those two chips have in common is auto context save for interrupts.
i simulated the 1824 and the problem was not experienced, but who would trust a simulator
try this for...
Re: PWPS Servo Problem
Not helped at all, I try timeouts from 200, 300 up to 600 still freezes.
louislouis Today, 09:25I go hunting a few 16F688 PICs in SMD package and stay with these chips in this application.