My 2 cents!
Welcome.
I lean on this forum myself quite often. I've found if you're willing to do your own legwork that the people here are more than willing to point you in the right direction.
As far as your program goes the one thing that jumped out at me was the way you are setting up the TRIS registers. Here is how I set them up for a program I'm working on now.
Code:
PORTA = %00000000 'Set all outputs to 0 (off)
TRISA = %00000000 'Set PORTA RA0-RA5 to outputs
PORTB = %00000000 'Set all outputs to 0 (off)
TRISB = %01000011 'Set PORTB to all output except RB0/INT , RB1/data in, RB6 on/off switch
PORTC = %00000000 'Set all outputs to 0 (off)
TRISC = %00000000 'Set PORTC to all output
Hope this helps some...
"It will never happen here!" just happened here.
My thoughts and prayers for Sandy Hook victims and families.
Bookmarks