We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
How can define a union or a struct,and the member is a sfr register?such as pre union or struct { unsigned long dwData; unsigned char bData[4]; } /pre How can let the bData[4] used the sfr var? Thanks in advanced./
How can define a union or a struct,and the member is a sfr register You can't. The specification for the C language prohibits this. All the elements in a structure must reside in sequence in memory. You can't have a structure (or a union) with elements in different memory spaces. Jon