Jump to content

coding a LFO


julienvoirin
 Share

Recommended Posts

Hi julienvoirin,

to get the BMP is a relatively trivial task; if you're working with a master, the current version of the clockBox is already implementing everything. I did some slave-extensions to the code as well.

To generate a square or saw waveform should be no prob: you just have to set up a timer (or use the relevant functions in the clockBox example) and change the form appropriately.

Generating a sinus wave in C - however sounds like trouble to me, because (as you surely know), there are no highLevel mathmatical functions on the PIC. So I guess you have to find some ASM-optimized code for this (MB SID? MB FM?).

Dunno if something helpful can be found in the lib; but I'm no friend of this lib anyway, because it blows up your code dramatically - and I'm not sure if it's as efficient as it should be.

Hope this helps

best,

Michael

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...