CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

I have I2C problem

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
sanshiroo



Joined: 20 Apr 2014
Posts: 4

View user's profile Send private message

I have I2C problem
PostPosted: Mon Apr 21, 2014 12:24 am     Reply with quote

Now, I use ATA2538 to control microprocessor(number pic 16f886), but ATA2538 do not respond it don't send INT signal back when I touch on my touch board. How can I do ?

Now, I have a application guide of ATA2538 and I do same example program setting in application guide. but I don't under stand "I2C_WRITE( address, data_size, data);" and interrupt in example code.
I will attach application guide of ATA2538.

best regards

http://www.mediafire.com/view/u2xt3oc7ie27u7q/ATA2538_ApplicationGuide_v1.0.pdf
Ttelmah



Joined: 11 Mar 2010
Posts: 19499

View user's profile Send private message

PostPosted: Mon Apr 21, 2014 1:12 am     Reply with quote

The example is for a specific microcontroller.

You need to get the manual for this microcontroller, and read how it's I2C write function works. Then translate this to CCS.

It has in fact been answered here a while ago. The controller being used sends a block of data using DMA, when asked, rather than just the single byte handled by the PIC. I gave some guidelines about how to translate this in the thread (a Google search here should find it).
sanshiroo



Joined: 20 Apr 2014
Posts: 4

View user's profile Send private message

PostPosted: Mon Apr 21, 2014 1:56 am     Reply with quote

thank you for guideline Mr.Ttelmah

Can you guide abort interrupt in the program ?
I will use only external interrupt or not ?
And I have been search on google but I don't found it
I found datasheet but datasheet don't tell me about setting it
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group