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

Search found 18 matches
CCS Forum Index
Author Message
  Topic: PIC16f18324 I2C, INT_RDA not WORKING!
eeeahmet

Replies: 15
Views: 38117

PostForum: General CCS C Discussion   Posted: Tue Sep 06, 2016 7:49 am   Subject: PIC16f18324 I2C, INT_RDA not WORKING!
Hello friends,

First, Thank you to everyone for their help.

Secondly, I'm sorry to have wasted your time. Because the I2C problem, it was my mistake.

The integrated DAC in my project as MCP47 ...
  Topic: PIC16f18324 I2C, INT_RDA not WORKING!
eeeahmet

Replies: 15
Views: 38117

PostForum: General CCS C Discussion   Posted: Tue Sep 06, 2016 6:53 am   Subject: PIC16f18324 I2C, INT_RDA not WORKING!
Ttelmah,

I've done this before what you said but it still doesn't work.



void Cpu_Setup()////////////////////////////////////////////////////////////////
{
if(read_eepro ...
  Topic: PIC16f18324 I2C, INT_RDA not WORKING!
eeeahmet

Replies: 15
Views: 38117

PostForum: General CCS C Discussion   Posted: Tue Sep 06, 2016 6:28 am   Subject: PIC16f18324 I2C, INT_RDA not WORKING!
First, Thank you very much for your answers.

Ok. I found my problem rs232 line and solved.

The problem is about one wire communication(k line). I use standart one wire usb serial port. I need to ...
  Topic: PIC16f18324 I2C, INT_RDA not WORKING!
eeeahmet

Replies: 15
Views: 38117

PostForum: General CCS C Discussion   Posted: Tue Sep 06, 2016 4:34 am   Subject: PIC16f18324 I2C, INT_RDA not WORKING!
Hi Ttelmah,

I used the code you wrote before you
<https://www.ccsinfo.com/forum/viewtopic.php?t=55295&highlight=16f18325>

and its works. Rda fired one time not many. When i have comme ...
  Topic: PIC16f18324 I2C, INT_RDA not WORKING!
eeeahmet

Replies: 15
Views: 38117

PostForum: General CCS C Discussion   Posted: Tue Sep 06, 2016 1:15 am   Subject: PIC16f18324 I2C, INT_RDA not WORKING!
Hi Ttelmah,

Thanks for your answer.

I changed that code line like your post.

But still doesn't work :( INT_RDA interrupt doesn't fire on pcb or pickit3 debug.
  Topic: PIC16f18324 I2C, INT_RDA not WORKING!
eeeahmet

Replies: 15
Views: 38117

PostForum: General CCS C Discussion   Posted: Mon Sep 05, 2016 8:01 pm   Subject: PIC16f18324 I2C, INT_RDA not WORKING!
Thanks. I dont know that and still learning Smile


I have comment #pin_select code lines

.................... //#pin_select U1TX=PIN_C4
.................... //#pin_select U1RX=PIN_C5
....... ...
  Topic: PIC16f18324 I2C, INT_RDA not WORKING!
eeeahmet

Replies: 15
Views: 38117

PostForum: General CCS C Discussion   Posted: Mon Sep 05, 2016 7:46 pm   Subject: PIC16f18324 I2C, INT_RDA not WORKING!
Hi PCM programmer,

Thank you for your answer.

Iam looking at the .LST file and code like this

.................... #use rs232(baud=9600, XMIT=pin_c4, RCV=pin_c5, bits=8, stop=1, parity=N, ...
  Topic: PIC16f18324 I2C, INT_RDA not WORKING!
eeeahmet

Replies: 15
Views: 38117

PostForum: General CCS C Discussion   Posted: Mon Sep 05, 2016 5:43 pm   Subject: PIC16f18324 I2C, INT_RDA not WORKING!
Hi,

I am using pcwhd v5.059 with 16f18324 in my project.
Software i2c not working. Also int_rda never fire.

I used 16f1824 in this project last time and worked very well. But this microcontrol ...
  Topic: PCA9626 with pic18f45k80 are not working
eeeahmet

Replies: 19
Views: 30985

PostForum: General CCS C Discussion   Posted: Tue Jul 09, 2013 4:49 am   Subject: PCA9626 with pic18f45k80 are not working
Thank you very much Ttelmah

Best Regards
  Topic: PCA9626 with pic18f45k80 are not working
eeeahmet

Replies: 19
Views: 30985

PostForum: General CCS C Discussion   Posted: Tue Jul 09, 2013 2:57 am   Subject: PCA9626 with pic18f45k80 are not working
if somebody need this ic, ic code is here

#define I2CADDR 0x2A
#define MODE1 0x00
#define MODE2 0x01
#define GRPPWM 0x1A
#define GRPFREQ 0x1B
#define LEDREG 0x9D

int1 ack=1;

...
  Topic: PCA9626 with pic18f45k80 are not working
eeeahmet

Replies: 19
Views: 30985

PostForum: General CCS C Discussion   Posted: Tue Jul 09, 2013 1:26 am   Subject: PCA9626 with pic18f45k80 are not working
thank you very much Ttelmah

write_byte_to_reg(MODE1, 0b00000000);

i changed it and its work. i dont understand why but its work now. normaly oscilator is off this command but its works..??..

...
  Topic: PCA9626 with pic18f45k80 are not working
eeeahmet

Replies: 19
Views: 30985

PostForum: General CCS C Discussion   Posted: Mon Jul 08, 2013 11:50 pm   Subject: PCA9626 with pic18f45k80 are not working
Hi,

I2C_start();
ack=I2C_write(0x2a);
I2C_write(reg_number);
I2C_write(value);
I2C_stop();

now ack bit is '0'

but


I2C_start();
I2C_write(0x2a);
ack=I ...
  Topic: PCA9626 with pic18f45k80 are not working
eeeahmet

Replies: 19
Views: 30985

PostForum: General CCS C Discussion   Posted: Mon Jul 08, 2013 12:37 pm   Subject: PCA9626 with pic18f45k80 are not working
thanks Ttelmah for your answer

I already driven low with pic. That pin is not open drain but i tried pulldown and pullup but no change. I checked package and pin layout but there is not any mistake ...
  Topic: PCA9626 with pic18f45k80 are not working
eeeahmet

Replies: 19
Views: 30985

PostForum: General CCS C Discussion   Posted: Mon Jul 08, 2013 4:54 am   Subject: PCA9626 with pic18f45k80 are not working
Thanks for your answer.
Yes i work before sd/mmc and sd card work 3.3v pic is 5V. spi communication wires have got level shifting mosfet and 4k7 pullup.

No OE pin has not got a pullup resistor.
...
  Topic: PCA9626 with pic18f45k80 are not working
eeeahmet

Replies: 19
Views: 30985

PostForum: General CCS C Discussion   Posted: Mon Jul 08, 2013 2:27 am   Subject: PCA9626 with pic18f45k80 are not working
hi,

i realized my adress is not a2. it is 2a and i use 5v voltage level.

i changed pullup resistors an i checked it with oscilloscope high and low level very stable now.

i have tried i2c scan ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group