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


Groups > sci.electronics.design > #382821

Re: MPLAB build dies (linker prob)

From "P E Schoen" <paul@pstech-inc.com>
Newsgroups sci.electronics.design
Subject Re: MPLAB build dies (linker prob)
Date 2015-10-26 17:06 -0400
Organization A noiseless patient Spider
Message-ID <n0m4gj$6mc$1@dont-email.me> (permalink)
References (1 earlier) <n0f63h$j8h$1@dont-email.me> <lUQWx.115281$756.50945@fx20.iad> <MPG.3095fbfede500089989d4b@news.eternal-september.org> <2IkXx.2096$0G6.1807@fx17.iad> <n0l5u5$lsh$1@speranza.aioe.org>

Show all headers | View raw


"Martin Brown"  wrote in message news:n0l5u5$lsh$1@speranza.aioe.org...

> On 26/10/2015 08:34, Robert Baer wrote:
>>    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.

That is very true. The processor that has been for some reason pre-chosen 
does not have the ability to read its own code space, so a table look-up is 
the only way to do it. The calling routine can increment the address to get 
sequential reads of 8 bit waveform data which presumably would wrap around 
at some number of samples to produce a recurrent pattern, or perhaps this is 
meant only to produce a burst of a certain period of time.

The calling routine gets the amplitude value in the W register, and then 
there must be some way to produce an analog signal from this value. The most 
common method for a PIC is PWM, and the 16F648A has a 10 bit PWM module, 
although only 8 bits are available. Depending on the frequency of the 
generated waveform (or time between transitions), there needs to be a 
carrier PWM frequency selected which might further limit the resolution to 
less than 8 bits. The PWM output will need to be filtered to remove most of 
the carrier frequency components but also allow faithful reproduction of the 
waveform transitions.

A better way to implement an arbitrary waveform generator may be by means of 
an EEPROM and a DAC, as well as a binary counter to select sequential 
addresses for the waveform. The processor can supply the clock signal to 
determine the frequency, and a reset line to adjust the phase.

Paul 

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