Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Innovation distinguishes between a leader and a follower. -- Steve Jobs (1955-2011)


tech / sci.electronics.design / Fast simple microcontroller

SubjectAuthor
* Fast simple microcontrollerAnthony William Sloman
+- Re: Fast simple microcontrollerJohn Walliker
+- Re: Fast simple microcontrollerClive Arthur
+* Re: Fast simple microcontrollerDon Y
|`* Re: Fast simple microcontrollerAnthony William Sloman
| +* Re: Fast simple microcontrollerChris Jones
| |+* Re: Fast simple microcontrollerDon Y
| ||`* Re: Fast simple microcontrollerAnthony William Sloman
| || `* Re: Fast simple microcontrollerDon Y
| ||  +- Re: Fast simple microcontrollerAnthony William Sloman
| ||  `* Re: Fast simple microcontrollerJohn Walliker
| ||   +* Re: Fast simple microcontrollerDon Y
| ||   |`* Re: Fast simple microcontrollerJohn Walliker
| ||   | `* Re: Fast simple microcontrollerDon Y
| ||   |  `* Re: Fast simple microcontrollerTom Gardner
| ||   |   +* Re: Fast simple microcontrollerDon Y
| ||   |   |+* Re: Fast simple microcontrollerJohn Walliker
| ||   |   ||`- Re: Fast simple microcontrollerDon Y
| ||   |   |`* Re: Fast simple microcontrollerTom Gardner
| ||   |   | `- Re: Fast simple microcontrollerDon Y
| ||   |   +* Re: Fast simple microcontrollerEd Lee
| ||   |   |`- Re: Fast simple microcontrollerDon Y
| ||   |   `* Re: Fast simple microcontrollerClifford Heath
| ||   |    +* Re: Fast simple microcontrollerRick C
| ||   |    |+* Re: Fast simple microcontrollerAnthony William Sloman
| ||   |    ||+* Re: Fast simple microcontrollerMartin Brown
| ||   |    |||`* Re: Fast simple microcontrollerDon Y
| ||   |    ||| `* Re: Fast simple microcontrollerMartin Brown
| ||   |    |||  `- Re: Fast simple microcontrollerDon Y
| ||   |    ||`- Re: Fast simple microcontrollerRick C
| ||   |    |`* Re: Fast simple microcontrollerClifford Heath
| ||   |    | `- Re: Fast simple microcontrollerRick C
| ||   |    +* Re: Fast simple microcontrollerDon Y
| ||   |    |`* Re: Fast simple microcontrollerTom Gardner
| ||   |    | `- Re: Fast simple microcontrollerDon Y
| ||   |    `* Re: Fast simple microcontrollerTom Gardner
| ||   |     `* Re: Fast simple microcontrollerClifford Heath
| ||   |      +- Re: Fast simple microcontrollerTom Gardner
| ||   |      `- Re: Fast simple microcontrollerRick C
| ||   `- Re: Fast simple microcontrollerRick C
| |+- Re: Fast simple microcontrollerbitrex
| |`* Re: Fast simple microcontrollerAnthony William Sloman
| | +* Re: Fast simple microcontrollerClive Arthur
| | |+* Re: Fast simple microcontrollerDon Y
| | ||`* Re: Fast simple microcontrollerClive Arthur
| | || `- Re: Fast simple microcontrollerDon Y
| | |`* Re: Fast simple microcontrollerChris Jones
| | | +* Re: Fast simple microcontrollerClive Arthur
| | | |+- Re: Fast simple microcontrollerDon Y
| | | |`* Re: Fast simple microcontrollerChris Jones
| | | | `* Re: Fast simple microcontrollerRick C
| | | |  `* Re: Fast simple microcontrollerLasse Langwadt Christensen
| | | |   `- Re: Fast simple microcontrollerRick C
| | | +* Re: Fast simple microcontrollerEd Lee
| | | |+* Re: Fast simple microcontrollerRick C
| | | ||`* Re: Fast simple microcontrollerEd Lee
| | | || `* Re: Fast simple microcontrollerRick C
| | | ||  `* Re: Fast simple microcontrollerEd Lee
| | | ||   `* Re: Fast simple microcontrollerRick C
| | | ||    +* Re: Fast simple microcontrollerEd Lee
| | | ||    |`* Re: Fast simple microcontrollerRick C
| | | ||    | `* Re: Fast simple microcontrollerEd Lee
| | | ||    |  `* Re: Fast simple microcontrollerRick C
| | | ||    |   `* Re: Fast simple microcontrollerEd Lee
| | | ||    |    `* Re: Fast simple microcontrollerRick C
| | | ||    |     +- Re: Fast simple microcontrollerEd Lee
| | | ||    |     +- Re: Fast simple microcontrollerLasse Langwadt Christensen
| | | ||    |     +- Re: Fast simple microcontrollerEd Lee
| | | ||    |     +- Re: Fast simple microcontrollerEd Lee
| | | ||    |     +- Re: Fast simple microcontrollerRick C
| | | ||    |     +- Re: Fast simple microcontrollerEd Lee
| | | ||    |     +- Re: Fast simple microcontrollerRick C
| | | ||    |     +- Re: Fast simple microcontrollerEd Lee
| | | ||    |     +- Re: Fast simple microcontrollerRick C
| | | ||    |     +- Re: Fast simple microcontrollerEd Lee
| | | ||    |     +- Re: Fast simple microcontrollerAnthony William Sloman
| | | ||    |     +- Re: Fast simple microcontrollerRick C
| | | ||    |     +- Re: Fast simple microcontrollerEd Lee
| | | ||    |     +- Re: Fast simple microcontrollerRick C
| | | ||    |     +- Re: Fast simple microcontrollerEd Lee
| | | ||    |     +- Re: Fast simple microcontrollerLasse Langwadt Christensen
| | | ||    |     +- Re: Fast simple microcontrollerEd Lee
| | | ||    |     +- Re: Fast simple microcontrollerLasse Langwadt Christensen
| | | ||    |     +- Re: Fast simple microcontrollerEd Lee
| | | ||    |     +- Re: Fast simple microcontrollerwhit3rd
| | | ||    |     +- Re: Fast simple microcontrollerEd Lee
| | | ||    |     +- Re: Fast simple microcontrollerRick C
| | | ||    |     +- Re: Fast simple microcontrollerRick C
| | | ||    |     +* Re: Fast simple microcontrollerEd Lee
| | | ||    |     |`- Re: Fast simple microcontrollerPiotr Wyderski
| | | ||    |     +- Re: Fast simple microcontrollerRick C
| | | ||    |     +- Re: Fast simple microcontrollerRick C
| | | ||    |     +- Re: Fast simple microcontrollerEd Lee
| | | ||    |     +- Re: Fast simple microcontrollerEd Lee
| | | ||    |     +- Re: Fast simple microcontrollerRick C
| | | ||    |     +- Re: Fast simple microcontrollerEd Lee
| | | ||    |     +- Re: Fast simple microcontrollerLasse Langwadt Christensen
| | | ||    |     +- Re: Fast simple microcontrollerEd Lee
| | | ||    |     +- Re: Fast simple microcontrollerRick C
| | | ||    |     +* Re: Fast simple microcontrollerRick C
| | | ||    |     |`* Re: Fast simple microcontrollerPiotr Wyderski
| | | ||    |     +- Re: Fast simple microcontrollerLasse Langwadt Christensen
| | | ||    |     +- Re: Fast simple microcontrollerEd Lee
| | | ||    |     +- Re: Fast simple microcontrollerLasse Langwadt Christensen
| | | ||    |     +- Re: Fast simple microcontrollerEd Lee
| | | ||    |     `- Re: Fast simple microcontrollerRick C
| | | ||    `* Re: Fast simple microcontrollerRick C
| | | |`* Re: Fast simple microcontrollerPiotr Wyderski
| | | `- Re: Fast simple microcontrollerRick C
| | `* Re: Fast simple microcontrollerLasse Langwadt Christensen
| +* Re: Fast simple microcontrollerMichael Kellett
| `- Re: Fast simple microcontrollerpiglet
+* Re: Fast simple microcontrollerKlaus Vestergaard Kragelund
+* Re: Fast simple microcontrollerFred Bloggs
+* Re: Fast simple microcontrollerRick C
`- Re: Fast simple microcontrollerPiotr Wyderski

Pages:1234567
Fast simple microcontroller

<558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=66404&group=sci.electronics.design#66404

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:a37:8407:: with SMTP id g7mr3777136qkd.123.1625204036820;
Thu, 01 Jul 2021 22:33:56 -0700 (PDT)
X-Received: by 2002:ac8:4798:: with SMTP id k24mr3587944qtq.258.1625204036490;
Thu, 01 Jul 2021 22:33:56 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.electronics.design
Date: Thu, 1 Jul 2021 22:33:56 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=14.200.145.253; posting-account=SJ46pgoAAABuUDuHc5uDiXN30ATE-zi-
NNTP-Posting-Host: 14.200.145.253
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com>
Subject: Fast simple microcontroller
From: bill.slo...@ieee.org (Anthony William Sloman)
Injection-Date: Fri, 02 Jul 2021 05:33:56 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Anthony William Slom - Fri, 2 Jul 2021 05:33 UTC

I've been thinking about Timo's inverter, and it looks as if a micro-controller that offered a 100MHz clock rate would be fast enough to do a decent job of switching the Siliconix Si3440DV DMOSFet that I fancy.

I've found a PIC part that's fast enough, and pretty cheap, but it is designed for digital signal processing, which makes it more complicated than necessary. A nice, dumb but quick 8051 would be good enough.

Somebody is apparently offers a 600MHz part, but I want something cheap and simple - if fairly fast (but not that fast). Browsing element-14 threw up a few candidates, but I didn't find their search engine all that helpful.

Has anybody got a favourite part?

--
Bill Sloman, Sydney

Re: Fast simple microcontroller

<d42a428b-7917-4f83-8820-e2d8590b8c95n@googlegroups.com>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=66422&group=sci.electronics.design#66422

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:a05:620a:a18:: with SMTP id i24mr4646090qka.151.1625220869215;
Fri, 02 Jul 2021 03:14:29 -0700 (PDT)
X-Received: by 2002:a05:620a:805:: with SMTP id s5mr4688519qks.326.1625220869062;
Fri, 02 Jul 2021 03:14:29 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.electronics.design
Date: Fri, 2 Jul 2021 03:14:28 -0700 (PDT)
In-Reply-To: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:8b0:fb4e:0:0:de11:e:5410;
posting-account=de11ZAoAAACBQRb2jWnaIkHYK2q9mRvs
NNTP-Posting-Host: 2001:8b0:fb4e:0:0:de11:e:5410
References: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d42a428b-7917-4f83-8820-e2d8590b8c95n@googlegroups.com>
Subject: Re: Fast simple microcontroller
From: jrwalli...@gmail.com (John Walliker)
Injection-Date: Fri, 02 Jul 2021 10:14:29 +0000
Content-Type: text/plain; charset="UTF-8"
 by: John Walliker - Fri, 2 Jul 2021 10:14 UTC

On Friday, 2 July 2021 at 06:33:59 UTC+1, bill....@ieee.org wrote:
> I've been thinking about Timo's inverter, and it looks as if a micro-controller that offered a 100MHz clock rate would be fast enough to do a decent job of switching the Siliconix Si3440DV DMOSFet that I fancy.
>
> I've found a PIC part that's fast enough, and pretty cheap, but it is designed for digital signal processing, which makes it more complicated than necessary. A nice, dumb but quick 8051 would be good enough.
>
> Somebody is apparently offers a 600MHz part, but I want something cheap and simple - if fairly fast (but not that fast). Browsing element-14 threw up a few candidates, but I didn't find their search engine all that helpful.
>
> Has anybody got a favourite part?
The RP2040 looks very interesting. Price: 1 dollar.
Simple? Maybe not. Its definitely worth a look.
There is some stock around at the moment.

John

Re: Fast simple microcontroller

<sbmr3l$tcf$1@dont-email.me>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=66424&group=sci.electronics.design#66424

  copy link   Newsgroups: sci.electronics.design
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: cli...@nowaytoday.co.uk (Clive Arthur)
Newsgroups: sci.electronics.design
Subject: Re: Fast simple microcontroller
Date: Fri, 2 Jul 2021 11:51:31 +0100
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <sbmr3l$tcf$1@dont-email.me>
References: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com>
Reply-To: clive@nowaytoday.co.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 2 Jul 2021 10:51:33 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="9dc690d1fcf94f420df09b3006227c32";
logging-data="30095"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Hl/HYcmYv8Hw8CBq+UEV2PC+BniWl8zU="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:rl7foK+XnwMF7HqtSltsRzldEx8=
In-Reply-To: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com>
Content-Language: en-GB
 by: Clive Arthur - Fri, 2 Jul 2021 10:51 UTC

On 02/07/2021 06:33, Anthony William Sloman wrote:
> I've been thinking about Timo's inverter, and it looks as if a micro-controller that offered a 100MHz clock rate would be fast enough to do a decent job of switching the Siliconix Si3440DV DMOSFet that I fancy.
>
> I've found a PIC part that's fast enough, and pretty cheap, but it is designed for digital signal processing, which makes it more complicated than necessary. A nice, dumb but quick 8051 would be good enough.
>
> Somebody is apparently offers a 600MHz part, but I want something cheap and simple - if fairly fast (but not that fast). Browsing element-14 threw up a few candidates, but I didn't find their search engine all that helpful.
>
> Has anybody got a favourite part?
>

If you're thinking of the dsPIC uCs, they're basically PIC24s with a DSP
engine added, same instruction set, just extra ones for the DSP. I
don't think Microchip make a PIC24 which runs at 100MIPS like the newer
dsPICs, probably no point.

So, just use a dsPIC and ignore the DSP part. Some of them at least
have a very high resolution (up to 250ps) PWM, though I haven't used
that. And how can they do a 32/16 divide in six cycles? Voodoo.

--
Cheers
Clive

Re: Fast simple microcontroller

<sbmsdg$6l7$1@dont-email.me>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=66425&group=sci.electronics.design#66425

  copy link   Newsgroups: sci.electronics.design
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: blockedo...@foo.invalid (Don Y)
Newsgroups: sci.electronics.design
Subject: Re: Fast simple microcontroller
Date: Fri, 2 Jul 2021 04:13:38 -0700
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <sbmsdg$6l7$1@dont-email.me>
References: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 2 Jul 2021 11:13:52 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="9756fd2100c1fbf1b9fce0512e9fe633";
logging-data="6823"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19FislByoSJWKQRplvqqAa2"
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101
Thunderbird/52.1.1
Cancel-Lock: sha1:bmiZUjGbE26ExPXnDVYgfQFi7AE=
In-Reply-To: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com>
Content-Language: en-US
 by: Don Y - Fri, 2 Jul 2021 11:13 UTC

On 7/1/2021 10:33 PM, Anthony William Sloman wrote:
> I've been thinking about Timo's inverter, and it looks as if a
> micro-controller that offered a 100MHz clock rate would be fast enough to do
> a decent job of switching the Siliconix Si3440DV DMOSFet that I fancy.
>
> I've found a PIC part that's fast enough, and pretty cheap, but it is
> designed for digital signal processing, which makes it more complicated than
> necessary. A nice, dumb but quick 8051 would be good enough.
>
> Somebody is apparently offers a 600MHz part, but I want something cheap and
> simple - if fairly fast (but not that fast). Browsing element-14 threw up a
> few candidates, but I didn't find their search engine all that helpful.
>
> Has anybody got a favourite part?

That depends on what you want the MCU to *do*. If you are just trying to
implement a PWM in software, you could, instead, use an MCU with *hardware*
for that purpose (even if the software had to tweek the duty cycle from
one cycle to the next). If you want to be able to "talk" to it (i.e.,
to change it's current operating conditions), then you would have to decide
bandwidth requirements for that channel.

Be advised that many newer devices operate, internally, at a variety of
different clock rates. And, the relationship of activities happening
in one part of the SoC to those in other parts isn't often clear-cut.
E.g., you may be able to issue op-codes at a faster rate than you can
issue "I/O" commands (like "toggle DIO #2 OFF"). And, as the I/O
and "core" operate concurrently, the time when the DIO actually
toggles is skewed wrt the instruction stream (you can't casually
expect to observe the consequences of toggling it until you know
the I/O command has actually made its way through to the pins!)

I'm currently exploring candidates for a PoE PD controller, moving all
of the protocol into the MCU (trivial) as well as control over the
converter (*nontrivial* as you have to consider the potential for the
MCU to "crash" and apply 48VDC to your load!). Cost also being an
issue as using a COTS PD controller and bolting-on the additional
smarts represents a maximum cost metric against which to design
(assuming the real estate constraints can be met)

Re: Fast simple microcontroller

<8ef4a10c-0ab2-4b15-a7fb-674d54e7a789n@googlegroups.com>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=66426&group=sci.electronics.design#66426

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:a05:620a:802:: with SMTP id s2mr5511313qks.38.1625230600149;
Fri, 02 Jul 2021 05:56:40 -0700 (PDT)
X-Received: by 2002:ac8:1188:: with SMTP id d8mr4899162qtj.218.1625230599873;
Fri, 02 Jul 2021 05:56:39 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.electronics.design
Date: Fri, 2 Jul 2021 05:56:39 -0700 (PDT)
In-Reply-To: <sbmsdg$6l7$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=14.200.145.253; posting-account=SJ46pgoAAABuUDuHc5uDiXN30ATE-zi-
NNTP-Posting-Host: 14.200.145.253
References: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com> <sbmsdg$6l7$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <8ef4a10c-0ab2-4b15-a7fb-674d54e7a789n@googlegroups.com>
Subject: Re: Fast simple microcontroller
From: bill.slo...@ieee.org (Anthony William Sloman)
Injection-Date: Fri, 02 Jul 2021 12:56:40 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Anthony William Slom - Fri, 2 Jul 2021 12:56 UTC

On Friday, July 2, 2021 at 9:13:58 PM UTC+10, Don Y wrote:
> On 7/1/2021 10:33 PM, Anthony William Sloman wrote:
> > I've been thinking about Timo's inverter, and it looks as if a
> > micro-controller that offered a 100MHz clock rate would be fast enough to do
> > a decent job of switching the Siliconix Si3440DV DMOSFet that I fancy.
> >
> > I've found a PIC part that's fast enough, and pretty cheap, but it is
> > designed for digital signal processing, which makes it more complicated than
> > necessary. A nice, dumb but quick 8051 would be good enough.
> >
> > Somebody is apparently offers a 600MHz part, but I want something cheap and
> > simple - if fairly fast (but not that fast). Browsing element-14 threw up a
> > few candidates, but I didn't find their search engine all that helpful.
> >
> > Has anybody got a favourite part?

> That depends on what you want the MCU to *do*. If you are just trying to
> implement a PWM in software, you could, instead, use an MCU with *hardware*
> for that purpose (even if the software had to tweek the duty cycle from
> one cycle to the next). If you want to be able to "talk" to it (i.e.,
> to change it's current operating conditions), then you would have to decide
> bandwidth requirements for that channel.

The isn't even PWM. It's just got to produce two non-overlapping roughly 100kHz square waves.

The trick would be to look at the output of the inverter, and get the nominally 100kHz square wave to run exactly at the resonant frequency of the tank circuit (100kHz +/-17%), or very slightly slower.

Probably the easiest way to do that would be to sample the +/-2.5V output from a single turn wound onto the inverter transformer at 45, 135, 225 and 315 degrees. That's sampling at at up to to 468kHz, and the dsPIC33EP parts can do 12 bits at 500kHz.

If the frequency is just below resonance the 45 degree sample is going to be just bigger than 135 degree sample, and the 225 degree sample just lower than the 315 degree sample.

> Be advised that many newer devices operate, internally, at a variety of different clock rates.

The device wouldn't be doing very much, so that probably wouldn't be a problem.

--
Bill Sloman, Sydney

Re: Fast simple microcontroller

<qzEDI.443509$AK38.394645@fx04.ams4>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=66430&group=sci.electronics.design#66430

  copy link   Newsgroups: sci.electronics.design
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx04.ams4.POSTED!not-for-mail
Subject: Re: Fast simple microcontroller
Newsgroups: sci.electronics.design
References: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com>
<sbmsdg$6l7$1@dont-email.me>
<8ef4a10c-0ab2-4b15-a7fb-674d54e7a789n@googlegroups.com>
From: lugnut...@spam.yahoo.com (Chris Jones)
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.10.2
MIME-Version: 1.0
In-Reply-To: <8ef4a10c-0ab2-4b15-a7fb-674d54e7a789n@googlegroups.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-GB
Content-Transfer-Encoding: 7bit
Lines: 41
Message-ID: <qzEDI.443509$AK38.394645@fx04.ams4>
X-Complaints-To: abuse@usenet-news.net
NNTP-Posting-Date: Fri, 02 Jul 2021 13:32:06 UTC
Organization: usenet-news.net
Date: Fri, 2 Jul 2021 23:32:06 +1000
X-Received-Bytes: 3362
 by: Chris Jones - Fri, 2 Jul 2021 13:32 UTC

On 02/07/2021 22:56, Anthony William Sloman wrote:
> On Friday, July 2, 2021 at 9:13:58 PM UTC+10, Don Y wrote:
>> On 7/1/2021 10:33 PM, Anthony William Sloman wrote:
>>> I've been thinking about Timo's inverter, and it looks as if a
>>> micro-controller that offered a 100MHz clock rate would be fast enough to do
>>> a decent job of switching the Siliconix Si3440DV DMOSFet that I fancy.
>>>
>>> I've found a PIC part that's fast enough, and pretty cheap, but it is
>>> designed for digital signal processing, which makes it more complicated than
>>> necessary. A nice, dumb but quick 8051 would be good enough.
>>>
>>> Somebody is apparently offers a 600MHz part, but I want something cheap and
>>> simple - if fairly fast (but not that fast). Browsing element-14 threw up a
>>> few candidates, but I didn't find their search engine all that helpful.
>>>
>>> Has anybody got a favourite part?
>
>> That depends on what you want the MCU to *do*. If you are just trying to
>> implement a PWM in software, you could, instead, use an MCU with *hardware*
>> for that purpose (even if the software had to tweek the duty cycle from
>> one cycle to the next). If you want to be able to "talk" to it (i.e.,
>> to change it's current operating conditions), then you would have to decide
>> bandwidth requirements for that channel.
>
> The isn't even PWM. It's just got to produce two non-overlapping roughly 100kHz square waves.
>
> The trick would be to look at the output of the inverter, and get the nominally 100kHz square wave to run exactly at the resonant frequency of the tank circuit (100kHz +/-17%), or very slightly slower.
>
> Probably the easiest way to do that would be to sample the +/-2.5V output from a single turn wound onto the inverter transformer at 45, 135, 225 and 315 degrees. That's sampling at at up to to 468kHz, and the dsPIC33EP parts can do 12 bits at 500kHz.
>
> If the frequency is just below resonance the 45 degree sample is going to be just bigger than 135 degree sample, and the 225 degree sample just lower than the 315 degree sample.
>
>> Be advised that many newer devices operate, internally, at a variety of different clock rates.
>
> The device wouldn't be doing very much, so that probably wouldn't be a problem.
>

You'd probably be better off with a small cheap fpga. Some of them work
with open-source software now.

Re: Fast simple microcontroller

<sbn50q$2lh$1@dont-email.me>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=66431&group=sci.electronics.design#66431

  copy link   Newsgroups: sci.electronics.design
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: blockedo...@foo.invalid (Don Y)
Newsgroups: sci.electronics.design
Subject: Re: Fast simple microcontroller
Date: Fri, 2 Jul 2021 06:40:35 -0700
Organization: A noiseless patient Spider
Lines: 73
Message-ID: <sbn50q$2lh$1@dont-email.me>
References: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com>
<sbmsdg$6l7$1@dont-email.me>
<8ef4a10c-0ab2-4b15-a7fb-674d54e7a789n@googlegroups.com>
<qzEDI.443509$AK38.394645@fx04.ams4>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 2 Jul 2021 13:40:43 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="9756fd2100c1fbf1b9fce0512e9fe633";
logging-data="2737"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18caUa1Zql91OKRNJZb0b25"
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101
Thunderbird/52.1.1
Cancel-Lock: sha1:bpUTpkAIcR+mqFZHrSzXkJghf58=
In-Reply-To: <qzEDI.443509$AK38.394645@fx04.ams4>
Content-Language: en-US
 by: Don Y - Fri, 2 Jul 2021 13:40 UTC

On 7/2/2021 6:32 AM, Chris Jones wrote:
> On 02/07/2021 22:56, Anthony William Sloman wrote:
>> On Friday, July 2, 2021 at 9:13:58 PM UTC+10, Don Y wrote:
>>> On 7/1/2021 10:33 PM, Anthony William Sloman wrote:
>>>> I've been thinking about Timo's inverter, and it looks as if a
>>>> micro-controller that offered a 100MHz clock rate would be fast enough to do
>>>> a decent job of switching the Siliconix Si3440DV DMOSFet that I fancy.
>>>>
>>>> I've found a PIC part that's fast enough, and pretty cheap, but it is
>>>> designed for digital signal processing, which makes it more complicated than
>>>> necessary. A nice, dumb but quick 8051 would be good enough.
>>>>
>>>> Somebody is apparently offers a 600MHz part, but I want something cheap and
>>>> simple - if fairly fast (but not that fast). Browsing element-14 threw up a
>>>> few candidates, but I didn't find their search engine all that helpful.
>>>>
>>>> Has anybody got a favourite part?
>>
>>> That depends on what you want the MCU to *do*. If you are just trying to
>>> implement a PWM in software, you could, instead, use an MCU with *hardware*
>>> for that purpose (even if the software had to tweek the duty cycle from
>>> one cycle to the next). If you want to be able to "talk" to it (i.e.,
>>> to change it's current operating conditions), then you would have to decide
>>> bandwidth requirements for that channel.
>>
>> The isn't even PWM. It's just got to produce two non-overlapping roughly
>> 100kHz square waves.
>>
>> The trick would be to look at the output of the inverter, and get the
>> nominally 100kHz square wave to run exactly at the resonant frequency of the
>> tank circuit (100kHz +/-17%), or very slightly slower.
>>
>> Probably the easiest way to do that would be to sample the +/-2.5V output
>> from a single turn wound onto the inverter transformer at 45, 135, 225 and
>> 315 degrees. That's sampling at at up to to 468kHz, and the dsPIC33EP parts
>> can do 12 bits at 500kHz.

I suspect you could (?) lower the bandwidth requirement by sampling,
instead, at 45, 495 (360+135), 945 (720+225), etc. -- assuming the system
is stable over short time periods.

>> If the frequency is just below resonance the 45 degree sample is going to be
>> just bigger than 135 degree sample, and the 225 degree sample just lower than
>> the 315 degree sample.
>>
>>> Be advised that many newer devices operate, internally, at a variety of
>>> different clock rates.
>>
>> The device wouldn't be doing very much, so that probably wouldn't be a problem.

It's not how much it is doing as much as WHEN it is doing things.
There is an invisible skew between the instruction sequence and
the I/Os. I.e., "doing something" and then "checking the result"
can end up having the "check result" executing before the "doing
something" has actually made it out onto the pins.

> You'd probably be better off with a small cheap fpga. Some of them work with
> open-source software now.

+1

There are several MCU's that can meet the RT needs. But, you also have
to consider the possibility of the processor crashing or getting into a
loop that ignores some key feedback signal.

[There are MCUs that have some measures to minimize the ability of
a CPU crash screwing up "controls" -- one just has to hope they
REALLY work! :-/ ]

You might be able to kludge an error signal (over volt, over current, etc.)
onto the RESET pin and hope the processor doesn't misbehave entering
RESET.

Re: Fast simple microcontroller

<FeFDI.18601$tE1.2870@fx45.iad>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=66434&group=sci.electronics.design#66434

  copy link   Newsgroups: sci.electronics.design
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!4.us.feeder.erje.net!2.eu.feeder.erje.net!feeder.erje.net!news.uzoreto.com!feeder1.feed.usenet.farm!feed.usenet.farm!peer01.ams4!peer.am4.highwinds-media.com!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx45.iad.POSTED!not-for-mail
Subject: Re: Fast simple microcontroller
Newsgroups: sci.electronics.design
References: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com>
<sbmsdg$6l7$1@dont-email.me>
<8ef4a10c-0ab2-4b15-a7fb-674d54e7a789n@googlegroups.com>
<qzEDI.443509$AK38.394645@fx04.ams4>
From: use...@example.net (bitrex)
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
MIME-Version: 1.0
In-Reply-To: <qzEDI.443509$AK38.394645@fx04.ams4>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Lines: 66
Message-ID: <FeFDI.18601$tE1.2870@fx45.iad>
X-Complaints-To: abuse@frugalusenet.com
NNTP-Posting-Date: Fri, 02 Jul 2021 14:18:13 UTC
Organization: frugalusenet - www.frugalusenet.com
Date: Fri, 2 Jul 2021 10:18:16 -0400
X-Received-Bytes: 3896
 by: bitrex - Fri, 2 Jul 2021 14:18 UTC

On 7/2/2021 9:32 AM, Chris Jones wrote:
> On 02/07/2021 22:56, Anthony William Sloman wrote:
>> On Friday, July 2, 2021 at 9:13:58 PM UTC+10, Don Y wrote:
>>> On 7/1/2021 10:33 PM, Anthony William Sloman wrote:
>>>> I've been thinking about Timo's inverter, and it looks as if a
>>>> micro-controller that offered a 100MHz clock rate would be fast
>>>> enough to do
>>>> a decent job of switching the Siliconix Si3440DV DMOSFet that I fancy.
>>>>
>>>> I've found a PIC part that's fast enough, and pretty cheap, but it is
>>>> designed for digital signal processing, which makes it more
>>>> complicated than
>>>> necessary. A nice, dumb but quick 8051 would be good enough.
>>>>
>>>> Somebody is apparently offers a 600MHz part, but I want something
>>>> cheap and
>>>> simple - if fairly fast (but not that fast). Browsing element-14
>>>> threw up a
>>>> few candidates, but I didn't find their search engine all that helpful.
>>>>
>>>> Has anybody got a favourite part?
>>
>>> That depends on what you want the MCU to *do*. If you are just trying to
>>> implement a PWM in software, you could, instead, use an MCU with
>>> *hardware*
>>> for that purpose (even if the software had to tweek the duty cycle from
>>> one cycle to the next). If you want to be able to "talk" to it (i.e.,
>>> to change it's current operating conditions), then you would have to
>>> decide
>>> bandwidth requirements for that channel.
>>
>> The isn't even PWM. It's just got to produce two non-overlapping
>> roughly 100kHz square waves.
>>
>> The trick would be to look at the output of the inverter, and get the
>> nominally 100kHz square wave to run exactly at the resonant frequency
>> of the tank circuit (100kHz +/-17%), or very slightly slower.
>>
>> Probably the easiest way to do that  would be to sample the +/-2.5V
>> output from a single turn wound onto the inverter transformer at 45,
>> 135, 225 and 315 degrees. That's sampling at at up to to 468kHz, and
>> the dsPIC33EP parts can do 12 bits at 500kHz.
>>
>> If the frequency is just below resonance the 45 degree sample is going
>> to be just bigger than 135 degree sample, and the 225 degree sample
>> just lower than the 315 degree sample.
>>
>>> Be advised that many newer devices operate, internally, at a variety
>>> of  different clock rates.
>>
>> The device wouldn't be doing very much, so that probably wouldn't be a
>> problem.
>>
>
> You'd probably be better off with a small cheap fpga. Some of them work
> with open-source software now.
>
>

The GreenPAK series of SPLC are cheap and cheerful and (aside from a few
niggles) the designer software is very straightforward to use:

<https://www.dialog-semiconductor.com/greenpak-designer-software>

When you need to do high-speed glue logic on the cheap these are where
it's at

Re: Fast simple microcontroller

<2e6509e9-ba42-4ed3-b12f-5f199f9ed996n@googlegroups.com>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=66436&group=sci.electronics.design#66436

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:ac8:7f88:: with SMTP id z8mr69800qtj.296.1625236946241;
Fri, 02 Jul 2021 07:42:26 -0700 (PDT)
X-Received: by 2002:ac8:489a:: with SMTP id i26mr60208qtq.23.1625236946006;
Fri, 02 Jul 2021 07:42:26 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.electronics.design
Date: Fri, 2 Jul 2021 07:42:25 -0700 (PDT)
In-Reply-To: <qzEDI.443509$AK38.394645@fx04.ams4>
Injection-Info: google-groups.googlegroups.com; posting-host=14.200.145.253; posting-account=SJ46pgoAAABuUDuHc5uDiXN30ATE-zi-
NNTP-Posting-Host: 14.200.145.253
References: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com>
<sbmsdg$6l7$1@dont-email.me> <8ef4a10c-0ab2-4b15-a7fb-674d54e7a789n@googlegroups.com>
<qzEDI.443509$AK38.394645@fx04.ams4>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2e6509e9-ba42-4ed3-b12f-5f199f9ed996n@googlegroups.com>
Subject: Re: Fast simple microcontroller
From: bill.slo...@ieee.org (Anthony William Sloman)
Injection-Date: Fri, 02 Jul 2021 14:42:26 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Anthony William Slom - Fri, 2 Jul 2021 14:42 UTC

On Friday, July 2, 2021 at 11:32:12 PM UTC+10, Chris Jones wrote:
> On 02/07/2021 22:56, Anthony William Sloman wrote:
> > On Friday, July 2, 2021 at 9:13:58 PM UTC+10, Don Y wrote:
> >> On 7/1/2021 10:33 PM, Anthony William Sloman wrote:
> >>> I've been thinking about Timo's inverter, and it looks as if a
> >>> micro-controller that offered a 100MHz clock rate would be fast enough to do
> >>> a decent job of switching the Siliconix Si3440DV DMOSFet that I fancy..
> >>>
> >>> I've found a PIC part that's fast enough, and pretty cheap, but it is
> >>> designed for digital signal processing, which makes it more complicated than
> >>> necessary. A nice, dumb but quick 8051 would be good enough.
> >>>
> >>> Somebody is apparently offers a 600MHz part, but I want something cheap and
> >>> simple - if fairly fast (but not that fast). Browsing element-14 threw up a
> >>> few candidates, but I didn't find their search engine all that helpful.
> >>>
> >>> Has anybody got a favourite part?
> >
> >> That depends on what you want the MCU to *do*. If you are just trying to
> >> implement a PWM in software, you could, instead, use an MCU with *hardware*
> >> for that purpose (even if the software had to tweek the duty cycle from
> >> one cycle to the next). If you want to be able to "talk" to it (i.e.,
> >> to change it's current operating conditions), then you would have to decide
> >> bandwidth requirements for that channel.
> >
> > The isn't even PWM. It's just got to produce two non-overlapping roughly 100kHz square waves.
> >
> > The trick would be to look at the output of the inverter, and get the nominally 100kHz square wave to run exactly at the resonant frequency of the tank circuit (100kHz +/-17%), or very slightly slower.
> >
> > Probably the easiest way to do that would be to sample the +/-2.5V output from a single turn wound onto the inverter transformer at 45, 135, 225 and 315 degrees. That's sampling at at up to to 468kHz, and the dsPIC33EP parts can do 12 bits at 500kHz.
> >
> > If the frequency is just below resonance the 45 degree sample is going to be just bigger than 135 degree sample, and the 225 degree sample just lower than the 315 degree sample.
> >
> >> Be advised that many newer devices operate, internally, at a variety of different clock rates.
> >
> > The device wouldn't be doing very much, so that probably wouldn't be a problem.
> >
> You'd probably be better off with a small cheap fpga. Some of them work
> with open-source software now.

But I wouldn't get the A/D converter thrown in, and I'd have to make my own 100MHz clock. I've been fond of programmable devices for a long time now - my 1996 paper used the (fairly rudimentrary) ICT PA7024 - but in this application a micro-controller would provide a lot of bang for very few bucks.

--
Bill Sloman, Sydney

Re: Fast simple microcontroller

<sbn9o5$5be$1@dont-email.me>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=66438&group=sci.electronics.design#66438

  copy link   Newsgroups: sci.electronics.design
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: cli...@nowaytoday.co.uk (Clive Arthur)
Newsgroups: sci.electronics.design
Subject: Re: Fast simple microcontroller
Date: Fri, 2 Jul 2021 16:01:23 +0100
Organization: A noiseless patient Spider
Lines: 53
Message-ID: <sbn9o5$5be$1@dont-email.me>
References: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com>
<sbmsdg$6l7$1@dont-email.me>
<8ef4a10c-0ab2-4b15-a7fb-674d54e7a789n@googlegroups.com>
<qzEDI.443509$AK38.394645@fx04.ams4>
<2e6509e9-ba42-4ed3-b12f-5f199f9ed996n@googlegroups.com>
Reply-To: clive@nowaytoday.co.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 2 Jul 2021 15:01:25 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="9dc690d1fcf94f420df09b3006227c32";
logging-data="5486"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/BDiyMtCruH7Jtl/WqX/cMq7XEZom9O9Y="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:3MFF+q10ad9zrcVKvMyLqw4kV+0=
In-Reply-To: <2e6509e9-ba42-4ed3-b12f-5f199f9ed996n@googlegroups.com>
Content-Language: en-GB
 by: Clive Arthur - Fri, 2 Jul 2021 15:01 UTC

On 02/07/2021 15:42, Anthony William Sloman wrote:
> On Friday, July 2, 2021 at 11:32:12 PM UTC+10, Chris Jones wrote:

<snipped>

>> You'd probably be better off with a small cheap fpga. Some of them work
>> with open-source software now.
>
> But I wouldn't get the A/D converter thrown in, and I'd have to make my own 100MHz clock. I've been fond of programmable devices for a long time now - my 1996 paper used the (fairly rudimentrary) ICT PA7024 - but in this application a micro-controller would provide a lot of bang for very few bucks.
>

The first thing I do for any hard real time control type project is code
some simple functions to use a spare UART as a diagnostics port plugged
in to an ANSI terminal emulator on a PC. TeraTerm works fine.

Then I use generally single key commands to dump things to the terminal,
adjust things, whatever. On a complicated project I may have several
menus focussed on different aspects. Here's one screen of about ten in
a current project...

Real Time Clock and Timer test Menu

Esc : Back

T : Read Time
D : Dump RTC chip
P : Show Timestamp Parameters

Clock frequency on J6 pin 1
0 : Off
1 : 100Hz
2 : 1kHz
3 : 10kHz
4 : 100kHz
5 : 1MHz

Pressing 'D' for example displays this...

RTC chip dump
00 : 17 55 14 05 02 07 21 00 00 00 00 00 00 00 00 C8
10 : 00 1E C0 00 08 00 00 00 00 00 00 00 00 02 00 14
20 : 40 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00...

And so on. I can't imagine the pain of not having this. In Bill's
system, you might press '<' or '>' to move the square wave slightly.
'A' might display the current ADC value. I just add stuff as it's
needed and remove stuff which is no longer useful.

But not in an FPGA.

--
Cheers
Clive

Re: Fast simple microcontroller

<080519c1-ff7b-4845-aa7c-a671200bc0d3n@googlegroups.com>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=66439&group=sci.electronics.design#66439

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:a37:591:: with SMTP id 139mr296370qkf.18.1625238163249; Fri, 02 Jul 2021 08:02:43 -0700 (PDT)
X-Received: by 2002:a37:dc82:: with SMTP id v124mr248001qki.492.1625238163022; Fri, 02 Jul 2021 08:02:43 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.electronics.design
Date: Fri, 2 Jul 2021 08:02:42 -0700 (PDT)
In-Reply-To: <sbn50q$2lh$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=14.200.145.253; posting-account=SJ46pgoAAABuUDuHc5uDiXN30ATE-zi-
NNTP-Posting-Host: 14.200.145.253
References: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com> <sbmsdg$6l7$1@dont-email.me> <8ef4a10c-0ab2-4b15-a7fb-674d54e7a789n@googlegroups.com> <qzEDI.443509$AK38.394645@fx04.ams4> <sbn50q$2lh$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <080519c1-ff7b-4845-aa7c-a671200bc0d3n@googlegroups.com>
Subject: Re: Fast simple microcontroller
From: bill.slo...@ieee.org (Anthony William Sloman)
Injection-Date: Fri, 02 Jul 2021 15:02:43 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 119
 by: Anthony William Slom - Fri, 2 Jul 2021 15:02 UTC

On Friday, July 2, 2021 at 11:40:49 PM UTC+10, Don Y wrote:
> On 7/2/2021 6:32 AM, Chris Jones wrote:
> > On 02/07/2021 22:56, Anthony William Sloman wrote:
> >> On Friday, July 2, 2021 at 9:13:58 PM UTC+10, Don Y wrote:
> >>> On 7/1/2021 10:33 PM, Anthony William Sloman wrote:
> >>>> I've been thinking about Timo's inverter, and it looks as if a
> >>>> micro-controller that offered a 100MHz clock rate would be fast enough to do
> >>>> a decent job of switching the Siliconix Si3440DV DMOSFet that I fancy.
> >>>>
> >>>> I've found a PIC part that's fast enough, and pretty cheap, but it is
> >>>> designed for digital signal processing, which makes it more complicated than
> >>>> necessary. A nice, dumb but quick 8051 would be good enough.
> >>>>
> >>>> Somebody is apparently offers a 600MHz part, but I want something cheap and
> >>>> simple - if fairly fast (but not that fast). Browsing element-14 threw up a
> >>>> few candidates, but I didn't find their search engine all that helpful.
> >>>>
> >>>> Has anybody got a favourite part?
> >>
> >>> That depends on what you want the MCU to *do*. If you are just trying to
> >>> implement a PWM in software, you could, instead, use an MCU with *hardware*
> >>> for that purpose (even if the software had to tweek the duty cycle from
> >>> one cycle to the next). If you want to be able to "talk" to it (i.e.,
> >>> to change it's current operating conditions), then you would have to decide
> >>> bandwidth requirements for that channel.
> >>
> >> The isn't even PWM. It's just got to produce two non-overlapping roughly
> >> 100kHz square waves.
> >>
> >> The trick would be to look at the output of the inverter, and get the
> >> nominally 100kHz square wave to run exactly at the resonant frequency of the
> >> tank circuit (100kHz +/-17%), or very slightly slower.
> >>
> >> Probably the easiest way to do that would be to sample the +/-2.5V output
> >> from a single turn wound onto the inverter transformer at 45, 135, 225 and
> >> 315 degrees. That's sampling at at up to to 468kHz, and the dsPIC33EP parts
> >> can do 12 bits at 500kHz.
>
> I suspect you could (?) lower the bandwidth requirement by sampling,
> instead, at 45, 495 (360+135), 945 (720+225), etc. -- assuming the system
> is stable over short time periods.

Of course you could. The resonant frequency is going to drift around a bit as the transformer core and the tank capacitor warm up, but that's going to be slow.

> >> If the frequency is just below resonance the 45 degree sample is going to be
> >> just bigger than 135 degree sample, and the 225 degree sample just lower than
> >> the 315 degree sample.
> >>
> >>> Be advised that many newer devices operate, internally, at a variety of
> >>> different clock rates.
> >>
> >> The device wouldn't be doing very much, so that probably wouldn't be a problem.
>
> It's not how much it is doing as much as WHEN it is doing things.
> There is an invisible skew between the instruction sequence and
> the I/Os. I.e., "doing something" and then "checking the result"
> can end up having the "check result" executing before the "doing
> something" has actually made it out onto the pins.

Not in this application. There's nothing "invisible" about the delay from the core to the peripherals - it should be detailed in the data sheet. I've worked with fast logic for quite long enough (some fifty years now - though some of the early stuff wasn't all that fast) to be conscious of the need to pay attention to that sort of delay.

> > You'd probably be better off with a small cheap fpga. Some of them work with open-source software now.
>
> +1

Wrong. Micro-controllers come with bits that I'd have to provide as well as the fpga. There are situations where an fpga would makes sense, but this isn't looking like one of them.

> There are several MCU's that can meet the RT needs. But, you also have
> to consider the possibility of the processor crashing or getting into a
> loop that ignores some key feedback signal.

Watchdog timer to force a reset?
> [There are MCUs that have some measures to minimize the ability of
> a CPU crash screwing up "controls" -- one just has to hope they
> REALLY work! :-/ ]
>
> You might be able to kludge an error signal (over volt, over current, etc..)
> onto the RESET pin and hope the processor doesn't misbehave entering
> RESET.

It's a pretty simple application. Like I said, the processor doesn't have to do much at all.

--
Bill Sloman, Sydney

Re: Fast simple microcontroller

<sbnc9r$f0g$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=66441&group=sci.electronics.design#66441

  copy link   Newsgroups: sci.electronics.design
Path: i2pn2.org!i2pn.org!aioe.org!jdavy/vlTkGgRG9Cu6a7dg.user.gioia.aioe.org.POSTED!not-for-mail
From: klausk...@hotmail.com (Klaus Vestergaard Kragelund)
Newsgroups: sci.electronics.design
Subject: Re: Fast simple microcontroller
Date: Fri, 2 Jul 2021 17:45:03 +0200
Organization: Aioe.org NNTP Server
Lines: 11
Message-ID: <sbnc9r$f0g$1@gioia.aioe.org>
References: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com>
NNTP-Posting-Host: jdavy/vlTkGgRG9Cu6a7dg.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Klaus Vestergaard Kr - Fri, 2 Jul 2021 15:45 UTC

On 02/07/2021 07.33, Anthony William Sloman wrote:
> I've been thinking about Timo's inverter, and it looks as if a micro-controller that offered a 100MHz clock rate would be fast enough to do a decent job of switching the Siliconix Si3440DV DMOSFet that I fancy.
>
I have been a little absent from SED the last couple of months, got a
consulting gig in parallel with my day job

Can you post a link to the Timo inverter?

Cheers

Klaus

Re: Fast simple microcontroller

<8118fc6d-71a1-4e64-8dff-878788b3f2c5n@googlegroups.com>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=66442&group=sci.electronics.design#66442

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:a05:620a:251:: with SMTP id q17mr430505qkn.369.1625241054298; Fri, 02 Jul 2021 08:50:54 -0700 (PDT)
X-Received: by 2002:a37:71c1:: with SMTP id m184mr430558qkc.367.1625241054149; Fri, 02 Jul 2021 08:50:54 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.dns-netz.com!news.freedyn.net!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!tr3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.electronics.design
Date: Fri, 2 Jul 2021 08:50:54 -0700 (PDT)
In-Reply-To: <2e6509e9-ba42-4ed3-b12f-5f199f9ed996n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=94.145.242.27; posting-account=mW5JKwkAAAAMyuWOVeLp8yffyAkVx0g7
NNTP-Posting-Host: 94.145.242.27
References: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com> <sbmsdg$6l7$1@dont-email.me> <8ef4a10c-0ab2-4b15-a7fb-674d54e7a789n@googlegroups.com> <qzEDI.443509$AK38.394645@fx04.ams4> <2e6509e9-ba42-4ed3-b12f-5f199f9ed996n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <8118fc6d-71a1-4e64-8dff-878788b3f2c5n@googlegroups.com>
Subject: Re: Fast simple microcontroller
From: langw...@fonz.dk (Lasse Langwadt Christensen)
Injection-Date: Fri, 02 Jul 2021 15:50:54 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 77
 by: Lasse Langwadt Chris - Fri, 2 Jul 2021 15:50 UTC

fredag den 2. juli 2021 kl. 16.42.29 UTC+2 skrev bill....@ieee.org:
> On Friday, July 2, 2021 at 11:32:12 PM UTC+10, Chris Jones wrote:
> > On 02/07/2021 22:56, Anthony William Sloman wrote:
> > > On Friday, July 2, 2021 at 9:13:58 PM UTC+10, Don Y wrote:
> > >> On 7/1/2021 10:33 PM, Anthony William Sloman wrote:
> > >>> I've been thinking about Timo's inverter, and it looks as if a
> > >>> micro-controller that offered a 100MHz clock rate would be fast enough to do
> > >>> a decent job of switching the Siliconix Si3440DV DMOSFet that I fancy.
> > >>>
> > >>> I've found a PIC part that's fast enough, and pretty cheap, but it is
> > >>> designed for digital signal processing, which makes it more complicated than
> > >>> necessary. A nice, dumb but quick 8051 would be good enough.
> > >>>
> > >>> Somebody is apparently offers a 600MHz part, but I want something cheap and
> > >>> simple - if fairly fast (but not that fast). Browsing element-14 threw up a
> > >>> few candidates, but I didn't find their search engine all that helpful.
> > >>>
> > >>> Has anybody got a favourite part?
> > >
> > >> That depends on what you want the MCU to *do*. If you are just trying to
> > >> implement a PWM in software, you could, instead, use an MCU with *hardware*
> > >> for that purpose (even if the software had to tweek the duty cycle from
> > >> one cycle to the next). If you want to be able to "talk" to it (i.e.,
> > >> to change it's current operating conditions), then you would have to decide
> > >> bandwidth requirements for that channel.
> > >
> > > The isn't even PWM. It's just got to produce two non-overlapping roughly 100kHz square waves.
> > >
> > > The trick would be to look at the output of the inverter, and get the nominally 100kHz square wave to run exactly at the resonant frequency of the tank circuit (100kHz +/-17%), or very slightly slower.
> > >
> > > Probably the easiest way to do that would be to sample the +/-2.5V output from a single turn wound onto the inverter transformer at 45, 135, 225 and 315 degrees. That's sampling at at up to to 468kHz, and the dsPIC33EP parts can do 12 bits at 500kHz.
> > >
> > > If the frequency is just below resonance the 45 degree sample is going to be just bigger than 135 degree sample, and the 225 degree sample just lower than the 315 degree sample.
> > >
> > >> Be advised that many newer devices operate, internally, at a variety of different clock rates.
> > >
> > > The device wouldn't be doing very much, so that probably wouldn't be a problem.
> > >
> > You'd probably be better off with a small cheap fpga. Some of them work
> > with open-source software now.
> But I wouldn't get the A/D converter thrown in, and I'd have to make my own 100MHz clock. I've been fond of programmable devices for a long time now - my 1996 paper used the (fairly rudimentrary) ICT PA7024 - but in this application a micro-controller would provide a lot of bang for very few bucks..
>

why do you need an A/D? can't just time the zero crossing? why 100Mhz?

that said, it is trivial to setup a complementary squarewave with dead time on an STM32 and trigger the ADC at specific points with the same timer. You can get a board for a few dollars (though maybe not at the moment)

Re: Fast simple microcontroller

<scOdnTCgWYOkoUL9nZ2dnUU78TPNnZ2d@giganews.com>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=66443&group=sci.electronics.design#66443

  copy link   Newsgroups: sci.electronics.design
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!border1.nntp.ams1.giganews.com!nntp.giganews.com!buffer1.nntp.ams1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Fri, 02 Jul 2021 11:18:01 -0500
Reply-To: mk@mkesc.co.uk
Subject: Re: Fast simple microcontroller
Newsgroups: sci.electronics.design
References: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com>
<sbmsdg$6l7$1@dont-email.me>
<8ef4a10c-0ab2-4b15-a7fb-674d54e7a789n@googlegroups.com>
From: mk...@mkesc.co.uk (Michael Kellett)
Date: Fri, 2 Jul 2021 17:18:00 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
MIME-Version: 1.0
In-Reply-To: <8ef4a10c-0ab2-4b15-a7fb-674d54e7a789n@googlegroups.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-GB
Content-Transfer-Encoding: 7bit
Message-ID: <scOdnTCgWYOkoUL9nZ2dnUU78TPNnZ2d@giganews.com>
Lines: 59
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-0RDxtWP5hDkhr2RQqQmiJuZmyi1fEUzkxbbFfy+Yb90UYDjuAgguv6CLKKjuzQanCh5vWgyta35YA5B!/lzdjvnRG1qB+Mb7Mfq/hX/s4MEGTpgtFNT7vZTuNmfWc3DE6XkopXDc6sSyGnH7yu7Es3cn32E7!rg==
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 4737
 by: Michael Kellett - Fri, 2 Jul 2021 16:18 UTC

On 02/07/2021 13:56, Anthony William Sloman wrote:
> On Friday, July 2, 2021 at 9:13:58 PM UTC+10, Don Y wrote:
>> On 7/1/2021 10:33 PM, Anthony William Sloman wrote:
>>> I've been thinking about Timo's inverter, and it looks as if a
>>> micro-controller that offered a 100MHz clock rate would be fast enough to do
>>> a decent job of switching the Siliconix Si3440DV DMOSFet that I fancy.
>>>
>>> I've found a PIC part that's fast enough, and pretty cheap, but it is
>>> designed for digital signal processing, which makes it more complicated than
>>> necessary. A nice, dumb but quick 8051 would be good enough.
>>>
>>> Somebody is apparently offers a 600MHz part, but I want something cheap and
>>> simple - if fairly fast (but not that fast). Browsing element-14 threw up a
>>> few candidates, but I didn't find their search engine all that helpful.
>>>
>>> Has anybody got a favourite part?
>
>> That depends on what you want the MCU to *do*. If you are just trying to
>> implement a PWM in software, you could, instead, use an MCU with *hardware*
>> for that purpose (even if the software had to tweek the duty cycle from
>> one cycle to the next). If you want to be able to "talk" to it (i.e.,
>> to change it's current operating conditions), then you would have to decide
>> bandwidth requirements for that channel.
>
> The isn't even PWM. It's just got to produce two non-overlapping roughly 100kHz square waves.
>
> The trick would be to look at the output of the inverter, and get the nominally 100kHz square wave to run exactly at the resonant frequency of the tank circuit (100kHz +/-17%), or very slightly slower.
>
> Probably the easiest way to do that would be to sample the +/-2.5V output from a single turn wound onto the inverter transformer at 45, 135, 225 and 315 degrees. That's sampling at at up to to 468kHz, and the dsPIC33EP parts can do 12 bits at 500kHz.
>
> If the frequency is just below resonance the 45 degree sample is going to be just bigger than 135 degree sample, and the 225 degree sample just lower than the 315 degree sample.
>
>> Be advised that many newer devices operate, internally, at a variety of different clock rates.
>
> The device wouldn't be doing very much, so that probably wouldn't be a problem.
>
Your biggest problem right now is finding a part that you can actually buy.
In normal times I'd have suggested an STM32Fxxxx part, there are chips
with multiple ADCs capable of > 2MHz sampling rates in small packages -
but the trick will be finding stock.
If you just want a cheapo development board then one of the Nucleo
boards from ST will do you nicely.
Farnell have 924 of the Nucleo F429ZI in stock (but no chips until 2022)
It's overkill for your job perhaps - but might be the best way to start
work.
If you just want to do it on paper I'd suggest you need to pick a
processor with at least 2 ADCs capable of the rate you need. You need a
fast clock to have fine enough control over the pulse generator
frequency. That's the easy route but perhaps not the most cost effective
if you care about production in volume.

It would be tempting to try an STM32G071 - Cortex M0 core, 64MHz, very
cheap, tiny packages which would (maybe) be just capable but make a
really nice (small and cheap) controller. Problem is finding any in less
than 6 months.

MK

Re: Fast simple microcontroller

<65636bc4-18d0-44e2-b93c-d89d961cf6fbn@googlegroups.com>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=66444&group=sci.electronics.design#66444

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:a05:6214:5098:: with SMTP id kk24mr263735qvb.26.1625242807406;
Fri, 02 Jul 2021 09:20:07 -0700 (PDT)
X-Received: by 2002:a05:622a:108:: with SMTP id u8mr499826qtw.326.1625242807205;
Fri, 02 Jul 2021 09:20:07 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.electronics.design
Date: Fri, 2 Jul 2021 09:20:06 -0700 (PDT)
In-Reply-To: <8118fc6d-71a1-4e64-8dff-878788b3f2c5n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=14.200.145.253; posting-account=SJ46pgoAAABuUDuHc5uDiXN30ATE-zi-
NNTP-Posting-Host: 14.200.145.253
References: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com>
<sbmsdg$6l7$1@dont-email.me> <8ef4a10c-0ab2-4b15-a7fb-674d54e7a789n@googlegroups.com>
<qzEDI.443509$AK38.394645@fx04.ams4> <2e6509e9-ba42-4ed3-b12f-5f199f9ed996n@googlegroups.com>
<8118fc6d-71a1-4e64-8dff-878788b3f2c5n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <65636bc4-18d0-44e2-b93c-d89d961cf6fbn@googlegroups.com>
Subject: Re: Fast simple microcontroller
From: bill.slo...@ieee.org (Anthony William Sloman)
Injection-Date: Fri, 02 Jul 2021 16:20:07 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Anthony William Slom - Fri, 2 Jul 2021 16:20 UTC

On Saturday, July 3, 2021 at 1:50:57 AM UTC+10, lang...@fonz.dk wrote:
> fredag den 2. juli 2021 kl. 16.42.29 UTC+2 skrev bill....@ieee.org:
> > On Friday, July 2, 2021 at 11:32:12 PM UTC+10, Chris Jones wrote:
> > > On 02/07/2021 22:56, Anthony William Sloman wrote:
> > > > On Friday, July 2, 2021 at 9:13:58 PM UTC+10, Don Y wrote:
> > > >> On 7/1/2021 10:33 PM, Anthony William Sloman wrote:
> > > >>> I've been thinking about Timo's inverter, and it looks as if a
> > > >>> micro-controller that offered a 100MHz clock rate would be fast enough to do
> > > >>> a decent job of switching the Siliconix Si3440DV DMOSFet that I fancy.
> > > >>>
> > > >>> I've found a PIC part that's fast enough, and pretty cheap, but it is
> > > >>> designed for digital signal processing, which makes it more complicated than
> > > >>> necessary. A nice, dumb but quick 8051 would be good enough.
> > > >>>
> > > >>> Somebody is apparently offers a 600MHz part, but I want something cheap and
> > > >>> simple - if fairly fast (but not that fast). Browsing element-14 threw up a
> > > >>> few candidates, but I didn't find their search engine all that helpful.
> > > >>>
> > > >>> Has anybody got a favourite part?
> > > >
> > > >> That depends on what you want the MCU to *do*. If you are just trying to
> > > >> implement a PWM in software, you could, instead, use an MCU with *hardware*
> > > >> for that purpose (even if the software had to tweek the duty cycle from
> > > >> one cycle to the next). If you want to be able to "talk" to it (i.e.,
> > > >> to change it's current operating conditions), then you would have to decide
> > > >> bandwidth requirements for that channel.
> > > >
> > > > The isn't even PWM. It's just got to produce two non-overlapping roughly 100kHz square waves.
> > > >
> > > > The trick would be to look at the output of the inverter, and get the nominally 100kHz square wave to run exactly at the resonant frequency of the tank circuit (100kHz +/-17%), or very slightly slower.
> > > >
> > > > Probably the easiest way to do that would be to sample the +/-2.5V output from a single turn wound onto the inverter transformer at 45, 135, 225 and 315 degrees. That's sampling at at up to to 468kHz, and the dsPIC33EP parts can do 12 bits at 500kHz.
> > > >
> > > > If the frequency is just below resonance the 45 degree sample is going to be just bigger than 135 degree sample, and the 225 degree sample just lower than the 315 degree sample.
> > > >
> > > >> Be advised that many newer devices operate, internally, at a variety of different clock rates.
> > > >
> > > > The device wouldn't be doing very much, so that probably wouldn't be a problem.
> > > >
> > > You'd probably be better off with a small cheap fpga. Some of them work
> > > with open-source software now.
>
> > But I wouldn't get the A/D converter thrown in, and I'd have to make my own 100MHz clock. I've been fond of programmable devices for a long time now - my 1996 paper used the (fairly rudimentrary) ICT PA7024 - but in this application a micro-controller would provide a lot of bang for very few bucks.
> >
> why do you need an A/D? can't just time the zero crossing? Why 100MHz?

The 100MHz comes from the fact that the Siliconix Si3440DV DMOSFet that I fancy has a maximum turn-on time of 15nsec and maxim off-time of 30nsec (if you can find half an amp of gate drive current to get the 8uC gate charge in and out) so 100MHz is fast enough for a pair of decent non-overlapping drive waveform, and with a 100MHz master clock you can fiddle the frequency around 100kHz in pretty small steps. You don't need to get it perfect.

Timing the zero-crossings wouldn't be helpful - if resonant tank is driven (in this application) at less than the resonant frequency you get a short period where nothing happens, so there might be a few more zero-crossings than you'd like. If the micro-controller has an A/D anyway, digitising a fraction of of the voltage across the tank circuit could let you look at the voltages where they were better behaved. There are other ways of doing it, but they all seem to need more components.
> that said, it is trivial to setup a complementary squarewave with dead time on an STM32 and trigger the ADC at specific points with the same timer. You can get a board for a few dollars (though maybe not at the moment).

The board is supposed to take in 24V and spit out +/200V. It's got two wound inductors on it. The board that came with STM32 on it wouldn't have that and would probably have a lot of less than useful bells and whistles. It's is supposed to electromagnetically quiet, and micro-processor boards aren't good for that.

--
Bill Sloman, Sydney

Re: Fast simple microcontroller

<sbng70$kv1$1@dont-email.me>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=66448&group=sci.electronics.design#66448

  copy link   Newsgroups: sci.electronics.design
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: blockedo...@foo.invalid (Don Y)
Newsgroups: sci.electronics.design
Subject: Re: Fast simple microcontroller
Date: Fri, 2 Jul 2021 09:51:46 -0700
Organization: A noiseless patient Spider
Lines: 84
Message-ID: <sbng70$kv1$1@dont-email.me>
References: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com>
<sbmsdg$6l7$1@dont-email.me>
<8ef4a10c-0ab2-4b15-a7fb-674d54e7a789n@googlegroups.com>
<qzEDI.443509$AK38.394645@fx04.ams4> <sbn50q$2lh$1@dont-email.me>
<080519c1-ff7b-4845-aa7c-a671200bc0d3n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 2 Jul 2021 16:51:44 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="9756fd2100c1fbf1b9fce0512e9fe633";
logging-data="21473"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+pPfd0/4E0CXLWz7UIs6Fq"
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101
Thunderbird/52.1.1
Cancel-Lock: sha1:VtpnKjhY6O9rTcKV3cpfJ0z9qHk=
In-Reply-To: <080519c1-ff7b-4845-aa7c-a671200bc0d3n@googlegroups.com>
Content-Language: en-US
 by: Don Y - Fri, 2 Jul 2021 16:51 UTC

On 7/2/2021 8:02 AM, Anthony William Sloman wrote:
>> I suspect you could (?) lower the bandwidth requirement by sampling,
>> instead, at 45, 495 (360+135), 945 (720+225), etc. -- assuming the system
>> is stable over short time periods.
>
> Of course you could. The resonant frequency is going to drift around a bit
> as the transformer core and the tank capacitor warm up, but that's going to
> be slow.
>
>>>> If the frequency is just below resonance the 45 degree sample is going
>>>> to be just bigger than 135 degree sample, and the 225 degree sample
>>>> just lower than the 315 degree sample.
>>>>
>>>>> Be advised that many newer devices operate, internally, at a variety
>>>>> of different clock rates.
>>>>
>>>> The device wouldn't be doing very much, so that probably wouldn't be a
>>>> problem.
>>
>> It's not how much it is doing as much as WHEN it is doing things. There is
>> an invisible skew between the instruction sequence and the I/Os. I.e.,
>> "doing something" and then "checking the result" can end up having the
>> "check result" executing before the "doing something" has actually made it
>> out onto the pins.
>
> Not in this application. There's nothing "invisible" about the delay from
> the core to the peripherals - it should be detailed in the data sheet. I've
> worked with fast logic for quite long enough (some fifty years now - though
> some of the early stuff wasn't all that fast) to be conscious of the need to
> pay attention to that sort of delay.

It's documented, but the architecture of (esp ARMs) isn't as simple/clean
as older processors. The I/O subsystem and processor operate independently
of each other -- different clocks, etc. So, one needs to insert R/W barriers
if you want to ensure the two are back in sync at any point in time.

>>> You'd probably be better off with a small cheap fpga. Some of them work
>>> with open-source software now.
>>
>> +1
>
> Wrong. Micro-controllers come with bits that I'd have to provide as well as
> the fpga. There are situations where an fpga would makes sense, but this
> isn't looking like one of them.

You've described two ~100KHz (nominal) oscillators with some fixed
phase relationship. Varying frequency and duty cycle are easy to do
in an FPGA. Similarly, sampling a feedback signal from the transformer
and bumping the frequency up/down, accordingly, is easily accomplished
with a state machine.

If there are other things that need to be handled, you've not indicated
what they are.

>> There are several MCU's that can meet the RT needs. But, you also have to
>> consider the possibility of the processor crashing or getting into a loop
>> that ignores some key feedback signal.
>
> Watchdog timer to force a reset?

If the MCU is wedged, then what's to stop the WD from triggering again?
And, the controls just looping in a broken state, endlessly?

>> [There are MCUs that have some measures to minimize the ability of a CPU
>> crash screwing up "controls" -- one just has to hope they REALLY work! :-/
>> ]
>>
>> You might be able to kludge an error signal (over volt, over current,
>> etc.) onto the RESET pin and hope the processor doesn't misbehave
>> entering RESET.
>
> It's a pretty simple application. Like I said, the processor doesn't have to
> do much at all.

It's not the complexity that is the issue but, rather, the consequences
of the controls (MCU) failing that has to be addressed.

E.g., in my application, there are > 3 power supplies that are derived
from a nominal 48V supply (including the power to run the MCU). So,
*I* have to ensure a fault doesn't end up toasting any of the devices
whose power is thus derived. Or, lead to a fire, etc.

[Yes, it's doable. But, not a simple "if the MCU fails, the product
just stops working" scenario.]

Re: Fast simple microcontroller

<sbng9l$kv1$2@dont-email.me>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=66449&group=sci.electronics.design#66449

  copy link   Newsgroups: sci.electronics.design
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: blockedo...@foo.invalid (Don Y)
Newsgroups: sci.electronics.design
Subject: Re: Fast simple microcontroller
Date: Fri, 2 Jul 2021 09:53:12 -0700
Organization: A noiseless patient Spider
Lines: 56
Message-ID: <sbng9l$kv1$2@dont-email.me>
References: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com>
<sbmsdg$6l7$1@dont-email.me>
<8ef4a10c-0ab2-4b15-a7fb-674d54e7a789n@googlegroups.com>
<qzEDI.443509$AK38.394645@fx04.ams4>
<2e6509e9-ba42-4ed3-b12f-5f199f9ed996n@googlegroups.com>
<sbn9o5$5be$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 2 Jul 2021 16:53:09 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="9756fd2100c1fbf1b9fce0512e9fe633";
logging-data="21473"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18A0VsIWo8l6RvN6jtQi+Li"
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101
Thunderbird/52.1.1
Cancel-Lock: sha1:y/swk31qfhvPsBJYL7VH1wV0H8A=
In-Reply-To: <sbn9o5$5be$1@dont-email.me>
Content-Language: en-US
 by: Don Y - Fri, 2 Jul 2021 16:53 UTC

On 7/2/2021 8:01 AM, Clive Arthur wrote:
> On 02/07/2021 15:42, Anthony William Sloman wrote:
>> On Friday, July 2, 2021 at 11:32:12 PM UTC+10, Chris Jones wrote:
>
> <snipped>
>
>>> You'd probably be better off with a small cheap fpga. Some of them work
>>> with open-source software now.
>>
>> But I wouldn't get the A/D converter thrown in, and I'd have to make my own
>> 100MHz clock. I've been fond of programmable devices for a long time now - my
>> 1996 paper used the (fairly rudimentrary) ICT PA7024 - but in this
>> application a micro-controller would provide a lot of bang for very few bucks.
>>
>
> The first thing I do for any hard real time control type project is code some
> simple functions to use a spare UART as a diagnostics port plugged in to an
> ANSI terminal emulator on a PC. TeraTerm works fine.
>
> Then I use generally single key commands to dump things to the terminal, adjust
> things, whatever. On a complicated project I may have several menus focussed
> on different aspects. Here's one screen of about ten in a current project...
>
> Real Time Clock and Timer test Menu
>
> Esc : Back
>
> T : Read Time
> D : Dump RTC chip
> P : Show Timestamp Parameters
>
> Clock frequency on J6 pin 1
> 0 : Off
> 1 : 100Hz
> 2 : 1kHz
> 3 : 10kHz
> 4 : 100kHz
> 5 : 1MHz
>
> Pressing 'D' for example displays this...
>
> RTC chip dump
> 00 : 17 55 14 05 02 07 21 00 00 00 00 00 00 00 00 C8
> 10 : 00 1E C0 00 08 00 00 00 00 00 00 00 00 02 00 14
> 20 : 40 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00...
>
> And so on. I can't imagine the pain of not having this. In Bill's system, you
> might press '<' or '>' to move the square wave slightly. 'A' might display the
> current ADC value. I just add stuff as it's needed and remove stuff which is
> no longer useful.
>
> But not in an FPGA.

Why couldn't you have a *button* connected to a pin on the FPGA
(instead of code that decodes a character sent serially)?

Re: Fast simple microcontroller

<a8e33ff2-8374-495f-bc8d-38313bfe3e5en@googlegroups.com>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=66451&group=sci.electronics.design#66451

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:a05:620a:40ce:: with SMTP id g14mr754473qko.436.1625245163971;
Fri, 02 Jul 2021 09:59:23 -0700 (PDT)
X-Received: by 2002:ac8:4798:: with SMTP id k24mr673609qtq.258.1625245163807;
Fri, 02 Jul 2021 09:59:23 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.electronics.design
Date: Fri, 2 Jul 2021 09:59:23 -0700 (PDT)
In-Reply-To: <65636bc4-18d0-44e2-b93c-d89d961cf6fbn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=94.145.242.27; posting-account=mW5JKwkAAAAMyuWOVeLp8yffyAkVx0g7
NNTP-Posting-Host: 94.145.242.27
References: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com>
<sbmsdg$6l7$1@dont-email.me> <8ef4a10c-0ab2-4b15-a7fb-674d54e7a789n@googlegroups.com>
<qzEDI.443509$AK38.394645@fx04.ams4> <2e6509e9-ba42-4ed3-b12f-5f199f9ed996n@googlegroups.com>
<8118fc6d-71a1-4e64-8dff-878788b3f2c5n@googlegroups.com> <65636bc4-18d0-44e2-b93c-d89d961cf6fbn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a8e33ff2-8374-495f-bc8d-38313bfe3e5en@googlegroups.com>
Subject: Re: Fast simple microcontroller
From: langw...@fonz.dk (Lasse Langwadt Christensen)
Injection-Date: Fri, 02 Jul 2021 16:59:23 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Lasse Langwadt Chris - Fri, 2 Jul 2021 16:59 UTC

fredag den 2. juli 2021 kl. 18.20.10 UTC+2 skrev bill....@ieee.org:
> On Saturday, July 3, 2021 at 1:50:57 AM UTC+10, lang...@fonz.dk wrote:
> > fredag den 2. juli 2021 kl. 16.42.29 UTC+2 skrev bill....@ieee.org:
> > > On Friday, July 2, 2021 at 11:32:12 PM UTC+10, Chris Jones wrote:
> > > > On 02/07/2021 22:56, Anthony William Sloman wrote:
> > > > > On Friday, July 2, 2021 at 9:13:58 PM UTC+10, Don Y wrote:
> > > > >> On 7/1/2021 10:33 PM, Anthony William Sloman wrote:
> > > > >>> I've been thinking about Timo's inverter, and it looks as if a
> > > > >>> micro-controller that offered a 100MHz clock rate would be fast enough to do
> > > > >>> a decent job of switching the Siliconix Si3440DV DMOSFet that I fancy.
> > > > >>>
> > > > >>> I've found a PIC part that's fast enough, and pretty cheap, but it is
> > > > >>> designed for digital signal processing, which makes it more complicated than
> > > > >>> necessary. A nice, dumb but quick 8051 would be good enough.
> > > > >>>
> > > > >>> Somebody is apparently offers a 600MHz part, but I want something cheap and
> > > > >>> simple - if fairly fast (but not that fast). Browsing element-14 threw up a
> > > > >>> few candidates, but I didn't find their search engine all that helpful.
> > > > >>>
> > > > >>> Has anybody got a favourite part?
> > > > >
> > > > >> That depends on what you want the MCU to *do*. If you are just trying to
> > > > >> implement a PWM in software, you could, instead, use an MCU with *hardware*
> > > > >> for that purpose (even if the software had to tweek the duty cycle from
> > > > >> one cycle to the next). If you want to be able to "talk" to it (i.e.,
> > > > >> to change it's current operating conditions), then you would have to decide
> > > > >> bandwidth requirements for that channel.
> > > > >
> > > > > The isn't even PWM. It's just got to produce two non-overlapping roughly 100kHz square waves.
> > > > >
> > > > > The trick would be to look at the output of the inverter, and get the nominally 100kHz square wave to run exactly at the resonant frequency of the tank circuit (100kHz +/-17%), or very slightly slower.
> > > > >
> > > > > Probably the easiest way to do that would be to sample the +/-2.5V output from a single turn wound onto the inverter transformer at 45, 135, 225 and 315 degrees. That's sampling at at up to to 468kHz, and the dsPIC33EP parts can do 12 bits at 500kHz.
> > > > >
> > > > > If the frequency is just below resonance the 45 degree sample is going to be just bigger than 135 degree sample, and the 225 degree sample just lower than the 315 degree sample.
> > > > >
> > > > >> Be advised that many newer devices operate, internally, at a variety of different clock rates.
> > > > >
> > > > > The device wouldn't be doing very much, so that probably wouldn't be a problem.
> > > > >
> > > > You'd probably be better off with a small cheap fpga. Some of them work
> > > > with open-source software now.
> >
> > > But I wouldn't get the A/D converter thrown in, and I'd have to make my own 100MHz clock. I've been fond of programmable devices for a long time now - my 1996 paper used the (fairly rudimentrary) ICT PA7024 - but in this application a micro-controller would provide a lot of bang for very few bucks.
> > >
> > why do you need an A/D? can't just time the zero crossing? Why 100MHz?
>
> The 100MHz comes from the fact that the Siliconix Si3440DV DMOSFet that I fancy has a maximum turn-on time of 15nsec and maxim off-time of 30nsec (if you can find half an amp of gate drive current to get the 8uC gate charge in and out) so 100MHz is fast enough for a pair of decent non-overlapping drive waveform, and with a 100MHz master clock you can fiddle the frequency around 100kHz in pretty small steps. You don't need to get it perfect.
>
> Timing the zero-crossings wouldn't be helpful - if resonant tank is driven (in this application) at less than the resonant frequency you get a short period where nothing happens, so there might be a few more zero-crossings than you'd like. If the micro-controller has an A/D anyway, digitising a fraction of of the voltage across the tank circuit could let you look at the voltages where they were better behaved. There are other ways of doing it, but they all seem to need more components.
>
> > that said, it is trivial to setup a complementary squarewave with dead time on an STM32 and trigger the ADC at specific points with the same timer.. You can get a board for a few dollars (though maybe not at the moment).
>
> The board is supposed to take in 24V and spit out +/200V. It's got two wound inductors on it. The board that came with STM32 on it wouldn't have that and would probably have a lot of less than useful bells and whistles.

the cheap ones have a regulator and crystal and the cpu

>It's is supposed to electromagnetically quiet, and micro-processor boards aren't good for that.

you want MCU, but you don't want want MCU because it is not quiet? how quiet are FETs switching 24V with 0.5A gate drive?

all in one, https://eu.mouser.com/ProductDetail/STMicroelectronics/STEVAL-ESC002V1?qs=l7cgNqFNU1hqucyPrM36%252Bg%3D%3D

Re: Fast simple microcontroller

<sbngmf$oku$1@dont-email.me>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=66452&group=sci.electronics.design#66452

  copy link   Newsgroups: sci.electronics.design
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: blockedo...@foo.invalid (Don Y)
Newsgroups: sci.electronics.design
Subject: Re: Fast simple microcontroller
Date: Fri, 2 Jul 2021 09:59:55 -0700
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <sbngmf$oku$1@dont-email.me>
References: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com>
<sbmsdg$6l7$1@dont-email.me>
<8ef4a10c-0ab2-4b15-a7fb-674d54e7a789n@googlegroups.com>
<scOdnTCgWYOkoUL9nZ2dnUU78TPNnZ2d@giganews.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 2 Jul 2021 17:00:00 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="9756fd2100c1fbf1b9fce0512e9fe633";
logging-data="25246"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18pcJk6SfiPmN0qJaq7hMNn"
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101
Thunderbird/52.1.1
Cancel-Lock: sha1:ZYpDWSyAsq7hIVR5Q1b3rai6IqA=
In-Reply-To: <scOdnTCgWYOkoUL9nZ2dnUU78TPNnZ2d@giganews.com>
Content-Language: en-US
 by: Don Y - Fri, 2 Jul 2021 16:59 UTC

On 7/2/2021 9:18 AM, Michael Kellett wrote:
> Your biggest problem right now is finding a part that you can actually buy.

Yup. Having disti/rep friends is golden, now! :>

> In normal times I'd have suggested an STM32Fxxxx part, there are chips with
> multiple ADCs capable of > 2MHz sampling rates in small packages - but the
> trick will be finding stock.

I've been eying the STM32F730R8T6 -- a reasonably small package, a bit pricey
(almost $3 at 10K) and WAY overkill. But, I like some of the features that
can help "lock" the hardware into a particular configuration that, hopefully,
keeps the circuit "safe".

I've not yet reviewed the security provisions, etc. (but the CPU is overkill
for my needs)

> If you just want a cheapo development board then one of the Nucleo boards from
> ST will do you nicely.
> Farnell have 924 of the Nucleo F429ZI in stock (but no chips until 2022)
> It's overkill for your job perhaps - but might be the best way to start work.
> If you just want to do it on paper I'd suggest you need to pick a processor
> with at least 2 ADCs capable of the rate you need. You need a fast clock to
> have fine enough control over the pulse generator frequency. That's the easy
> route but perhaps not the most cost effective if you care about production in
> volume.
>
> It would be tempting to try an STM32G071 - Cortex M0 core, 64MHz, very cheap,
> tiny packages which would (maybe) be just capable but make a really nice (small
> and cheap) controller. Problem is finding any in less than 6 months.

Samples (from a good contact) *or* buy a prebuilt "module" and, use as is,
or disassemble to salvage the components.

Or, find someone who's using it already (again, a friendly rep can leak
the name of other customers to approach).

Re: Fast simple microcontroller

<sbnlip$t2k$1@dont-email.me>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=66460&group=sci.electronics.design#66460

  copy link   Newsgroups: sci.electronics.design
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: cli...@nowaytoday.co.uk (Clive Arthur)
Newsgroups: sci.electronics.design
Subject: Re: Fast simple microcontroller
Date: Fri, 2 Jul 2021 19:23:19 +0100
Organization: A noiseless patient Spider
Lines: 70
Message-ID: <sbnlip$t2k$1@dont-email.me>
References: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com>
<sbmsdg$6l7$1@dont-email.me>
<8ef4a10c-0ab2-4b15-a7fb-674d54e7a789n@googlegroups.com>
<qzEDI.443509$AK38.394645@fx04.ams4>
<2e6509e9-ba42-4ed3-b12f-5f199f9ed996n@googlegroups.com>
<sbn9o5$5be$1@dont-email.me> <sbng9l$kv1$2@dont-email.me>
Reply-To: clive@nowaytoday.co.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 2 Jul 2021 18:23:21 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="9dc690d1fcf94f420df09b3006227c32";
logging-data="29780"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+fUiHniCF5cKV0vFgrKv3cmyGAzqe0Ia0="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:OTNFQ9flRojbhIzDJHk24L2ENoQ=
In-Reply-To: <sbng9l$kv1$2@dont-email.me>
Content-Language: en-GB
 by: Clive Arthur - Fri, 2 Jul 2021 18:23 UTC

On 02/07/2021 17:53, Don Y wrote:
> On 7/2/2021 8:01 AM, Clive Arthur wrote:
>> On 02/07/2021 15:42, Anthony William Sloman wrote:
>>> On Friday, July 2, 2021 at 11:32:12 PM UTC+10, Chris Jones wrote:
>>
>> <snipped>
>>
>>>> You'd probably be better off with a small cheap fpga. Some of them work
>>>> with open-source software now.
>>>
>>> But I wouldn't get the A/D converter thrown in, and I'd have to make
>>> my own 100MHz clock. I've been fond of programmable devices for a
>>> long time now - my 1996 paper used the (fairly rudimentrary) ICT
>>> PA7024 - but in this application a micro-controller would provide a
>>> lot of bang for very few bucks.
>>>
>>
>> The first thing I do for any hard real time control type project is
>> code some simple functions to use a spare UART as a diagnostics port
>> plugged in to an ANSI terminal emulator on a PC.  TeraTerm works fine.
>>
>> Then I use generally single key commands to dump things to the
>> terminal, adjust things, whatever.  On a complicated project I may
>> have several menus focussed on different aspects.  Here's one screen
>> of about ten in a current project...
>>
>>     Real Time Clock and Timer test Menu
>>
>>     Esc  : Back
>>
>>      T   : Read Time
>>      D   : Dump RTC chip
>>      P   : Show Timestamp Parameters
>>
>>     Clock frequency on J6 pin 1
>>      0   : Off
>>      1   : 100Hz
>>      2   : 1kHz
>>      3   : 10kHz
>>      4   : 100kHz
>>      5   : 1MHz
>>
>> Pressing 'D' for example displays this...
>>
>> RTC chip dump
>> 00 : 17 55 14 05 02 07 21 00 00 00 00 00 00 00 00 C8
>> 10 : 00 1E C0 00 08 00 00 00 00 00 00 00 00 02 00 14
>> 20 : 40 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00...
>>
>> And so on.  I can't imagine the pain of not having this.  In Bill's
>> system, you might press '<' or '>' to move the square wave slightly.
>> 'A' might display the current ADC value.  I just add stuff as it's
>> needed and remove stuff which is no longer useful.
>>
>> But not in an FPGA.
>
> Why couldn't you have a *button* connected to a pin on the FPGA
> (instead of code that decodes a character sent serially)?
>
Not sure how that would give me a system of diagnostics menus. This is
on a serial terminal. I've been doing this for years, probably inspired
by my Forth programming. It even catches on with the youngsters.

--
Cheers
Clive

Re: Fast simple microcontroller

<521be73a-b228-43f9-8756-a546e75ae90fn@googlegroups.com>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=66463&group=sci.electronics.design#66463

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:ac8:5cd5:: with SMTP id s21mr1290357qta.192.1625253677948;
Fri, 02 Jul 2021 12:21:17 -0700 (PDT)
X-Received: by 2002:a37:5c87:: with SMTP id q129mr1332141qkb.137.1625253677648;
Fri, 02 Jul 2021 12:21:17 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.electronics.design
Date: Fri, 2 Jul 2021 12:21:17 -0700 (PDT)
In-Reply-To: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=73.12.95.49; posting-account=iGtwSwoAAABNNwPORfvAs6OM4AR9GRHt
NNTP-Posting-Host: 73.12.95.49
References: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <521be73a-b228-43f9-8756-a546e75ae90fn@googlegroups.com>
Subject: Re: Fast simple microcontroller
From: bloggs.f...@gmail.com (Fred Bloggs)
Injection-Date: Fri, 02 Jul 2021 19:21:17 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Fred Bloggs - Fri, 2 Jul 2021 19:21 UTC

On Friday, July 2, 2021 at 1:33:59 AM UTC-4, bill....@ieee.org wrote:
> I've been thinking about Timo's inverter, and it looks as if a micro-controller that offered a 100MHz clock rate would be fast enough to do a decent job of switching the Siliconix Si3440DV DMOSFet that I fancy.
>
> I've found a PIC part that's fast enough, and pretty cheap, but it is designed for digital signal processing, which makes it more complicated than necessary. A nice, dumb but quick 8051 would be good enough.
>
> Somebody is apparently offers a 600MHz part, but I want something cheap and simple - if fairly fast (but not that fast). Browsing element-14 threw up a few candidates, but I didn't find their search engine all that helpful.
>
> Has anybody got a favourite part?

Who would know what Timo's inverter is?
100 MHz is difficult to work with in any case.

>
> --
> Bill Sloman, Sydney

Re: Fast simple microcontroller

<sbnr89$5tp$1@dont-email.me>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=66466&group=sci.electronics.design#66466

  copy link   Newsgroups: sci.electronics.design
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: blockedo...@foo.invalid (Don Y)
Newsgroups: sci.electronics.design
Subject: Re: Fast simple microcontroller
Date: Fri, 2 Jul 2021 12:59:58 -0700
Organization: A noiseless patient Spider
Lines: 83
Message-ID: <sbnr89$5tp$1@dont-email.me>
References: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com>
<sbmsdg$6l7$1@dont-email.me>
<8ef4a10c-0ab2-4b15-a7fb-674d54e7a789n@googlegroups.com>
<qzEDI.443509$AK38.394645@fx04.ams4>
<2e6509e9-ba42-4ed3-b12f-5f199f9ed996n@googlegroups.com>
<sbn9o5$5be$1@dont-email.me> <sbng9l$kv1$2@dont-email.me>
<sbnlip$t2k$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 2 Jul 2021 20:00:09 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="9756fd2100c1fbf1b9fce0512e9fe633";
logging-data="6073"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX195b1tcDDPaD39iikWPa+T3"
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101
Thunderbird/52.1.1
Cancel-Lock: sha1:ZFu1XVatRKdVs/Jp+HbG6dQRo8Q=
In-Reply-To: <sbnlip$t2k$1@dont-email.me>
Content-Language: en-US
 by: Don Y - Fri, 2 Jul 2021 19:59 UTC

On 7/2/2021 11:23 AM, Clive Arthur wrote:
> On 02/07/2021 17:53, Don Y wrote:
>> On 7/2/2021 8:01 AM, Clive Arthur wrote:
>>> On 02/07/2021 15:42, Anthony William Sloman wrote:
>>>> On Friday, July 2, 2021 at 11:32:12 PM UTC+10, Chris Jones wrote:
>>>
>>> <snipped>
>>>
>>>>> You'd probably be better off with a small cheap fpga. Some of them work
>>>>> with open-source software now.
>>>>
>>>> But I wouldn't get the A/D converter thrown in, and I'd have to make my own
>>>> 100MHz clock. I've been fond of programmable devices for a long time now -
>>>> my 1996 paper used the (fairly rudimentrary) ICT PA7024 - but in this
>>>> application a micro-controller would provide a lot of bang for very few bucks.
>>>>
>>>
>>> The first thing I do for any hard real time control type project is code
>>> some simple functions to use a spare UART as a diagnostics port plugged in
>>> to an ANSI terminal emulator on a PC. TeraTerm works fine.
>>>
>>> Then I use generally single key commands to dump things to the terminal,
>>> adjust things, whatever. On a complicated project I may have several menus
>>> focussed on different aspects. Here's one screen of about ten in a current
>>> project...
>>>
>>> Real Time Clock and Timer test Menu
>>>
>>> Esc : Back
>>>
>>> T : Read Time
>>> D : Dump RTC chip
>>> P : Show Timestamp Parameters
>>>
>>> Clock frequency on J6 pin 1
>>> 0 : Off
>>> 1 : 100Hz
>>> 2 : 1kHz
>>> 3 : 10kHz
>>> 4 : 100kHz
>>> 5 : 1MHz
>>>
>>> Pressing 'D' for example displays this...
>>>
>>> RTC chip dump
>>> 00 : 17 55 14 05 02 07 21 00 00 00 00 00 00 00 00 C8
>>> 10 : 00 1E C0 00 08 00 00 00 00 00 00 00 00 02 00 14
>>> 20 : 40 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00...
>>>
>>> And so on. I can't imagine the pain of not having this. In Bill's system,
>>> you might press '<' or '>' to move the square wave slightly. 'A' might
>>> display the current ADC value. I just add stuff as it's needed and remove
>>> stuff which is no longer useful.
>>>
>>> But not in an FPGA.
>>
>> Why couldn't you have a *button* connected to a pin on the FPGA
>> (instead of code that decodes a character sent serially)?
>>
> Not sure how that would give me a system of diagnostics menus. This is on a
> serial terminal. I've been doing this for years, probably inspired by my Forth
> programming. It even catches on with the youngsters.

Sorry, my comment was intended for the OP's application:

"Press the RED button (legended with '>') to increase the frequency
or the GREEN button (legended with '<') to decrease"

In deeply embedded devices (no real display), I've used a
custom board that sat on the CPU bus -- accompanied by a
"real time monitor" -- to dynamically monitor and modify
arbitrary locations in memory.

It's crude (and not symbolic), but amazingly powerful
when you realize you can dynamically tweek the data that
a particular algorithm is using *now* and observe it's
results, directly -- without having to cajole the actual
sensor(s) to produce the values that would cause these
actions.

With RAM-based code stores (development), you can even patch
the code while its running -- instead of having to rebuild
a binary.

Re: Fast simple microcontroller

<abdvdgp872seafiitqek8sj8oc76amsjno@4ax.com>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=66494&group=sci.electronics.design#66494

  copy link   Newsgroups: sci.electronics.design
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!4.us.feeder.erje.net!2.eu.feeder.erje.net!feeder.erje.net!news-out.netnews.com!newsin.alt.net!fdcspool1.netnews.com!news-out.netnews.com!news.alt.net!fdc2.netnews.com!feeder1.feed.usenet.farm!feed.usenet.farm!tr1.eu1.usenetexpress.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!nntp.supernews.com!news.supernews.com.POSTED!not-for-mail
NNTP-Posting-Date: Fri, 02 Jul 2021 20:00:29 -0500
From: jlar...@highland_atwork_technology.com (John Larkin)
Newsgroups: sci.electronics.design
Subject: Re: Fast simple microcontroller
Date: Fri, 02 Jul 2021 18:00:29 -0700
Organization: Highland Tech
Reply-To: xx@yy.com
Message-ID: <abdvdgp872seafiitqek8sj8oc76amsjno@4ax.com>
References: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com> <521be73a-b228-43f9-8756-a546e75ae90fn@googlegroups.com>
X-Newsreader: Forte Agent 3.1/32.783
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 20
X-Trace: sv3-G1fjIiKBaG5LHjfwOZlJJPHHTeXSw7CssWZ4yXN4dx0Qg/81djBjZgau+4w+wKwXvTzYGyvc1NupJmi!H0acLrZ0kgf3cu9FZBYd6zSCk7P6FuGr6NkwL9mBaEH59dP/CBG+6REeVrWBwGjWEtKi1w/e10Ku!fq73Mg==
X-Complaints-To: www.supernews.com/docs/abuse.html
X-DMCA-Complaints-To: www.supernews.com/docs/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2357
 by: John Larkin - Sat, 3 Jul 2021 01:00 UTC

On Fri, 2 Jul 2021 12:21:17 -0700 (PDT), Fred Bloggs
<bloggs.fredbloggs.fred@gmail.com> wrote:

>On Friday, July 2, 2021 at 1:33:59 AM UTC-4, bill....@ieee.org wrote:
>> I've been thinking about Timo's inverter, and it looks as if a micro-controller that offered a 100MHz clock rate would be fast enough to do a decent job of switching the Siliconix Si3440DV DMOSFet that I fancy.
>>
>> I've found a PIC part that's fast enough, and pretty cheap, but it is designed for digital signal processing, which makes it more complicated than necessary. A nice, dumb but quick 8051 would be good enough.
>>
>> Somebody is apparently offers a 600MHz part, but I want something cheap and simple - if fairly fast (but not that fast). Browsing element-14 threw up a few candidates, but I didn't find their search engine all that helpful.
>>
>> Has anybody got a favourite part?
>
>Who would know what Timo's inverter is?
>100 MHz is difficult to work with in any case.

The 100 MHz is probably the CPU speed or the timer/PWM clock.

We use an ST ARM uP that claims 150 MIPS and can run a timer/PWM block
at 120 MHz. So a 100 KHz PWM will have below 0.1% resolution.

Re: Fast simple microcontroller

<76961d0b-23b3-4c8e-a21f-a856cbd582d7n@googlegroups.com>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=66496&group=sci.electronics.design#66496

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:a0c:fc52:: with SMTP id w18mr2239960qvp.37.1625275709779;
Fri, 02 Jul 2021 18:28:29 -0700 (PDT)
X-Received: by 2002:ac8:110e:: with SMTP id c14mr2455033qtj.76.1625275709647;
Fri, 02 Jul 2021 18:28:29 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.electronics.design
Date: Fri, 2 Jul 2021 18:28:29 -0700 (PDT)
In-Reply-To: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=72.50.1.237; posting-account=I-_H_woAAAA9zzro6crtEpUAyIvzd19b
NNTP-Posting-Host: 72.50.1.237
References: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <76961d0b-23b3-4c8e-a21f-a856cbd582d7n@googlegroups.com>
Subject: Re: Fast simple microcontroller
From: gnuarm.d...@gmail.com (Rick C)
Injection-Date: Sat, 03 Jul 2021 01:28:29 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Rick C - Sat, 3 Jul 2021 01:28 UTC

On Friday, July 2, 2021 at 1:33:59 AM UTC-4, bill....@ieee.org wrote:
> I've been thinking about Timo's inverter, and it looks as if a micro-controller that offered a 100MHz clock rate would be fast enough to do a decent job of switching the Siliconix Si3440DV DMOSFet that I fancy.
>
> I've found a PIC part that's fast enough, and pretty cheap, but it is designed for digital signal processing, which makes it more complicated than necessary. A nice, dumb but quick 8051 would be good enough.
>
> Somebody is apparently offers a 600MHz part, but I want something cheap and simple - if fairly fast (but not that fast). Browsing element-14 threw up a few candidates, but I didn't find their search engine all that helpful.
>
> Has anybody got a favourite part?

An FPGA can be used to implement an 8051 or any other MCU architecture you wish at 100 MHz without much trouble. Then you can tailor the peripherals as you choose. Gowin has parts for $3 or less with internal Flash.

--

Rick C.

- Get 1,000 miles of free Supercharging
- Tesla referral code - https://ts.la/richard11209

Re: Fast simple microcontroller

<82b5547d-9538-4caf-8b5b-786a35ab91aan@googlegroups.com>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=66500&group=sci.electronics.design#66500

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:a05:620a:1026:: with SMTP id a6mr2778292qkk.331.1625279323487; Fri, 02 Jul 2021 19:28:43 -0700 (PDT)
X-Received: by 2002:a05:620a:14b7:: with SMTP id x23mr2854925qkj.451.1625279323263; Fri, 02 Jul 2021 19:28:43 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.electronics.design
Date: Fri, 2 Jul 2021 19:28:43 -0700 (PDT)
In-Reply-To: <sbng70$kv1$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=14.200.145.253; posting-account=SJ46pgoAAABuUDuHc5uDiXN30ATE-zi-
NNTP-Posting-Host: 14.200.145.253
References: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com> <sbmsdg$6l7$1@dont-email.me> <8ef4a10c-0ab2-4b15-a7fb-674d54e7a789n@googlegroups.com> <qzEDI.443509$AK38.394645@fx04.ams4> <sbn50q$2lh$1@dont-email.me> <080519c1-ff7b-4845-aa7c-a671200bc0d3n@googlegroups.com> <sbng70$kv1$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <82b5547d-9538-4caf-8b5b-786a35ab91aan@googlegroups.com>
Subject: Re: Fast simple microcontroller
From: bill.slo...@ieee.org (Anthony William Sloman)
Injection-Date: Sat, 03 Jul 2021 02:28:43 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 92
 by: Anthony William Slom - Sat, 3 Jul 2021 02:28 UTC

On Saturday, July 3, 2021 at 2:51:49 AM UTC+10, Don Y wrote:
> On 7/2/2021 8:02 AM, Anthony William Sloman wrote:
> >> I suspect you could (?) lower the bandwidth requirement by sampling,
> >> instead, at 45, 495 (360+135), 945 (720+225), etc. -- assuming the system
> >> is stable over short time periods.
> >
> > Of course you could. The resonant frequency is going to drift around a bit
> > as the transformer core and the tank capacitor warm up, but that's going to
> > be slow.
> >
> >>>> If the frequency is just below resonance the 45 degree sample is going
> >>>> to be just bigger than 135 degree sample, and the 225 degree sample
> >>>> just lower than the 315 degree sample.
> >>>>
> >>>>> Be advised that many newer devices operate, internally, at a variety
> >>>>> of different clock rates.
> >>>>
> >>>> The device wouldn't be doing very much, so that probably wouldn't be a
> >>>> problem.
> >>
> >> It's not how much it is doing as much as WHEN it is doing things. There is
> >> an invisible skew between the instruction sequence and the I/Os. I.e.,
> >> "doing something" and then "checking the result" can end up having the
> >> "check result" executing before the "doing something" has actually made it
> >> out onto the pins.
> >
> > Not in this application. There's nothing "invisible" about the delay from
> > the core to the peripherals - it should be detailed in the data sheet. I've
> > worked with fast logic for quite long enough (some fifty years now - though
> > some of the early stuff wasn't all that fast) to be conscious of the need to
> > pay attention to that sort of delay.
> It's documented, but the architecture of (esp ARMs) isn't as simple/clean
> as older processors. The I/O subsystem and processor operate independently
> of each other -- different clocks, etc. So, one needs to insert R/W barriers
> if you want to ensure the two are back in sync at any point in time.
> >>> You'd probably be better off with a small cheap fpga. Some of them work
> >>> with open-source software now.
> >>
> >> +1
> >
> > Wrong. Micro-controllers come with bits that I'd have to provide as well as
> > the fpga. There are situations where an fpga would makes sense, but this
> > isn't looking like one of them.
> You've described two ~100KHz (nominal) oscillators with some fixed
> phase relationship. Varying frequency and duty cycle are easy to do
> in an FPGA. Similarly, sampling a feedback signal from the transformer
> and bumping the frequency up/down, accordingly, is easily accomplished
> with a state machine.
>
> If there are other things that need to be handled, you've not indicated
> what they are.
> >> There are several MCU's that can meet the RT needs. But, you also have to
> >> consider the possibility of the processor crashing or getting into a loop
> >> that ignores some key feedback signal.
> >
> > Watchdog timer to force a reset?
>
> If the MCU is wedged, then what's to stop the WD from triggering again?
> And, the controls just looping in a broken state, endlessly?

That seems to be what you are doing here.

> >> [There are MCUs that have some measures to minimize the ability of a CPU
> >> crash screwing up "controls" -- one just has to hope they REALLY work! :-/
> >> ]
> >>
> >> You might be able to kludge an error signal (over volt, over current,
> >> etc.) onto the RESET pin and hope the processor doesn't misbehave
> >> entering RESET.
> >
> > It's a pretty simple application. Like I said, the processor doesn't have to
> > do much at all.
>
> It's not the complexity that is the issue but, rather, the consequences
> of the controls (MCU) failing that has to be addressed.

Obviously.

> E.g., in my application, there are > 3 power supplies that are derived
> from a nominal 48V supply (including the power to run the MCU). So,
> *I* have to ensure a fault doesn't end up toasting any of the devices
> whose power is thus derived. Or, lead to a fire, etc.

This isn't your application. It's Timo's. See the thread "Low noise, high bias voltage on picoAmp TIA's input, howto?"
> Yes, it's doable. But, not a simple "if the MCU fails, the product just stops working" scenario.

Most products stop working if any of the components fail. What's your point?

--
Bill Sloman, Sydney

Pages:1234567
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor