RD3112MMA7260QSW.exe codes

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

RD3112MMA7260QSW.exe codes

3,215 Views
lemon
Contributor I

Good day,

Does anyone know where I can find at least some of the code used in the TRIAX Accelerometer demo program for the RD3112MMA7260Q demo board? Or part of it related with a data exchange via RS232! I want to use this board directly in my system, but don't know about RS232 data exchange protocol (data format, data rate etc) and cannot find it in a documentation on CD and freescale web site! Really exists RD3112MMA7260QSW.exe but it is as "black box". Please help because in an opposite case this board will be not usefull for me...

Labels (1)
0 Kudos
Reply
2 Replies

1,039 Views
ok2ucx
Contributor IV

Hi,

copied from minitriax01g.asm source code available from freescale webpages:

; MiniTriax01g.asm  23May05  
; ----------------------   

; At RESET
; ========
; A: if PushButton pressed for <3s, runs most recent Application 1-3 (pointed to by FLASH byte NApp)
; B: if PushButton pressed for >3s, beeps for 1s and then runs FreeFall
; C: if PushButton not pressed, starts communication with PC at 38,400 bauds and...
;  - If PushButton presssed after Reset and before Handshake,
;     then goes into Sample Mode (X&amp;Y 100x/s 40.96s)
;  - Handshake= waits for 'R' then responds with 'N' ('M' for &lt;TRIAX06) and beeps once
;  - once Handshake established, waits for one of the following
;    'V': sends 6 bytes = 'x',Xval,'y',Yval,'z',Zval
;    'F': sends 2050 bytes = 'A', Zval x 2048, 'Z' (2048 readings in 1s)
;    'G': sends 2050 bytes = 'A', Yval x 2048, 'Z' (2048 readings in 1s)
;    'H': sends 2050 bytes = 'A', Xval x 2048, 'Z' (2048 readings in 1s)
;    'K': sends 9 calibration bytes = 'X',Xoff,Xmax,'Y',Yoff,Ymax,'Z',Zoff,Zmax
;    'k': waits for 'k' + 6 cal bytes (Xoff,Xmax,Yoff,Ymax,Zoff,Zmax) ---&gt; flash
;    '0': runs App0 (FreeFall)
;    '1': runs App1 (Shock Detection); remembers App1 as last App
;    '2': runs App2 (Anti-Theft); remembers App2 as last App
;    '3': runs App3 (Battery Saver); remembers App3 as last App
;    'E': waits for AdrH & AdrL and returns EEPROM content at that address
;    'W': waits for AdrH & AdrL &amp; Data and stores byte at that address

Hope it help, regards,

Pavel, ok2ucx

0 Kudos
Reply

1,039 Views
lemon
Contributor I

Thank you, Pavel!

Best regards,

Stanislav

0 Kudos
Reply