IIC Module & Interrupt questions - MC9S08QG8

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

IIC Module & Interrupt questions - MC9S08QG8

2,220件の閲覧回数
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
ラベル(1)
0 件の賞賛
返信
3 返答(返信)

812件の閲覧回数
Designer11
Contributor IV
Guys, thanks a lot for the replies
0 件の賞賛
返信

812件の閲覧回数
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 件の賞賛
返信

812件の閲覧回数
JimDon
Senior Contributor III
Yes, you can.

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

0 件の賞賛
返信