You're right, ingvar ...

as PBP can't do two things at a time ...it reads Portb.7 for 3 seconds and THEN Portb.6 for the 3 following seconds ...

No hope this way ...

Alain