I am doing I2C bit banging with HCs08 as a master and external accelerometer as a slave.
As internal crystal is of 4 Mhz. We want clock cycle of 100 MHz
Aim- To generate 5usec ON and 5usec OFF clock cycle on SCL pin.
Observations and Problems-
Code is attached.
Please tell me anyone.
where i m going wrong?
Hi
I got lost, your problem is with the timer? or with the IIC module?
regards
Vicente Gomez
HCs08 doesn't have in-built IIC module. SO need to do iic bit banging.
Problem is with clock generating for IIC.
What part are you using?
I b elieve that all the HCS08 device has a IIC module on in, I do not remember if the smallest one does not have it, but for intace the S08SH has it.
Thanks
Part no. is FXTH871x7