summaryrefslogtreecommitdiff
path: root/software/ttx/ttx.asm
diff options
context:
space:
mode:
Diffstat (limited to 'software/ttx/ttx.asm')
-rw-r--r--software/ttx/ttx.asm14
1 files changed, 7 insertions, 7 deletions
diff --git a/software/ttx/ttx.asm b/software/ttx/ttx.asm
index 6305c71..19e7140 100644
--- a/software/ttx/ttx.asm
+++ b/software/ttx/ttx.asm
@@ -42,7 +42,7 @@ DOT_DEF EQU .256 - .21 ; .29
DASH_DEF EQU .256 - .63 ; .87
WSPACE_DEF EQU .256 - .147 ; .203
TUNE_DEF EQU DOT_DEF
-BCONINT_DEF EQU .42
+BCONINT_DEF EQU .10
START_CHAR EQU 'N'
ACK_CHAR EQU 'A'
OSC_LOW EQU b'00000000'
@@ -395,10 +395,10 @@ init
movwf BEACON_INT
movlw DOT_DEF ; TODO: read cw timings from EEPROM
- movwf DOT
- movlw DASH_DEF
- movwf DASH
- movlw WSPACE_DEF
+ movwf DOT ; - DOT: length of .
+ movlw DASH_DEF ; - DASH: length of -
+ movwf DASH ; - WSPACE: length word space
+ movlw WSPACE_DEF ; - TUNE: tune in time of oscillator
movwf WSPACE
movlw TUNE_DEF
movwf TUNE
@@ -785,11 +785,11 @@ main
seccnt_zero
movf BEACON_INT,w
movwf SECCNT
- btfsc NVSTATE,safe
+ btfss NVSTATE,safe
call send_beacon
goto powerdown
- ;; this gets called whenver a message was received from ihu
+ ;; this gets called whenever a message was received from ihu
msg_received
call send_ack
clrf RX_STATE