1. Which command is used to verify bits 7 and 0 of Port A are both logic zeroes?
ID: 3646026 • Letter: 1
Question
1. Which command is used to verify bits 7 and 0 of Port A are both logic zeroes?if (PORTA = 0x7E)
if (PORTA & 0x81) = 0)
if (PORTA & 0x81) == 0)
if (PORTA & 0x7E) = 0)
2. If a logic circuit with IOH = 4.5 V is driving an LED with a 330 ? limiting resistor, what is the current rating for the LED if the forward voltage drop is 1.8 V?
8.18 mA
9.70 mA
59.4 mA
78.2 mA
3. The free-running counter is using an input clock of 8 MHz. If an event is captured at a reading of $72AC, what will the counter value equal if the next event occurs after 1 ms?
$1F40
$91EC
$A1B5
$F2AC
4. Which assembly code can be used to clear bit 4 in register A and leave the other 7 bits unchanged?
ANDA #$EF
ANDA #$F7
XORA #$F7
ORA #$F7
If A = $7B, what is the value of A after the instruction BITA #$6E? (Points : 6)
$6A
$7F
$1A
$7B
Explanation / Answer
1)if (PORTA & 0x81) == 0) 2)9.70 mA 3)$F2AC 4)ANDA #$EF 5)$7B
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.