electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

Implimentation I2C between Microcontroller and TC65


Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> Implimentation I2C between Microcontroller and TC65
Author Message
EmbeddedSoftware



Joined: 26 Sep 2009
Posts: 3


Post26 Sep 2009 4:51   

Implimentation I2C between Microcontroller and TC65


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
Back to top
Google
AdSense
Google Adsense




Post26 Sep 2009 4:51   

Ads




Back to top
bobcat1



Joined: 10 Jul 2002
Posts: 1118
Helped: 48


Post26 Sep 2009 7:43   

Re: Implimentation I2C between Microcontroller and TC65


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
Back to top
EmbeddedSoftware



Joined: 26 Sep 2009
Posts: 3


Post26 Sep 2009 8:03   

Re: Implimentation I2C between Microcontroller and TC65


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.
Back to top
bobcat1



Joined: 10 Jul 2002
Posts: 1118
Helped: 48


Post27 Sep 2009 8:25   

Re: Implimentation I2C between Microcontroller and TC65


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
Back to top
EmbeddedSoftware



Joined: 26 Sep 2009
Posts: 3


Post01 Oct 2009 7:47   

Re: Implimentation I2C between Microcontroller and TC65


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
Back to top
bobcat1



Joined: 10 Jul 2002
Posts: 1118
Helped: 48


Post03 Oct 2009 12:51   

Re: Implimentation I2C between Microcontroller and TC65


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
Back to top
gimf



Joined: 30 Oct 2009
Posts: 1
Location: Brazil


Post30 Oct 2009 20:13   

Re: Implimentation I2C between Microcontroller and TC65


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.
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> Implimentation I2C between Microcontroller and TC65
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
Differnce Between RS232 And I2c (5)
What is the difference between I2C and CAN (13)
interface between fpga kit and sensor with i2c (1)
DFT's and FFT's Implimentation with verilog (3)
RF link between PC and microcontroller (4)
Differences between SoC and Microcontroller? (3)
Serial communication between a microcontroller and a PC... (5)
difference between microcontroller and dsp board? (2)
different between 8051 and PIC microcontroller ?????? (4)
Difference between ARM device and microcontroller. (6)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS