Another sleepless night.
Nothing to do Mister-E. Still the same behaviour even with your suggestions.
Some hint more:
In the segment of code where I'm talking about "Do something" and "Do something else", really I'm using the instructions I2CRead and I2CWrite.
Seems that if I call the sequence:
HSERIN
HSEROUT
I2CREAD
then the HSERIN does not work anymore
Again,
If I remove the checking of the PIR1.5 bit, EVERYTHING IS WORKING !!!!!!
As per the above code that DOES NOT WORK:
ReadPort1:
....
IF PIR1.5 = 1 Then
HSERIN 200, NoData1, [syncByte]
.....
.....
EndIF
If I remove the line IF PIR1.5 = 1 (and his EndIF, of course) even using:
HSERIN 10,NoData1,[syncByte] 'ALL IS WORKING FINE, but I miss 10ms each time !!!
How this is possible?
Again:
I'm using Tibbo EM200 that suppose to talk with the serial port 1. His outputs are at CMOS level (HIGH when idle) and I'm using HSERIN. I should consider something in this case?
Again:
I've tried SERIN2. Much worste.
I used:
SERIN2 PortC.7, 16390, 200, NoData1, [syncByte] 'Inverted mode 38400
and even
SERIN2 PortC.7, 6, 200, NoData1, [syncByte] 'True mode 38400
In both cases, the program pass the checking about PIR1.5 but then is supposed to go to NoData1 in case of no data in 200ms. Well, I don't know where it go, since the LED_48VFault is supposed to be switched off when the program go to NoData1. Instead it still remain switched ON... and the remaining part of the program is still working!!!
Any idea?
Should I hire an exorcist?
Thank you.
Bookmarks