Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;.device ATmega328P. Playing =with arduino timer 0
- .include m328pdef.inc
- .org 0x0000
- jmp a
- .org 0x0020
- ;jmp e
- a:
- clr r16
- out TCCR0A,r16
- ldi r16,$14
- out TCNT0,r16
- lds r16,TCCR0B
- andi r16,$fe
- ori r16,$02
- sts TCCR0B, r16
- ;out TCCR0B,r16;
- ;TCCR0B = (1<<CS01)|(1<<CS00) ;gives /64
- loophere:
- nop
- nop
- rjmp loophere
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement