Serial Communications with Accelerometer / STAR board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Serial Communications with Accelerometer / STAR board

1,398 Views
zenace33
Contributor I
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.
Labels (1)
0 Kudos
1 Reply

273 Views
Moulinex
Contributor I
Hello,
You need to send charachter 'V' then board will response with 6bytes of data.
 
Format is:
'X','datax','Y',datay,'Z',dataz
 (where X,Y,Z are ascii charachters and datax,datay,dataz are raw hex data)
 
btw. You need to have 38400 baudrate, no parity, 1 stop
 
 
If would like to know how to flash start demoboard!?
0 Kudos