Hello Unregistered ,
Hello, thank you for visiting the picbasic users forum. Just a little note to remind you that, if your have registeted for a user account and you have not logged in and posted a message, unused accounts are deleted from time to time.
We track user account usage. As part of our general maintenaince and to meet the GDPR requirments, we have elected to delete user accounts that are unused.
We define unused as:
NOT haveing ever posted a message on the forum
AND
NOT having logged in for more than 360 days.
If you find that your account is deleted, because of inactivity, you will need to contact the forum administrator to have the account re-instated. email: [email protected]
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...
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.
Re: I/O Pin status during startup
Greetings all,
PaulMaker Today, 09:21first 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!
...