Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;===================; INCLUDES
- .nolist
- .include "m128adef.inc"
- .list
- .listmac
- ;===================; DATA segment
- .dseg
- ;===================; CODE segment
- .cseg
- .org 0x00
- jmp START
- .org 0x20
- jmp OVFL
- .org 0x40
- START:
- ldi r16, 0x00
- out TCNT0, r16
- ldi r16, 0b00000001 ; Prescaler = 1024bit
- out TCCR0, r16
- ldi r16, 0x01
- out TIMSK, r16
- sei
- rjmp END
- OVFL: ldi r16, 0xFF;===================; End of code
- ;===================; End of code, infinite loop
- END: rjmp END
- .exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement