Marc: I am not sure how did you write your code it looks to me that you first used c then generated assembly code then you did some filtering then you post it to pic list. reason for this is c always generates extra junk code . I do not thing assembly user will write movwf 06. any way if you just need to turn all portb on simple test is this movlw 0xFF movwf portb or your way will be movlw 0xFF movwf 0x06 Andre Marc D. Spencer wrote: > What am I doing wrong? this should be the simplest start...turn all port b > pins on. > > Code: > > 0000 MOVLW 00 > MOVWF 0A > GOTO 005 > NOP > NOP > 0005 CLRF 04 > CLRF 03 > MOVLW 07 > MOVWF 1F > 0009 BSF 03,5 > CLRF 06 > MOVLW FF > BCF 03,5 > MOVWF 06 > GOTO 009 > > Using a 16C622, wired trivially: > > pin 4 1K to Vcc, .1uF to Gnd > pin 5 gnd > pin 14 to TTL clock module, 10MHz > pin 12 to +5 > > looking at pins 6-13...all have about .25 v on them, but won't sink an LED > (with 1K res). > > Help? > > (I don't have a scope, but im pretty sure the power is clean - 7805 with > appropriate filtering off a wall wart)