Other Parts Discussed in Thread: HALCOGEN
Tool/software:
Hello,
The 'canGetData' function created by HALCOGEN sets IF2 to clear the NewDat bit in the message object before the data is read. I believe the hardware loads IF2 with the data in the message object before the NewDat bit is cleared; otherwise, if a new message arrives, the message would be lost or mixed up with a new message. Is that correct?
Another question: Can my program read the message object directly? I mean, can it test the NewDat bit, read the data, and clear the NewDat bit afterward? When should the program use IF1/IF2?"
Best regards,
Marcio