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

help with accelerometer

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
dexter
Guest







help with accelerometer
PostPosted: Sun Jan 03, 2010 11:20 am     Reply with quote

Hhello everyone,
I've been trying to interface an accelerometer to 16f877. The accelerometer gives PWM output and I am planning to setup both the CCP modules to read the two axes value. (x and y) but I'm confused as I'm new to the programming. Could anyone please help me here??
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Jan 03, 2010 1:01 pm     Reply with quote

On a question like this, always post the manufacturer and part number
of the chip that you want help with. Always post your PIC.
If you have a question about code, then post your compiler version.
logical



Joined: 21 Dec 2009
Posts: 57
Location: SouthPort, UK

View user's profile Send private message Visit poster's website

PostPosted: Sun Jan 03, 2010 3:02 pm     Reply with quote

Am also interested in this thread, as usual PCM to the rescue :o)
dexter
Guest







PostPosted: Tue Jan 05, 2010 10:07 am     Reply with quote

The IC I'm using is MEMSIC 2125 from parallax. I'm planning to interface it to 16f877A, to the CCP modules.
logical



Joined: 21 Dec 2009
Posts: 57
Location: SouthPort, UK

View user's profile Send private message Visit poster's website

PostPosted: Tue Jan 05, 2010 12:20 pm     Reply with quote

Hey Dexter, fire up Picc, if you hit the F1 Key, type CCP in the search field, will show you everything you need along with some examples, quite an easy thing to do, if memory serves, if you are using the Pic Wizard, make sure you specify what you want to use the CCP ports for first.

Hope this helps.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Jan 05, 2010 6:17 pm     Reply with quote

What's the crystal frequency on your PIC ?

Also post your compiler version.
dexter
Guest







PostPosted: Wed Jan 06, 2010 9:40 am     Reply with quote

Hey thanks a lot logical....I didn't get that idea before....and for PCM I'm using 4MHz clock and the compiler is CCS PICC 4.033
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group