Searching \ for '[PIC]: CCS and Strange shift method,' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/devices.htm?key=pic
Search entire site for: 'CCS and Strange shift method,'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: CCS and Strange shift method,'
2002\07\28@234547 by Leandro

flavicon
face
Hello Greg and David

Thanks a lot for your reply!.

You are right!, they are unigned constant assigned to 'n'

there is an float 'u' variable, that was why i didn't realize that u had
nothing
to do with the variable but with an explicit declaration.

still i didn't know that 1u means 1 unsigned :)

so i replace it for

n=1;
u<<order;

and worked just fine!!

Thanks a lot for your help!!!!!!!!!!

see you

Leandro


At 21:01 26/07/02, you wrote:
>The '1u' is an unsigned constant. No float involved.
>Look at the code and I doubt there is any variable u
>declared.
>
> > {Original Message removed}

2002\07\29@005429 by Tal Dayan

flavicon
face
If I recall correctly,

  u<<order;

has no affect in C since the expression is not assigned to any variable nor
does it modify the variable
u.

Did you mean:

 u = (u << order);

Tal

> {Original Message removed}

2002\07\29@083652 by Michael Rigby-Jones

flavicon
face
{Quote hidden}

Neither of the above achieve the intent of the original expression (n = 1u
<< order).

If the 'u' is removed I would hope CCS would compile it perfectly.

Regards

Mike

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email listservspamKILLspammitvma.mit.edu with SET PICList DIGEST in the body


2002\07\29@132039 by Leandro

flavicon
face
Hi Tal Dayan

Ooops!, You're right!!!!

i forgot the =, now i replace:

u<<order    by  u<<=order  (as manual says :-)

and worked ok (or is what it seems).

BTW: anyone have a interger 8/16 bit FFT routine? (C code).
Since I'm using a floating point one that works but kill all my memory
space on the 16C73B, and I would prefer keep using this, because
the OTP are cheaper that the 16F876-20.

thanks a lot for you reply.

see you

Leandro

At 01:54 29/07/02, you wrote:
{Quote hidden}

> > {Original Message removed}

More... (looser matching)
- Last day of these posts
- In 2002 , 2003 only
- Today
- New search...