Author |
Message |
Topic: Problem in working with SPI |
geetha rangasamy
Replies: 10
Views: 20128
|
Forum: General CCS C Discussion Posted: Sat Feb 27, 2016 3:18 am Subject: SPI HELP |
Hi,
Man, what a confusing thread this is!
This is probably a textbook case on how not to ask for help on the forum! You prominently mention the DS1307 RTC (which is I2C) in a thread ab ... |
Topic: Problem in working with SPI |
geetha rangasamy
Replies: 10
Views: 20128
|
Forum: General CCS C Discussion Posted: Sat Feb 27, 2016 3:13 am Subject: Thank you for reply |
Apologies, forgot you cannot use transfer lengths, without using a stream. You need:
#include<16f877a.h>
#fuses HS,NOWDT
#use delay (clock=8mhz)
#use spi(DI=PIN_B3, DO=PIN_B2, ... |
Topic: Problem in working with SPI |
geetha rangasamy
Replies: 10
Views: 20128
|
Forum: General CCS C Discussion Posted: Sat Feb 27, 2016 3:10 am Subject: MIFARE Reader help |
guess I'm getting used these 'interesting' posts...
1) please post a 'link' to the MIFARE reader. This information is vital if you want us to help
2) do NOT use PROTEUS. We can't help you with i ... |
Topic: Problem in working with SPI |
geetha rangasamy
Replies: 10
Views: 20128
|
Forum: General CCS C Discussion Posted: Fri Feb 26, 2016 4:48 am Subject: Problem in working with SPI |
Get rid of the enable in the #USE SPI.
It is better to handle this yourself.
The way a 'read' has to happen, is that you clock an _8bit_ control/address into the chip, and then clock the reply b ... |
Topic: Problem in working with SPI |
geetha rangasamy
Replies: 10
Views: 20128
|
Forum: General CCS C Discussion Posted: Fri Feb 26, 2016 2:57 am Subject: Problem in working with SPI |
My target is to interface MIFARE reader to perform Read/Write by using SPI protocol.
For that, I desired to interface DS1307 RTC first. In that, i have some minor problem to deal with it.
So, I at ... |
|