You might consider using the Numerically Controlled Oscillator (NCO) to achieve this low frequency output.
I have recently been looking at the 16F1503 to achieve a stable 1Hz output.
This device...
Hi, Roger
May be you'd better ask to Charles here : https://support.melabs.com/forum/picbasic-pro-compiler-3-0-and-later/pbp3-picbasic-pro-3-0/page46
but don't rejoice too quickly...
Alain
Great !
just remember the processor does what you tell it ... and ONLY what you tell it ! ( thanks to God, PBP doesn't show too many bugs :wink: )
so, it's always you to set ALL the parameters,...
I'm starting a new series, with improved technique, and more detail on each step.
- First attempt at OBS STUDIO.
- 1 take, no edits.
I made only 2 minor mistakes that I could see.
...
Greetings all,
first of all, thank you so much for all your help.
I tried moving the port settings before the Tris statement like you recommended and it worked!
...
Hi, Tumbleweed
the funny thing is I had added the port setting lines right before the TRIS statements for a run With MPLAB 8.92 sim ...
...
The important part is to set the PORT (or LAT) registers BEFORE setting the TRIS registers to outputs.
Otherwise the pins will be in output mode for a period of time but the outputs aren't specified.
did you simply try to add :
INIT:
PORTA=%00000000
PORTB=%00000000
PORTC=%00000000
before you go to too much trouble try what henrik suggests
clear all output ports before setting the tris registers and lose that delay in between
Re: Low frequency Hardware PWM
Thanks Barry.
Ioannis Today, 00:08Never thought of that NCO.
Ioannis