View previous topic :: View next topic |
Author |
Message |
dexter Guest
|
help with accelerometer |
Posted: Sun Jan 03, 2010 11:20 am |
|
|
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
|
|
Posted: Sun Jan 03, 2010 1:01 pm |
|
|
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
|
|
Posted: Sun Jan 03, 2010 3:02 pm |
|
|
Am also interested in this thread, as usual PCM to the rescue :o) |
|
|
dexter Guest
|
|
Posted: Tue Jan 05, 2010 10:07 am |
|
|
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
|
|
Posted: Tue Jan 05, 2010 12:20 pm |
|
|
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
|
|
Posted: Tue Jan 05, 2010 6:17 pm |
|
|
What's the crystal frequency on your PIC ?
Also post your compiler version. |
|
|
dexter Guest
|
|
Posted: Wed Jan 06, 2010 9:40 am |
|
|
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 |
|
|
|