projects
/
my-code
/
atmel.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
715a40280ae80e435a594a24402685748a5ea3fb
[my-code/atmel.git]
/
led_plex
/
port.asm
1
; port functions
2
3
PORT_INIT:
4
5
; port b 0-3 -> output
6
ldi tmp1,0x0f
7
out DDRB,tmp1
8
9
; g, rck, sck -> low / scl -> high
10
cbi PORTB,(1<<0)|(1<<1)|(1<<2)
11
sbi PORTB,(1<<3)
12
13
; port d 6 -> output
14
ldi tmp1,(1<<6)
15
out DDRD,tmp1
16
17
; ser -> low
18
cbi PORTD,(1<<6)
19
20
ret
21