AnsweredHot!Object module table example needed

Page: < 12 Showing page 2 of 2
Author
Jim Nickerson
User 452
  • Total Posts : 5254
  • Reward points : 0
  • Joined: 2003/11/07 12:35:10
  • Location: San Diego, CA
  • Status: offline
Re: Object module table example needed 2018/10/08 05:26:20 (permalink)
0
blinking page ( missing post )
#21
leadinglights
Super Member
  • Total Posts : 364
  • Reward points : 0
  • Joined: 2003/11/07 12:41:48
  • Status: offline
Re: Object module table example needed 2018/10/08 06:12:08 (permalink)
5 (1)
JANickerson
blinking page ( missing post )



One of my posts went missing and I assumed that it had been swallowed by a singularity.
 
Mike
 
p.s., I notice that myself and JANickerson joined on the same date - unless that is the beginning of prehistory.
 
post edited by leadinglights - 2018/10/08 06:15:44
#22
Jim Nickerson
User 452
  • Total Posts : 5254
  • Reward points : 0
  • Joined: 2003/11/07 12:35:10
  • Location: San Diego, CA
  • Status: offline
Re: Object module table example needed 2018/10/08 06:16:24 (permalink)
0
I stared one of your posts to get your score up over 10, maybe you will have better luck now.
#23
leadinglights
Super Member
  • Total Posts : 364
  • Reward points : 0
  • Joined: 2003/11/07 12:41:48
  • Status: offline
Re: Object module table example needed 2018/10/08 06:26:11 (permalink)
0
2003, days of innocence where all assembly code was absolute, command line was king and my little grey cells worked.
 
Mike
#24
dan1138
Super Member
  • Total Posts : 2838
  • Reward points : 0
  • Joined: 2007/02/21 23:04:16
  • Location: 0
  • Status: offline
Re: Object module table example needed 2018/10/08 19:41:40 (permalink)
0
@leadinglights,
 
The posters in this thread have spent more time whinging about the "issue" coding for PIC assembler in relocatable mode than just getting on with it and writing code that does what you asked for. It's not clear that what you asked for is what you need.
 
Attached is a demo project that does what you wanted with a separate ASM file for the acceleration table that builds in relocatable mode.
 
I admit that this code is really hard to comprehend because the implementation uses as much hardware built into the PIC16F1824 as possible. To that end the values in the acceleration table have been re-encoded to use less program space and a different table lookup method.
 
The pulse output used to step is implement using TIMER1, CCP1 and CCP2. This is tricky code and has only been tested with the MPLABX simulator. I do not have a PIC16F1824 to try it in the real thing.
 
Your performance may vary, an example only, please no wagering.
post edited by dan1138 - 2018/10/08 23:38:40
#25
1and0
Access is Denied
  • Total Posts : 8389
  • Reward points : 0
  • Joined: 2007/05/06 12:03:20
  • Location: Harry's Gray Matter
  • Status: offline
Re: Object module table example needed 2018/10/08 22:59:27 (permalink)
0
leadinglights
line 236 is 
         movlw MSTabTop - MSTab
 Should MSTabTop - MSTab be (MSTabTop - MSTab) ?? It was O.K. before

Just simply replace it with this
        movlw   low(MSTab)
        sublw   low(MSTabTop)

at the expense of one more instruction.
post edited by 1and0 - 2018/10/08 23:09:41
#26
leadinglights
Super Member
  • Total Posts : 364
  • Reward points : 0
  • Joined: 2003/11/07 12:41:48
  • Status: offline
Re: Object module table example needed 2018/10/09 01:48:34 (permalink)
0
@dan1138
Thanks for the example. I have had a quick look on my Chromebook but will have a good look when I get back to my real computer.
@1and0
Thanks for the snippet.
 
While searching for a dignity saving reason why I didn't understand the problem I came up with this.
 
 MPASM reports as many problems as it finds but MPLINK looks at chains and mostly stops at the first error. When I made a change that gave a different error I assumed that I had swapped one wrong interpretation for another. What had really happened (sometimes) is that i had fixed one problem and MPLINK and/or MPLAB was telling me about the next error it found.
 
Mike
 
 
#27
Page: < 12 Showing page 2 of 2
Jump to:
© 2018 APG vNext Commercial Version 4.5