M S

Serial Communications with Accelerometer / STAR board

Discussion created by M S on Apr 22, 2008
Latest reply on May 22, 2008 by Jyrki Maki-Turja
Good day,

I am looking for help in the area of serial communication with a 3-axis accelerometer.
And I apologize if this is a newbie question.

I have this:
http://www.freescale.com/files/sensors/doc/fact_sheet/STARBOARDFS.pdf

And I see this documentation:
http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=RD3112MMA7260Q
http://www.freescale.com/files/abstract/event/MMA7260QPK.html
http://www.freescale.com/files/sensors/doc/app_note/AN3112.pdf
http://www.freescale.com/files/sensors/doc/app_note/AN3107.pdf
http://www.freescale.com/files/sensors/doc/fact_sheet/MMA7260QFS.pdf
http://www.freescale.com/files/sensors/doc/data_sheet/MMA7260Q.pdf

MMA7260Q: 3-Axis Low g Accelerometer
MC86HC908KX8: 8-bit Microcontroller
RD3112MMA7260Q: STAR Board

And I see this:
http://forums.freescale.com/freescale/board/message?board.id=8BITCOMM&message.id=1409
which might help later.
(But I also could not find the minitriax01g.asm source code it referenced.)

My big thing is getting information over the RS232 connection.
I've connected using a DB9 connector, and I have used the PC demo program/software found on the CD, and it seems to work fine.
(though didn't find the link online for it off hand, as referenced in the STAR board sheet)

But I cannot seem to get raw data, such as in hyperterminal.
I don't have any serial configuration information that works.
I've tried with different baud rates & generally 8 data bits, no parity bits, 1 stop bit, and no flow control (on port COM4, same connection where the demo works).

This is probably the information I could use. What settings do I have to use to communicate over serial?

Basically, I'm hooking this up to a TS-7250 board w/ Linux environment, and pass raw data through it to a console.

Also...

So can it stream raw data out to a terminal?
If so, what is the format of the data?

This would be most ideal.

Or does the device have to be polled to produce output?


Thank you.

Outcomes