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: Concatenate "0b" to an 11 signed bit?
onanieo

Replies: 8
Views: 11920

PostForum: General CCS C Discussion   Posted: Fri Nov 09, 2007 6:36 pm   Subject: Concatenate "0b" to an 11 signed bit?
Thanks.

We're looking at the codes now. He used 18F6722 and we're using PIC 16F877A I don't know how different it would be if we're using a different pic.
  Topic: Concatenate "0b" to an 11 signed bit?
onanieo

Replies: 8
Views: 11920

PostForum: General CCS C Discussion   Posted: Fri Nov 09, 2007 5:35 pm   Subject: Concatenate "0b" to an 11 signed bit?
HM55B Compass Module

http://www.hobbyengineering.com/H2112.html

it gives out a 22 bit measurement....streaming...(after booting up the module..etc)
  Topic: Concatenate "0b" to an 11 signed bit?
onanieo

Replies: 8
Views: 11920

PostForum: General CCS C Discussion   Posted: Fri Nov 09, 2007 5:27 pm   Subject: onanieo
the 22 bit data is coming from a device module..compass module. it outputs 22 bits. so I save it into a variable: dataXY then i want to divide it into two vars...
first half for dataX and other ha ...
  Topic: Concatenate "0b" to an 11 signed bit?
onanieo

Replies: 8
Views: 11920

PostForum: General CCS C Discussion   Posted: Fri Nov 09, 2007 2:34 pm   Subject: Concatenate "0b" to an 11 signed bit?
So after I change it to int32 from char, do I still have to concatenate "0b" to the 11 bits or will it be treated as binary?
  Topic: Concatenate "0b" to an 11 signed bit?
onanieo

Replies: 8
Views: 11920

PostForum: General CCS C Discussion   Posted: Fri Nov 09, 2007 2:07 pm   Subject: Concatenate "0b" to an 11 signed bit?
How do you concatenate '0b' to a signed 11-bit number??

What I'm trying to do is this calculate atan2(dataY, dataX)

char dataXY; dataXY has 22 bits from a device module output
then I divided da ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group