projects
/
my-code
/
atmel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
arrrrgh!
[my-code/atmel.git]
/
beginners
/
s90_to_tiny.inc
diff --git
a/beginners/s90_to_tiny.inc
b/beginners/s90_to_tiny.inc
index
7900ada
..
f08715f
100644
(file)
--- a/
beginners/s90_to_tiny.inc
+++ b/
beginners/s90_to_tiny.inc
@@
-13,11
+13,13
@@
; uart
;#####
; uart
;#####
+.equ UBRRL =UBRR ; 09
+.equ UBRRH =$02
.equ UCSRA =USR ; 0b
.equ UCSRB =UCR ; 0a
.equ UCSRA =USR ; 0b
.equ UCSRB =UCR ; 0a
-; 8
bit timer counter register
-;#############################
+; 8
/16 bit timer counter registers
+;#############################
####
.equ TCCR0A =$30
;-------------------
.equ WGM00 =$00
.equ TCCR0A =$30
;-------------------
.equ WGM00 =$00
@@
-42,7
+44,9
@@
.equ OCR0B =$3c
;-------------------
.equ OCR0B =$3c
;-------------------
-
-
-
+; TIMSK
+;------
+.equ OCIE0A =$00
+.equ OCIE0B =$02
+.equ OCIE1B =$05