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...
Greetings all,
thank you all for your inputs.
Here is the code:
'****************************************************************'* Name : Led Controller.PBP ...
Specialy when the GM65 user manual mention TTL logic level, yes the DC supply is 5V, for the USB / UART ports.
but it's not specify 3.3V Tx/Rx output line.
Learning everyday like everyone here.
No code error , no compiler deficiency. as suggested in post #9 its wired incorrectly
who would have known
Re: I/O Pin status during startup
The important part is to set the PORT (or LAT) registers BEFORE setting the TRIS registers to outputs.
tumbleweed Yesterday, 20:01Otherwise the pins will be in output mode for a period of time but the outputs aren't specified.