why we use xbr register for port 0 to port 4?????????????? in c8051f040
Why don't you tell us why you use that register?
By the way - I think you must have used lots of unsupported foreign characters that just ends up as a long line of ??? in your post.
You write "problem in xbr" - shouldn't you maybe tell us _what_ problem you might have?