CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 2 matches
CCS Forum Index
Author Message
  Topic: I2C_write (data_l | 0x08); //enable=0 and rs =0
czar

Replies: 2
Views: 9884

PostForum: General CCS C Discussion   Posted: Sun Jan 05, 2020 9:32 pm   Subject: I2C_write (data_l | 0x08); //enable=0 and rs =0
| is 'or'.
It's being used here to set bit 3 in the number fed to the write function. Why,
would be a matter of looking at the data sheet for the device involved.

Thanks Ttelmah!
  Topic: I2C_write (data_l | 0x08); //enable=0 and rs =0
czar

Replies: 2
Views: 9884

PostForum: General CCS C Discussion   Posted: Sun Jan 05, 2020 1:44 am   Subject: I2C_write (data_l | 0x08); //enable=0 and rs =0
I'm working with I2C LCD but don't understand this line, why the | in the parameters of the function I2C_write?
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group