X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=beginners%2Fseason_junior.asm;h=9171e7c57128f3289017444e242ce0789a0f557b;hb=96c049990876625353c38ab10fd8bf0e698b3973;hp=35d51d1f09b914b17b9b5bd1aa70594355f80047;hpb=b9abd3ff7f4bb2ce8e56d3fec911968990cace60;p=my-code%2Fatmel.git diff --git a/beginners/season_junior.asm b/beginners/season_junior.asm index 35d51d1..9171e7c 100644 --- a/beginners/season_junior.asm +++ b/beginners/season_junior.asm @@ -30,7 +30,7 @@ ; other smartcards: 625 .equ etu = 625 .equ etu_h = 312 -.equ baudrate = 5 ; UBRR value for 76800 bits/s (8mhz clock) +.equ baudrate = 8 ; UBRR value for 57600 bits/s (8mhz clock) ; sizes .equ uart_data_len = 4 @@ -68,6 +68,12 @@ .equ GODLIKE_F = 4 .equ INCREDIBLE_HACK = (1<<4) ; destroy all your hardware .equ INCREDIBLE_HACK_F = 5 +; leds +.equ LED_CARD = PB0 +.equ LED_CAM = PB1 +.equ LED_FWD_TO_CAM = PB2 +.equ LED_FWD_TO_CARD = PB3 +.equ LED_OVERFLOW = PB4 ; but there is only stupid and cool mode right now %) @@ -127,11 +133,11 @@ cbi PORTD,PD4 ldi tmp,low(RAMEND) out SPL,tmp -; enable interrupts int0,int1 +; enable interrupts int0,int1,sleep ldi tmp,((1<