what is the difference between sbit and bit

Discussion in 'Embedded Systems and Microcontrollers' started by kof97, May 9, 2010.

  1. kof97

    Thread Starter New Member

    May 8, 2010
    9
    0
    what is the difference between sbit and bit data type.and where we use sbit and bit?
    and sumetimes we use bit instead of sbit why?
     
    Last edited: May 9, 2010
  2. kof97

    Thread Starter New Member

    May 8, 2010
    9
    0
    plz reply my question.


    Thanx.
     
  3. bertus

    Administrator

    Apr 5, 2008
    15,648
    2,347
    Hello,

    With the info you provided we can not give you an answer.
    What language is used?
    What processor is used?
    What context is it used?

    Bertus
     
  4. kof97

    Thread Starter New Member

    May 8, 2010
    9
    0
    c language for 8051.i am using.
     
  5. bertus

    Administrator

    Apr 5, 2008
    15,648
    2,347
    Hello,

    Wich compiler are you using for the C language?

    Bertus
     
  6. AlexR

    Well-Known Member

    Jan 16, 2008
    735
    54
    I'd never heard of sbit refore but a quick google search indicates that it's a data type used by the Keil compiler for bits in special function registers.
    Since I neither know nor really want to know anything about the Keil compiler I suggest you read your manual for details on how and why it is used.
     
Loading...