单项选择题

假设单片机P0.0~P0.3引脚接有4个独立开关,P0.4~P0.7为空置未用,为使读到的P0口中高4位值为0,应采用如下 ( )。

A.P0 = P0 & 0x0f;
B.P0 = P0 & 0xf0;
C.P0 = P0 | 0x0f;
D.P0 = P0 | 0xf0;