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
Hi Richard, thanks for the help.
Regarding the drawing...will try to get it and post here.
In the meantime here are the answers:
The LEDs are connected to ground
So, looking at your code....effectively it boils down to
TRISA = %00000000 ' This enables 23 of 24 output drivers, pins goes to whatever state PORT/LAT says
TRISB = %00100000
TRISC =...
are the leds connected to gnd or vdd ?
are the leds powered by the same supply?
what size is the led series resistor ?
and what does actually happen compared what you expect to happen
note...
Re: I/O Pin status during startup
Great !
Acetronics2 Today, 09:11just 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,...