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 14 matches
CCS Forum Index
Author Message
  Topic: PIC24F PCDIDE #int_global invalid error
tom.ayars

Replies: 8
Views: 8083

PostForum: General CCS C Discussion   Posted: Thu Aug 26, 2010 9:56 am   Subject: PIC24F PCDIDE #int_global invalid error
Hello all,

I realize this post hasnt seen any action in a few years, but I thought this would be the best place to ask my question.

I am using the PIC24FJ16GA002 and as the previous poster state ...
  Topic: SPI slave response
tom.ayars

Replies: 13
Views: 22606

PostForum: General CCS C Discussion   Posted: Mon Jul 28, 2008 8:30 am   Subject: SPI slave response
Thanks for the help guys. I now have another question maybe one of you can help me with. I have a pic set up as a slave device on the line and a separate device acting as the master. I am using the sp ...
  Topic: SPI slave response
tom.ayars

Replies: 13
Views: 22606

PostForum: General CCS C Discussion   Posted: Thu Jul 17, 2008 11:40 am   Subject: SPI slave response
So the master would receive an interrupt saying there is data available in the slave's register and at that point the master would do a in=spi_read() and would the slave do a spi_write(data) or would ...
  Topic: SPI slave response
tom.ayars

Replies: 13
Views: 22606

PostForum: General CCS C Discussion   Posted: Thu Jul 17, 2008 10:52 am   Subject: SPI slave response
Can someone point me to an example of a master device sending data then waiting some time before the slave sends a response back to the master?
  Topic: beginner's question
tom.ayars

Replies: 2
Views: 2980

PostForum: General CCS C Discussion   Posted: Tue Jul 15, 2008 8:19 am   Subject: beginner's question
treitmey,

thank you much!
  Topic: beginner's question
tom.ayars

Replies: 2
Views: 2980

PostForum: General CCS C Discussion   Posted: Tue Jul 15, 2008 7:55 am   Subject: beginner's question
I am looking to create a string terminated with a carriage return that I can then send over a SPI transfer. How do I create this string?
  Topic: spi read problems
tom.ayars

Replies: 16
Views: 19149

PostForum: General CCS C Discussion   Posted: Tue Jun 24, 2008 2:05 pm   Subject: spi read problems
Thank you very much for your time. Hopefully we can continue this topic at a later time.
  Topic: spi read problems
tom.ayars

Replies: 16
Views: 19149

PostForum: General CCS C Discussion   Posted: Tue Jun 24, 2008 1:52 pm   Subject: spi read problems
negative. still garbage.
  Topic: spi read problems
tom.ayars

Replies: 16
Views: 19149

PostForum: General CCS C Discussion   Posted: Tue Jun 24, 2008 1:42 pm   Subject: spi read problems
this is the change:

while(!spi_data_is_in())
{
}
for (i=0;i<COMMANDLENGTH;i++)
{
xferdata[i]=spi_read();
}

but still the same results. I am able to send a single bi ...
  Topic: spi read problems
tom.ayars

Replies: 16
Views: 19149

PostForum: General CCS C Discussion   Posted: Tue Jun 24, 2008 12:47 pm   Subject: spi read problems
correction. removing the tris and fast_io on the master side works as well but the rest is still true.
  Topic: spi read problems
tom.ayars

Replies: 16
Views: 19149

PostForum: General CCS C Discussion   Posted: Tue Jun 24, 2008 12:43 pm   Subject: spi read problems
After removing the fast_io on the slave side, the problem still exists. I am forced to leave the tris set up on the master side because the pins are not set correctly to the hardware spi definition fr ...
  Topic: spi read problems
tom.ayars

Replies: 16
Views: 19149

PostForum: General CCS C Discussion   Posted: Tue Jun 24, 2008 12:22 pm   Subject: spi read problems
master:


#include <18F4550.h>
#nolist
#fuses HSPLL,NOWDT,NOPROTECT,NOLVP,NODEBUG,USBDIV,PLL5,CPUDIV1,VREGEN,NOBROWNOUT,MCLR
#use delay(clock=48000000)
#use FAST_IO(A)
#u ...
  Topic: spi read problems
tom.ayars

Replies: 16
Views: 19149

PostForum: General CCS C Discussion   Posted: Tue Jun 24, 2008 12:06 pm   Subject: spi read problems
I made the corrections and no change, I am still receiving garbage in xferdata despite having the correct data to be read on the pins.
  Topic: spi read problems
tom.ayars

Replies: 16
Views: 19149

PostForum: General CCS C Discussion   Posted: Tue Jun 24, 2008 11:07 am   Subject: spi read problems
Hi,
I am having a problem reading in multiple bytes of data from the master PIC.

master code:

void main()
{
const char data[9]={"pl_10000"};
se ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group