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 18 matches
CCS Forum Index
Author Message
  Topic: Use I/O pin to trigger event
geolover

Replies: 3
Views: 5278

PostForum: General CCS C Discussion   Posted: Thu Mar 24, 2011 1:47 pm   Subject: Use I/O pin to trigger event
I found that the compiler warned me that the condition while((DRDY!=0)); is always true
The compiler is correct. In the line below, you have DRDY defined
as a pin number:
#define DRDY PIN_A4
Lo ...
  Topic: Use I/O pin to trigger event
geolover

Replies: 3
Views: 5278

PostForum: General CCS C Discussion   Posted: Thu Mar 24, 2011 9:28 am   Subject: Use I/O pin to trigger event
In my circuit, an ADC's /DRDY pin will pulse low when data is ready to retrieve and then returns high on the falling edge of the first subsequent SCLK, if data is not retrieved (SCLK held low), this p ...
  Topic: USB CDC problem
geolover

Replies: 0
Views: 3229

PostForum: General CCS C Discussion   Posted: Tue Mar 22, 2011 3:39 pm   Subject: USB CDC problem
Hello! I had successfully implemented an USB CDC with 18F4550 to retrieve data from a PIC24FJ by using a SPI interface, however, between each operation, at least 100us delay must be added to ensure th ...
  Topic: SPI mode confusion
geolover

Replies: 5
Views: 12430

PostForum: General CCS C Discussion   Posted: Sat Mar 19, 2011 2:20 pm   Subject: SPI mode confusion
I've downloaded the datasheet and it says it's a read only device, so why are you writing to it ?
below code cut from your OP..


spi_write(h);
delay_us(100);
spi_writ ...
  Topic: SPI mode confusion
geolover

Replies: 5
Views: 12430

PostForum: General CCS C Discussion   Posted: Sat Mar 19, 2011 11:43 am   Subject: Issues with SDI pin outputting data
Thank you, was being stupid this time....

However, there is an issue related to the SDI pin RF7, it seems RF7 is kept at output state even if I had manually set the tris to input followed by setup_ ...
  Topic: SPI mode confusion
geolover

Replies: 5
Views: 12430

PostForum: General CCS C Discussion   Posted: Fri Mar 18, 2011 5:12 am   Subject: SPI mode confusion
http://i556.photobucket.com/albums/ss7/suvietrat/spi2.jpg
This is the timing diagram of an ADS1271 module outputting data in SPI format

If the above picture isn't showing up then use the link belo ...
  Topic: Prolem with SPI frame Sync mode on PIC24FJ128GA010 #inc
geolover

Replies: 0
Views: 3717

PostForum: General CCS C Discussion   Posted: Wed Mar 16, 2011 5:52 pm   Subject: Prolem with SPI frame Sync mode on PIC24FJ128GA010 #inc
Hello everyone!

I'm trying to initialise a spi interface as frame sync master and spi master(i.e, outputting both frame sync pulse and free-running serial clock). However, my problem is that alt ...
  Topic: software DDS
geolover

Replies: 8
Views: 13731

PostForum: General CCS C Discussion   Posted: Mon Mar 14, 2011 5:54 pm   Subject: software DDS
With any DDS work I have done the number of points in a full cycle is always a power of 2, generally 256 for crude 8-bit stuff, or 2^16 for fine (but slow)16-bit stuff. It is basically the length of ...
  Topic: software DDS
geolover

Replies: 8
Views: 13731

PostForum: General CCS C Discussion   Posted: Mon Mar 14, 2011 4:50 pm   Subject: software DDS
If the 480 points is over one sine wave, you really only need to calculate 120 points( first 90*)...
it's a 'cheat' I found on the web called 'magic sinewaves'.....years ago...
Well, I got enough pr ...
  Topic: software DDS
geolover

Replies: 8
Views: 13731

PostForum: General CCS C Discussion   Posted: Mon Mar 14, 2011 2:35 pm   Subject: software DDS
Hello!

I want to implement a software DDS with a PIC and a DAC chip.

I know the standard procedure involves generate phase first then put phase into a sin function.

However, when trying to ge ...
  Topic: SPI Slave read problem with PIC24FJ128GA010
geolover

Replies: 3
Views: 8052

PostForum: General CCS C Discussion   Posted: Sun Mar 13, 2011 1:32 pm   Subject: SPI Slave read problem with PIC24FJ128GA010
Thank you! Problem was solved after putting 1ms delay after before spi1 begin to write data out.

However, in my ADC datasheet, it says the device shifts data out on the falling edge and the use sh ...
  Topic: SPI Slave read problem with PIC24FJ128GA010
geolover

Replies: 3
Views: 8052

PostForum: General CCS C Discussion   Posted: Fri Mar 11, 2011 8:34 am   Subject: SPI Slave read problem with PIC24FJ128GA010
Hi! I'm using a PIC24FJ128GA010 to interface with an ADC.

The PIC is using SPI slave is used to read from the ADC. The serial clock of both ADC and PIC is provided by a free-running external clock ...
  Topic: How can I write 16-bit in SPI with a PI24FJ?
geolover

Replies: 4
Views: 8855

PostForum: General CCS C Discussion   Posted: Fri Feb 25, 2011 8:56 am   Subject: How can I write 16-bit in SPI with a PI24FJ?
is there a way that I could get the PIC simply sending 16-bit data over the SPI without sending 8-bit data twice with SPI set to 8 bit mode?
Yes, by writing to the PIC24 SFR registers directly. You h ...
  Topic: How can I write 16-bit in SPI with a PI24FJ?
geolover

Replies: 4
Views: 8855

PostForum: General CCS C Discussion   Posted: Wed Feb 23, 2011 6:47 am   Subject: How can I write 16-bit in SPI with a PI24FJ?
I used a PIC24FJ128GA010 for my sensor project, I found that CCS compiler is able to set the SPI to 16-bit mode, however, spi_write command can only write 8-bit data, is there a way that I could get t ...
  Topic: USB data acquisition with Explore 16
geolover

Replies: 2
Views: 5599

PostForum: General CCS C Discussion   Posted: Tue Feb 15, 2011 4:58 am   Subject: USB data acquisition with Explore 16
Hello! A little bit update! I find my problem, it seems there is a type mismatch: i send out binary data from PIC24FJ but print out hex number on USB, do you think that might be the cause of problem?
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group