I have been having trouble with the 18f4525 pic. I set up each port as output, and turned them alll high, but when i test it, no pins are held high.. I am wondering if it is a software issue, so I am posting it here to make sure my code is correct.
LIST P=18F4525, F=INHX32 #include <P18F4525.INC> Movlb 15 clrf PORTA clrf PORTB clrf PORTC clrf PORTD clrf PORTE clrf TRISA clrf TRISB clrf TRISC clrf TRISD clrf TRISE Unlock: movlw b'11111111' movwf PORTA movwf PORTB movwf PORTC movwf PORTD movwf PORTE goto Unlock end
It isnt much, but keep in mind i need to be able to hold an output high before i can make my actual program.
Thanks


Sign In
Create Account


Back to top









