This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Help On A51 EXTRN Directive

I create a C51 project and write just one A51 subroutine(for speed).I define some SFR in the header file just like
sbit FLASH_CS = P1^1;
sbit A19 = P3^5;
sbit A18 = P3^4;
sbit A17 = P3^3;
sbit A16 = P3^2;
How can I declare them in the A51 subroutine?It seems that the EXTRN directive can't help me!

Parents
  • I seem to remember that when you do this in C51, you have to use 'sbit' in the definition, but just 'bit' in the extern declaration.

    Check in the C51 Manual.

    Maybe A51 is similar?

    Check in the A51 Manual.

    Doesn't A51 just take C51 header files?

    Check in the A51 Manual.

Reply
  • I seem to remember that when you do this in C51, you have to use 'sbit' in the definition, but just 'bit' in the extern declaration.

    Check in the C51 Manual.

    Maybe A51 is similar?

    Check in the A51 Manual.

    Doesn't A51 just take C51 header files?

    Check in the A51 Manual.

Children