MAIN:
' Fire up Timer1 before entry to serial input routine
T1CON.0 = 1
So the Timer1 is running and we've got 65.5ms to receive the data.
I guess a question here would be how fast does a PIC receive DATA? At the moment we're only receiving the SYNCH - DAT_IN1 - DAT_IN2 & CHK_SUM BYTES. If for example when the project is running and we send accumalative Bird Box Visit_Data (day1 + day2 etc.....n) then after a Month we'd have 30 Bytes or Words even, would that time_out? Because as the program stands:
After the Data has arrived.
Anyway moving on.
So the Data has arrived:
Code:
SERIN2 D_IN,N2400,[WAIT(Synch),DAT_IN1,DAT_IN2,CHK_SUM]
Then:
Code:
T1CON.0 = 0 TMR1L = 0 TMR1H = 0
So Timer1 is stopped - TMR1H&L BYTES cleared.
Before I carry on with **Begin Data Validaition**
What does the ! in: IF CheckSum ! mean please mackrackit.
Dave
Bookmarks