I2C problem

Started by Rivan Rivaldy in 68HC128 years ago 4 replies

Hi all, Currently I'm facing problem with using I2C in my project. I'm using M68HC912B32 connected to a pressure transducer CSDX2000A2R from...

Hi all, Currently I'm facing problem with using I2C in my project. I'm using M68HC912B32 connected to a pressure transducer CSDX2000A2R from SensorTechnics. The transducer requires I2C for communicating with the controller. I'm using bit banging method for I2C interface. The problem is, after sending the slave address to the sensor, the controller didn't read any acknowledgement from the sla...


C code for I2C

Started by Hossam Almasri in 68HC1214 years ago

Hello all, I'm searching for a C code to communicate with I2C. Can anybody help. I'm using 24LC64 (I2C) and 68HC08. ...

Hello all, I'm searching for a C code to communicate with I2C. Can anybody help. I'm using 24LC64 (I2C) and 68HC08. Thank you for your help in advance. Hossam ---------------------------------


9S12X I2C Help

Started by Michael Burgess in 68HC1210 years ago

Hello Everyone, I'm trying to use the I2C on the 9S12XDP512, to communicate with an FRAM, RTC/processor companion chip. I have initialized the...

Hello Everyone, I'm trying to use the I2C on the 9S12XDP512, to communicate with an FRAM, RTC/processor companion chip. I have initialized the I2C registers, set the priority of the interrupt, and yet the interrupt does not go off. What am I missing, any suggestions are welcomed. Thanks in advance. Michael Burgess


I2C problems

Started by iamthewilldinkel in 68HC1211 years ago 2 replies

Hi all, I'm using the HCS12 on a PK-HCS12E128 dev board. I'm trying to interface with a D51307N real-time clock chip using the I2C bus...

Hi all, I'm using the HCS12 on a PK-HCS12E128 dev board. I'm trying to interface with a D51307N real-time clock chip using the I2C bus and having some issues. Can anyone please point me in the direction of some resources which may help me crack this nut? PS: I looked in the forum for support; the only I2C code -- which was commented in French -- I could find was for the GPIO pins. Th...


I2C bus?

Started by elalex_76 in 68HC1211 years ago 7 replies

I got the Motorola MC9S12DP256B made by Axiom Manufactoring and i don't think it has a I2C bus. Is there a way to connect a sensor (Devantech...

I got the Motorola MC9S12DP256B made by Axiom Manufactoring and i don't think it has a I2C bus. Is there a way to connect a sensor (Devantech SRF08)that uses I2C bus to the serial bus? I'm starting on a project that would use these ultrasonic sensors, but i'm not to sure on how to interface it to the board. Any help is appreciated


I2C blues

Started by Ron Clough in 68HC1214 years ago 1 reply

Has anybody out there interfaced an SRF08 ultrasonic rangefinder (I2C interface) to a 68HC912DP256B? I'm trying but without...

Has anybody out there interfaced an SRF08 ultrasonic rangefinder (I2C interface) to a 68HC912DP256B? I'm trying but without success! Any help is appreciated. Thanks in advance, Ron


NewbieQuestion about I2C

Started by sleidiman in 68HC1212 years ago 6 replies

Hello! (I?ve posted this question on www.freegeeks.net, but I didn?t receive an answer) An absolut NewbieQuestion: I want to...

Hello! (I?ve posted this question on www.freegeeks.net, but I didn?t receive an answer) An absolut NewbieQuestion: I want to measure temperature with DS1721 (Dallas Maxim). That?s why i have to work with I2C. Now, I have problems with the protocol. First I want to send the Adress to the Sensor. Here my example:


I2C question??

Started by elalex_76 in 68HC1211 years ago 7 replies

Hello, i had been trying to work with MC9S12DP256B board and SRF08 sensor that makes use of the I2C bus, pins j6 and j7 ,SDA & SCL. I haven't...

Hello, i had been trying to work with MC9S12DP256B board and SRF08 sensor that makes use of the I2C bus, pins j6 and j7 ,SDA & SCL. I haven't been able to communicate with the device. I have included the .asm file, so if anyone can take a look at it and advice me on what i'm doing wrong.=20 What i'm trying to do in this code, is to change the address of the slave(SRF08). In order to change ...


Help with I2C hardware on the HC12

Started by thamiral in 68HC1213 years ago

Hello all, I am trying to interface my HC12 with an I2C EEPROM and I am having trouble performing a write to the EEPROM (Model...

Hello all, I am trying to interface my HC12 with an I2C EEPROM and I am having trouble performing a write to the EEPROM (Model No. M24C02) The worst part is that the in circuit debugger that I am using (ICD12Z from P&E) seems to be doing something really weird whe


Problems with hardware module I2C.

Started by corpuscasado in 68HC1213 years ago

Hi all, I'm using 24C16 and 9S12DP256. I'm using the module hardware i2c. I have problems when I'm reading the value of IBDR...

Hi all, I'm using 24C16 and 9S12DP256. I'm using the module hardware i2c. I have problems when I'm reading the value of IBDR register because I lose read byte of the memory. Can anybody help. Thank you for your help in advance. Corpus


I2C interface for 9S12DP256

Started by Anonymous in 68HC1213 years ago

Hello ! I'm trying to start I2C bus on 9S12DP256, with ImageCraft Compiler ICC12, P&E BDM, NoIce debugger, quartz 12 Mhz. ...

Hello ! I'm trying to start I2C bus on 9S12DP256, with ImageCraft Compiler ICC12, P&E BDM, NoIce debugger, quartz 12 Mhz. Now without any success. -:((( I analysed the soft provided in Application Note AN2318, Which run under interruptions.


I2C (IIC) and HCS12

Started by varneybob in 68HC1215 years ago 3 replies

I'm trying to figure out how to program the baud rate for my I2C bus on the HCS12. The S12IICV2 document describes two equations...

I'm trying to figure out how to program the baud rate for my I2C bus on the HCS12. The S12IICV2 document describes two equations that deal with tap points and what not, but I have no idea what a tap point means. Any help would be appreciated. My micro will have a 25MHz squa


Problem with I2C Bus

Started by ymliao in 68HC1213 years ago 1 reply

Hi Everyone! I am using an evaluation board for the MC9S12E128 micro from Technological Art. I've been trying to get the...

Hi Everyone! I am using an evaluation board for the MC9S12E128 micro from Technological Art. I've been trying to get the micro to talk to a RTC from ST (M41T81) via I2C bus but noticed the following problems... Problem 1) The bus frequency is 24MHz. The I


SRF08 interface with I2C

Started by "nielsen.daniel" in 68HC127 years ago 1 reply

Hello, I am trying to interface an SRF08 Ultrasonic Sensor to my Dragon-12 board (I2C) via CodeWarrior and C language. I have tried and tried...

Hello, I am trying to interface an SRF08 Ultrasonic Sensor to my Dragon-12 board (I2C) via CodeWarrior and C language. I have tried and tried again but no succes...I am pretty sure I am writing to the SRF08 but I dont think I am reading correctly. Any help or suggestions or working code would be greatly appreciated. Thanks. This is my code. #include /* common defines and ma


Saving 2 Bytes, received from I2C????

Started by sleidiman in 68HC1212 years ago 5 replies

Hello! I want to use I2C for communication with a DS1721 (temperature sensor). I finished the init-protcol, but now i have problems to...

Hello! I want to use I2C for communication with a DS1721 (temperature sensor). I finished the init-protcol, but now i have problems to save the received two bytes. Here is my code-example: .... volatile signed short temp,*reg; temp=0x0000; reg=&IBDR; .... IBCR=0xA0; /*BusEnable, MasterMode(Start), Rx*/


I2C delay after each ACK on MC9S12DP256

Started by Chengrong Lu in 68HC1214 years ago 1 reply

My module is working as a slave receiver, my I2C ISR can be simplified as follows: void interrupt I2CISR(void) { IBIF = 1;...

My module is working as a slave receiver, my I2C ISR can be simplified as follows: void interrupt I2CISR(void) { IBIF = 1; bThisByte = IBDR; } After the last statement, the receiver sends out an ACK, and after this ACK, the MCU holds both SDA a


Sample code in C using codewarrior for I2C Driver MC9S12DP256

Started by dafnapeld in 68HC1213 years ago 2 replies

Hi Please anyone can show me a sample code in C using Codewarrior for reading and writing using I2C interface for MC9S12DP256...

Hi Please anyone can show me a sample code in C using Codewarrior for reading and writing using I2C interface for MC9S12DP256 Micro Thank you Uri


how to interface between 3.6V and 5V for I2C communication?

Started by in 68HC1214 years ago 2 replies

Now I try to interface Processor and Audio control IC but I found Processor has 5V vdd and Audio IC has 3.6V Vdd. I would like...

Now I try to interface Processor and Audio control IC but I found Processor has 5V vdd and Audio IC has 3.6V Vdd. I would like to know how to interface 3.6V and 5V based ICs with I2C communication. regards --------------------------------- ???? ?????? ?


another question about I2C

Started by elalex_76 in 68HC1211 years ago

What frequency do i have to set the bus on the MC9S12DP256B i2c bus? I am using SRF08 ranging sensors, but i'm not sure if i need to set it at...

What frequency do i have to set the bus on the MC9S12DP256B i2c bus? I am using SRF08 ranging sensors, but i'm not sure if i need to set it at 100Khz or if the sensors work at a different frequency, and does anyone know what the SDA hold time is on these devices. I'm really having a hard time trying to get it to work. I have posted the code in Message 13950. My code runs and it finish it, b...


MC9S08GB60 I2C and PCF8583 Real time clock

Started by JNB in 68HC1211 years ago 3 replies

Hello I try to use C+ that is new for me, and Codewarrior. Running in circle since a couple of weeks with this simple clock,...

Hello I try to use C+ that is new for me, and Codewarrior. Running in circle since a couple of weeks with this simple clock, did somebody got experiences and softwares that can manage IIC?. (with or with out IT managment (I try both), I just need simple as possible, as RCT seems to be) Many thanks in advance.