So I'm writing my program I think I'm ready to compile and load it to test out the core functionality and it works beautifully (thanks primarily to the search feature of the forums and all of the great info you guys put up here) - so I add more functionality to it and compile and load it and it doesn't work
Specifically when I send it data over the serial port it hangs (but it didn't before)
I don't get any compiler errors but I get like 50 of the warnings listed in the subject line
EasyPIC5, MB7, PIC16F886 - 646 lines of MB code
0:0 W-101 Used ROM: 7472 (91%) Used RAM: 334 (90%)
0:0 W-102 Free ROM: 719 (9%) Free RAM: 34 (10%)
Any thoughts ???
variable definitions follow per request from yo2lio
The rest of the code really long - I'm gonna do some debug work and see if I can figure out where the problem is - I'll post that when I get there.
Code: Select all
include "BootForAll16"
'********************************************************
'* Declarations (globals):
'********************************************************
'* Symbols Declarations:
'********************************************************
symbol CheckSW0 = TestBit(PORTB, 0)
symbol CheckSW1 = TestBit(PORTB, 1)
symbol CheckSW2 = TestBit(PORTB, 2)
symbol CheckPin4 = TestBit(PORTB, 3)
symbol CheckPin7 = TestBit(PORTB, 4)
symbol CheckIR = TestBit(PORTE, 3)
symbol S0Set = SetBit(PORTA, 7)
symbol S0Clear = ClearBit(PORTA, 7)
symbol S1Set = SetBit(PORTA, 6)
symbol S1Clear = ClearBit(PORTA, 6)
'********************************************************
'* Constant Declarations:
'********************************************************
const Ecount as byte = $00
const Ereset as byte = $10
const Esolon as byte = $20
const Eredon as byte = $30
const Etrpro as byte = $40
const Eskipl as byte = $50
const Eskips as byte = $60
const St_Off as byte = 0
const St_Stage as byte = 1
const St_Y1 as byte = 2
const St_GetReady as byte = 3
const St_Y2 as byte = 4
const St_OnYourMark as byte = 5
const St_Y3 as byte = 8
const St_S_GetSet as byte = 9
const St_P_GetSet as byte = 15
const St_Green as byte = 16
const St_GO as byte = 16
const St_Done as byte = 17
const St_Winner as byte = 18
const St_RunnerUp as byte = 20
const St_Red as byte = 32
const St_FalseStart as byte = 33
const St_TimeOut as byte = 48
const St_AllOn as byte = 63
'********************************************************
'* Variables Declarations:
'********************************************************
dim Tcount as word
dim Treset as word
dim Tsolon as word
dim Tredon as word
dim Ttrpro as boolean
dim Tskipl as boolean
dim Tskips as boolean
dim RcvParam as string[20]
dim BlnStart as boolean
dim LeftLaneActive as boolean
dim RightLaneActive as boolean
dim StateLeft as byte
dim StateRight as byte
dim TimeLeft as word
dim TimeRight as word
dim TimeElapsed as word
dim TimeTmpLeftF as float
dim TimeTmpRightF as float
dim StateTmpLeft as string[20]
dim StateTmpRight as string[20]