Question are you reading porta.0 five times or porta.0,1,2,3,4,5
just a question on interpation of you code

MIke