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 28 matches
CCS Forum Index
Author Message
  Topic: IR bootloader - possible? Programming via IR
anestho

Replies: 3
Views: 4241

PostForum: General CCS C Discussion   Posted: Mon Oct 08, 2007 11:09 am   Subject: IR bootloader - possible? Programming via IR
Will I need to have a Rx and Tx lines on the receiver end? I only need to communicate 1 way from PC to receiver, via IR. Otherwise, I will need to use another pin to Tx using a IR LED.
  Topic: IR bootloader - possible? Programming via IR
anestho

Replies: 3
Views: 4241

PostForum: General CCS C Discussion   Posted: Sat Oct 06, 2007 7:00 am   Subject: IR bootloader - possible? Programming via IR
Hi, after searching the web, I can't seem to find any bootloaders that allow programming via IR serial RS232 type format. Would it just involve putting an IR sensor on the line that would be used for ...
  Topic: Reading floating number from a channel
anestho

Replies: 1
Views: 3125

PostForum: General CCS C Discussion   Posted: Tue Oct 02, 2007 3:26 pm   Subject: Reading floating number from a channel
You can't acquire a float number. ADC is 10 bits, so 0 to 1023. You can scale it anyway you want, but the max will be 1024 steps.
  Topic: Varying delay longer than 255?
anestho

Replies: 5
Views: 13862

PostForum: General CCS C Discussion   Posted: Wed Sep 19, 2007 9:03 pm   Subject: Varying delay longer than 255?
I have version 3.249. I need 1 us increments or at least 4 us increments from 1000 to 2000 using a variable.

Your code for long_delay_us increments in 253 us and is used to generate delays in ms. ...
  Topic: Varying delay longer than 255?
anestho

Replies: 5
Views: 13862

PostForum: General CCS C Discussion   Posted: Wed Sep 19, 2007 8:48 pm   Subject: Varying delay longer than 255?
I tried using this routine with delay_us instead, but it doesn't work.

void long_delay_us(long count)
{
long k;
for(k = 0; k < count; k++)
{
delay_u ...
  Topic: i need to gen the 50HZ frq using TIMER0\1
anestho

Replies: 3
Views: 4916

PostForum: General CCS C Discussion   Posted: Tue Sep 18, 2007 4:07 am   Subject: i need to gen the 50HZ frq using TIMER0\1
Using a timer interrupt, you can generate a 50Hz square wave NOT sine.
  Topic: Fast multiply without hardware multiplier
anestho

Replies: 10
Views: 12195

PostForum: General CCS C Discussion   Posted: Sun Sep 09, 2007 7:07 pm   Subject: Fast multiply without hardware multiplier
I eliminated the clrf for the H_byte and L_byte since I clear them above, and its duplicate code in .lst

I also reduced the instruction count by using W for one of the arguments.

CAN someone wit ...
  Topic: Fast multiply without hardware multiplier
anestho

Replies: 10
Views: 12195

PostForum: General CCS C Discussion   Posted: Sun Sep 09, 2007 7:02 pm   Subject: Fast multiply without hardware multiplier
Here is what I am using now. Still need to test it, but it compiles.


// Begin Multiplier Routine
int16 mult8x8(int8 mulcnd, int8 mulplr) // 35 instruction cycles = 0.5 x 35 = 17us ...
  Topic: Fast multiply without hardware multiplier
anestho

Replies: 10
Views: 12195

PostForum: General CCS C Discussion   Posted: Sun Sep 09, 2007 6:53 pm   Subject: Fast multiply without hardware multiplier
I got it to compile finally. Mistake was using STATUS, CARRY instead of STATUS,0.

Will report if it works.
  Topic: Fast multiply without hardware multiplier
anestho

Replies: 10
Views: 12195

PostForum: General CCS C Discussion   Posted: Sun Sep 09, 2007 6:01 pm   Subject: Fast multiply without hardware multiplier
This does the same thing as:

uns16 operator* _multM8_8( uns8 arg1, char W)
{
uns16 rval = 0;
Carry = 0;
#define addRR(rval,arg,bit) if(arg&((uns8 ...
  Topic: Fast multiply without hardware multiplier
anestho

Replies: 10
Views: 12195

PostForum: General CCS C Discussion   Posted: Sun Sep 09, 2007 5:54 pm   Subject: Fast multiply without hardware multiplier
Thanks, PCM _programmer;

Here is what I found


;***************************************************************************
;** time efficient multiplication 8 bit x 8 bit = 16 bit (unsig ...
  Topic: Fast multiply without hardware multiplier
anestho

Replies: 10
Views: 12195

PostForum: General CCS C Discussion   Posted: Sun Sep 09, 2007 1:45 pm   Subject: Fast multiply without hardware multiplier
Hi,

I was reading the thread below:

http://www.ccsinfo.com/forum/viewtopic.php?t=6131&highlight=fast+multiplication
I know there is a function _mul (x,y) where x and y is 8 bit and the res ...
  Topic: need some help about static variables
anestho

Replies: 4
Views: 4393

PostForum: General CCS C Discussion   Posted: Wed Sep 05, 2007 5:11 am   Subject: need some help about static variables
What is the actual question here???? Why not try it and see? ;)
  Topic: Switching from CC5x to CCS C compiler
anestho

Replies: 3
Views: 4404

PostForum: General CCS C Discussion   Posted: Wed Sep 05, 2007 4:38 am   Subject: Switching from CC5x to CCS C compiler
Hi,

I really like the feature rich CCS compiler, but I can't find a quick equivalent for the .low8, .high8 extensions. In CC5x, these allow you to read or write the MSB or LSB of a 16 bit word. I ...
  Topic: How can I simulate "count" in pic basic pro with C
anestho

Replies: 7
Views: 8939

PostForum: General CCS C Discussion   Posted: Thu Aug 30, 2007 6:46 pm   Subject: How can I simulate "count" in pic basic pro with C
I think that branching and goto's require 2 cycles, while everything else is 1 cycle.

Cycles can only apply to ASM not C. An "if" statement may be 3 ASM instructions or 10, depending on ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group