Author |
Message |
Topic: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
vascotech88
Replies: 40
Views: 69082
|
Forum: General CCS C Discussion Posted: Mon Jan 17, 2011 7:16 pm Subject: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
It works!!! It was the incorrect lines! Thank you so much!!
I will not forget again :p |
Topic: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
vascotech88
Replies: 40
Views: 69082
|
Forum: General CCS C Discussion Posted: Mon Jan 17, 2011 6:15 pm Subject: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
Ok, i will change and see what will happen.
Thank you so much! |
Topic: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
vascotech88
Replies: 40
Views: 69082
|
Forum: General CCS C Discussion Posted: Mon Jan 17, 2011 6:10 pm Subject: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
Now i am sure of nothing :S :S
I can still invert the pins... not easy but the quantity of 0ohm resistors will give a help :/
Are you sure that they are incorrect? Actually i was checking a desi ... |
Topic: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
vascotech88
Replies: 40
Views: 69082
|
Forum: General CCS C Discussion Posted: Mon Jan 17, 2011 6:01 pm Subject: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
Are u sure? Because according to the picture:
http://circuits.datasheetdir.com/335/MMA7455L-circuits.jpg
It looks ok... The pin 13 of the mma is the SDA/SDI/SDO and its connected to the SDA/SDI/ ... |
Topic: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
vascotech88
Replies: 40
Views: 69082
|
Forum: General CCS C Discussion Posted: Mon Jan 17, 2011 5:43 pm Subject: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
For SPI connections:
Pin 14 of the PIC connects to pin 14 of the MMA
Pin 15 of the PIC connects to pin 13 of the MMA
Pin 16 of the PIC connects to pin 12 of the MMA
For chip selects:
Accelerome ... |
Topic: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
vascotech88
Replies: 40
Views: 69082
|
Forum: General CCS C Discussion Posted: Mon Jan 17, 2011 5:34 pm Subject: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
I'm dead.... :( |
Topic: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
vascotech88
Replies: 40
Views: 69082
|
Forum: General CCS C Discussion Posted: Mon Jan 17, 2011 5:26 pm Subject: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
Aha... i didn't notice that... But that will make the PIC to not work, i mean, only the SPI module?? Because i have other stuff working in the PIC: rs232, leds, external interrupts, timer 0 and timer ... |
Topic: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
vascotech88
Replies: 40
Views: 69082
|
Forum: General CCS C Discussion Posted: Mon Jan 17, 2011 5:16 pm Subject: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
I will read some Erratas from microchip, maybe i will find some bug in the PIC spi...
Or check if the CS lines are driven correctly. |
Topic: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
vascotech88
Replies: 40
Views: 69082
|
Forum: General CCS C Discussion Posted: Mon Jan 17, 2011 5:11 pm Subject: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
Somethimes there is problem due to the USB noise.
I just unplugged all stuff from the USBs and i only have the laptop on battery and nothing connected to it (using only wireless to comunicate to th ... |
Topic: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
vascotech88
Replies: 40
Views: 69082
|
Forum: General CCS C Discussion Posted: Mon Jan 17, 2011 5:06 pm Subject: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
Both PIC and MMA7455 have the 3.3V from the regulator |
Topic: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
vascotech88
Replies: 40
Views: 69082
|
Forum: General CCS C Discussion Posted: Mon Jan 17, 2011 5:05 pm Subject: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
And the power supply circuit.
> 5V are from the USB
> VCC and VCC_PIC are the same (there are ICSP jumpers in other schematic page)
> C14 is near the PIC
http://i52.tinypic.com/160ctbp. ... |
Topic: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
vascotech88
Replies: 40
Views: 69082
|
Forum: General CCS C Discussion Posted: Mon Jan 17, 2011 5:00 pm Subject: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
Here is the picture of the board (this photo is older, because now it have 'through-hole' stuff soldered. But u can see the accelerometers and the smds
Is programmed by ICSP
http://i55.tinypic.c ... |
Topic: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
vascotech88
Replies: 40
Views: 69082
|
Forum: General CCS C Discussion Posted: Mon Jan 17, 2011 4:57 pm Subject: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
Damn... I have this project to do for wednesday and i am stuck in this...
I tried with the delays above, without, i checked all lines and its seems that i have all connections ok from the accelerom ... |
Topic: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
vascotech88
Replies: 40
Views: 69082
|
Forum: General CCS C Discussion Posted: Mon Jan 17, 2011 4:51 pm Subject: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
I changed your code a little bit to add the 3 accelerometers:
void accel_select(unsigned int8 n, unsigned int8 enable)
{
if(enable==1)
{
if(n==1) ... |
Topic: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
vascotech88
Replies: 40
Views: 69082
|
Forum: General CCS C Discussion Posted: Mon Jan 17, 2011 4:48 pm Subject: SPI Accelerometer (Freescale MMA7455L) and 16F886 |
SORRY!!!
The pins of the accelerometer are:
14-SCK
13-SDI
12-SDO |
|