raman00084
Full Member level 6
- Joined
- Nov 29, 2010
- Messages
- 375
- Helped
- 2
- Reputation
- 4
- Reaction score
- 2
- Trophy points
- 1,298
- Activity points
- 4,076
i am using i2c port expander ic pcf8574 it is an 8 bit ic. i will write all the pins to high now the data value = 255
if i make first bit low that is 11111101 the decimal value is 253 so data value = 253
if i make first bit and second bit low 11111100 so data value =252
i need help in converting my data value to individual bit value and it must be stored in 8 different variables
example data value = 252 binary value = 11111100
1- var1
1-var2
1-var3
1-var4
1-var5
1-var6
0-var7
0-var8
please help thank you
if i make first bit low that is 11111101 the decimal value is 253 so data value = 253
if i make first bit and second bit low 11111100 so data value =252
i need help in converting my data value to individual bit value and it must be stored in 8 different variables
example data value = 252 binary value = 11111100
1- var1
1-var2
1-var3
1-var4
1-var5
1-var6
0-var7
0-var8
please help thank you