provided it is wired correctly and the chip is pcf8574 the original code works just fine
although technically
TRISD=%00000000 'set PORTD as output all
should be
TRISD=%00001100 'set PORTD

Name:  k80.jpg
Views: 6526
Size:  224.7 KB