Author |
Message |
Topic: hardware SPI read pin stuck |
SparkyEE
Replies: 5
Views: 8220
|
Forum: General CCS C Discussion Posted: Wed Jul 18, 2007 3:50 pm Subject: hardware SPI read pin stuck |
I don't believe setup_spi() is needed since I have a static configuration that does not need to be setup at runtime... although, I will try it.. It can't hurt.
I downloaded the latest CCS demo 4.04 ... |
Topic: hardware SPI read pin stuck |
SparkyEE
Replies: 5
Views: 8220
|
Forum: General CCS C Discussion Posted: Tue Jul 17, 2007 7:06 am Subject: hardware SPI read pin stuck |
1. Are there two PIC boards, with one configured as an SPI slave and
the other as an SPI master ?
2. Post the list of connections between pins on the Master and on the Slave.
3. What's your co ... |
Topic: hardware SPI read pin stuck |
SparkyEE
Replies: 5
Views: 8220
|
Forum: General CCS C Discussion Posted: Mon Jul 16, 2007 4:15 pm Subject: hardware SPI read pin stuck |
I have some code that executes SPI commands based upon user input from the UART (so I can peek and poke at a SPI device from Windows Hyperterm). The problem is that reads always read "FF". ... |
Topic: example program EX_SQW works with one pin, but not another |
SparkyEE
Replies: 3
Views: 5297
|
Forum: General CCS C Discussion Posted: Thu Jun 21, 2007 8:50 am Subject: example program EX_SQW works with one pin, but not another |
The EX_SQW.c example code included with the CCS compiler works just fine on my PICkit2 debug express demo board (16F887), if I leave the pin at PIN_B0, It does NOT work when simply changing the outp ... |
Topic: 2nd consecutive SPI write hangs everytime... |
SparkyEE
Replies: 3
Views: 5519
|
Forum: General CCS C Discussion Posted: Thu Jun 21, 2007 8:42 am Subject: 2nd consecutive SPI write hangs everytime... |
setup_spi() was not used but rather..
#use spi(MASTER, MODE=1, FORCE_HW, BAUD=1000000, BITS=8, stream=SPI_STREAM)
FYI, I found the problem, I need to "read" the spi port in-between wr ... |
Topic: clear screen function |
SparkyEE
Replies: 5
Views: 8531
|
Forum: General CCS C Discussion Posted: Thu Jun 21, 2007 8:38 am Subject: Re: clear screen function |
Is there a clear screen funtion(clrscr) for the CCS compiler?
If you want to "clear screen" when on a RS-232 UART port. Just print a "form feed"
printf("\f"); |
Topic: 2nd consecutive SPI write hangs everytime... |
SparkyEE
Replies: 3
Views: 5519
|
Forum: General CCS C Discussion Posted: Mon Jun 18, 2007 1:25 pm Subject: 2nd consecutive SPI write hangs everytime... |
In the following code snipet, the 2nd SPI write hangs everytime. What in the spi_write routine might cause this? Something I'm doing?
Thx.
void write() {
BYTE address;
BYTE value;
BYTE dis ... |
|