Author |
Message |
Topic: Stupid Newb SPI Problem |
bside
Replies: 7
Views: 6880
|
Forum: General CCS C Discussion Posted: Fri Oct 02, 2009 4:53 pm Subject: Stupid Newb SPI Problem |
great, thanks PCM. I have version 4.096 of PCWH.
For some reason it's working now and I did two SPI writes to get the DAC to see 16 bits. Check back in a sec. |
Topic: Stupid Newb SPI Problem |
bside
Replies: 7
Views: 6880
|
Forum: General CCS C Discussion Posted: Fri Oct 02, 2009 3:51 pm Subject: Stupid Newb SPI Problem |
wow, that chipedit util is pretty nice. thanks a lot PCM!
I get a few errors when I add the .h though:
--- Info 300 "C:\Program Files\PICC\devices\PIC18F2410_registers.h" ... |
Topic: Stupid Newb SPI Problem |
bside
Replies: 7
Views: 6880
|
Forum: General CCS C Discussion Posted: Fri Oct 02, 2009 2:01 pm Subject: Stupid Newb SPI Problem |
ok.... I see I have to use the #byte directive.... why don't they just include this in the header files for each device? |
Topic: Stupid Newb SPI Problem |
bside
Replies: 7
Views: 6880
|
Forum: General CCS C Discussion Posted: Fri Oct 02, 2009 1:28 pm Subject: Stupid Newb SPI Problem |
ok, this is good, I'm getting good data out of my clk and data lines, but nothing out of my ~SS. I'm using a National DAC084S085 DAC which requires that the ~SYNC (which I have tied to ~SS) is pulled ... |
Topic: Stupid Newb SPI Problem |
bside
Replies: 7
Views: 6880
|
Forum: General CCS C Discussion Posted: Fri Oct 02, 2009 1:17 pm Subject: Stupid Newb SPI Problem |
wow.... nothing like a typo to ruin your day:
setup_spi(SPI_MASTER | SPI_MODE_2 | SPI_CLK_DIV_4);
getting something.... more testing, I may be back |
Topic: Stupid Newb SPI Problem |
bside
Replies: 7
Views: 6880
|
Forum: General CCS C Discussion Posted: Fri Oct 02, 2009 1:11 pm Subject: Stupid Newb SPI Problem |
Hi there,
I've gotten my uart working just fine on my PIC18F2410 on the popular dlp232pc min-dev board. But now, setting up SPI has been nothing short of bewildering. I've looked in the manual an ... |
|