use i2c on MC9S08QE8

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

use i2c on MC9S08QE8

2,341 次查看
Tramp
Contributor I
Hello all
I use controller MC9S08QE8 as a slave for transmission to i2c, configure:
IICC2_GCAEN=0;
IICC2_ADEXT=0;
IICA=0xA0;
IICC1_IICEN=1;
IICC1_IICIE=1;
IICS_IAAS=1;
but when I send the master address A0 or A1 my controller did not recognize it. Please tell me what could be the reason for this?

Thank you!
标签 (1)
0 项奖励
回复
2 回复数

985 次查看
fabio
Contributor IV

Hello Tramp,

I used the I2C slave example from my book HCS08 Unleashed with a QE8 and it worked ok (the example in the book was written for a QG8, but it is very simple to re-write it to the QE8).

You can download the examples at: www.sctec.com.br/hcs08 (check example 13.6).

Best,

0 项奖励
回复

985 次查看
Tramp
Contributor I
Hi fabio, thank you
0 项奖励
回复