Page 1 of 1

SOFTWARE UART - ASM ERRORS

Posted: Mon Feb 01, 2021 9:37 pm
by LEEDNH
I have been running code using the software uart which has worked flawlessly for the past couple of years.
I recompiled and got errors at the asm level. I would very much appreciate any help. Perhaps I could try a copy of SUART V1.4???

After updating to SF VERSION 2.2.3.6 - ICC 1.2.0.7 , the same program
APPEARS TO COMPILE OKAY BUT THE ASM PHASE PUTS UP THE RED FLAG.
GENERATES 3 ERRORS ALL (ASM ERROR):ERROR[113] C:\FILE PATH\name.asm 1067:
Symbol not previously defined (Z) (C) (C)

Device = 18F44k22 'using Vdd = 5.0 v
Clock = 64

' Software UART SET-UP ports tx/rx
SetBaudrate(sbr19200) ' software uart serial data rate is 19200 baud
SetTX(PORTC.4) ' software uart tx port PIN 23
SetRX(PORTC.5) ' software uart rx port PIN 24
SetMode(umInverted) ' software uart serial data is Inverted OR (umTrue)

' ******** READ THE SOFTWARE UART START inverted 19200 8N1 **********
code> For index = 0 To 115
UART.Read(db)
If index = 16 Then
fix1=db
ElseIf index = 17 Then
fix2=db
ElseIf index > 52 And index < 86 Then
v(index-53) = db
ElseIf index > 109 And index < 114 Then
v(index-106) = db 'v(4) - v(7)
EndIf
Next