Author |
Message |
Topic: Spi write functions return too late |
adi1133
Replies: 7
Views: 15275
|
Forum: 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
|
Forum: 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
|
Forum: 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
|
Forum: 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
|
Forum: 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
|
Forum: 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 ... |
|