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

PIC 18F4431

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



Joined: 19 Jul 2007
Posts: 6
Location: New -Brunswick

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

PIC 18F4431
PostPosted: Tue Jul 24, 2007 7:09 am     Reply with quote

Do I need to initialize the I2C command in my program? Before I do i2c_start(); I know I must initiallize LCD when using LCD. If not using the LCD, it should display on hyperterminal using RS232.

thanks
Ryan
Ttelmah
Guest







PostPosted: Tue Jul 24, 2007 8:42 am     Reply with quote

Not really.
The LCD, is handled by a separate program, and the initialisation then needs to be called in this. However the RS232, I2C, SPI etc., are handled 'internally' by the compiler, and any port initialisation is automatically done, if the #use line is present.
In general, unlike the LCD, where a command sequence has to be sent to initialise the display, the RS232, I2C etc., only need the I/O port bits setup to the right direction etc., and these are done automatically.
However the attached _device_, may need it's on initialisation, in which case, the 'right' I2C command sequence will need to be sent to perform this

Best Wishes
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