Dear Sir, I have a problem about the union and bitfiled. I always
suffer a strange problem in my system.
After I check the M51 file, I start to doubt that it is the bitfield
and union problem in compile stage.
please see my code as below, I declare the union and macros in header
file.
Question:
Please see the line 1198, I call the macro Drv_ClearRxEnd(). At
C:0x1AE3, it calls the C:269D.
At C:0x269E ANL A,#IRCON2(0xBF)
I don't know why to use the SFR register(IRCON2) to clear it.
↧