[PIC] how to read a BIT value from a BYTE variable in xc8 compiler ?

Status
Not open for further replies.

anjalimidhuna

Member level 3
Joined
Jan 4, 2014
Messages
62
Helped
2
Reputation
4
Reaction score
2
Trophy points
8
Location
india
Visit site
Activity points
358
hi,
Is it possible to read a bit value of variable without using operaters like and,or,etc.
For example X0=Byte1.Bit0 like we addres a PORT0.7
 

hi,
This is Oshonsoft Basic, works correctly.
E

Code:
Dim num1 As Byte
Dim num2 As Word

Dim b As Bit

num1 = 0x0e
num2 = 0x000e

b = num1.0

b = num2.8
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…