HI,
thanks for your help.
i suspect st wrong,
i test the whole port b. it runs well (8 leds) - FOSC_INTIO67 (16x4mhz)
However, when attaching portb to the 74hc595 - then 1 of the port pin lost power.
just last week, the system run well @40mhz. (external osc).
now problem is data to send out is not right
i will spend 1 more time to check, and will send the program to you

regards