I2C for comunicate a MC9S08QE32CLD with a MCP23017

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

I2C for comunicate a MC9S08QE32CLD with a MCP23017

Jump to solution
668 Views
karguar
Contributor II

I'm new in the Freescale Universe, and I have a practice with a MC9S08QE32CLD for comunicate with a MCP23017, I have a problem with the set up for the I2C communication process.

 

thanks for the collaboration

 

karguar

Labels (1)
1 Solution
462 Views
Teckna
Contributor V

Hi karguar,

i don't know MC9S08QE32 cpu but i have read only its RM. Have you read RM??:smileywink:

The clock used by I2C is ICSOUT as shown in screenshot:

Immagine.png

In the clock block diagram you see that ICSOUT can be referred to the external clock source setting CLKS and BDIV.

Immagine.png

To configure external clock for I2c you must have:

ICSC1 = 0b10000000;

ICSC2 = 0b00101010;


I hope it helps.


Regards!

View solution in original post

5 Replies
462 Views
Teckna
Contributor V

Hi karguar,

MQX is not supported by HCS08 family sorry!

You can see in MC9S08QE32 reference manual at chapter 12 (IIC).

What is exactly your problem?

Regards!

0 Kudos
462 Views
karguar
Contributor II

I want to  work with a external clock 10 MHz, I think that it's the issue, because i don't know how configure the external clock.

thanks

0 Kudos
463 Views
Teckna
Contributor V

Hi karguar,

i don't know MC9S08QE32 cpu but i have read only its RM. Have you read RM??:smileywink:

The clock used by I2C is ICSOUT as shown in screenshot:

Immagine.png

In the clock block diagram you see that ICSOUT can be referred to the external clock source setting CLKS and BDIV.

Immagine.png

To configure external clock for I2c you must have:

ICSC1 = 0b10000000;

ICSC2 = 0b00101010;


I hope it helps.


Regards!

462 Views
Teckna
Contributor V

Please indicate your compiler and MQX version.

0 Kudos
462 Views
karguar
Contributor II

sorry but I don't understand what is the mean of MQX, I'm using codewarrior 10

thanks

0 Kudos