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 support@ccsinfo.com

I2C FORCE_HW

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
gjs_rsdi



Joined: 06 Feb 2006
Posts: 468
Location: Bali

View user's profile Send private message Send e-mail

I2C FORCE_HW
PostPosted: Fri Jan 31, 2020 4:38 am     Reply with quote

Hi

I initialize I2C as below:
Code:
#use I2C(MASTER, Slow=50000, I2C1, FORCE_HW, STREAM=I2CPORT)

&
Code:
#use I2C(MASTER, Slow=50000, I2C1, STREAM=I2CPORT)

I checked both LST files and they are identical except the two lines above

My question is:
Need to specify FORCE_HW or not if I am using the port name?

Best wishes
Joe
Ttelmah



Joined: 11 Mar 2010
Posts: 19236

View user's profile Send private message

PostPosted: Fri Jan 31, 2020 4:51 am     Reply with quote

No.

Using the physical port name on all of the peripherals (SPI, UART, I2C),
is equivalent to specifying the hardware pins, _and_ specifying 'FORCE_HW'.
gjs_rsdi



Joined: 06 Feb 2006
Posts: 468
Location: Bali

View user's profile Send private message Send e-mail

PostPosted: Fri Jan 31, 2020 5:43 am     Reply with quote

Thank you Ttelmah, helpful like always Smile

Best wishes
Joe
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group