Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Implimentation I2C between Microcontroller and TC65

Status
Not open for further replies.

EmbeddedSoftware

Newbie level 3
Joined
Sep 26, 2009
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,304
Hi

I am trying to interface tc65 and micro controller(R8 Tiny series) through i2c but i am not able to.With same code i am able to interface two controller.

TC 65 provides some AT command for enabling I2C communication at TC65 End and i am using the same.Is any extra hardware circuitry require for TC 65.

Thanks in advance
 

Hi

Try to enable the I2C on the TC65 using uart before trying to communicate with I2C bus.

All the best

Bobi

The microcontroller specialist
 

I tried the same.
Through uart i am enabling the i2c on tc65 but if i am trying to see at SCLK pin of tc65 ,then i am not getting clock itself.I thought might be it is tc65 problem , i changed that also but problem remains same.
 

HI

Did you add pull up resistor on the I2C bus between the TC65 and your controller?

Dose your controller support hardware I2C or do you use Software (bit banging) I2C?

All the best

Bobi
 

I pulled up the resistor.
Controller supports I2C communication hardware .I am using r8c1B micro controller and for that i have written slave receiver and slave transmitter code.
the code is perfectly working when i am using two micro controller .One as a slave and other as a master but with tc65 i am not able to find out why it is not working. If i am checking clock at SCLK of tc65 , i am not getting clock itself

PlZ help me out
 

Hi

Place a break point using your debugger in the interrupt service routine (if you are using interrupt)

Or Try to test for ACK after you send the slave address

Whether this gos OK - continue the same method until you debug the entire code

Whether this not go - probably the device address is wrong

All the best

Bobi

The microcontroller specialist
 

The TC65 works as the master of I2C bus so the uC should act as slave. You have to command the TC65 throw the UART to open the I2C hardware using the AT^SSPI command. You also have to put pull-up resistor from TC65_SCL to TC65_VDD and from TC65_SDA to TC65_VDD. I put 10k resistor.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top