Author |
Message |
Topic: spi communication between arduino and pic18f452 |
luqman82303
Replies: 4
Views: 12430
|
Forum: General CCS C Discussion Posted: Tue Feb 25, 2020 9:33 am Subject: spi communication between arduino and pic18f452 |
I am sorry !!
I am new on pic controller also on ccs compiler.
I try to grab your point and even check spi_prewrite(), but failed.
Can you please give me an example code lines to implement that thi ... |
Topic: spi communication between arduino and pic18f452 |
luqman82303
Replies: 4
Views: 12430
|
Forum: General CCS C Discussion Posted: Tue Feb 25, 2020 5:54 am Subject: spi communication between arduino and pic18f452 |
I have an issue in my code that it couldn't read the value from the slave (pic18f4520).
The master sends data is received on slave-like LEDs blink.
Please help me out how the data is sent from the P ... |
Topic: I2c communication arduino master pic slave |
luqman82303
Replies: 12
Views: 25611
|
Forum: General CCS C Discussion Posted: Tue Feb 18, 2020 1:01 pm Subject: I2c communication arduino master pic slave |
Thanks everyone .. so my I2c hardware finally in working !!
Slave
#include <18F452.H>
#fuses HS, NOWDT,PUT,BROWNOUT,NOLVP
#use delay(crystal=16000000)
//#use delay (clock ... |
Topic: I2c communication arduino master pic slave |
luqman82303
Replies: 12
Views: 25611
|
Forum: General CCS C Discussion Posted: Mon Feb 17, 2020 9:03 pm Subject: I2c communication arduino master pic slave |
I don't get the point, why the code is not going into isr function !!
Did you read my post and do what I said ?
Do you have pull-up resistors on the SDA and SCL lines ? (4.7K ohms)
Yes I ... |
Topic: I2c communication arduino master pic slave |
luqman82303
Replies: 12
Views: 25611
|
Forum: General CCS C Discussion Posted: Mon Feb 17, 2020 4:47 pm Subject: I2c communication arduino master pic slave |
On state==80, you must read, then write.
If you don't, it causes an issue in the I2C hardware that Proteus doesn't
know about.....
It''s the only state where this has to happen.
The INT_SSP mea ... |
Topic: I2c communication arduino master pic slave |
luqman82303
Replies: 12
Views: 25611
|
Forum: General CCS C Discussion Posted: Mon Feb 17, 2020 11:58 am Subject: I2c communication arduino master pic slave |
What Mike says...
Please read sticky above, PIC101, http://www.ccsinfo.com/forum/viewtopic.php?t=47549
It's well known that Proteus is defective, busted, corrupt, damaged, doesn't work reliably. ... |
Topic: I2c communication arduino master pic slave |
luqman82303
Replies: 12
Views: 25611
|
Forum: General CCS C Discussion Posted: Mon Feb 17, 2020 9:37 am Subject: I2c communication arduino master pic slave |
I am working on I2c communication between Arduino master and slave pic18f4520. The code I use works well on Proteus but when I implement on hardware it doesn't work. I don't get what the problem behin ... |
|