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.
Hi,
Anyone can tell me how I can know whether I need to use "using" attribute or not? Attribute "using" ranges 0-3, So which number I have to select? I read Cx51 user guide, it states that:
The using attribute may not be used in functions that return a value in registers. You must exercise extreme care to ensure that register bank switches are performed only in carefully controlled areas. Failure to do so may yield incorrect function results. Even when you use the same register bank, functions declared with the using attribute cannot return a bit value.
Unfortunately, I cannot get point.
Thanks, pak
RTOS ....why we need to use register bank rather than stack? Do all 8 registers stored in stack lost during interrupt?
a very dangerous combo. Trying to use a RTOS (why on earth would anyone want to do that an a '51) and no understanding whatsoever of the architecture of the chip. While such is SOP on the PC, it is the road to absolute total failure when using the '51.
Erik