The scuppers should be plugged____ .
A.only if fixed containment is not used
B.only if portable containment is not used
C.only if fixed containment drains are open
D.whenever the vessel is being bunkered
第1题:
单片机PA2控制共阳极LED时,初始化方法是什么()
A.PORTA|=(1<<PA2);DDRA|=(1<<PA2);
B.DDRA|=(1<<PA2);PORTA|=(1<<PA2);
C.PORTA&=~(1<<PA2);DDRA|=(1<<PA2);
D.PORTA|=(1<<PA2);DDRA&=~(1<<PA2);
第2题:
8、单片机PA2控制共阳极LED时,初始化方法是什么()
A.PORTA|=(1<<PA2);DDRA|=(1<<PA2);
B.DDRA|=(1<<PA2);PORTA|=(1<<PA2);
C.PORTA&=~(1<<PA2);DDRA|=(1<<PA2);
D.PORTA|=(1<<PA2);DDRA&=~(1<<PA2);
第3题:
6、假如单片机的PA1管脚外接一个按键,不需要外部上拉电阻,则其寄存器的配置方法可以使用()进行配置。
A.PORTA|=(1<<PA1); DDRA&=~(1<<PA1);
B.DDRA&=~(1<<PA1); PORTA|=(1<<PA1);
C.DDRA|=(1<<PA1); PORTA|=(1<<PA1);
D.PORTA&=~(1<<PA1); DDRA|=(1<<PA1);
第4题:
把PA0管脚方向设置为输入,内部电阻上拉使能的具体方法为()
A.PORTA|=(1<<PA0);DDRA&=~(1<<PA0);
B.PORTA&=~(1<<PA0);DDRA&=~(1<<PA0);
C.PORTA|=(1<<PA0);DDRA|=~(1<<PA0);
D.PORTA|=(1<<PA0);DDRA|=(1<<PA0);
第5题:
ATMEGA16的IO口中,端口A引脚0~3输出高电平、引脚4~7输出低电平,则相应的寄存器设置指令为:()
A.DDRA=0xFF; PORTA=0x0F;
B.DDRA=0x00; PORTA=0x0F;
C.DDRA=0xFF; PORTA=0xF0;
D.DDRA=0x0F; PORTA=0x0F;
第6题:
假如单片机的PA1管脚外接一个按键,不需要外部上拉电阻,则其寄存器的配置方法可以使用()进行配置。
A.PORTA|=(1<<PA1); DDRA&=~(1<<PA1);
B.DDRA&=~(1<<PA1); PORTA|=(1<<PA1);
C.DDRA|=(1<<PA1); PORTA|=(1<<PA1);
D.PORTA&=~(1<<PA1); DDRA|=(1<<PA1);