Hi all,
I am trying to use a example from a Microchip Ap note and don't remember enough about it to get into a chip.
The ap note is 715 and is an example of using a 'f84 to read an accelerometer. I want to just put in the code and work with the sensor before I reinvent the wheel.
Here is the rub. The code is in the ap note as a listing. I cut it from the .pdf started to remove the line numbers and such so that I could use it through my EPIC.
Is there an easier way? I don't care to disect and rewrite 16 pages of code just to see how the sensor operates.
I realize that this has little to do with PicPro, but I have always had a problem interpreting Microchip's ap notes for this very reason. It doesn't take me long to get confused jumping between 2 or 3 different languages (Parallax, PBP, and Microchip).
A small example of what I'm talking about:
00B6 0097 00305 movwf DIV0
00B7 2165 00306 call Div32x16 ;ANS1,ANS0 =
00B8 0919 00307 comf ANS0,W ; [K*(ZXactual-T1X)]/T2actual
00B9 3E01 00308 addlw 0x01 ;The result will be a signed 8-bit #
00BA 00AD 00309 movwf XAccel
00BB 00310 DoYCalc
Thanks for any advise.
Mark
Bookmarks