IIC Module & Interrupt questions - MC9S08QG8

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IIC Module & Interrupt questions - MC9S08QG8

1,667 Views
Designer11
Contributor IV

Hello Guys,

I am new to using freescale IIC "I2C"  module therefore I have been reading many app notes to get a better understand of it.

Objective: To use a freescale HCS08 family chip like MC9S08QG8" as a master to communicate with an LCD display as a slave to control brightness, contrast, etc... 

Questions:

1.Can i use the IIC module alone without interrupt routines to achive my objective without any problems?


Thank You
Designer11

 

 

 

Added p/n to subject



Message Edited by NLFSJ on 2008-06-26 11:07 AM
Labels (1)
0 Kudos
3 Replies

259 Views
Designer11
Contributor IV
Guys, thanks a lot for the replies
0 Kudos

259 Views
bigmac
Specialist III
Hello,
 
Whether to use a polling method, or to use interrupts for IIC communications, will be determined mainly by what other tasks are required of the MCU.  IIC communications is relatively slow (100kHz clock rate), and providing you can wait for each IIC sequence to complete, polling is fine.  However, if you need to do other (non-interrupt) tasks whilst waiting, you may need to use interrupts for the IIC.
 
Regards,
Mac
 
0 Kudos

259 Views
JimDon
Senior Contributor III
Yes, you can.

If you are using CW, Processor Expert will create the code for you.

0 Kudos