IIC Module & Interrupt questions - MC9S08QG8

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

IIC Module & Interrupt questions - MC9S08QG8

2,219 次查看
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 回复数

811 次查看
Designer11
Contributor IV
Guys, thanks a lot for the replies
0 项奖励
回复

811 次查看
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 项奖励
回复

811 次查看
JimDon
Senior Contributor III
Yes, you can.

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

0 项奖励
回复