sbit is a type of datatype similar to char, integer etc. It is used when we want to use a single bit. In the statement you have given above, it means you have created a bit type variable with name “rd” and whose value will be equal to 5th pin as referenced by the variable port. If port =P0 it means 5th pin of P0.
You are here: / Replies / sbit is a type of datatype