Re: PIC puzzle
- From: "Mike Wahler" <mkwahler@xxxxxxxxxxxx>
- Date: Thu, 27 Dec 2007 12:14:48 -0800
"randy.day" <randy.day@xxxxxxxx> wrote in message
news:Hkzcj.14667$vd4.6960@xxxxxxxxxxxx
Okay, new PIC issue causing premature forcible hair removal. The code
below
is supposed to put 1's on the PORTB pins (PIC16F690). It's not happening;
what am I missing?
BANKSEL 0x01
clrf TRISB ; PORTB all output
clrf TRISC ; PORTC all output
BANKSEL 0x00
bcf SSPCON, 5
movlw 0xFF
movwf PORTB
goto $
banksel TRISB
clrf TRISB
movlw 0xFF
banksel PORTB
movwf PORTB
See your Microchip documentation for how to use
'banksel' properly.
-Mike
.
- References:
- PIC puzzle
- From: randy.day
- PIC puzzle
- Prev by Date: 12v dc to 220v ac inverter for 20w flouracent load
- Next by Date: Re: Electronic components in the UK
- Previous by thread: Re: PIC puzzle
- Next by thread: unusuall transformer for common mode isolation
- Index(es):
Relevant Pages
|
|