Im not very good at pics yet, but im learning
This is what I have. I just want the PIC to light up. I have the LED connected to PORTB.0
I have tried a lot of different examples, but none works.
__________________________________________________ _
TRISB = %11111111
TRISC = %00000000
ANSEL = %00000000 ' Make AN0-AN7 digital
ANSELH= %00000000 ' Make AN8-AN13 digital
PORTB = 1
main:
portb=1
pause 100
goto main
__________________________________________________ ___
This works in GCB, but I think that compiler does a lot in the background for me.
Bookmarks