Threewheeler7, Did you get your 877a dilema figured out? Just curious. Regards, Jim ----- Original Message ----- From: "threewheeler7" To: Sent: Saturday, January 05, 2008 11:29 AM Subject: [PIC] f877 portd half of port not working? > > im sure im overlooking something simple, but i just started working with a > 16f877a chip i had laying around for a wile. iv used these chips before > but > not portd so i just wrote a very simple prog to chase 8 leds on port d > however, it only worked from bits 0 to 3, took up the time on bits 4 to 7 > and CARRY, and went back to bit 0. > i kinda want to move on to my real projects lol. > > *wow i feel stupid when i sent this i forgot to attach the code. > > here it is: > LIST p=16F877a > include "P16F877a.inc" > ERRORLEVEL 0, -302 ;bank selection messages > __config 0x3F39 > > > cblock 0x20 > count1 > counta > countb > endc > > org 0x00 > bsf STATUS, RP0 ;bank 1 > movlw 0x00 > movwf TRISD > bcf STATUS, RP0 ;bank 0 > > Start > clrf PORTD > call Delay > bsf PORTD,0 > call Delay > rlf PORTD,1 > call Delay > goto $-3 > Delay > movlw 0xff > d0 movwf count1 > d1 movlw 0xC7 > movwf counta > movlw 0x01 > movwf countb > Delay_0 > decfsz counta, f > goto $+2 > decfsz countb, f > goto Delay_0 > > decfsz count1 ,f > goto d1 > retlw 0x00 > end > -- > View this message in context: > http://www.nabble.com/f877-portd-half-of-port-not-working--tp14628946p14628946.html > Sent from the PIC - [PIC] mailing list archive at Nabble.com. > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist