; gio port init
rcall PORT_INIT
- ; timer init
- ;rcall TIMER_INIT
+ ; timer0 init
+ rcall TIMER0_INIT
+
+ ; timer0 interrupt enable
+ rcall TIMER0_INT_INIT
; uart init
rcall UART_INIT
out SPL,tmp1
; global interrupt enable
- ;sei
+ sei
; signal ready output
ldi uart_rxtx,0x68
rcall UART_TX
- ; testing ... DO NOT CONNECT LEDS BY NOW !!!
+ ; led init
ldi hc595_sink,0xff
- ldi hc595_source,0xff
+ ldi hc595_source,0x01
rcall SET_HC595
- ldi uart_rxtx,0x61
- rcall UART_TX
MAIN:
reti
T0_OVF:
+
+ ; shift source
+ rol hc595_source
+
+ ; update sink
+
+ ; set hc595
+ rcall SET_HC595
+
reti
UART_RECEIVE: