Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #382728

Re: OT: MPLAB build dies (linker prob)

From Martin Brown <|||newspam|||@nezumi.demon.co.uk>
Newsgroups sci.electronics.design
Subject Re: OT: MPLAB build dies (linker prob)
Date 2015-10-26 12:22 +0000
Organization Aioe.org NNTP Server
Message-ID <n0l5u5$lsh$1@speranza.aioe.org> (permalink)
References <yhDWx.79926$pF6.30543@fx06.iad> <n0f63h$j8h$1@dont-email.me> <lUQWx.115281$756.50945@fx20.iad> <MPG.3095fbfede500089989d4b@news.eternal-september.org> <2IkXx.2096$0G6.1807@fx17.iad>

Show all headers | View raw


On 26/10/2015 08:34, Robert Baer wrote:
> M Philbrook wrote:
>> In article<lUQWx.115281$756.50945@fx20.iad>, robertbaer@localnet.com
>> says...
>>>
>>>> If you are still using the PIC16F648A you have only 4k or 4096 words
>>>> (14
>>>> bits) of flash memory, which ends at 0xfff. Your last tab5 data starts
>>>> beyond the physical memory at 0x1508 and extends an additional
>>>> 0x1907 to
>>>> an end address of 2E0F. A memory with addresses to 3FFF would be 16k.
>>>>
>>>> Again, please let us know what you are trying to do.
>>>>
>>>> HTH
>>>>
>>>> Paul
>>>     Would like to have 5 tables filled with 1K RETLW<data>.
>>>     To linearly access using a pointer from 0 to 1023, one needs at
>>> least
>>> 8 instructions for a call (or equivalent after a call to them).

Seems like you are using the wrong choice of chip then since your lookup 
table is already larger than available program memory.

Choices are either 3x 1024 or a different PIC with more code space.

>>>     I guess, after subtracting out necessary code space from 4096
>>> locations, i might have 3840 locations or so.
>>>     That would leave me 768 data points per table,which is better than a
>>> kick in the head.
>>>
>>>     If i assume i can have 3900 locations for data, that gives me 780
>>> data points per data table; add 8 each for code in the tables would take
>>> 3940 leaving 156 locations for other support code.
>>>
>>>     Possible...

You need to have one routine to access the table(s) efficiently and 
possibly a routine to return the next sample very efficiently.

>>   Do you need all 12bits in each word?
>> if not, you could condense the table space by
>> bit stuffing.
>>    You would need to calculate the index of course to
>> get the correct starting index word and bit group with in that
>> word, that would give you more space.
>>
>>   Just a thought really...
>>
>> Jamie
>>
>    Yes, but..
>    How would one go about reading one or two "random" locations?

You shouldn't be reading random locations if you are doing an arbirary 
waveform generator - the next sample is deterministic.

-- 
Regards,
Martin Brown

Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

OT: MPLAB build dies (linker prob) Robert Baer <robertbaer@localnet.com> - 2015-10-23 20:54 -0700
  Re: OT: MPLAB build dies (linker prob) "P E Schoen" <paul@pstech-inc.com> - 2015-10-24 01:25 -0400
    Re: OT: MPLAB build dies (linker prob) Robert Baer <robertbaer@localnet.com> - 2015-10-24 11:43 -0700
      Re: OT: MPLAB build dies (linker prob) Martin Riddle <martin_ridd@verizon.net> - 2015-10-24 15:19 -0400
    Re: OT: MPLAB build dies (linker prob) Robert Baer <robertbaer@localnet.com> - 2015-10-26 00:27 -0800
  Re: OT: MPLAB build dies (linker prob) "P E Schoen" <paul@pstech-inc.com> - 2015-10-24 01:50 -0400
    Re: OT: MPLAB build dies (linker prob) Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2015-10-24 11:07 +0300
    Re: OT: MPLAB build dies (linker prob) Robert Baer <robertbaer@localnet.com> - 2015-10-24 12:22 -0700
      Re: MPLAB build dies (linker prob) "P E Schoen" <paul@pstech-inc.com> - 2015-10-24 17:14 -0400
        Re: MPLAB build dies (linker prob) Robert Baer <robertbaer@localnet.com> - 2015-10-26 00:30 -0800
      Re: OT: MPLAB build dies (linker prob) M Philbrook <jamie_ka1lpa@charter.net> - 2015-10-24 21:35 -0400
        Re: OT: MPLAB build dies (linker prob) Robert Baer <robertbaer@localnet.com> - 2015-10-26 00:34 -0800
          Re: OT: MPLAB build dies (linker prob) Martin Brown <|||newspam|||@nezumi.demon.co.uk> - 2015-10-26 12:22 +0000
            Re: MPLAB build dies (linker prob) "P E Schoen" <paul@pstech-inc.com> - 2015-10-26 17:06 -0400
          Re: OT: MPLAB build dies (linker prob) M Philbrook <jamie_ka1lpa@charter.net> - 2015-10-26 20:31 -0500
            Re: MPLAB build dies (linker prob) "P E Schoen" <paul@pstech-inc.com> - 2015-10-26 21:15 -0400
              Re: MPLAB build dies (linker prob) M Philbrook <jamie_ka1lpa@charter.net> - 2015-10-26 21:35 -0500
  Re: OT: MPLAB build dies (linker prob) rickman <gnuarm@gmail.com> - 2015-10-27 03:07 -0400

csiph-web