futz
Active Member
This is so strange... I'm trying to get an LCD working on my dsPIC30F4013. Here's a code snip
If I single step thru that in the Simulator and watch the results in the Watch window I get
What happened to TRISA? Why didn't it change?
And when I do
in the Watch window I get
I've tried with LATA/LATB too. Seems like I can't change Ports A or B at all.
Code:
int main(void)
{
TRISA=3;
TRISB=5;
TRISD=7;
Code:
TRISA 0x0000
TRISB 0x0005
TRISD 0x0007
And when I do
Code:
PORTA=3;
PORTB=5;
PORTD=7;
Code:
PORTA 0x0000
PORTB 0x0000
PORTD 0x0007
Last edited: