projects
/
my-code
/
atmel.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
basically finished monolyzer project
[my-code/atmel.git]
/
monolyzer
/
port.asm
1
; port functions
2
3
PORT_INIT:
4
5
; port b 0-7 -> input (useless, default)
6
ldi tmp1,0x00
7
out DDRB,tmp1
8
9
; switch pull-up off for inputs (useless, default)
10
ldi tmp1,0x00
11
out PORTB,tmp1
12
13
; port d pin 6 -> output
14
sbi DDRD,6
15
16
; port d pin 6 -> high
17
cbi PORTD,6
18
19
; port d 2 -> output (debug 1)
20
sbi DDRD,2
21
22
; port d 3 -> output (debug 2)
23
sbi DDRD,3
24
25
ret
26