What config bits needed to set up ?
This is my test program , please correct if it is not correct:
\code
TRISA = %11111111 ' Set PORTA to all input
TRISB = %00000000 ' Set PORTB to all output
TRISC = %00000000 ' Set PORTC to all input
TRISD = %00000000 ' Set PORTD to all output
TRISE = %00000000 ' Set PORTE to all output
ANSEL0= %00000000 ' Analog channel AN0-AN7 off
ANSEL1= %00000000 ' Analog channel AN8 off
clear
main:
high portb.1
pause 1000
low portb.1
pause 1000
goto main
\code
the oscillator setting during programming with picflash is:
oscillator : int ra6 & ra7 as i/o
other setting left unchanged
thanks




Bookmarks