Author |
Message |
Topic: SPI PIC to PIC 16F690 read from slave problem |
natapongw
Replies: 6
Views: 16413
|
Forum: General CCS C Discussion Posted: Thu Apr 21, 2011 6:11 am Subject: SPI PIC to PIC 16F690 read from slave problem |
I found that every 3 loops data will correct here is my code
Master :
#include <16f690.h>
#fuses INTRC,NOWDT,NOPROTECT
#use delay (clock=8000000)
#use rs232(baud=9600,xmit ... |
Topic: SPI PIC to PIC 16F690 read from slave problem |
natapongw
Replies: 6
Views: 16413
|
Forum: General CCS C Discussion Posted: Thu Apr 21, 2011 6:01 am Subject: SPI PIC to PIC 16F690 read from slave problem |
I can get value now !
I use "output_high(PIN_C6);" that is ss pin before loop in slave PIC.
But my new problem when I try to get data from array in slave it is incorrect more than corr ... |
Topic: SPI PIC to PIC 16F690 read from slave problem |
natapongw
Replies: 6
Views: 16413
|
Forum: General CCS C Discussion Posted: Thu Apr 21, 2011 2:59 am Subject: SPI PIC to PIC 16F690 read from slave problem |
Do I need some resistor in bus line ? |
Topic: SPI PIC to PIC 16F690 read from slave problem |
natapongw
Replies: 6
Views: 16413
|
Forum: General CCS C Discussion Posted: Thu Apr 21, 2011 2:31 am Subject: SPI PIC to PIC 16F690 read from slave problem |
Thank you very much Ttelmah
I try for many code but still can't get data from slave.
Now I remove "spi_ss_disabled" and it not work.
Screen not show anything when run but when send da ... |
Topic: SPI PIC to PIC 16F690 read from slave problem |
natapongw
Replies: 6
Views: 16413
|
Forum: General CCS C Discussion Posted: Thu Apr 21, 2011 1:15 am Subject: SPI PIC to PIC 16F690 read from slave problem |
Hi,
I write some SPI PIC to PIC interface and success data write to slave but master can't get data from slave
Are anyone have some sample code for PIC16F for example or any suggestion ?
Best ... |
Topic: 16F690 i2c communication problem |
natapongw
Replies: 5
Views: 8334
|
Forum: General CCS C Discussion Posted: Thu Apr 21, 2011 1:13 am Subject: 16F690 i2c communication problem |
Thank you very much , I still can't use i2c for PIC to PIC communication so I change to SPI interface. It work correctly when push data from master to slave but I can't get data from slave to master.
... |
Topic: 16F690 i2c communication problem |
natapongw
Replies: 5
Views: 8334
|
Forum: General CCS C Discussion Posted: Tue Apr 19, 2011 10:50 pm Subject: 16F690 i2c communication problem |
I have 2 PIC16F690 to communication with i2c.
My code can interrupt slave PIC because LED light up but the value that I get at master not correct I'm not sure where is problem.
I use 4.7K resist ... |
|