✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
[AVR-IO CPMK-18]
Program bekerja sebagai berikut:
Jika tombol
Jika semua pin PORTA diset sebagai input dan semua pin PORTB sebagai output, maka lengkapi ruang kosong program berikut:
.include "m8515def.inc".def temp=r16.def led_on=r17ldi temp, 0x ;2 digitout DDRA, temp ldi temp, 0x;2 digitout DDRB, temp CEK_INPUT: in temp, cpi temp, 0x;2 digit MERAH cpi temp, 0x;2 digit HIJAU cpi temp, 0x;2 digit KUNING cpi temp, 0x;2 digit BIRU rjmp | MERAH: ldi led_on,0x;2 digit rjmp LEDHIJAU: ldi led_on,0x;2 digit rjmp LEDKUNING: ldi led_on,0x;2 digit rjmp LEDBIRU: ldi led_on,0x;2 digit rjmp LEDLED: out PORTB, rjmp |
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!