마프 예제 정답

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

pattern = (PORTB<<2 | PORTB >>6) / pattern = 0, 2, 4, 6 로 변화하므로 pattern =

(pattern+2)%8

pattern = (PORTB<<6 | PORTB >> 2) / pattern = 6, 4, 2, 0 로 변화 따라서 pateern =


(pattern + 6) % 8

DDRB = 0xFF
PORTB = 0x01
DDRD = 0x00
DDRE = 0x00

EIMSK = 0x11
EICRA = 0x03
EICRB = 0x03

You might also like