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: Spi write functions return too late
adi1133

Replies: 7
Views: 15275

PostForum: General CCS C Discussion   Posted: Thu Aug 09, 2012 10:26 am   Subject: Spi write functions return too late
Thank you for the fast response, your response is working as intended ,indeed a selectable option for this would be nice.
I guess this works for i2c too, since it uses the same SSP hardware module.
...
  Topic: Spi write functions return too late
adi1133

Replies: 7
Views: 15275

PostForum: General CCS C Discussion   Posted: Thu Aug 09, 2012 9:52 am   Subject: Spi write functions return too late
I want to use hardware spi, I only need to write, I want to use to dump the data into the write buffer and then go on with the main program without waiting to do the full write before resuming. Is the ...
  Topic: Newbie Help w/ TMR0
adi1133

Replies: 4
Views: 5488

PostForum: General CCS C Discussion   Posted: Sun Dec 11, 2011 5:17 pm   Subject: Newbie Help w/ TMR0
An interrupt is triggered when timer0 overflows (after 255).
You dont allow it to rise to 255 because you set it to 50 each time in the while loop.

Remove "set_timer0(50);" from the loop ...
  Topic: What is the best way to trigger an interrupt after X ms ?
adi1133

Replies: 7
Views: 9875

PostForum: General CCS C Discussion   Posted: Thu Dec 30, 2010 8:51 pm   Subject: What is the best way to trigger an interrupt after X ms ?
I use this to stop a motor, I want to change the interrupt timing during runtime, I do not use sleep and I only want to interrupt once, not every x period of time.
  Topic: What is the best way to trigger an interrupt after X ms ?
adi1133

Replies: 7
Views: 9875

PostForum: General CCS C Discussion   Posted: Thu Dec 30, 2010 8:27 pm   Subject: What is the best way to trigger an interrupt after X ms ?
Is there a better built-in function or some other alternative to this ?
I just think my code is too bulky for such a simple feature
  Topic: What is the best way to trigger an interrupt after X ms ?
adi1133

Replies: 7
Views: 9875

PostForum: General CCS C Discussion   Posted: Thu Dec 30, 2010 5:55 pm   Subject: What is the best way to trigger an interrupt after X ms ?
I want to trigger an interrupt after X ms.
I currently use this code, is there a better or "proper" way to do it ?

int16 time; //ms
int t1count=0;
int t1count_end;
int16 t1time;
int1 ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group