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.
I have in assembler code define one bit variable:
BSEG AT 21h BUS_GRESKA: DBIT 1
how I can access this bit in C code ? I try with
extern bit BUS_GRESKA
and then
BUS_GRESKA=1;
or
BUS_GRESKA=0;
but not work?Why?
Thank you
"but not work?"
In what way does it "not work"?
Have you read http://www.keil.com/support/man/docs/c51/c51_ap_ctoasm.htm ?
Have you got your naming conventions right?
Does the assembler make the symbol PUBLIC?
It might be easier to start with the definition in 'C', and work back to assembler from there usint the SRC directive...
http://www.keil.com/support/man/docs/c51/c51_src.htm