Advertisement
prjbrook

Untitled

Jul 21st, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. ;.device ATmega328P. Playing =with arduino timer 0
  2. .include m328pdef.inc
  3. .org 0x0000
  4. jmp a
  5. .org 0x0020
  6. ;jmp e
  7. a:
  8. clr r16
  9. out TCCR0A,r16
  10. ldi r16,$14
  11. out TCNT0,r16
  12. lds r16,TCCR0B
  13. andi r16,$fe
  14. ori r16,$02
  15. sts TCCR0B, r16
  16. ;out TCCR0B,r16;
  17. ;TCCR0B = (1<<CS01)|(1<<CS00) ;gives /64
  18. loophere:
  19. nop
  20. nop
  21. rjmp loophere
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement