View previous topic :: View next topic |
Author |
Message |
sanshiroo
Joined: 20 Apr 2014 Posts: 4
|
I have I2C problem |
Posted: Mon Apr 21, 2014 12:24 am |
|
|
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
|
|
Posted: Mon Apr 21, 2014 1:12 am |
|
|
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
|
|
Posted: Mon Apr 21, 2014 1:56 am |
|
|
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 |
|
|
|