[GreenKeys] Minimal DSP TU Working!

Gerry Block gblock at sbcglobal.net
Sat Mar 19 14:00:24 EDT 2022


You are braver than I. Cube is a good tool to ensure initialization and deal with the clock. 
I have been involved with the f4 since it issued.  Pretty bulletproof.  
Gerry. 

Sent from my iPhone

> On Mar 18, 2022, at 11:37 PM, gil baudot.net <gil at baudot.net> wrote:
> 
> 
> Yes, bringing up baby.  Frustrating and fun.
> 
> I have done a fair bit of code on F3 and F0 parts, but the F4 is new to me as is dsp stuff.  I am using stm std-periph-lib (SPL) with some bare-metal sprinkled in, and don't use cube or hal.  I am loving visual studio code (the one open-source product and really fine bit of software from some programming folks at microsoft).  Just a makefile for gcc and some bash scripts as needed.  
> 
> Six months ago I dumped windows and all other microsoft stuff and have been on POP-OS linux (ubuntu-based), with open-source apps.  I am loving linux as well.  I have mint/cinnamon on another machine -- also nice.
> 
> gil
> From: Gerry Block <gblock at sbcglobal.net>
> Sent: Friday, March 18, 2022 10:57 PM
> To: gil baudot.net <gil at baudot.net>
> Cc: harold at w6iwi.org <harold at w6iwi.org>; greenkeys at mailman.qth.net <greenkeys at mailman.qth.net>
> Subject: Re: [GreenKeys] Minimal DSP TU Working!
>  
> Gil I am working on something non rtty  related using stm32f4.  Highly recommended.  Using azure rtos and cube.  It seems just as time consuming and complicated as it ever was to bring up a bare board - complete with tool bugs etc. 
> Gerry
> 
> Sent from my iPhone
> 
>>> On Mar 18, 2022, at 10:15 PM, gil baudot.net <gil at baudot.net> wrote:
>>> 
>> 
>> Hi Harold:
>> 
>> That dsp-tu is a great idea, and looks like a fun bit of coding.  I am currently playing with an stm32f4 part to see if I can figure out the cmsis-dsp library for some filtering and such.  I think someone said something about a rabbit hole -- it does indeed seem to consume a fair bit of time.
>> 
>> gil
>> 
>> From: greenkeys-bounces at mailman.qth.net <greenkeys-bounces at mailman.qth.net> on behalf of Harold Hallikainen via GreenKeys <greenkeys at mailman.qth.net>
>> Sent: Friday, March 18, 2022 7:44 AM
>> To: steve bennett <raleigh_ranger at yahoo.com>
>> Cc: greenkeys at mailman.qth.net <greenkeys at mailman.qth.net>
>> Subject: Re: [GreenKeys] Minimal DSP TU Working!
>>  
>> They did not have any DSP classes when I was in school long ago. In my
>> work, I worked with DSP consultants who made the chips do what I needed. I
>> then communicated with the chips over SPI for control. I am now trying to
>> learn some DSP. The TU seems like a good learning experience. With the
>> biquad code I found online, implementing biquad filters is pretty easy.
>> The code provides an easy way to initialize the filter and then a short
>> function to run on each sample. A lot of DSP stuff uses DMA ping pong
>> buffers and then processes the data in batches. In my TU, I am doing
>> everything on a sample by sample basis. The system uses a timer to
>> generate an 80 kHz PWM output. Every 10 cycles of that timer (8 kHz), an
>> ADC sample is pulled, the ADC restarted for the next sample, then the
>> sample run through the DSP code. I will be adding code to set a pin high
>> at the start of the DSP code and low on the way out so I can see how much
>> processor time is being taken.
>> 
>> This project is one of many, so at times it is slow going.
>> 
>> Harold
>> 
>> 
>> On Fri, March 18, 2022 6:13 am, steve bennett wrote:
>> >  Harold,
>> > Â  I took a DSP class in college. I wrote some code to process signals off
>> > line.How do you write code that works in real time?I'm sure entire books
>> > have been written on the subject so it would be hard to answerin a single
>> > email.
>> > -Steve
>> >     On Friday, March 18, 2022, 12:30:09 AM EDT, Harold Hallikainen via
>> > GreenKeys <greenkeys at mailman.qth.net> wrote:
>> >
>> >  I'm using Microchip MPLAB-X for a PIC32MZ microcontroller. The compiler
>> > is
>> > a microchip version of gcc.
>> >
>> > The biquad C code is attached.
>> >
>> > Harold
>> >
>> >
>> > On Thu, March 17, 2022 9:01 pm, brad at bfayette.com wrote:
>> >> Can you tell us what your dev environment is, and which compiler? Also,
>> >> I
>> >> am interested in the biquad class. Thanks!
>> >>
>> >> Regards,
>> >> Brad Fayette
>> >> Blessed are the geeks, for they shall inherit the earth.
>> >> Sent from my MEK6800D1.
>> >>
>> >> Sent with [ProtonMail](https://protonmail.com/) secure
>> >> email.______________________________________________________________
>> >> GreenKeys mailing list
>> >> Home: http://mailman.qth.net/mailman/listinfo/greenkeys
>> >> Help: http://mailman.qth.net/mmfaq.htm
>> >> Post: mailto:GreenKeys at mailman.qth.net
>> >>
>> >>>>> Jordan Spencer Cunningham's GreenKeys Search Tool:
>> >>>>> https://teletype.net/gksearch
>> >>>>> 2002-to-present greenkeys archive:
>> >>>>> http://mailman.qth.net/pipermail/greenkeys/
>> >>>>> 1998-to-2001 greenkeys archive:
>> >>>>> http://mailman.qth.net/archive/greenkeys/greenkeys.html
>> >>>>> Randy Guttery's 2001-to-2009 GreenKeys Search Tool:
>> >>>>> http://comcents.com/tty/greenkeyssearch.html
>> >>
>> >> This list hosted by: http://www.qsl.net
>> >> Please help support this email list: http://www.qsl.net/donate.html
>> >> Message delivered to harold at w6iwi.org
>> >
>> >
>> > --
>> > FCC Rules Updated Daily at http://www.hallikainen.com
>> > Not sent from an
>> > iPhone.______________________________________________________________
>> > GreenKeys mailing list
>> > Home: http://mailman.qth.net/mailman/listinfo/greenkeys
>> > Help: http://mailman.qth.net/mmfaq.htm
>> > Post: mailto:GreenKeys at mailman.qth.net
>> >
>> >>>> Jordan Spencer Cunningham's GreenKeys Search Tool:
>> >>>> https://teletype.net/gksearch
>> >>>> 2002-to-present greenkeys archive:
>> >>>> http://mailman.qth.net/pipermail/greenkeys/
>> >>>> 1998-to-2001 greenkeys archive:
>> >>>> http://mailman.qth.net/archive/greenkeys/greenkeys.html
>> >>>> Randy Guttery's 2001-to-2009 GreenKeys Search Tool:
>> >>>> http://comcents.com/tty/greenkeyssearch.html
>> >
>> > This list hosted by: http://www.qsl.net
>> > Please help support this email list: http://www.qsl.net/donate.html
>> > Message delivered to raleigh_ranger at yahoo.com
>> 
>> 
>> -- 
>> https://w6iwi.org
>> ______________________________________________________________
>> GreenKeys mailing list
>> Home: http://mailman.qth.net/mailman/listinfo/greenkeys
>> Help: http://mailman.qth.net/mmfaq.htm
>> Post: mailto:GreenKeys at mailman.qth.net
>> 
>> >>> Jordan Spencer Cunningham's GreenKeys Search Tool: https://teletype.net/gksearch
>> >>> 2002-to-present greenkeys archive: http://mailman.qth.net/pipermail/greenkeys/
>> >>> 1998-to-2001 greenkeys archive: http://mailman.qth.net/archive/greenkeys/greenkeys.html
>> >>> Randy Guttery's 2001-to-2009 GreenKeys Search Tool: http://comcents.com/tty/greenkeyssearch.html
>> 
>> This list hosted by: http://www.qsl.net
>> Please help support this email list: http://www.qsl.net/donate.html
>> Message delivered to gil at baudot.net
>> ______________________________________________________________
>> GreenKeys mailing list
>> Home: http://mailman.qth.net/mailman/listinfo/greenkeys
>> Help: http://mailman.qth.net/mmfaq.htm
>> Post: mailto:GreenKeys at mailman.qth.net
>> 
>>>>> Jordan Spencer Cunningham's GreenKeys Search Tool: https://teletype.net/gksearch
>>>>> 2002-to-present greenkeys archive: http://mailman.qth.net/pipermail/greenkeys/
>>>>> 1998-to-2001 greenkeys archive: http://mailman.qth.net/archive/greenkeys/greenkeys.html
>>>>> Randy Guttery's 2001-to-2009 GreenKeys Search Tool: http://comcents.com/tty/greenkeyssearch.html
>> 
>> This list hosted by: http://www.qsl.net
>> Please help support this email list: http://www.qsl.net/donate.html
>> Message delivered to gblock at sbcglobal.net
> ______________________________________________________________
> GreenKeys mailing list
> Home: http://mailman.qth.net/mailman/listinfo/greenkeys
> Help: http://mailman.qth.net/mmfaq.htm
> Post: mailto:GreenKeys at mailman.qth.net
> 
>>>> Jordan Spencer Cunningham's GreenKeys Search Tool: https://teletype.net/gksearch
>>>> 2002-to-present greenkeys archive: http://mailman.qth.net/pipermail/greenkeys/
>>>> 1998-to-2001 greenkeys archive: http://mailman.qth.net/archive/greenkeys/greenkeys.html
>>>> Randy Guttery's 2001-to-2009 GreenKeys Search Tool: http://comcents.com/tty/greenkeyssearch.html
> 
> This list hosted by: http://www.qsl.net
> Please help support this email list: http://www.qsl.net/donate.html
> Message delivered to gblock at sbcglobal.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qth.net/pipermail/greenkeys/attachments/20220319/8b09188c/attachment.html>


More information about the GreenKeys mailing list