projects
/
my-code
/
atmel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new schematic
[my-code/atmel.git]
/
led_plex
/
port.asm
diff --git
a/led_plex/port.asm
b/led_plex/port.asm
index
aeb40f1
..
715a402
100644
(file)
--- a/
led_plex/port.asm
+++ b/
led_plex/port.asm
@@
-1,14
+1,21
@@
; port functions
; port functions
-
GIO_
PORT_INIT:
+PORT_INIT:
- ; port b 0-
2
-> output
- ldi tmp1,0x0
6
+ ; port b 0-
3
-> output
+ ldi tmp1,0x0
f
out DDRB,tmp1
out DDRB,tmp1
- ; zero outputs
- ldi tmp1,0x00
- out PORTB,tmp1
+ ; g, rck, sck -> low / scl -> high
+ cbi PORTB,(1<<0)|(1<<1)|(1<<2)
+ sbi PORTB,(1<<3)
+
+ ; port d 6 -> output
+ ldi tmp1,(1<<6)
+ out DDRD,tmp1
+
+ ; ser -> low
+ cbi PORTD,(1<<6)
ret
ret