CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 6 matches
CCS Forum Index
Author Message
  Topic: Stupid Newb SPI Problem
bside

Replies: 7
Views: 7034

PostForum: 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: 7034

PostForum: 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: 7034

PostForum: 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: 7034

PostForum: 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: 7034

PostForum: 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: 7034

PostForum: 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 ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group