R
Randy Day
- Jan 1, 1970
- 0
I have a question for the PIC programmers among you.
I'm programming a PIC18F2455, and I tried the code
segment below to exercise the PIC and test the
outputs with an LED.
Pin RB5 on the chip does not go high. Before I label
the chip as bad, is there any other register
relating to RB5 that might need to be set/cleared?
I notice in the docs that RB5 is part of an
interrupt-on-change scheme, but AFAICT that should
be off by default.
Have I missed something, or is it just a blown micro?
org 0
;=============================
; Set up I/O ports
;=============================
MOVLW 0x00 ; Make Ports digital out
MOVWF TRISA
MOVLW 0x00
MOVWF TRISB
CLRF TRISC
CLRF PORTA
CLRF PORTB
CLRF PORTC
CLRF PORTE
; CALL FIFTEENMS
SETF PORTA
SETF PORTB
SETF PORTC
GOTO $
I'm programming a PIC18F2455, and I tried the code
segment below to exercise the PIC and test the
outputs with an LED.
Pin RB5 on the chip does not go high. Before I label
the chip as bad, is there any other register
relating to RB5 that might need to be set/cleared?
I notice in the docs that RB5 is part of an
interrupt-on-change scheme, but AFAICT that should
be off by default.
Have I missed something, or is it just a blown micro?
org 0
;=============================
; Set up I/O ports
;=============================
MOVLW 0x00 ; Make Ports digital out
MOVWF TRISA
MOVLW 0x00
MOVWF TRISB
CLRF TRISC
CLRF PORTA
CLRF PORTB
CLRF PORTC
CLRF PORTE
; CALL FIFTEENMS
SETF PORTA
SETF PORTB
SETF PORTC
GOTO $