IBDF value

Started by cooltronics in 68HC1213 years ago

Hi, I am running a HCS12DJ64 at 40MHz (using PLL) so that gives a bus clock of 20Mhz. The smart battery which I want to communicate with...

Hi, I am running a HCS12DJ64 at 40MHz (using PLL) so that gives a bus clock of 20Mhz. The smart battery which I want to communicate with on the I2C bus (using the SMBus protocol) can take only upto 80Khz. Now, the division of 20Mhz by 80Khz gives 250 which is no where in the look up table. Can I take the nearest value like 256? Thanks Ni


Re: IIC Bus on MC9S12DP256

Started by sleidiman in 68HC1213 years ago

Hello! I?m only a beginner in programming ?C but I try to help you. I have a similar problem. I want to communicate with a temperature ...

Hello! I?m only a beginner in programming ?C but I try to help you. I have a similar problem. I want to communicate with a temperature sensor over I2C. I show you my init-function: (but it isn?t in assembler) void initI2C(void) { IBFD=0x1F; /*here you must define the frequency divider*/ /*Block Guide page.16-25*/ IBAD=0xA0; /*Sla


9s12dp256 I2c 400Kbit/s

Started by sabinbsabinb in 68HC1214 years ago 1 reply

Hi some one try to run iic on 9s12dp256 at 400Kbit/s? what is the iic frequency divider register(IBFD) value for that if cpu...

Hi some one try to run iic on 9s12dp256 at 400Kbit/s? what is the iic frequency divider register(IBFD) value for that if cpu running 24Mhz Thanks


Bootloader and Vector table.

Started by bbalend in 68HC1213 years ago 4 replies

Looks like my application require two vector table. one for application and other one is for bootloader. There won't any sci interface ...

Looks like my application require two vector table. one for application and other one is for bootloader. There won't any sci interface communication, except it will be present for debugging purpose. All flash erase/programming are performed via the I2C bus. So, my questions are: 1) Will there be any design issues that I have to watchout for?


SMBus HC12D60A - 80 pin

Started by cooltronics in 68HC1213 years ago

Hi, We have a board which has a HC12D60A 80 pin package. One of its task is to talk with a smart battery on SMBus and provide battery...

Hi, We have a board which has a HC12D60A 80 pin package. One of its task is to talk with a smart battery on SMBus and provide battery health monitoring via LED's. From what I read, it seems that I can use I2c resources for SMBus because they are extremely similar. Can someone guide me on this? 1. Which is the best way to do it on D60A 8


IBFD calculator for IIC bus

Started by Steve-HighPoint in 68HC1214 years ago

App note 2318/D "Using the I2C bus with HCS12 Microcontrollers" indicates that a software tool for calculating the value of IBFD will...

App note 2318/D "Using the I2C bus with HCS12 Microcontrollers" indicates that a software tool for calculating the value of IBFD will be available soon. Has anyone seen this tool? Where can I get a copy of it? Thanks in advance for your help. Regards, Steve D


External Memory Capabilities of the HC12

Started by zajaco2 in 68HC1212 years ago 6 replies

Hello, I am relatively new to the 68HC12 (about 5 months) and I'm using it in a project that I've been working on. I know that the 68HC12...

Hello, I am relatively new to the 68HC12 (about 5 months) and I'm using it in a project that I've been working on. I know that the 68HC12 has an external addressing scheme that will allow one to reach 1MBytes worth of data. My question is this: What types of external memories are available? I have found an I2C 1Mbit EEPROM and some SPI flash memories, but nothing near 1MBytes that I...


I2C Line following sensor - need help

Started by jordnam128 in 68HC1210 years ago

I am having trouble communicating the Line Following sensor with an HCS12 microcontroller. The controller does have the proper...

I am having trouble communicating the Line Following sensor with an HCS12 microcontroller. The controller does have the proper transceiver module and registers associated with it. It is able to send out the code to the sensor but does not receive proper signal back. Here is the code with comments. Please help if you can. #include #include #define TERMINAL_TIMEOUT


I2C ReStart Vs. Stop-Start: SCL/DDL Hold

Started by Steve Auch-Schwelk in 68HC1214 years ago 6 replies

I'm using the HCS12 and an AN2318 based iic driver, modified for GCC. I seem to have some devices that don't like to be...

I'm using the HCS12 and an AN2318 based iic driver, modified for GCC. I seem to have some devices that don't like to be stop-started between a Master-Write to Slave, and a Master-read from slave. But the devices seem to work OK with a restart. Is there a difference between


C code for Read/Write external i2c flash memory

Started by jeff...@bendnet.com in 68HC127 years ago

I am using a Minidragon plus2 & need to store 100 integers in a AT24c08a 8k serial flash memory. The Atmel datasheet doesnt give examples & the...

I am using a Minidragon plus2 & need to store 100 integers in a AT24c08a 8k serial flash memory. The Atmel datasheet doesnt give examples & the appnote, avr106 shows c code which uses their pic processor & seems to use functions built into the pic. I have tried using i/o on portE & cannot seem to acess more than about 40 integers & am also not sure if i am supposed to erase before write? ...


68HC12 Microcontroller as slave

Started by "Dhi...@buffalo.edu [68HC12]" in 68HC123 years ago 1 reply

Hi, I am trying to use this 68HC12 microcontroller in slave mode for I2C Communication. Is there any sample code which puts the controller in...

Hi, I am trying to use this 68HC12 microcontroller in slave mode for I2C Communication. Is there any sample code which puts the controller in slave mode and used to communicate with another master? Please help me since i am working on this for a long time and i could not figure what is wrong. Is it software code or hardware setup?? Please help me with the sample code. Thanks, Dhinesh. ...


Cheap ARM7 LPC210x

Started by Oliver Betz in 68HC1213 years ago 11 replies

Hi All, http://www.standardics.philips.com/news/ lpc210x/ two UARTs, two 400 kbps I2C-bus interfaces, two SPI/SSP interfaces, ...

Hi All, http://www.standardics.philips.com/news/ lpc210x/ two UARTs, two 400 kbps I2C-bus interfaces, two SPI/SSP interfaces, four timers with PWM and a 10-bit ADC, 70MHz zero-wait-state flash. 8KB flash, 2KB RAM, 1,47USD@10000 to 32KB flash, 8KB RAM $2.20. Although I don't