Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .device ATtiny2313A
- .nolist
- .include โtn2313adef.incโ
- .list
- ; =====
- .def temp = r16
- ; =====
- rjmp Init
- ; =====
- Init:
- ser temp
- out DDRB, temp
- ldi temp, 0b11111110
- out DDRD, temp
- clr temp
- out PortB, temp
- ldi temp, 0b00000001
- out PortD, temp
- ; =====
- Start:
- in temp, PinD
- out PortB, temp
- rjmp Start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement