2. (TCO 8) In HCS12, PORTB is __________ bit(s). (Points : 3) A)16 b)eight C)one
ID: 2989956 • Letter: 2
Question
2. (TCO 8) In HCS12, PORTB is __________ bit(s). (Points : 3)
A)16
b)eight
C)one
D)12
3. (TCO 8) Which of the following will always make both bits, PB0 and PB7, LOW? (Points : 3)
A)BCLR PORTB,%00000001
B)BSET PORTB,%10000001
C)BCLR PORTB,%01111110
D)BCLR PORTB,%1000000
5. (TCO 8) In the following program, fill in the missing instruction to toggle all of the bits in the PORTA.
LDAA
#$FF
STAA
DDRA
OVER
--------
--------
STAA
PORTA
LDAA
#0
STAA
PORTA
BRA
OVER
(Points : 3)
A)LDAA #$FF
B)LDAA #$00
C)LDAA #$AA
D)LDAA #$55
Explanation / Answer
1)
b) eight
2)
C)BCLR PORTB,%01111110
3)
LDAA #$00
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.