Hi,
I want use an infrared sensor who is connected on MC56F8006. But by using functions generates by CodeWarrior, ERR_BUSOFF (bus not available) appears and I don't understand why.
I don't very well how use I2C, for the moment I try to use generate function (for receive informations from the sensor).
Thank you for your response,
Best Regards
Hi can anyone please provide a smaple code for I2C.
I am using MC9S08QE128 48 pin package.
Hi Dutta,
All examples are delivered on tool installation.
For HCs08QE128, CW for MCU V6.3 (classic version released 2009) and MCU V10.4 based on Eclipse (released last month).
We're using Processor Expert code generator.
If you're using MCU V6.3, an example using I2C is delivered under installation folder:
\CodeWarrior for Microcontrollers V6.3\ProcessorExpert\Projects\Test projects\InternalI2C
If you're using MCU V10.4, some examples are delivered under the folder:
\CW MCU v10.4\MCU\CodeWarrior_Examples
However for the I2C, we don't have this specific example.
In this case I recommend you to create a new project with Processor Expert.
Processor Expert proposes 2 beans:
CPU External Devices ¦ Communication ¦ SW_I2C
CPU Internal Peripherals ¦ Communication ¦ InternalI2c
For these beans some information explaining how to use them are available if you select them and with the popup menu click on "Help on Component".
Hope this will help you.
Regards
Pascal
Hi Pascal,
Thanks a lot for the information.
I am using CW for MCU Ver 6.3.
I tried opening the project under \CodeWarrior for Microcontrollers V6.3\ProcessorExpert\Projects\Test projects\InternalI2C.
Even though i am using a valid license for CW, when i try to view the function definitions, it says :
##### Here will be code if you have a full registered version #####
I could provide my license information if requirred.
Could you please let me know if there is any portal or site where i can download the code from?
Thanks for your help.
Regards,
Dutta.
Hi Dutta,
The SW-I2C is a Basic component and the InternalI2C is an Advanced component.
The Advanced component is supported by Professional suite only.
Else the bean can be purchased separately.
do you use a Professional suite ?
Attached you will find a temp license.
Rename it to license.dat.
This license will allow you to use all features.
It will expire end of June.
Regards
Pascal
I'm having the same problem.
I'm using MC56F8006, Processor Expert bean for I2C communication and USB TAP to debug.
My investigation until now suggests that after sending the address, the DSC is not generating an interrupt, which makes the communication to hang.
Regards,
Bruno
You might want to check out this https://community.freescale.com/message/13849#13849 on I2C programming.
---Tom
I tries following your link but i did not get information regarding the I2C initializations and data transfer.
Can you please help me in this?
Thanks and REgards,
Sudipto
Hi can anyone please provide a smaple code for I2C.
I am using MC9S08QE128 48 pin package.
Thanks J2MEJediMaster, but this thread you said refers to 68K/Coldfire MPU and it's about a users implementation of I2C.
I'm using MC56F8006, with CodeWarrior 8.3 Special Edition and Processor Expert's I2C bean.