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 5 matches
CCS Forum Index
Author Message
  Topic: Fast Math in Interrupts
[email protected]

Replies: 4
Views: 4681

PostForum: General CCS C Discussion   Posted: Thu Jul 09, 2009 6:46 am   Subject: I solved it!!
The multiplicand value will range from .055 to .388.


I solved this by first multiplying the multiplicand .055 - .388 by 65536. The result is a 16 bit integer. This is the main.

Then in the ...
  Topic: Fast Math in Interrupts
[email protected]

Replies: 4
Views: 4681

PostForum: General CCS C Discussion   Posted: Tue Jul 07, 2009 2:28 pm   Subject: Fast Math in Interrupts
I need a fast math function to be used inside an Interrupt.

I need to do this.

Int
(read timer 3 value)
Calculate a % of timer 3 that is between 5 and 40% of timer 3.

So you would think I w ...
  Topic: SPI works with 1 slave but not with 5
[email protected]

Replies: 4
Views: 5593

PostForum: General CCS C Discussion   Posted: Sun Apr 19, 2009 7:04 pm   Subject: Thank You Mark at CCS
I called Mark at CCS after several hours of troubleshooting.

Here is the culprit.

setup_spi(SPI_MASTER | SPI_L_TO_H | SPI_CLK_DIV_16 | SPI_XMIT_L_TO_H );

I was not aware of the SPI_XMIT_L_TO_ ...
  Topic: SPI works with 1 slave but not with 5
[email protected]

Replies: 4
Views: 5593

PostForum: General CCS C Discussion   Posted: Wed Apr 15, 2009 7:06 pm   Subject: SPI works with 1 slave but not with 5
I have an applicaiton that uses an SPI master 18F4685 and 5 SPI slaves 18F2523.

I have the master and 1 slave working. I add the other pcb to the spi bus, this board has the 4 other pics that are ...
  Topic: Help parsing a string
[email protected]

Replies: 1
Views: 3044

PostForum: General CCS C Discussion   Posted: Fri Apr 03, 2009 8:27 pm   Subject: Help parsing a string
I have a project that has an SDCARD. I have a FAT file system. I need to open a text file and read in some values.

I have all the file stuff working and I can read in strings, and I can parse the ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group