Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

The test of intelligent tinkering is to save all the parts. -- Aldo Leopold


tech / sci.electronics.design / Re: 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
Re: Fast simple microcontroller

<9c8bdec1-4ac5-4490-88de-7d3d96e7d6fdn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:a37:6314:: with SMTP id x20mr8221251qkb.363.1625513845744;
Mon, 05 Jul 2021 12:37:25 -0700 (PDT)
X-Received: by 2002:a05:620a:1aa9:: with SMTP id bl41mr12982921qkb.161.1625513845551;
Mon, 05 Jul 2021 12:37:25 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!usenet.pasdenom.info!usenet-fr.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: Mon, 5 Jul 2021 12:37:25 -0700 (PDT)
In-Reply-To: <2c07d7cc-50eb-488d-9af6-8505af6943fan@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=72.50.0.54; posting-account=I-_H_woAAAA9zzro6crtEpUAyIvzd19b
NNTP-Posting-Host: 72.50.0.54
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> <FDZDI.73843$1q1.31263@fx10.ams4>
<7a3ec58f-1821-42f9-a13c-4bd4c392a014n@googlegroups.com> <db5f52a7-f5be-461a-8e5f-270d8b2f6dbcn@googlegroups.com>
<f6f59c03-4ba4-41a1-9c29-0d27bd3a3785n@googlegroups.com> <985cc588-015f-4e2c-a02a-91dc01e8ed15n@googlegroups.com>
<4bddbd2f-9fbf-4ac6-b3dd-c43c957a7132n@googlegroups.com> <5cfe69c0-dea7-4b80-9105-005b5e3940ean@googlegroups.com>
<df8c7dfe-b84d-4b78-821d-3dcb4d51096en@googlegroups.com> <87268d01-608c-4c9c-a250-aa8c9cfb0669n@googlegroups.com>
<3a2c7624-67c8-4aa2-a630-3c6e217db8ddn@googlegroups.com> <eac2c201-5ed1-4a48-a816-c5ac04098482n@googlegroups.com>
<13413d75-771d-4162-a164-44347670dc75n@googlegroups.com> <6cd17fdf-391e-4e9c-b73d-85ba886c905an@googlegroups.com>
<de81ff24-6472-4eac-81d1-8933e21baa77n@googlegroups.com> <1af7aaab-ef93-44f4-bcac-11bc40225f5en@googlegroups.com>
<def3117d-6360-4c0a-bbd2-21b44ada542fn@googlegroups.com> <5d2a98c3-18ee-492e-a82d-3b353673f291n@googlegroups.com>
<1785267b-656c-4403-98e0-534cfd0e5c22n@googlegroups.com> <4f0da696-a73e-4c53-a1bf-6f36f4c21d65n@googlegroups.com>
<249a55bb-c8fe-4ce8-bff2-59b6c5e4d65fn@googlegroups.com> <9174209e-04c9-42a4-9583-0df00265a7f8n@googlegroups.com>
<825d057c-2691-4a71-b2c5-081179f6f42dn@googlegroups.com> <52b655cf-1b22-46a1-8e00-2d3fb5971748n@googlegroups.com>
<d4d50784-85f9-4d23-a8c6-79b48889e392n@googlegroups.com> <867e2a68-11de-41fb-b357-fa09eb2f9886n@googlegroups.com>
<3ee8811c-0b53-41be-93e3-3accdc8936e3n@googlegroups.com> <70806512-5a57-43dc-97fa-e66374249698n@googlegroups.com>
<b1685aa5-265f-44f6-987b-9aeb00153fffn@googlegroups.com> <7dc26771-270c-48f9-a97d-ae7cb87c116an@googlegroups.com>
<2c07d7cc-50eb-488d-9af6-8505af6943fan@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9c8bdec1-4ac5-4490-88de-7d3d96e7d6fdn@googlegroups.com>
Subject: Re: Fast simple microcontroller
From: gnuarm.d...@gmail.com (Rick C)
Injection-Date: Mon, 05 Jul 2021 19:37:25 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Rick C - Mon, 5 Jul 2021 19:37 UTC

On Monday, July 5, 2021 at 3:25:17 PM UTC-4, Ed Lee wrote:
> On Monday, July 5, 2021 at 12:20:21 PM UTC-7, gnuarm.del...@gmail.com wrote:
> > On Monday, July 5, 2021 at 3:17:35 PM UTC-4, Ed Lee wrote:
> > > STM32 micros can run at 180MHz, as well as close to zero (while sleeping, but with timer on). Your FPGA PLL can't be reconfigured at will, at least you haven't tell us how to.
> > A PLL can't run with an output close to zero, at least not at low power.. That's true in both the MCU and FPGA. So how do you think you would do this in an MCU? Maybe the answer to that question will show your misconception.
> It's called sleep();

So what does that do? Where is it documented?

We both know what it does is to shut down the PLL and the fast clock and probably shut off the CPU entirely and switch the low power clock circuit on if it was off. In an FPGA you do the same thing which is what I keep telling you. If it kept the CPU running it would not be called sleep(). It would be something like low_power(1) as opposed to low_power( 2 through 7). Yeah, I've seen MCUs with seven low power modes in addition to shutting off the CPU. But every one is different so it's the wild west out there.

Have they standardized sleep modes in ARMs? I suspect not as much of the distinctions are about clocking the peripherals. As I've said before clocking in MCUs can get very complex.

--

Rick C.

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

Re: Fast simple microcontroller

<36f64481-4060-4a04-be39-6a0ff9055d07n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:ad4:4666:: with SMTP id z6mr14281176qvv.60.1625514630210;
Mon, 05 Jul 2021 12:50:30 -0700 (PDT)
X-Received: by 2002:aed:204c:: with SMTP id 70mr14317037qta.260.1625514630036;
Mon, 05 Jul 2021 12:50:30 -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: Mon, 5 Jul 2021 12:50:29 -0700 (PDT)
In-Reply-To: <9c8bdec1-4ac5-4490-88de-7d3d96e7d6fdn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=108.213.66.240; posting-account=pjQH5woAAABeN8ToX-2bq3zh9hvCM8sL
NNTP-Posting-Host: 108.213.66.240
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> <FDZDI.73843$1q1.31263@fx10.ams4>
<7a3ec58f-1821-42f9-a13c-4bd4c392a014n@googlegroups.com> <db5f52a7-f5be-461a-8e5f-270d8b2f6dbcn@googlegroups.com>
<f6f59c03-4ba4-41a1-9c29-0d27bd3a3785n@googlegroups.com> <985cc588-015f-4e2c-a02a-91dc01e8ed15n@googlegroups.com>
<4bddbd2f-9fbf-4ac6-b3dd-c43c957a7132n@googlegroups.com> <5cfe69c0-dea7-4b80-9105-005b5e3940ean@googlegroups.com>
<df8c7dfe-b84d-4b78-821d-3dcb4d51096en@googlegroups.com> <87268d01-608c-4c9c-a250-aa8c9cfb0669n@googlegroups.com>
<3a2c7624-67c8-4aa2-a630-3c6e217db8ddn@googlegroups.com> <eac2c201-5ed1-4a48-a816-c5ac04098482n@googlegroups.com>
<13413d75-771d-4162-a164-44347670dc75n@googlegroups.com> <6cd17fdf-391e-4e9c-b73d-85ba886c905an@googlegroups.com>
<de81ff24-6472-4eac-81d1-8933e21baa77n@googlegroups.com> <1af7aaab-ef93-44f4-bcac-11bc40225f5en@googlegroups.com>
<def3117d-6360-4c0a-bbd2-21b44ada542fn@googlegroups.com> <5d2a98c3-18ee-492e-a82d-3b353673f291n@googlegroups.com>
<1785267b-656c-4403-98e0-534cfd0e5c22n@googlegroups.com> <4f0da696-a73e-4c53-a1bf-6f36f4c21d65n@googlegroups.com>
<249a55bb-c8fe-4ce8-bff2-59b6c5e4d65fn@googlegroups.com> <9174209e-04c9-42a4-9583-0df00265a7f8n@googlegroups.com>
<825d057c-2691-4a71-b2c5-081179f6f42dn@googlegroups.com> <52b655cf-1b22-46a1-8e00-2d3fb5971748n@googlegroups.com>
<d4d50784-85f9-4d23-a8c6-79b48889e392n@googlegroups.com> <867e2a68-11de-41fb-b357-fa09eb2f9886n@googlegroups.com>
<3ee8811c-0b53-41be-93e3-3accdc8936e3n@googlegroups.com> <70806512-5a57-43dc-97fa-e66374249698n@googlegroups.com>
<b1685aa5-265f-44f6-987b-9aeb00153fffn@googlegroups.com> <7dc26771-270c-48f9-a97d-ae7cb87c116an@googlegroups.com>
<2c07d7cc-50eb-488d-9af6-8505af6943fan@googlegroups.com> <9c8bdec1-4ac5-4490-88de-7d3d96e7d6fdn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <36f64481-4060-4a04-be39-6a0ff9055d07n@googlegroups.com>
Subject: Re: Fast simple microcontroller
From: edward.m...@gmail.com (Ed Lee)
Injection-Date: Mon, 05 Jul 2021 19:50:30 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Ed Lee - Mon, 5 Jul 2021 19:50 UTC

On Monday, July 5, 2021 at 12:37:28 PM UTC-7, gnuarm.del...@gmail.com wrote:
> On Monday, July 5, 2021 at 3:25:17 PM UTC-4, Ed Lee wrote:
> > On Monday, July 5, 2021 at 12:20:21 PM UTC-7, gnuarm.del...@gmail.com wrote:
> > > On Monday, July 5, 2021 at 3:17:35 PM UTC-4, Ed Lee wrote:
> > > > STM32 micros can run at 180MHz, as well as close to zero (while sleeping, but with timer on). Your FPGA PLL can't be reconfigured at will, at least you haven't tell us how to.
> > > A PLL can't run with an output close to zero, at least not at low power. That's true in both the MCU and FPGA. So how do you think you would do this in an MCU? Maybe the answer to that question will show your misconception.
> > It's called sleep();
> So what does that do? Where is it documented?

This and many other places to talk about sleep and other modes. I also post the codes for changing PLL.

https://www.disk91.com/2018/technology/hardware/stm32-and-low-power-mode/

>
> We both know what it does is to shut down the PLL and the fast clock and probably shut off the CPU entirely and switch the low power clock circuit on if it was off. In an FPGA you do the same thing which is what I keep telling you. If it kept the CPU running it would not be called sleep(). It would be something like low_power(1) as opposed to low_power( 2 through 7). Yeah, I've seen MCUs with seven low power modes in addition to shutting off the CPU. But every one is different so it's the wild west out there.
>
> Have they standardized sleep modes in ARMs? I suspect not as much of the distinctions are about clocking the peripherals. As I've said before clocking in MCUs can get very complex.

Is complexity the reason to switch from MCU to FPGA, so you can't use them at all?

Re: Fast simple microcontroller

<1048cc94-59b5-4b66-a908-a08f3ac2bbcfn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:ac8:4888:: with SMTP id i8mr13572714qtq.166.1625515370149;
Mon, 05 Jul 2021 13:02:50 -0700 (PDT)
X-Received: by 2002:a05:620a:14b7:: with SMTP id x23mr15671122qkj.451.1625515369974;
Mon, 05 Jul 2021 13:02:49 -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: Mon, 5 Jul 2021 13:02:49 -0700 (PDT)
In-Reply-To: <a5f03983-87a1-4e87-ac06-5a233f5c4482n@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>
<sbn9o5$5be$1@dont-email.me> <FDZDI.73843$1q1.31263@fx10.ams4>
<7a3ec58f-1821-42f9-a13c-4bd4c392a014n@googlegroups.com> <db5f52a7-f5be-461a-8e5f-270d8b2f6dbcn@googlegroups.com>
<f6f59c03-4ba4-41a1-9c29-0d27bd3a3785n@googlegroups.com> <985cc588-015f-4e2c-a02a-91dc01e8ed15n@googlegroups.com>
<4bddbd2f-9fbf-4ac6-b3dd-c43c957a7132n@googlegroups.com> <5cfe69c0-dea7-4b80-9105-005b5e3940ean@googlegroups.com>
<df8c7dfe-b84d-4b78-821d-3dcb4d51096en@googlegroups.com> <87268d01-608c-4c9c-a250-aa8c9cfb0669n@googlegroups.com>
<3a2c7624-67c8-4aa2-a630-3c6e217db8ddn@googlegroups.com> <eac2c201-5ed1-4a48-a816-c5ac04098482n@googlegroups.com>
<13413d75-771d-4162-a164-44347670dc75n@googlegroups.com> <6cd17fdf-391e-4e9c-b73d-85ba886c905an@googlegroups.com>
<de81ff24-6472-4eac-81d1-8933e21baa77n@googlegroups.com> <1af7aaab-ef93-44f4-bcac-11bc40225f5en@googlegroups.com>
<def3117d-6360-4c0a-bbd2-21b44ada542fn@googlegroups.com> <5d2a98c3-18ee-492e-a82d-3b353673f291n@googlegroups.com>
<1785267b-656c-4403-98e0-534cfd0e5c22n@googlegroups.com> <4f0da696-a73e-4c53-a1bf-6f36f4c21d65n@googlegroups.com>
<249a55bb-c8fe-4ce8-bff2-59b6c5e4d65fn@googlegroups.com> <9174209e-04c9-42a4-9583-0df00265a7f8n@googlegroups.com>
<825d057c-2691-4a71-b2c5-081179f6f42dn@googlegroups.com> <52b655cf-1b22-46a1-8e00-2d3fb5971748n@googlegroups.com>
<d4d50784-85f9-4d23-a8c6-79b48889e392n@googlegroups.com> <867e2a68-11de-41fb-b357-fa09eb2f9886n@googlegroups.com>
<3ee8811c-0b53-41be-93e3-3accdc8936e3n@googlegroups.com> <45575d98-4951-49fd-8de2-dc30961602fbn@googlegroups.com>
<9a47735b-de35-4412-8eb4-ade84c77d82dn@googlegroups.com> <f52d5c1c-a964-487a-8a0c-4971b7e5d07cn@googlegroups.com>
<a5f03983-87a1-4e87-ac06-5a233f5c4482n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1048cc94-59b5-4b66-a908-a08f3ac2bbcfn@googlegroups.com>
Subject: Re: Fast simple microcontroller
From: langw...@fonz.dk (Lasse Langwadt Christensen)
Injection-Date: Mon, 05 Jul 2021 20:02:50 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Lasse Langwadt Chris - Mon, 5 Jul 2021 20:02 UTC

mandag den 5. juli 2021 kl. 19.19.34 UTC+2 skrev Ed Lee:
> On Monday, July 5, 2021 at 10:08:07 AM UTC-7, lang...@fonz.dk wrote:
> > mandag den 5. juli 2021 kl. 19.05.27 UTC+2 skrev Ed Lee:
> > > On Monday, July 5, 2021 at 9:49:43 AM UTC-7, lang...@fonz.dk wrote:
> > > > mandag den 5. juli 2021 kl. 18.16.25 UTC+2 skrev Ed Lee:
> > > > > On Monday, July 5, 2021 at 8:51:20 AM UTC-7, gnuarm.del...@gmail.com wrote:
> > > > > > On Monday, July 5, 2021 at 11:24:12 AM UTC-4, Ed Lee wrote:
> > > > > > > On Monday, July 5, 2021 at 6:23:38 AM UTC-7, gnuarm.del...@gmail.com wrote:
> > > > > > > > On Monday, July 5, 2021 at 12:01:26 AM UTC-4, Ed Lee wrote:
> > > > > > > > > OK, i am asking you a very simply question. How do you change the clock speed on the fly for the FPGA. It's a simple write to registers in micro.
> > > > > > > > However you wish. The circuit is yours to design. How would you like it to work?
> > > > > > > >
> > > > > > > > I like the fact that you keep talking about a "simple write to registers" as if you were programming a sequential processor with a linear address space like an MCU no matter what the device is. (I would also point out that the clocking controls are some of the most complex in any given MCU, so not often a "simple" register write). How would you adjust the clock speed in a discrete circuit design? An FPGA is just discrete logic inside a chip with programmable interconnects. Do you write to registers in analog designs too?
> > > > > > > >
> > > > > > > > I will repeat the problem. You continue to be stuck in the MCU mindset and are not willing to learn enough about FPGAs to actually understand them. You won't understand them until you stop pretending FPGAs are just different MCUs. Open your mind. Learn something.
> > > > > > > Not if you keep side-stepping the question. I ask a very simple and direct question: How do you reconfig the PLL from the chip within?
> > > > > > No side stepping. That was not the question you asked before.
> > > > > I asked you how to change the clock speed, which is driven by the PLL. It's the same question. And we, those who know nothing about FPGA, want you to tell us how to do that with the ICE40 FPGA you recommended.
> > > > > > Clock control is done using the logic resources inside the FPGA.. If you are asking about programming the PLL, every device family is different. You can read about it in the data sheet for the clock distribution or some brands have a separate document just for the PLL. They tend to be more complex than a UART, so just listing the bits in registers doesn't explain it. I don't have any of this info memorized, so you will need to look at the docs yourself.
> > > > > I know how to do that from the Actel designer, but not from within the chip. If you want us to replace our micro with this ICE40 CPLD/FPGA, you should at least give us the link to do it. Otherwise, it's beyond our knowledge to attempt to use this CPLD/FPGA.
> > > > why would you want to change the clock? if you want lowpower standby, run the housekeeping a the slow clock,
> > > > keep the pll and the fast stuff in reset when you don''t need it
> > > Some function needs special speed. For example, usb needs 48MHz exactly. Others need higher speed just for speed and lower speed for power savings.
> > so what is the question?
> How do you change the PLL setting of the ICE40 FPGA, from the chip itself, not from an external programmer?

why would you want to?

Re: Fast simple microcontroller

<71096ddf-4d6d-4d4e-894f-cfb64e470266n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:a0c:df13:: with SMTP id g19mr14786207qvl.52.1625515669403;
Mon, 05 Jul 2021 13:07:49 -0700 (PDT)
X-Received: by 2002:ad4:5ae7:: with SMTP id c7mr14448302qvh.54.1625515669198;
Mon, 05 Jul 2021 13:07:49 -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: Mon, 5 Jul 2021 13:07:49 -0700 (PDT)
In-Reply-To: <1048cc94-59b5-4b66-a908-a08f3ac2bbcfn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=108.213.66.240; posting-account=pjQH5woAAABeN8ToX-2bq3zh9hvCM8sL
NNTP-Posting-Host: 108.213.66.240
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> <FDZDI.73843$1q1.31263@fx10.ams4>
<7a3ec58f-1821-42f9-a13c-4bd4c392a014n@googlegroups.com> <db5f52a7-f5be-461a-8e5f-270d8b2f6dbcn@googlegroups.com>
<f6f59c03-4ba4-41a1-9c29-0d27bd3a3785n@googlegroups.com> <985cc588-015f-4e2c-a02a-91dc01e8ed15n@googlegroups.com>
<4bddbd2f-9fbf-4ac6-b3dd-c43c957a7132n@googlegroups.com> <5cfe69c0-dea7-4b80-9105-005b5e3940ean@googlegroups.com>
<df8c7dfe-b84d-4b78-821d-3dcb4d51096en@googlegroups.com> <87268d01-608c-4c9c-a250-aa8c9cfb0669n@googlegroups.com>
<3a2c7624-67c8-4aa2-a630-3c6e217db8ddn@googlegroups.com> <eac2c201-5ed1-4a48-a816-c5ac04098482n@googlegroups.com>
<13413d75-771d-4162-a164-44347670dc75n@googlegroups.com> <6cd17fdf-391e-4e9c-b73d-85ba886c905an@googlegroups.com>
<de81ff24-6472-4eac-81d1-8933e21baa77n@googlegroups.com> <1af7aaab-ef93-44f4-bcac-11bc40225f5en@googlegroups.com>
<def3117d-6360-4c0a-bbd2-21b44ada542fn@googlegroups.com> <5d2a98c3-18ee-492e-a82d-3b353673f291n@googlegroups.com>
<1785267b-656c-4403-98e0-534cfd0e5c22n@googlegroups.com> <4f0da696-a73e-4c53-a1bf-6f36f4c21d65n@googlegroups.com>
<249a55bb-c8fe-4ce8-bff2-59b6c5e4d65fn@googlegroups.com> <9174209e-04c9-42a4-9583-0df00265a7f8n@googlegroups.com>
<825d057c-2691-4a71-b2c5-081179f6f42dn@googlegroups.com> <52b655cf-1b22-46a1-8e00-2d3fb5971748n@googlegroups.com>
<d4d50784-85f9-4d23-a8c6-79b48889e392n@googlegroups.com> <867e2a68-11de-41fb-b357-fa09eb2f9886n@googlegroups.com>
<3ee8811c-0b53-41be-93e3-3accdc8936e3n@googlegroups.com> <45575d98-4951-49fd-8de2-dc30961602fbn@googlegroups.com>
<9a47735b-de35-4412-8eb4-ade84c77d82dn@googlegroups.com> <f52d5c1c-a964-487a-8a0c-4971b7e5d07cn@googlegroups.com>
<a5f03983-87a1-4e87-ac06-5a233f5c4482n@googlegroups.com> <1048cc94-59b5-4b66-a908-a08f3ac2bbcfn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <71096ddf-4d6d-4d4e-894f-cfb64e470266n@googlegroups.com>
Subject: Re: Fast simple microcontroller
From: edward.m...@gmail.com (Ed Lee)
Injection-Date: Mon, 05 Jul 2021 20:07:49 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Ed Lee - Mon, 5 Jul 2021 20:07 UTC

On Monday, July 5, 2021 at 1:02:54 PM UTC-7, lang...@fonz.dk wrote:
> mandag den 5. juli 2021 kl. 19.19.34 UTC+2 skrev Ed Lee:
> > On Monday, July 5, 2021 at 10:08:07 AM UTC-7, lang...@fonz.dk wrote:
> > > mandag den 5. juli 2021 kl. 19.05.27 UTC+2 skrev Ed Lee:
> > > > On Monday, July 5, 2021 at 9:49:43 AM UTC-7, lang...@fonz.dk wrote:
> > > > > mandag den 5. juli 2021 kl. 18.16.25 UTC+2 skrev Ed Lee:
> > > > > > On Monday, July 5, 2021 at 8:51:20 AM UTC-7, gnuarm.del...@gmail.com wrote:
> > > > > > > On Monday, July 5, 2021 at 11:24:12 AM UTC-4, Ed Lee wrote:
> > > > > > > > On Monday, July 5, 2021 at 6:23:38 AM UTC-7, gnuarm.del...@gmail.com wrote:
> > > > > > > > > On Monday, July 5, 2021 at 12:01:26 AM UTC-4, Ed Lee wrote:
> > > > > > > > > > OK, i am asking you a very simply question. How do you change the clock speed on the fly for the FPGA. It's a simple write to registers in micro.
> > > > > > > > > However you wish. The circuit is yours to design. How would you like it to work?
> > > > > > > > >
> > > > > > > > > I like the fact that you keep talking about a "simple write to registers" as if you were programming a sequential processor with a linear address space like an MCU no matter what the device is. (I would also point out that the clocking controls are some of the most complex in any given MCU, so not often a "simple" register write). How would you adjust the clock speed in a discrete circuit design? An FPGA is just discrete logic inside a chip with programmable interconnects. Do you write to registers in analog designs too?
> > > > > > > > >
> > > > > > > > > I will repeat the problem. You continue to be stuck in the MCU mindset and are not willing to learn enough about FPGAs to actually understand them. You won't understand them until you stop pretending FPGAs are just different MCUs. Open your mind. Learn something.
> > > > > > > > Not if you keep side-stepping the question. I ask a very simple and direct question: How do you reconfig the PLL from the chip within?
> > > > > > > No side stepping. That was not the question you asked before.
> > > > > > I asked you how to change the clock speed, which is driven by the PLL. It's the same question. And we, those who know nothing about FPGA, want you to tell us how to do that with the ICE40 FPGA you recommended.
> > > > > > > Clock control is done using the logic resources inside the FPGA. If you are asking about programming the PLL, every device family is different. You can read about it in the data sheet for the clock distribution or some brands have a separate document just for the PLL. They tend to be more complex than a UART, so just listing the bits in registers doesn't explain it. I don't have any of this info memorized, so you will need to look at the docs yourself.
> > > > > > I know how to do that from the Actel designer, but not from within the chip. If you want us to replace our micro with this ICE40 CPLD/FPGA, you should at least give us the link to do it. Otherwise, it's beyond our knowledge to attempt to use this CPLD/FPGA.
> > > > > why would you want to change the clock? if you want lowpower standby, run the housekeeping a the slow clock,
> > > > > keep the pll and the fast stuff in reset when you don''t need it
> > > > Some function needs special speed. For example, usb needs 48MHz exactly. Others need higher speed just for speed and lower speed for power savings.
> > > so what is the question?
> > How do you change the PLL setting of the ICE40 FPGA, from the chip itself, not from an external programmer?
> why would you want to?

When usb (host or device) is connected, it runs at 48MHz. Otherwise, 180MHz to sample the analog signals, then sleep in between sampling.

Re: Fast simple microcontroller

<7aa50c2a-2b05-4ccc-acf5-cf81562919d7n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:a37:bb44:: with SMTP id l65mr15841545qkf.70.1625515824232;
Mon, 05 Jul 2021 13:10:24 -0700 (PDT)
X-Received: by 2002:ac8:7759:: with SMTP id g25mr14140973qtu.6.1625515824063;
Mon, 05 Jul 2021 13:10:24 -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: Mon, 5 Jul 2021 13:10:23 -0700 (PDT)
In-Reply-To: <36f64481-4060-4a04-be39-6a0ff9055d07n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=72.50.1.235; posting-account=I-_H_woAAAA9zzro6crtEpUAyIvzd19b
NNTP-Posting-Host: 72.50.1.235
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> <FDZDI.73843$1q1.31263@fx10.ams4>
<7a3ec58f-1821-42f9-a13c-4bd4c392a014n@googlegroups.com> <db5f52a7-f5be-461a-8e5f-270d8b2f6dbcn@googlegroups.com>
<f6f59c03-4ba4-41a1-9c29-0d27bd3a3785n@googlegroups.com> <985cc588-015f-4e2c-a02a-91dc01e8ed15n@googlegroups.com>
<4bddbd2f-9fbf-4ac6-b3dd-c43c957a7132n@googlegroups.com> <5cfe69c0-dea7-4b80-9105-005b5e3940ean@googlegroups.com>
<df8c7dfe-b84d-4b78-821d-3dcb4d51096en@googlegroups.com> <87268d01-608c-4c9c-a250-aa8c9cfb0669n@googlegroups.com>
<3a2c7624-67c8-4aa2-a630-3c6e217db8ddn@googlegroups.com> <eac2c201-5ed1-4a48-a816-c5ac04098482n@googlegroups.com>
<13413d75-771d-4162-a164-44347670dc75n@googlegroups.com> <6cd17fdf-391e-4e9c-b73d-85ba886c905an@googlegroups.com>
<de81ff24-6472-4eac-81d1-8933e21baa77n@googlegroups.com> <1af7aaab-ef93-44f4-bcac-11bc40225f5en@googlegroups.com>
<def3117d-6360-4c0a-bbd2-21b44ada542fn@googlegroups.com> <5d2a98c3-18ee-492e-a82d-3b353673f291n@googlegroups.com>
<1785267b-656c-4403-98e0-534cfd0e5c22n@googlegroups.com> <4f0da696-a73e-4c53-a1bf-6f36f4c21d65n@googlegroups.com>
<249a55bb-c8fe-4ce8-bff2-59b6c5e4d65fn@googlegroups.com> <9174209e-04c9-42a4-9583-0df00265a7f8n@googlegroups.com>
<825d057c-2691-4a71-b2c5-081179f6f42dn@googlegroups.com> <52b655cf-1b22-46a1-8e00-2d3fb5971748n@googlegroups.com>
<d4d50784-85f9-4d23-a8c6-79b48889e392n@googlegroups.com> <867e2a68-11de-41fb-b357-fa09eb2f9886n@googlegroups.com>
<3ee8811c-0b53-41be-93e3-3accdc8936e3n@googlegroups.com> <70806512-5a57-43dc-97fa-e66374249698n@googlegroups.com>
<b1685aa5-265f-44f6-987b-9aeb00153fffn@googlegroups.com> <7dc26771-270c-48f9-a97d-ae7cb87c116an@googlegroups.com>
<2c07d7cc-50eb-488d-9af6-8505af6943fan@googlegroups.com> <9c8bdec1-4ac5-4490-88de-7d3d96e7d6fdn@googlegroups.com>
<36f64481-4060-4a04-be39-6a0ff9055d07n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7aa50c2a-2b05-4ccc-acf5-cf81562919d7n@googlegroups.com>
Subject: Re: Fast simple microcontroller
From: gnuarm.d...@gmail.com (Rick C)
Injection-Date: Mon, 05 Jul 2021 20:10:24 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Rick C - Mon, 5 Jul 2021 20:10 UTC

On Monday, July 5, 2021 at 3:50:33 PM UTC-4, Ed Lee wrote:
> On Monday, July 5, 2021 at 12:37:28 PM UTC-7, gnuarm.del...@gmail.com wrote:
> > On Monday, July 5, 2021 at 3:25:17 PM UTC-4, Ed Lee wrote:
> > > On Monday, July 5, 2021 at 12:20:21 PM UTC-7, gnuarm.del...@gmail.com wrote:
> > > > On Monday, July 5, 2021 at 3:17:35 PM UTC-4, Ed Lee wrote:
> > > > > STM32 micros can run at 180MHz, as well as close to zero (while sleeping, but with timer on). Your FPGA PLL can't be reconfigured at will, at least you haven't tell us how to.
> > > > A PLL can't run with an output close to zero, at least not at low power. That's true in both the MCU and FPGA. So how do you think you would do this in an MCU? Maybe the answer to that question will show your misconception.
> > > It's called sleep();
> > So what does that do? Where is it documented?
> This and many other places to talk about sleep and other modes. I also post the codes for changing PLL.
>
> https://www.disk91.com/2018/technology/hardware/stm32-and-low-power-mode/

Not really documentation, just some third party web page, but...

Sleep Mode : CPU is stopped, Memory & Register are retained, some peripheral stays active.

Sleep Mode : CPU is stopped but it can be wake-up by any of the active peripherals. Current is down to 400uA @ 16 Mhz to 1mAh
Low Power Sleep Mode : CPU is stopped and the active peripherals are limited and working at reduce frequency. Basically you can program a 32KHz wake-up in this mode. Current is down to 3,2uA

So, does your call sleep(); invoke sleep mode or low power sleep mode? In both cases the CPU is stopped. Why do you ask about changing the frequency of the PLL if you want to stop the CPU? Those are two different things. This call doesn't seem to do anything with the clock or peripherals, so the chip will still be sucking significant current until you shut those off which needs to be done first.

> > We both know what it does is to shut down the PLL and the fast clock and probably shut off the CPU entirely and switch the low power clock circuit on if it was off. In an FPGA you do the same thing which is what I keep telling you. If it kept the CPU running it would not be called sleep(). It would be something like low_power(1) as opposed to low_power( 2 through 7). Yeah, I've seen MCUs with seven low power modes in addition to shutting off the CPU. But every one is different so it's the wild west out there.
> >
> > Have they standardized sleep modes in ARMs? I suspect not as much of the distinctions are about clocking the peripherals. As I've said before clocking in MCUs can get very complex.
> Is complexity the reason to switch from MCU to FPGA, so you can't use them at all?

Certainly simplicity of use is a big reason to use an FPGA. Even small MCUs are complex things these days and have very large manuals. I suppose FPGAs also have lots of documentation, but most of it is not needed since not many people use the SERDES or the various memory interfaces or the... you get the idea. I know the MCU is similar, but I've not seen a simple MCU clocking scheme in the last 20 years. Once they started with the low power modes out the wazoo the clocking became yet another mine field.

FPGA PLLs are probably the same complexity as MCU PLLs. Everything else is whatever you design. I know Lattice parts have special clock managers to let you shut down a clock or to switch between two clocks without glitches. Otherwise you can design your own clock control circuits.

--

Rick C.

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

Re: Fast simple microcontroller

<8e0a27b8-8d9c-4e8c-bdf7-fd3c52de93ben@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:ae9:eb95:: with SMTP id b143mr16168370qkg.202.1625515933927;
Mon, 05 Jul 2021 13:12:13 -0700 (PDT)
X-Received: by 2002:ac8:7f0f:: with SMTP id f15mr1788267qtk.269.1625515933780;
Mon, 05 Jul 2021 13:12:13 -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: Mon, 5 Jul 2021 13:12:13 -0700 (PDT)
In-Reply-To: <71096ddf-4d6d-4d4e-894f-cfb64e470266n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=72.50.1.235; posting-account=I-_H_woAAAA9zzro6crtEpUAyIvzd19b
NNTP-Posting-Host: 72.50.1.235
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> <FDZDI.73843$1q1.31263@fx10.ams4>
<7a3ec58f-1821-42f9-a13c-4bd4c392a014n@googlegroups.com> <db5f52a7-f5be-461a-8e5f-270d8b2f6dbcn@googlegroups.com>
<f6f59c03-4ba4-41a1-9c29-0d27bd3a3785n@googlegroups.com> <985cc588-015f-4e2c-a02a-91dc01e8ed15n@googlegroups.com>
<4bddbd2f-9fbf-4ac6-b3dd-c43c957a7132n@googlegroups.com> <5cfe69c0-dea7-4b80-9105-005b5e3940ean@googlegroups.com>
<df8c7dfe-b84d-4b78-821d-3dcb4d51096en@googlegroups.com> <87268d01-608c-4c9c-a250-aa8c9cfb0669n@googlegroups.com>
<3a2c7624-67c8-4aa2-a630-3c6e217db8ddn@googlegroups.com> <eac2c201-5ed1-4a48-a816-c5ac04098482n@googlegroups.com>
<13413d75-771d-4162-a164-44347670dc75n@googlegroups.com> <6cd17fdf-391e-4e9c-b73d-85ba886c905an@googlegroups.com>
<de81ff24-6472-4eac-81d1-8933e21baa77n@googlegroups.com> <1af7aaab-ef93-44f4-bcac-11bc40225f5en@googlegroups.com>
<def3117d-6360-4c0a-bbd2-21b44ada542fn@googlegroups.com> <5d2a98c3-18ee-492e-a82d-3b353673f291n@googlegroups.com>
<1785267b-656c-4403-98e0-534cfd0e5c22n@googlegroups.com> <4f0da696-a73e-4c53-a1bf-6f36f4c21d65n@googlegroups.com>
<249a55bb-c8fe-4ce8-bff2-59b6c5e4d65fn@googlegroups.com> <9174209e-04c9-42a4-9583-0df00265a7f8n@googlegroups.com>
<825d057c-2691-4a71-b2c5-081179f6f42dn@googlegroups.com> <52b655cf-1b22-46a1-8e00-2d3fb5971748n@googlegroups.com>
<d4d50784-85f9-4d23-a8c6-79b48889e392n@googlegroups.com> <867e2a68-11de-41fb-b357-fa09eb2f9886n@googlegroups.com>
<3ee8811c-0b53-41be-93e3-3accdc8936e3n@googlegroups.com> <45575d98-4951-49fd-8de2-dc30961602fbn@googlegroups.com>
<9a47735b-de35-4412-8eb4-ade84c77d82dn@googlegroups.com> <f52d5c1c-a964-487a-8a0c-4971b7e5d07cn@googlegroups.com>
<a5f03983-87a1-4e87-ac06-5a233f5c4482n@googlegroups.com> <1048cc94-59b5-4b66-a908-a08f3ac2bbcfn@googlegroups.com>
<71096ddf-4d6d-4d4e-894f-cfb64e470266n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <8e0a27b8-8d9c-4e8c-bdf7-fd3c52de93ben@googlegroups.com>
Subject: Re: Fast simple microcontroller
From: gnuarm.d...@gmail.com (Rick C)
Injection-Date: Mon, 05 Jul 2021 20:12:13 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Rick C - Mon, 5 Jul 2021 20:12 UTC

On Monday, July 5, 2021 at 4:07:53 PM UTC-4, Ed Lee wrote:
> On Monday, July 5, 2021 at 1:02:54 PM UTC-7, lang...@fonz.dk wrote:
> > mandag den 5. juli 2021 kl. 19.19.34 UTC+2 skrev Ed Lee:
> > > On Monday, July 5, 2021 at 10:08:07 AM UTC-7, lang...@fonz.dk wrote:
> > > > mandag den 5. juli 2021 kl. 19.05.27 UTC+2 skrev Ed Lee:
> > > > > On Monday, July 5, 2021 at 9:49:43 AM UTC-7, lang...@fonz.dk wrote:
> > > > > > mandag den 5. juli 2021 kl. 18.16.25 UTC+2 skrev Ed Lee:
> > > > > > > On Monday, July 5, 2021 at 8:51:20 AM UTC-7, gnuarm.del...@gmail.com wrote:
> > > > > > > > On Monday, July 5, 2021 at 11:24:12 AM UTC-4, Ed Lee wrote:
> > > > > > > > > On Monday, July 5, 2021 at 6:23:38 AM UTC-7, gnuarm.del....@gmail.com wrote:
> > > > > > > > > > On Monday, July 5, 2021 at 12:01:26 AM UTC-4, Ed Lee wrote:
> > > > > > > > > > > OK, i am asking you a very simply question. How do you change the clock speed on the fly for the FPGA. It's a simple write to registers in micro.
> > > > > > > > > > However you wish. The circuit is yours to design. How would you like it to work?
> > > > > > > > > >
> > > > > > > > > > I like the fact that you keep talking about a "simple write to registers" as if you were programming a sequential processor with a linear address space like an MCU no matter what the device is. (I would also point out that the clocking controls are some of the most complex in any given MCU, so not often a "simple" register write). How would you adjust the clock speed in a discrete circuit design? An FPGA is just discrete logic inside a chip with programmable interconnects. Do you write to registers in analog designs too?
> > > > > > > > > >
> > > > > > > > > > I will repeat the problem. You continue to be stuck in the MCU mindset and are not willing to learn enough about FPGAs to actually understand them. You won't understand them until you stop pretending FPGAs are just different MCUs. Open your mind. Learn something.
> > > > > > > > > Not if you keep side-stepping the question. I ask a very simple and direct question: How do you reconfig the PLL from the chip within?
> > > > > > > > No side stepping. That was not the question you asked before.
> > > > > > > I asked you how to change the clock speed, which is driven by the PLL. It's the same question. And we, those who know nothing about FPGA, want you to tell us how to do that with the ICE40 FPGA you recommended.
> > > > > > > > Clock control is done using the logic resources inside the FPGA. If you are asking about programming the PLL, every device family is different. You can read about it in the data sheet for the clock distribution or some brands have a separate document just for the PLL. They tend to be more complex than a UART, so just listing the bits in registers doesn't explain it. I don't have any of this info memorized, so you will need to look at the docs yourself.
> > > > > > > I know how to do that from the Actel designer, but not from within the chip. If you want us to replace our micro with this ICE40 CPLD/FPGA, you should at least give us the link to do it. Otherwise, it's beyond our knowledge to attempt to use this CPLD/FPGA.
> > > > > > why would you want to change the clock? if you want lowpower standby, run the housekeeping a the slow clock,
> > > > > > keep the pll and the fast stuff in reset when you don''t need it
> > > > > Some function needs special speed. For example, usb needs 48MHz exactly. Others need higher speed just for speed and lower speed for power savings.
> > > > so what is the question?
> > > How do you change the PLL setting of the ICE40 FPGA, from the chip itself, not from an external programmer?
> > why would you want to?
> When usb (host or device) is connected, it runs at 48MHz. Otherwise, 180MHz to sample the analog signals, then sleep in between sampling.

If you are using USB you can run that at 48 MHz all the time. The rest of the chip can run at 180 MHz all the time. Where's the issue?

--

Rick C.

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

Re: Fast simple microcontroller

<3e86fc3d-56a3-4652-bca5-6a714db616fen@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:a05:620a:1026:: with SMTP id a6mr15279864qkk.331.1625516349209; Mon, 05 Jul 2021 13:19:09 -0700 (PDT)
X-Received: by 2002:a05:620a:f94:: with SMTP id b20mr13820409qkn.454.1625516349062; Mon, 05 Jul 2021 13:19:09 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.dns-netz.com!news.freedyn.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!tr1.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: Mon, 5 Jul 2021 13:19:08 -0700 (PDT)
In-Reply-To: <71096ddf-4d6d-4d4e-894f-cfb64e470266n@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> <sbn9o5$5be$1@dont-email.me> <FDZDI.73843$1q1.31263@fx10.ams4> <7a3ec58f-1821-42f9-a13c-4bd4c392a014n@googlegroups.com> <db5f52a7-f5be-461a-8e5f-270d8b2f6dbcn@googlegroups.com> <f6f59c03-4ba4-41a1-9c29-0d27bd3a3785n@googlegroups.com> <985cc588-015f-4e2c-a02a-91dc01e8ed15n@googlegroups.com> <4bddbd2f-9fbf-4ac6-b3dd-c43c957a7132n@googlegroups.com> <5cfe69c0-dea7-4b80-9105-005b5e3940ean@googlegroups.com> <df8c7dfe-b84d-4b78-821d-3dcb4d51096en@googlegroups.com> <87268d01-608c-4c9c-a250-aa8c9cfb0669n@googlegroups.com> <3a2c7624-67c8-4aa2-a630-3c6e217db8ddn@googlegroups.com> <eac2c201-5ed1-4a48-a816-c5ac04098482n@googlegroups.com> <13413d75-771d-4162-a164-44347670dc75n@googlegroups.com> <6cd17fdf-391e-4e9c-b73d-85ba886c905an@googlegroups.com> <de81ff24-6472-4eac-81d1-8933e21baa77n@googlegroups.com> <1af7aaab-ef93-44f4-bcac-11bc40225f5en@googlegroups.com> <def3117d-6360-4c0a-bbd2-21b44ada542fn@googlegroups.com> <5d2a98c3-18ee-492e-a82d-3b35367
3f291n@googlegroups.com> <1785267b-656c-4403-98e0-534cfd0e5c22n@googlegroups.com> <4f0da696-a73e-4c53-a1bf-6f36f4c21d65n@googlegroups.com> <249a55bb-c8fe-4ce8-bff2-59b6c5e4d65fn@googlegroups.com> <9174209e-04c9-42a4-9583-0df00265a7f8n@googlegroups.com> <825d057c-2691-4a71-b2c5-081179f6f42dn@googlegroups.com> <52b655cf-1b22-46a1-8e00-2d3fb5971748n@googlegroups.com> <d4d50784-85f9-4d23-a8c6-79b48889e392n@googlegroups.com> <867e2a68-11de-41fb-b357-fa09eb2f9886n@googlegroups.com> <3ee8811c-0b53-41be-93e3-3accdc8936e3n@googlegroups.com> <45575d98-4951-49fd-8de2-dc30961602fbn@googlegroups.com> <9a47735b-de35-4412-8eb4-ade84c77d82dn@googlegroups.com> <f52d5c1c-a964-487a-8a0c-4971b7e5d07cn@googlegroups.com> <a5f03983-87a1-4e87-ac06-5a233f5c4482n@googlegroups.com> <1048cc94-59b5-4b66-a908-a08f3ac2bbcfn@googlegroups.com> <71096ddf-4d6d-4d4e-894f-cfb64e470266n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3e86fc3d-56a3-4652-bca5-6a714db616fen@googlegroups.com>
Subject: Re: Fast simple microcontroller
From: langw...@fonz.dk (Lasse Langwadt Christensen)
Injection-Date: Mon, 05 Jul 2021 20:19:09 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 73
 by: Lasse Langwadt Chris - Mon, 5 Jul 2021 20:19 UTC

mandag den 5. juli 2021 kl. 22.07.53 UTC+2 skrev Ed Lee:
> On Monday, July 5, 2021 at 1:02:54 PM UTC-7, lang...@fonz.dk wrote:
> > mandag den 5. juli 2021 kl. 19.19.34 UTC+2 skrev Ed Lee:
> > > On Monday, July 5, 2021 at 10:08:07 AM UTC-7, lang...@fonz.dk wrote:
> > > > mandag den 5. juli 2021 kl. 19.05.27 UTC+2 skrev Ed Lee:
> > > > > On Monday, July 5, 2021 at 9:49:43 AM UTC-7, lang...@fonz.dk wrote:
> > > > > > mandag den 5. juli 2021 kl. 18.16.25 UTC+2 skrev Ed Lee:
> > > > > > > On Monday, July 5, 2021 at 8:51:20 AM UTC-7, gnuarm.del...@gmail.com wrote:
> > > > > > > > On Monday, July 5, 2021 at 11:24:12 AM UTC-4, Ed Lee wrote:
> > > > > > > > > On Monday, July 5, 2021 at 6:23:38 AM UTC-7, gnuarm.del....@gmail.com wrote:
> > > > > > > > > > On Monday, July 5, 2021 at 12:01:26 AM UTC-4, Ed Lee wrote:
> > > > > > > > > > > OK, i am asking you a very simply question. How do you change the clock speed on the fly for the FPGA. It's a simple write to registers in micro.
> > > > > > > > > > However you wish. The circuit is yours to design. How would you like it to work?
> > > > > > > > > >
> > > > > > > > > > I like the fact that you keep talking about a "simple write to registers" as if you were programming a sequential processor with a linear address space like an MCU no matter what the device is. (I would also point out that the clocking controls are some of the most complex in any given MCU, so not often a "simple" register write). How would you adjust the clock speed in a discrete circuit design? An FPGA is just discrete logic inside a chip with programmable interconnects. Do you write to registers in analog designs too?
> > > > > > > > > >
> > > > > > > > > > I will repeat the problem. You continue to be stuck in the MCU mindset and are not willing to learn enough about FPGAs to actually understand them. You won't understand them until you stop pretending FPGAs are just different MCUs. Open your mind. Learn something.
> > > > > > > > > Not if you keep side-stepping the question. I ask a very simple and direct question: How do you reconfig the PLL from the chip within?
> > > > > > > > No side stepping. That was not the question you asked before.
> > > > > > > I asked you how to change the clock speed, which is driven by the PLL. It's the same question. And we, those who know nothing about FPGA, want you to tell us how to do that with the ICE40 FPGA you recommended.
> > > > > > > > Clock control is done using the logic resources inside the FPGA. If you are asking about programming the PLL, every device family is different. You can read about it in the data sheet for the clock distribution or some brands have a separate document just for the PLL. They tend to be more complex than a UART, so just listing the bits in registers doesn't explain it. I don't have any of this info memorized, so you will need to look at the docs yourself.
> > > > > > > I know how to do that from the Actel designer, but not from within the chip. If you want us to replace our micro with this ICE40 CPLD/FPGA, you should at least give us the link to do it. Otherwise, it's beyond our knowledge to attempt to use this CPLD/FPGA.
> > > > > > why would you want to change the clock? if you want lowpower standby, run the housekeeping a the slow clock,
> > > > > > keep the pll and the fast stuff in reset when you don''t need it
> > > > > Some function needs special speed. For example, usb needs 48MHz exactly. Others need higher speed just for speed and lower speed for power savings.
> > > > so what is the question?
> > > How do you change the PLL setting of the ICE40 FPGA, from the chip itself, not from an external programmer?
> > why would you want to?
> When usb (host or device) is connected, it runs at 48MHz. Otherwise, 180MHz to sample the analog signals, then sleep in between sampling.

we were talking a 100kHz smps and now you want USB? host even, and 180MHz but why??

Re: Fast simple microcontroller

<1247a5a9-9c98-46a7-ac3d-b052ddb2299cn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:ac8:7ed9:: with SMTP id x25mr14166264qtj.39.1625516485100;
Mon, 05 Jul 2021 13:21:25 -0700 (PDT)
X-Received: by 2002:a05:620a:1920:: with SMTP id bj32mr12575121qkb.406.1625516484934;
Mon, 05 Jul 2021 13:21:24 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.electronics.design
Date: Mon, 5 Jul 2021 13:21:24 -0700 (PDT)
In-Reply-To: <3e86fc3d-56a3-4652-bca5-6a714db616fen@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=108.213.66.240; posting-account=pjQH5woAAABeN8ToX-2bq3zh9hvCM8sL
NNTP-Posting-Host: 108.213.66.240
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> <FDZDI.73843$1q1.31263@fx10.ams4>
<7a3ec58f-1821-42f9-a13c-4bd4c392a014n@googlegroups.com> <db5f52a7-f5be-461a-8e5f-270d8b2f6dbcn@googlegroups.com>
<f6f59c03-4ba4-41a1-9c29-0d27bd3a3785n@googlegroups.com> <985cc588-015f-4e2c-a02a-91dc01e8ed15n@googlegroups.com>
<4bddbd2f-9fbf-4ac6-b3dd-c43c957a7132n@googlegroups.com> <5cfe69c0-dea7-4b80-9105-005b5e3940ean@googlegroups.com>
<df8c7dfe-b84d-4b78-821d-3dcb4d51096en@googlegroups.com> <87268d01-608c-4c9c-a250-aa8c9cfb0669n@googlegroups.com>
<3a2c7624-67c8-4aa2-a630-3c6e217db8ddn@googlegroups.com> <eac2c201-5ed1-4a48-a816-c5ac04098482n@googlegroups.com>
<13413d75-771d-4162-a164-44347670dc75n@googlegroups.com> <6cd17fdf-391e-4e9c-b73d-85ba886c905an@googlegroups.com>
<de81ff24-6472-4eac-81d1-8933e21baa77n@googlegroups.com> <1af7aaab-ef93-44f4-bcac-11bc40225f5en@googlegroups.com>
<def3117d-6360-4c0a-bbd2-21b44ada542fn@googlegroups.com> <5d2a98c3-18ee-492e-a82d-3b353673f291n@googlegroups.com>
<1785267b-656c-4403-98e0-534cfd0e5c22n@googlegroups.com> <4f0da696-a73e-4c53-a1bf-6f36f4c21d65n@googlegroups.com>
<249a55bb-c8fe-4ce8-bff2-59b6c5e4d65fn@googlegroups.com> <9174209e-04c9-42a4-9583-0df00265a7f8n@googlegroups.com>
<825d057c-2691-4a71-b2c5-081179f6f42dn@googlegroups.com> <52b655cf-1b22-46a1-8e00-2d3fb5971748n@googlegroups.com>
<d4d50784-85f9-4d23-a8c6-79b48889e392n@googlegroups.com> <867e2a68-11de-41fb-b357-fa09eb2f9886n@googlegroups.com>
<3ee8811c-0b53-41be-93e3-3accdc8936e3n@googlegroups.com> <45575d98-4951-49fd-8de2-dc30961602fbn@googlegroups.com>
<9a47735b-de35-4412-8eb4-ade84c77d82dn@googlegroups.com> <f52d5c1c-a964-487a-8a0c-4971b7e5d07cn@googlegroups.com>
<a5f03983-87a1-4e87-ac06-5a233f5c4482n@googlegroups.com> <1048cc94-59b5-4b66-a908-a08f3ac2bbcfn@googlegroups.com>
<71096ddf-4d6d-4d4e-894f-cfb64e470266n@googlegroups.com> <3e86fc3d-56a3-4652-bca5-6a714db616fen@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1247a5a9-9c98-46a7-ac3d-b052ddb2299cn@googlegroups.com>
Subject: Re: Fast simple microcontroller
From: edward.m...@gmail.com (Ed Lee)
Injection-Date: Mon, 05 Jul 2021 20:21:25 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 7617
 by: Ed Lee - Mon, 5 Jul 2021 20:21 UTC

On Monday, July 5, 2021 at 1:19:12 PM UTC-7, lang...@fonz.dk wrote:
> mandag den 5. juli 2021 kl. 22.07.53 UTC+2 skrev Ed Lee:
> > On Monday, July 5, 2021 at 1:02:54 PM UTC-7, lang...@fonz.dk wrote:
> > > mandag den 5. juli 2021 kl. 19.19.34 UTC+2 skrev Ed Lee:
> > > > On Monday, July 5, 2021 at 10:08:07 AM UTC-7, lang...@fonz.dk wrote:
> > > > > mandag den 5. juli 2021 kl. 19.05.27 UTC+2 skrev Ed Lee:
> > > > > > On Monday, July 5, 2021 at 9:49:43 AM UTC-7, lang...@fonz.dk wrote:
> > > > > > > mandag den 5. juli 2021 kl. 18.16.25 UTC+2 skrev Ed Lee:
> > > > > > > > On Monday, July 5, 2021 at 8:51:20 AM UTC-7, gnuarm.del...@gmail.com wrote:
> > > > > > > > > On Monday, July 5, 2021 at 11:24:12 AM UTC-4, Ed Lee wrote:
> > > > > > > > > > On Monday, July 5, 2021 at 6:23:38 AM UTC-7, gnuarm.del....@gmail.com wrote:
> > > > > > > > > > > On Monday, July 5, 2021 at 12:01:26 AM UTC-4, Ed Lee wrote:
> > > > > > > > > > > > OK, i am asking you a very simply question. How do you change the clock speed on the fly for the FPGA. It's a simple write to registers in micro.
> > > > > > > > > > > However you wish. The circuit is yours to design. How would you like it to work?
> > > > > > > > > > >
> > > > > > > > > > > I like the fact that you keep talking about a "simple write to registers" as if you were programming a sequential processor with a linear address space like an MCU no matter what the device is. (I would also point out that the clocking controls are some of the most complex in any given MCU, so not often a "simple" register write). How would you adjust the clock speed in a discrete circuit design? An FPGA is just discrete logic inside a chip with programmable interconnects. Do you write to registers in analog designs too?
> > > > > > > > > > >
> > > > > > > > > > > I will repeat the problem. You continue to be stuck in the MCU mindset and are not willing to learn enough about FPGAs to actually understand them. You won't understand them until you stop pretending FPGAs are just different MCUs. Open your mind. Learn something.
> > > > > > > > > > Not if you keep side-stepping the question. I ask a very simple and direct question: How do you reconfig the PLL from the chip within?
> > > > > > > > > No side stepping. That was not the question you asked before.
> > > > > > > > I asked you how to change the clock speed, which is driven by the PLL. It's the same question. And we, those who know nothing about FPGA, want you to tell us how to do that with the ICE40 FPGA you recommended.
> > > > > > > > > Clock control is done using the logic resources inside the FPGA. If you are asking about programming the PLL, every device family is different. You can read about it in the data sheet for the clock distribution or some brands have a separate document just for the PLL. They tend to be more complex than a UART, so just listing the bits in registers doesn't explain it. I don't have any of this info memorized, so you will need to look at the docs yourself.
> > > > > > > > I know how to do that from the Actel designer, but not from within the chip. If you want us to replace our micro with this ICE40 CPLD/FPGA, you should at least give us the link to do it. Otherwise, it's beyond our knowledge to attempt to use this CPLD/FPGA.
> > > > > > > why would you want to change the clock? if you want lowpower standby, run the housekeeping a the slow clock,
> > > > > > > keep the pll and the fast stuff in reset when you don''t need it
> > > > > > Some function needs special speed. For example, usb needs 48MHz exactly. Others need higher speed just for speed and lower speed for power savings.
> > > > > so what is the question?
> > > > How do you change the PLL setting of the ICE40 FPGA, from the chip itself, not from an external programmer?
> > > why would you want to?
> > When usb (host or device) is connected, it runs at 48MHz. Otherwise, 180MHz to sample the analog signals, then sleep in between sampling.
> we were talking a 100kHz smps and now you want USB? host even, and 180MHz but why??

SMPS is only part of my app. There are other functions involved.

Re: Fast simple microcontroller

<e56eb21c-63a0-4a2a-99e1-2464d3963305n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:a37:67cd:: with SMTP id b196mr14946208qkc.418.1625526739312;
Mon, 05 Jul 2021 16:12:19 -0700 (PDT)
X-Received: by 2002:ac8:5a03:: with SMTP id n3mr1067258qta.303.1625526739107;
Mon, 05 Jul 2021 16:12:19 -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: Mon, 5 Jul 2021 16:12:18 -0700 (PDT)
In-Reply-To: <1247a5a9-9c98-46a7-ac3d-b052ddb2299cn@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>
<sbn9o5$5be$1@dont-email.me> <FDZDI.73843$1q1.31263@fx10.ams4>
<7a3ec58f-1821-42f9-a13c-4bd4c392a014n@googlegroups.com> <db5f52a7-f5be-461a-8e5f-270d8b2f6dbcn@googlegroups.com>
<f6f59c03-4ba4-41a1-9c29-0d27bd3a3785n@googlegroups.com> <985cc588-015f-4e2c-a02a-91dc01e8ed15n@googlegroups.com>
<4bddbd2f-9fbf-4ac6-b3dd-c43c957a7132n@googlegroups.com> <5cfe69c0-dea7-4b80-9105-005b5e3940ean@googlegroups.com>
<df8c7dfe-b84d-4b78-821d-3dcb4d51096en@googlegroups.com> <87268d01-608c-4c9c-a250-aa8c9cfb0669n@googlegroups.com>
<3a2c7624-67c8-4aa2-a630-3c6e217db8ddn@googlegroups.com> <eac2c201-5ed1-4a48-a816-c5ac04098482n@googlegroups.com>
<13413d75-771d-4162-a164-44347670dc75n@googlegroups.com> <6cd17fdf-391e-4e9c-b73d-85ba886c905an@googlegroups.com>
<de81ff24-6472-4eac-81d1-8933e21baa77n@googlegroups.com> <1af7aaab-ef93-44f4-bcac-11bc40225f5en@googlegroups.com>
<def3117d-6360-4c0a-bbd2-21b44ada542fn@googlegroups.com> <5d2a98c3-18ee-492e-a82d-3b353673f291n@googlegroups.com>
<1785267b-656c-4403-98e0-534cfd0e5c22n@googlegroups.com> <4f0da696-a73e-4c53-a1bf-6f36f4c21d65n@googlegroups.com>
<249a55bb-c8fe-4ce8-bff2-59b6c5e4d65fn@googlegroups.com> <9174209e-04c9-42a4-9583-0df00265a7f8n@googlegroups.com>
<825d057c-2691-4a71-b2c5-081179f6f42dn@googlegroups.com> <52b655cf-1b22-46a1-8e00-2d3fb5971748n@googlegroups.com>
<d4d50784-85f9-4d23-a8c6-79b48889e392n@googlegroups.com> <867e2a68-11de-41fb-b357-fa09eb2f9886n@googlegroups.com>
<3ee8811c-0b53-41be-93e3-3accdc8936e3n@googlegroups.com> <45575d98-4951-49fd-8de2-dc30961602fbn@googlegroups.com>
<9a47735b-de35-4412-8eb4-ade84c77d82dn@googlegroups.com> <f52d5c1c-a964-487a-8a0c-4971b7e5d07cn@googlegroups.com>
<a5f03983-87a1-4e87-ac06-5a233f5c4482n@googlegroups.com> <1048cc94-59b5-4b66-a908-a08f3ac2bbcfn@googlegroups.com>
<71096ddf-4d6d-4d4e-894f-cfb64e470266n@googlegroups.com> <3e86fc3d-56a3-4652-bca5-6a714db616fen@googlegroups.com>
<1247a5a9-9c98-46a7-ac3d-b052ddb2299cn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e56eb21c-63a0-4a2a-99e1-2464d3963305n@googlegroups.com>
Subject: Re: Fast simple microcontroller
From: langw...@fonz.dk (Lasse Langwadt Christensen)
Injection-Date: Mon, 05 Jul 2021 23:12:19 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Lasse Langwadt Chris - Mon, 5 Jul 2021 23:12 UTC

mandag den 5. juli 2021 kl. 22.21.27 UTC+2 skrev Ed Lee:
> On Monday, July 5, 2021 at 1:19:12 PM UTC-7, lang...@fonz.dk wrote:
> > mandag den 5. juli 2021 kl. 22.07.53 UTC+2 skrev Ed Lee:
> > > On Monday, July 5, 2021 at 1:02:54 PM UTC-7, lang...@fonz.dk wrote:
> > > > mandag den 5. juli 2021 kl. 19.19.34 UTC+2 skrev Ed Lee:
> > > > > On Monday, July 5, 2021 at 10:08:07 AM UTC-7, lang...@fonz.dk wrote:
> > > > > > mandag den 5. juli 2021 kl. 19.05.27 UTC+2 skrev Ed Lee:
> > > > > > > On Monday, July 5, 2021 at 9:49:43 AM UTC-7, lang...@fonz.dk wrote:
> > > > > > > > mandag den 5. juli 2021 kl. 18.16.25 UTC+2 skrev Ed Lee:
> > > > > > > > > On Monday, July 5, 2021 at 8:51:20 AM UTC-7, gnuarm.del....@gmail.com wrote:
> > > > > > > > > > On Monday, July 5, 2021 at 11:24:12 AM UTC-4, Ed Lee wrote:
> > > > > > > > > > > On Monday, July 5, 2021 at 6:23:38 AM UTC-7, gnuarm.del...@gmail.com wrote:
> > > > > > > > > > > > On Monday, July 5, 2021 at 12:01:26 AM UTC-4, Ed Lee wrote:
> > > > > > > > > > > > > OK, i am asking you a very simply question. How do you change the clock speed on the fly for the FPGA. It's a simple write to registers in micro.
> > > > > > > > > > > > However you wish. The circuit is yours to design. How would you like it to work?
> > > > > > > > > > > >
> > > > > > > > > > > > I like the fact that you keep talking about a "simple write to registers" as if you were programming a sequential processor with a linear address space like an MCU no matter what the device is. (I would also point out that the clocking controls are some of the most complex in any given MCU, so not often a "simple" register write). How would you adjust the clock speed in a discrete circuit design? An FPGA is just discrete logic inside a chip with programmable interconnects. Do you write to registers in analog designs too?
> > > > > > > > > > > >
> > > > > > > > > > > > I will repeat the problem. You continue to be stuck in the MCU mindset and are not willing to learn enough about FPGAs to actually understand them. You won't understand them until you stop pretending FPGAs are just different MCUs. Open your mind. Learn something.
> > > > > > > > > > > Not if you keep side-stepping the question. I ask a very simple and direct question: How do you reconfig the PLL from the chip within?
> > > > > > > > > > No side stepping. That was not the question you asked before.
> > > > > > > > > I asked you how to change the clock speed, which is driven by the PLL. It's the same question. And we, those who know nothing about FPGA, want you to tell us how to do that with the ICE40 FPGA you recommended.
> > > > > > > > > > Clock control is done using the logic resources inside the FPGA. If you are asking about programming the PLL, every device family is different. You can read about it in the data sheet for the clock distribution or some brands have a separate document just for the PLL. They tend to be more complex than a UART, so just listing the bits in registers doesn't explain it. I don't have any of this info memorized, so you will need to look at the docs yourself.
> > > > > > > > > I know how to do that from the Actel designer, but not from within the chip. If you want us to replace our micro with this ICE40 CPLD/FPGA, you should at least give us the link to do it. Otherwise, it's beyond our knowledge to attempt to use this CPLD/FPGA.
> > > > > > > > why would you want to change the clock? if you want lowpower standby, run the housekeeping a the slow clock,
> > > > > > > > keep the pll and the fast stuff in reset when you don''t need it
> > > > > > > Some function needs special speed. For example, usb needs 48MHz exactly. Others need higher speed just for speed and lower speed for power savings.
> > > > > > so what is the question?
> > > > > How do you change the PLL setting of the ICE40 FPGA, from the chip itself, not from an external programmer?
> > > > why would you want to?
> > > When usb (host or device) is connected, it runs at 48MHz. Otherwise, 180MHz to sample the analog signals, then sleep in between sampling.
> > we were talking a 100kHz smps and now you want USB? host even, and 180MHz but why??
> SMPS is only part of my app. There are other functions involved.

if you want to run USB you need a separate 48MHz pll/clock for that, it won't run on 180MHz

Re: Fast simple microcontroller

<db860e12-a5ff-4b9a-bb01-5fe753855b0bn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:a37:a97:: with SMTP id 145mr5113251qkk.441.1625532929253;
Mon, 05 Jul 2021 17:55:29 -0700 (PDT)
X-Received: by 2002:a05:622a:1483:: with SMTP id t3mr14924879qtx.390.1625532929053;
Mon, 05 Jul 2021 17:55:29 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!usenet.pasdenom.info!usenet-fr.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: Mon, 5 Jul 2021 17:55:28 -0700 (PDT)
In-Reply-To: <e56eb21c-63a0-4a2a-99e1-2464d3963305n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=108.213.66.240; posting-account=pjQH5woAAABeN8ToX-2bq3zh9hvCM8sL
NNTP-Posting-Host: 108.213.66.240
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> <FDZDI.73843$1q1.31263@fx10.ams4>
<7a3ec58f-1821-42f9-a13c-4bd4c392a014n@googlegroups.com> <db5f52a7-f5be-461a-8e5f-270d8b2f6dbcn@googlegroups.com>
<f6f59c03-4ba4-41a1-9c29-0d27bd3a3785n@googlegroups.com> <985cc588-015f-4e2c-a02a-91dc01e8ed15n@googlegroups.com>
<4bddbd2f-9fbf-4ac6-b3dd-c43c957a7132n@googlegroups.com> <5cfe69c0-dea7-4b80-9105-005b5e3940ean@googlegroups.com>
<df8c7dfe-b84d-4b78-821d-3dcb4d51096en@googlegroups.com> <87268d01-608c-4c9c-a250-aa8c9cfb0669n@googlegroups.com>
<3a2c7624-67c8-4aa2-a630-3c6e217db8ddn@googlegroups.com> <eac2c201-5ed1-4a48-a816-c5ac04098482n@googlegroups.com>
<13413d75-771d-4162-a164-44347670dc75n@googlegroups.com> <6cd17fdf-391e-4e9c-b73d-85ba886c905an@googlegroups.com>
<de81ff24-6472-4eac-81d1-8933e21baa77n@googlegroups.com> <1af7aaab-ef93-44f4-bcac-11bc40225f5en@googlegroups.com>
<def3117d-6360-4c0a-bbd2-21b44ada542fn@googlegroups.com> <5d2a98c3-18ee-492e-a82d-3b353673f291n@googlegroups.com>
<1785267b-656c-4403-98e0-534cfd0e5c22n@googlegroups.com> <4f0da696-a73e-4c53-a1bf-6f36f4c21d65n@googlegroups.com>
<249a55bb-c8fe-4ce8-bff2-59b6c5e4d65fn@googlegroups.com> <9174209e-04c9-42a4-9583-0df00265a7f8n@googlegroups.com>
<825d057c-2691-4a71-b2c5-081179f6f42dn@googlegroups.com> <52b655cf-1b22-46a1-8e00-2d3fb5971748n@googlegroups.com>
<d4d50784-85f9-4d23-a8c6-79b48889e392n@googlegroups.com> <867e2a68-11de-41fb-b357-fa09eb2f9886n@googlegroups.com>
<3ee8811c-0b53-41be-93e3-3accdc8936e3n@googlegroups.com> <45575d98-4951-49fd-8de2-dc30961602fbn@googlegroups.com>
<9a47735b-de35-4412-8eb4-ade84c77d82dn@googlegroups.com> <f52d5c1c-a964-487a-8a0c-4971b7e5d07cn@googlegroups.com>
<a5f03983-87a1-4e87-ac06-5a233f5c4482n@googlegroups.com> <1048cc94-59b5-4b66-a908-a08f3ac2bbcfn@googlegroups.com>
<71096ddf-4d6d-4d4e-894f-cfb64e470266n@googlegroups.com> <3e86fc3d-56a3-4652-bca5-6a714db616fen@googlegroups.com>
<1247a5a9-9c98-46a7-ac3d-b052ddb2299cn@googlegroups.com> <e56eb21c-63a0-4a2a-99e1-2464d3963305n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <db860e12-a5ff-4b9a-bb01-5fe753855b0bn@googlegroups.com>
Subject: Re: Fast simple microcontroller
From: edward.m...@gmail.com (Ed Lee)
Injection-Date: Tue, 06 Jul 2021 00:55:29 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Ed Lee - Tue, 6 Jul 2021 00:55 UTC

On Monday, July 5, 2021 at 4:12:22 PM UTC-7, lang...@fonz.dk wrote:
> mandag den 5. juli 2021 kl. 22.21.27 UTC+2 skrev Ed Lee:
> > On Monday, July 5, 2021 at 1:19:12 PM UTC-7, lang...@fonz.dk wrote:
> > > mandag den 5. juli 2021 kl. 22.07.53 UTC+2 skrev Ed Lee:
> > > > On Monday, July 5, 2021 at 1:02:54 PM UTC-7, lang...@fonz.dk wrote:
> > > > > mandag den 5. juli 2021 kl. 19.19.34 UTC+2 skrev Ed Lee:
> > > > > > On Monday, July 5, 2021 at 10:08:07 AM UTC-7, lang...@fonz.dk wrote:
> > > > > > > mandag den 5. juli 2021 kl. 19.05.27 UTC+2 skrev Ed Lee:
> > > > > > > > On Monday, July 5, 2021 at 9:49:43 AM UTC-7, lang...@fonz.dk wrote:
> > > > > > > > > mandag den 5. juli 2021 kl. 18.16.25 UTC+2 skrev Ed Lee:
> > > > > > > > > > On Monday, July 5, 2021 at 8:51:20 AM UTC-7, gnuarm.del....@gmail.com wrote:
> > > > > > > > > > > On Monday, July 5, 2021 at 11:24:12 AM UTC-4, Ed Lee wrote:
> > > > > > > > > > > > On Monday, July 5, 2021 at 6:23:38 AM UTC-7, gnuarm..del...@gmail.com wrote:
> > > > > > > > > > > > > On Monday, July 5, 2021 at 12:01:26 AM UTC-4, Ed Lee wrote:
> > > > > > > > > > > > > > OK, i am asking you a very simply question. How do you change the clock speed on the fly for the FPGA. It's a simple write to registers in micro.
> > > > > > > > > > > > > However you wish. The circuit is yours to design. How would you like it to work?
> > > > > > > > > > > > >
> > > > > > > > > > > > > I like the fact that you keep talking about a "simple write to registers" as if you were programming a sequential processor with a linear address space like an MCU no matter what the device is. (I would also point out that the clocking controls are some of the most complex in any given MCU, so not often a "simple" register write). How would you adjust the clock speed in a discrete circuit design? An FPGA is just discrete logic inside a chip with programmable interconnects. Do you write to registers in analog designs too?
> > > > > > > > > > > > >
> > > > > > > > > > > > > I will repeat the problem. You continue to be stuck in the MCU mindset and are not willing to learn enough about FPGAs to actually understand them. You won't understand them until you stop pretending FPGAs are just different MCUs. Open your mind. Learn something.
> > > > > > > > > > > > Not if you keep side-stepping the question. I ask a very simple and direct question: How do you reconfig the PLL from the chip within?
> > > > > > > > > > > No side stepping. That was not the question you asked before.
> > > > > > > > > > I asked you how to change the clock speed, which is driven by the PLL. It's the same question. And we, those who know nothing about FPGA, want you to tell us how to do that with the ICE40 FPGA you recommended.
> > > > > > > > > > > Clock control is done using the logic resources inside the FPGA. If you are asking about programming the PLL, every device family is different. You can read about it in the data sheet for the clock distribution or some brands have a separate document just for the PLL. They tend to be more complex than a UART, so just listing the bits in registers doesn't explain it. I don't have any of this info memorized, so you will need to look at the docs yourself.
> > > > > > > > > > I know how to do that from the Actel designer, but not from within the chip. If you want us to replace our micro with this ICE40 CPLD/FPGA, you should at least give us the link to do it. Otherwise, it's beyond our knowledge to attempt to use this CPLD/FPGA.
> > > > > > > > > why would you want to change the clock? if you want lowpower standby, run the housekeeping a the slow clock,
> > > > > > > > > keep the pll and the fast stuff in reset when you don''t need it
> > > > > > > > Some function needs special speed. For example, usb needs 48MHz exactly. Others need higher speed just for speed and lower speed for power savings.
> > > > > > > so what is the question?
> > > > > > How do you change the PLL setting of the ICE40 FPGA, from the chip itself, not from an external programmer?
> > > > > why would you want to?
> > > > When usb (host or device) is connected, it runs at 48MHz. Otherwise, 180MHz to sample the analog signals, then sleep in between sampling.
> > > we were talking a 100kHz smps and now you want USB? host even, and 180MHz but why??
> > SMPS is only part of my app. There are other functions involved.
> if you want to run USB you need a separate 48MHz pll/clock for that, it won't run on 180MHz

I sense the 5V Vusb at startup and set the PLL to 48MHz for data upload to PC. Otherwise, PLL to 180MHz while running on battery and acquiring signal.. The output counter also drive a 12V inverter, but only need to adjust the output counter based on the battery voltage periodically.

Re: Fast simple microcontroller

<b59b7e3c-75c9-4cff-90dc-f7e7a8d9fb1fn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:ac8:4715:: with SMTP id f21mr753185qtp.296.1625536948883;
Mon, 05 Jul 2021 19:02:28 -0700 (PDT)
X-Received: by 2002:a05:6214:13a6:: with SMTP id h6mr15710097qvz.59.1625536948632;
Mon, 05 Jul 2021 19:02:28 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!usenet.pasdenom.info!usenet-fr.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: Mon, 5 Jul 2021 19:02:28 -0700 (PDT)
In-Reply-To: <db860e12-a5ff-4b9a-bb01-5fe753855b0bn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=72.50.1.199; posting-account=I-_H_woAAAA9zzro6crtEpUAyIvzd19b
NNTP-Posting-Host: 72.50.1.199
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> <FDZDI.73843$1q1.31263@fx10.ams4>
<7a3ec58f-1821-42f9-a13c-4bd4c392a014n@googlegroups.com> <db5f52a7-f5be-461a-8e5f-270d8b2f6dbcn@googlegroups.com>
<f6f59c03-4ba4-41a1-9c29-0d27bd3a3785n@googlegroups.com> <985cc588-015f-4e2c-a02a-91dc01e8ed15n@googlegroups.com>
<4bddbd2f-9fbf-4ac6-b3dd-c43c957a7132n@googlegroups.com> <5cfe69c0-dea7-4b80-9105-005b5e3940ean@googlegroups.com>
<df8c7dfe-b84d-4b78-821d-3dcb4d51096en@googlegroups.com> <87268d01-608c-4c9c-a250-aa8c9cfb0669n@googlegroups.com>
<3a2c7624-67c8-4aa2-a630-3c6e217db8ddn@googlegroups.com> <eac2c201-5ed1-4a48-a816-c5ac04098482n@googlegroups.com>
<13413d75-771d-4162-a164-44347670dc75n@googlegroups.com> <6cd17fdf-391e-4e9c-b73d-85ba886c905an@googlegroups.com>
<de81ff24-6472-4eac-81d1-8933e21baa77n@googlegroups.com> <1af7aaab-ef93-44f4-bcac-11bc40225f5en@googlegroups.com>
<def3117d-6360-4c0a-bbd2-21b44ada542fn@googlegroups.com> <5d2a98c3-18ee-492e-a82d-3b353673f291n@googlegroups.com>
<1785267b-656c-4403-98e0-534cfd0e5c22n@googlegroups.com> <4f0da696-a73e-4c53-a1bf-6f36f4c21d65n@googlegroups.com>
<249a55bb-c8fe-4ce8-bff2-59b6c5e4d65fn@googlegroups.com> <9174209e-04c9-42a4-9583-0df00265a7f8n@googlegroups.com>
<825d057c-2691-4a71-b2c5-081179f6f42dn@googlegroups.com> <52b655cf-1b22-46a1-8e00-2d3fb5971748n@googlegroups.com>
<d4d50784-85f9-4d23-a8c6-79b48889e392n@googlegroups.com> <867e2a68-11de-41fb-b357-fa09eb2f9886n@googlegroups.com>
<3ee8811c-0b53-41be-93e3-3accdc8936e3n@googlegroups.com> <45575d98-4951-49fd-8de2-dc30961602fbn@googlegroups.com>
<9a47735b-de35-4412-8eb4-ade84c77d82dn@googlegroups.com> <f52d5c1c-a964-487a-8a0c-4971b7e5d07cn@googlegroups.com>
<a5f03983-87a1-4e87-ac06-5a233f5c4482n@googlegroups.com> <1048cc94-59b5-4b66-a908-a08f3ac2bbcfn@googlegroups.com>
<71096ddf-4d6d-4d4e-894f-cfb64e470266n@googlegroups.com> <3e86fc3d-56a3-4652-bca5-6a714db616fen@googlegroups.com>
<1247a5a9-9c98-46a7-ac3d-b052ddb2299cn@googlegroups.com> <e56eb21c-63a0-4a2a-99e1-2464d3963305n@googlegroups.com>
<db860e12-a5ff-4b9a-bb01-5fe753855b0bn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b59b7e3c-75c9-4cff-90dc-f7e7a8d9fb1fn@googlegroups.com>
Subject: Re: Fast simple microcontroller
From: gnuarm.d...@gmail.com (Rick C)
Injection-Date: Tue, 06 Jul 2021 02:02:28 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Rick C - Tue, 6 Jul 2021 02:02 UTC

On Monday, July 5, 2021 at 8:55:32 PM UTC-4, Ed Lee wrote:
> I sense the 5V Vusb at startup and set the PLL to 48MHz for data upload to PC. Otherwise, PLL to 180MHz while running on battery and acquiring signal. The output counter also drive a 12V inverter, but only need to adjust the output counter based on the battery voltage periodically.

Sounds complicated. Too bad you aren't working in an FPGA were you can dedicate a 48 MHz PLL to the USB and run the rest of the design at whatever rate you want with a second PLL.

--

Rick C.

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

Re: Fast simple microcontroller

<sc14kv$5ja$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: sci.electronics.design
Path: i2pn2.org!i2pn.org!aioe.org!kTL2l0jWzcGX0osJwUWcTw.user.gioia.aioe.org.POSTED!not-for-mail
From: '''newsp...@nonad.co.uk (Martin Brown)
Newsgroups: sci.electronics.design
Subject: Re: Fast simple microcontroller
Date: Tue, 6 Jul 2021 09:35:43 +0100
Organization: Aioe.org NNTP Server
Lines: 61
Message-ID: <sc14kv$5ja$1@gioia.aioe.org>
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>
<28d3f75f-7bf4-4bb1-b1c1-0e439c4e3ee1n@googlegroups.com>
<sbq7bt$tmj$1@dont-email.me>
<4e9c07eb-62eb-4463-9ca4-bc4c600ad9can@googlegroups.com>
<sbqefa$gia$1@dont-email.me> <sbqfbb$m6e$1@dont-email.me>
<168e6f590f77d06d$1$1356503$70dd7a6b@news.thecubenet.com>
<b0d3faf5-9b18-4b33-8cff-e3fefb13259cn@googlegroups.com>
<79423ca6-71ca-4b67-a50b-a2276ff50ce5n@googlegroups.com>
<sbsc7g$1dj4$1@gioia.aioe.org> <sbsgpt$ono$1@dont-email.me>
NNTP-Posting-Host: kTL2l0jWzcGX0osJwUWcTw.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Content-Language: en-GB
X-Notice: Filtered by postfilter v. 0.9.2
 by: Martin Brown - Tue, 6 Jul 2021 08:35 UTC

On 04/07/2021 15:32, Don Y wrote:
> On 7/4/2021 6:14 AM, Martin Brown wrote:
>>> The claim that the IDE "will tell you the exact max timings from
>>> here to there in you, for /all/ of the code paths in between" does
>>> imply that you can work out all the possible paths, which does seem
>>> to be over-optimistic.
>>
>> Working out all possible paths for a given set of code is a relatively
>> easily solved problem. McCabes CCI complexity metric does exactly
>> that. Every decision point becomes a node and the code inbetween a
>> line on a graph whose length can be proportional to execution time.
>
> But you can't put an execution time on those lines unless you know the
> *data* values associated.  I.e., you can tell me that the time "around"
> a loop of code; but you can't know how many times that loop will be
> executed and, thus, the total time that it will take to GET PAST it.

You still known how long it takes to execute between the two nodes but
not how many times the nodes doing the controlling will make it execute.
>
>> For most paths between decision points you can work out a minimum and
>> maximum number of machine cycles it is likely to take. Where it gets
>> very tricky though is when branch prediction and speculative execution
>> is involved. Classical gofaster code like loop unrolling can even go
>> slower if it no longer fits nicely into execution cache.
>>
>> Even working out a minimal subset of CCI test vectors that will
>> execute every possible path at least once is still pretty simple to
>> do. And also quite worthwhile since the last bugs tend to reside in
>> the least trodden paths (which turn out to be in rare but vital
>> critical error recovery).
>
> Tools like KLEE can be used to help create test cases to exercise branches.
> But, you still can't guarantee that every path WILL be traversed as that
> implies there are no bugs in the code that prevent that from happening:
>
>      if (x odd) {
>          if (x even) {
>              foo;
>          } else {
>              bar;
>          }
>      }
>
> there's no set of inputs that will reach "foo".   So, any metric that
> provides
> a time for that "foo" branch is meaningless -- we KNOW it will never
> happen.

Several of the compilers I use will recognise that at compile time
during dataflow analysis as an unreachable statement. Others will quite
happily optimise the unreachable chunk of code out of existence without
any mention of a problem. Chances are good such code is an error.

One of my favourite teaching compilers codes a hard runtime trap for
invalid pointers or uninitialised variables. You can make it a compile
time error but the default for teaching purposes is to fail at runtime.

--
Regards,
Martin Brown

Re: Fast simple microcontroller

<sc1d6d$oq0$1@dont-email.me>

  copy mid

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

  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: Tue, 6 Jul 2021 04:01:22 -0700
Organization: A noiseless patient Spider
Lines: 95
Message-ID: <sc1d6d$oq0$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>
<sbng70$kv1$1@dont-email.me>
<28d3f75f-7bf4-4bb1-b1c1-0e439c4e3ee1n@googlegroups.com>
<sbq7bt$tmj$1@dont-email.me>
<4e9c07eb-62eb-4463-9ca4-bc4c600ad9can@googlegroups.com>
<sbqefa$gia$1@dont-email.me> <sbqfbb$m6e$1@dont-email.me>
<168e6f590f77d06d$1$1356503$70dd7a6b@news.thecubenet.com>
<b0d3faf5-9b18-4b33-8cff-e3fefb13259cn@googlegroups.com>
<79423ca6-71ca-4b67-a50b-a2276ff50ce5n@googlegroups.com>
<sbsc7g$1dj4$1@gioia.aioe.org> <sbsgpt$ono$1@dont-email.me>
<sc14kv$5ja$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 6 Jul 2021 11:01:33 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="3a916485a084fd50a5b0803c9cb00582";
logging-data="25408"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/kaAgZxRmVUfQaa31RlNHe"
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101
Thunderbird/52.1.1
Cancel-Lock: sha1:106PHwtWUDpSGXs+MqUg96x0rtg=
In-Reply-To: <sc14kv$5ja$1@gioia.aioe.org>
Content-Language: en-US
 by: Don Y - Tue, 6 Jul 2021 11:01 UTC

On 7/6/2021 1:35 AM, Martin Brown wrote:
> On 04/07/2021 15:32, Don Y wrote:
>> On 7/4/2021 6:14 AM, Martin Brown wrote:
>>>> The claim that the IDE "will tell you the exact max timings from here to
>>>> there in you, for /all/ of the code paths in between" does imply that you
>>>> can work out all the possible paths, which does seem to be over-optimistic.
>>>
>>> Working out all possible paths for a given set of code is a relatively
>>> easily solved problem. McCabes CCI complexity metric does exactly that.
>>> Every decision point becomes a node and the code inbetween a line on a graph
>>> whose length can be proportional to execution time.
>>
>> But you can't put an execution time on those lines unless you know the
>> *data* values associated. I.e., you can tell me that the time "around"
>> a loop of code; but you can't know how many times that loop will be
>> executed and, thus, the total time that it will take to GET PAST it.
>
> You still known how long it takes to execute between the two nodes but not how
> many times the nodes doing the controlling will make it execute.

statement1
loopingconstruct
statement2

How long from statement 1 to statement 2?

statement1
longjmp()
statement2

Again?

>>> For most paths between decision points you can work out a minimum and
>>> maximum number of machine cycles it is likely to take. Where it gets very
>>> tricky though is when branch prediction and speculative execution is
>>> involved. Classical gofaster code like loop unrolling can even go slower if
>>> it no longer fits nicely into execution cache.
>>>
>>> Even working out a minimal subset of CCI test vectors that will execute
>>> every possible path at least once is still pretty simple to do. And also
>>> quite worthwhile since the last bugs tend to reside in the least trodden
>>> paths (which turn out to be in rare but vital critical error recovery).
>>
>> Tools like KLEE can be used to help create test cases to exercise branches.
>> But, you still can't guarantee that every path WILL be traversed as that
>> implies there are no bugs in the code that prevent that from happening:
>>
>> if (x odd) {
>> if (x even) {
>> foo;
>> } else {
>> bar;
>> }
>> }
>>
>> there's no set of inputs that will reach "foo". So, any metric that provides
>> a time for that "foo" branch is meaningless -- we KNOW it will never happen.
>
> Several of the compilers I use will recognise that at compile time during
> dataflow analysis as an unreachable statement. Others will quite happily
> optimise the unreachable chunk of code out of existence without any mention of
> a problem. Chances are good such code is an error.

No, assume this is ASM. Does the assembler optimize away the statements?

Or, assume the odd/even are two less obvious but mutually exclusive
conditions: "modelA" and "optionB" and some other criteria ensures
modelA and optionB can't coincide.

A compiler (or data flow analysis tool) can only make *deductions*
about things that it knows about.

> One of my favourite teaching compilers codes a hard runtime trap for invalid
> pointers or uninitialised variables. You can make it a compile time error but
> the default for teaching purposes is to fail at runtime.

*Compilers*, nowadays, can pick up most of these sorts of issues.
Even if they can't *conclude* that something is being used
before initialization, they can warn of their *suspicions* in
those cases.

But, that's for compiled code. What if I'm writing *under* that level
(ASM)? What liberties *can* the tool take with my code?

foo: jump fred
jump barney
jump wilma

looks like there are two unreachable statements, there (given there are
no labels associated with the last two). But, what if some other piece
of code overwrites the statement at foo with a NOP? If the jump barney
had been elided as unreachable, the resulting code wouldn't work.

(do you add a switch to tell the tool that the code is immutable?
at what level does the coder assume godlike abilities and responsibilities?)

Re: Fast simple microcontroller

<tscheppe.1op6vr3zzgzwl@nntp.aioe.org>

  copy mid

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

  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 Kragelund)
Newsgroups: sci.electronics.design
Subject: Re: Fast simple microcontroller
Date: Tue, 06 Jul 2021 23:13:09 +0200
Organization: Aioe.org NNTP Server
Lines: 45
Message-ID: <tscheppe.1op6vr3zzgzwl@nntp.aioe.org>
References: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com> <sbnc9r$f0g$1@gioia.aioe.org> <sbpjcd$aic$1@dont-email.me> <sbte1m$1rj$1@gioia.aioe.org> <b50f83d1-9bb9-4cb7-96ae-c8274b2e3159n@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: 8bit
X-Complaints-To: abuse@aioe.org
User-Agent: Newsgroups for Android by Tscheppe
Content-Language: en_DK
X-Notice: Filtered by postfilter v. 0.9.2
 by: Klaus Kragelund - Tue, 6 Jul 2021 21:13 UTC

05.07.21 05:47, Rick C wrote:
>On Sunday, July 4, 2021 at 6:51:42 PM UTC-4, Klaus Kragelund wrote:
>> On 03/07/2021 13.58, piglet wrote:
>> > On 02/07/2021 16:45, Klaus Vestergaard Kragelund wrote:
>> >> 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
>> > Look back a few weeks in SED for thread "Low noise high bias voltage
>> > ..." - basically a call for ideas on a low noise high voltage low power
>> > inverter.
>> >
>> > Bill Sloman is now exploring using very fast mcus to generate square
>> > wave drive for the current fed center tap push-pull converter he is
>> > fascinated with.
>> >
>> Thanks, I searched back and found it :-)
>>
>> Very nice discussion, and also this thread which is technical instead of
>> all that OT.
>>
>> In fact I am working on something vaguely similar. Also a micro driving
>> a converter. Right now it is hard-driven, but have been thinking about
>> using it in resonant mode
>>
>> Resonant mode is a little difficult in that the loop gain is nonlinear.
>> Most resonant controllers use a charge transfer principle, to avoid this
>> non-liniarity. That is not simple to implement in a micro
>
>Where is it simple to implement?
>
Using a controller IC designed for resonant control. UCC25600

--
Klaus

Re: Fast simple microcontroller

<b3d3e1e5-ee14-43aa-8b68-4ed54a7729c4n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:a37:9445:: with SMTP id w66mr22543112qkd.410.1625612285136;
Tue, 06 Jul 2021 15:58:05 -0700 (PDT)
X-Received: by 2002:a05:622a:1483:: with SMTP id t3mr19514741qtx.390.1625612284954;
Tue, 06 Jul 2021 15:58:04 -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: Tue, 6 Jul 2021 15:58:04 -0700 (PDT)
In-Reply-To: <tscheppe.1op6vr3zzgzwl@nntp.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=72.50.1.29; posting-account=I-_H_woAAAA9zzro6crtEpUAyIvzd19b
NNTP-Posting-Host: 72.50.1.29
References: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com>
<sbnc9r$f0g$1@gioia.aioe.org> <sbpjcd$aic$1@dont-email.me>
<sbte1m$1rj$1@gioia.aioe.org> <b50f83d1-9bb9-4cb7-96ae-c8274b2e3159n@googlegroups.com>
<tscheppe.1op6vr3zzgzwl@nntp.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b3d3e1e5-ee14-43aa-8b68-4ed54a7729c4n@googlegroups.com>
Subject: Re: Fast simple microcontroller
From: gnuarm.d...@gmail.com (Rick C)
Injection-Date: Tue, 06 Jul 2021 22:58:05 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Rick C - Tue, 6 Jul 2021 22:58 UTC

On Tuesday, July 6, 2021 at 5:13:18 PM UTC-4, Klaus Kragelund wrote:
> 05.07.21 05:47, Rick C wrote:
> >On Sunday, July 4, 2021 at 6:51:42 PM UTC-4, Klaus Kragelund wrote:
> >> On 03/07/2021 13.58, piglet wrote:
> >> > On 02/07/2021 16:45, Klaus Vestergaard Kragelund wrote:
> >> >> 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
> >> > Look back a few weeks in SED for thread "Low noise high bias voltage
> >> > ..." - basically a call for ideas on a low noise high voltage low power
> >> > inverter.
> >> >
> >> > Bill Sloman is now exploring using very fast mcus to generate square
> >> > wave drive for the current fed center tap push-pull converter he is
> >> > fascinated with.
> >> >
> >> Thanks, I searched back and found it :-)
> >>
> >> Very nice discussion, and also this thread which is technical instead of
> >> all that OT.
> >>
> >> In fact I am working on something vaguely similar. Also a micro driving
> >> a converter. Right now it is hard-driven, but have been thinking about
> >> using it in resonant mode
> >>
> >> Resonant mode is a little difficult in that the loop gain is nonlinear..
> >> Most resonant controllers use a charge transfer principle, to avoid this
> >> non-liniarity. That is not simple to implement in a micro
> >
> >Where is it simple to implement?
> >
> Using a controller IC designed for resonant control. UCC25600

So why is an MCU being discussed in this thread? I assume there is a reason to do this in an MCU rather than a dedicated chip. In that case what makes it hard to do in an MCU? If the math was worked out for a dedicated chip, it must be practical. Or are you saying it's hard math to solve for a low dollar budget? We don't know what the NRE budget is for this project. We just know the recurring costs need to be very low... or it appears that way.

--

Rick C.

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

Re: Fast simple microcontroller

<se6bj8$ir6q$1@portraits.wsisiz.edu.pl>

  copy mid

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

  copy link   Newsgroups: sci.electronics.design
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.uzoreto.com!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!newsfeed.neostrada.pl!unt-exc-01.news.neostrada.pl!wsisiz.edu.pl!.POSTED.h82-143-146-166-static.e-wro.net.pl!not-for-mail
From: bomb...@protonmail.com (Piotr Wyderski)
Newsgroups: sci.electronics.design
Subject: Re: Fast simple microcontroller
Date: Sun, 1 Aug 2021 16:37:16 +0200
Organization: http://www.wit.edu.pl
Message-ID: <se6bj8$ir6q$1@portraits.wsisiz.edu.pl>
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: Sun, 1 Aug 2021 14:37:28 -0000 (UTC)
Injection-Info: portraits.wsisiz.edu.pl; posting-host="h82-143-146-166-static.e-wro.net.pl:82.143.146.166";
logging-data="617690"; mail-complaints-to="abuse@wsisiz.edu.pl"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.12.0
In-Reply-To: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com>
Content-Language: en-US
X-Antivirus: Avast (VPS 210801-4, 8/1/2021), Outbound message
X-Antivirus-Status: Clean
X-Received-Bytes: 1982
 by: Piotr Wyderski - Sun, 1 Aug 2021 14:37 UTC

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.

Both switching on and off are simple IO operations and any MCU should
do. I presume the speed is required to decide if the FET should be
turned on or off -- what exactly are you trying to calculate?

> 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.

Maybe you should give simple CPLD/FPGA a try? Any safety concerns? What
would happen if the MCU misses a deadline?

Best regards, Piotr

Re: Fast simple microcontroller

<se6dcc$itp4$1@portraits.wsisiz.edu.pl>

  copy mid

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

  copy link   Newsgroups: sci.electronics.design
Path: i2pn2.org!i2pn.org!aioe.org!news.dns-netz.com!news.freedyn.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!wsisiz.edu.pl!.POSTED.h82-143-146-166-static.e-wro.net.pl!not-for-mail
From: bomb...@protonmail.com (Piotr Wyderski)
Newsgroups: sci.electronics.design
Subject: Re: Fast simple microcontroller
Date: Sun, 1 Aug 2021 17:07:45 +0200
Organization: http://www.wit.edu.pl
Message-ID: <se6dcc$itp4$1@portraits.wsisiz.edu.pl>
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> <FDZDI.73843$1q1.31263@fx10.ams4>
<7a3ec58f-1821-42f9-a13c-4bd4c392a014n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 1 Aug 2021 15:07:56 -0000 (UTC)
Injection-Info: portraits.wsisiz.edu.pl; posting-host="h82-143-146-166-static.e-wro.net.pl:82.143.146.166";
logging-data="620324"; mail-complaints-to="abuse@wsisiz.edu.pl"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.12.0
In-Reply-To: <7a3ec58f-1821-42f9-a13c-4bd4c392a014n@googlegroups.com>
Content-Language: en-US
X-Antivirus: Avast (VPS 210801-4, 8/1/2021), Outbound message
X-Antivirus-Status: Clean
X-Received-Bytes: 1993
 by: Piotr Wyderski - Sun, 1 Aug 2021 15:07 UTC

Ed Lee wrote:

> But FPGA cannot do the deep sleep as micro. Many micros can sleep in 100uA.

Some FPGAs can go well below that, e.g. MachXO2. And this is a lot for
an MCU; MSP430 can go well below 1uA in sleep mode. They say it is in
the 100nA range, but I have never had the need to go that low, so I
can't confirm.

But the FPGA addresses the hard real time requirements of a switched
converter in a very natural way. In the case of an MCU it is always a PITA.

Best regards, Piotr

Re: Fast simple microcontroller

<se6dtm$iuhr$1@portraits.wsisiz.edu.pl>

  copy mid

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

  copy link   Newsgroups: sci.electronics.design
Path: i2pn2.org!i2pn.org!news.niel.me!nntp.terraraq.uk!news.dns-netz.com!news.freedyn.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!news-out.netnews.com!news.alt.net!fdc3.netnews.com!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!wsisiz.edu.pl!.POSTED.h82-143-146-166-static.e-wro.net.pl!not-for-mail
From: bomb...@protonmail.com (Piotr Wyderski)
Newsgroups: sci.electronics.design
Subject: Re: Fast simple microcontroller
Date: Sun, 1 Aug 2021 17:17:00 +0200
Organization: http://www.wit.edu.pl
Message-ID: <se6dtm$iuhr$1@portraits.wsisiz.edu.pl>
References: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com>
<1785267b-656c-4403-98e0-534cfd0e5c22n@googlegroups.com>
<4f0da696-a73e-4c53-a1bf-6f36f4c21d65n@googlegroups.com>
<249a55bb-c8fe-4ce8-bff2-59b6c5e4d65fn@googlegroups.com>
<9174209e-04c9-42a4-9583-0df00265a7f8n@googlegroups.com>
<825d057c-2691-4a71-b2c5-081179f6f42dn@googlegroups.com>
<52b655cf-1b22-46a1-8e00-2d3fb5971748n@googlegroups.com>
<d4d50784-85f9-4d23-a8c6-79b48889e392n@googlegroups.com>
<867e2a68-11de-41fb-b357-fa09eb2f9886n@googlegroups.com>
<3ee8811c-0b53-41be-93e3-3accdc8936e3n@googlegroups.com>
<45575d98-4951-49fd-8de2-dc30961602fbn@googlegroups.com>
<9a47735b-de35-4412-8eb4-ade84c77d82dn@googlegroups.com>
<f52d5c1c-a964-487a-8a0c-4971b7e5d07cn@googlegroups.com>
<a5f03983-87a1-4e87-ac06-5a233f5c4482n@googlegroups.com>
<1048cc94-59b5-4b66-a908-a08f3ac2bbcfn@googlegroups.com>
<71096ddf-4d6d-4d4e-894f-cfb64e470266n@googlegroups.com>
<8e0a27b8-8d9c-4e8c-bdf7-fd3c52de93ben@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 1 Aug 2021 15:17:10 -0000 (UTC)
Injection-Info: portraits.wsisiz.edu.pl; posting-host="h82-143-146-166-static.e-wro.net.pl:82.143.146.166";
logging-data="621115"; mail-complaints-to="abuse@wsisiz.edu.pl"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.12.0
In-Reply-To: <8e0a27b8-8d9c-4e8c-bdf7-fd3c52de93ben@googlegroups.com>
Content-Language: en-US
X-Antivirus: Avast (VPS 210801-4, 8/1/2021), Outbound message
X-Antivirus-Status: Clean
X-Received-Bytes: 2495
 by: Piotr Wyderski - Sun, 1 Aug 2021 15:17 UTC

Rick C wrote:

> If you are using USB you can run that at 48 MHz all the time. The rest of the chip can run at 180 MHz all the time. Where's the issue?

Anything useful running on an ICE40 at 180MHz? Boy, I would like to see
that. My experience shows it is a decent small FPGA for the 50-100MHz
range, but hardly more without heroic pipelining.

Best regards, Piotr

Re: Fast simple microcontroller

<se6ee4$iv9j$1@portraits.wsisiz.edu.pl>

  copy mid

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

  copy link   Newsgroups: sci.electronics.design
Path: i2pn2.org!i2pn.org!aioe.org!news.mixmin.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!news.icm.edu.pl!wsisiz.edu.pl!.POSTED.h82-143-146-166-static.e-wro.net.pl!not-for-mail
From: bomb...@protonmail.com (Piotr Wyderski)
Newsgroups: sci.electronics.design
Subject: Re: Fast simple microcontroller
Date: Sun, 1 Aug 2021 17:25:44 +0200
Organization: http://www.wit.edu.pl
Message-ID: <se6ee4$iv9j$1@portraits.wsisiz.edu.pl>
References: <558013df-0f18-4549-a49b-0a9ab452c8a2n@googlegroups.com>
<6cd17fdf-391e-4e9c-b73d-85ba886c905an@googlegroups.com>
<de81ff24-6472-4eac-81d1-8933e21baa77n@googlegroups.com>
<1af7aaab-ef93-44f4-bcac-11bc40225f5en@googlegroups.com>
<def3117d-6360-4c0a-bbd2-21b44ada542fn@googlegroups.com>
<5d2a98c3-18ee-492e-a82d-3b353673f291n@googlegroups.com>
<1785267b-656c-4403-98e0-534cfd0e5c22n@googlegroups.com>
<4f0da696-a73e-4c53-a1bf-6f36f4c21d65n@googlegroups.com>
<249a55bb-c8fe-4ce8-bff2-59b6c5e4d65fn@googlegroups.com>
<9174209e-04c9-42a4-9583-0df00265a7f8n@googlegroups.com>
<825d057c-2691-4a71-b2c5-081179f6f42dn@googlegroups.com>
<52b655cf-1b22-46a1-8e00-2d3fb5971748n@googlegroups.com>
<d4d50784-85f9-4d23-a8c6-79b48889e392n@googlegroups.com>
<867e2a68-11de-41fb-b357-fa09eb2f9886n@googlegroups.com>
<3ee8811c-0b53-41be-93e3-3accdc8936e3n@googlegroups.com>
<70806512-5a57-43dc-97fa-e66374249698n@googlegroups.com>
<b1685aa5-265f-44f6-987b-9aeb00153fffn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 1 Aug 2021 15:25:56 -0000 (UTC)
Injection-Info: portraits.wsisiz.edu.pl; posting-host="h82-143-146-166-static.e-wro.net.pl:82.143.146.166";
logging-data="621875"; mail-complaints-to="abuse@wsisiz.edu.pl"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.12.0
In-Reply-To: <b1685aa5-265f-44f6-987b-9aeb00153fffn@googlegroups.com>
Content-Language: en-US
X-Antivirus: Avast (VPS 210801-4, 8/1/2021), Outbound message
X-Antivirus-Status: Clean
 by: Piotr Wyderski - Sun, 1 Aug 2021 15:25 UTC

Ed Lee wrote:

> STM32 micros can run at 180MHz, as well as close to zero (while sleeping, but with timer on). Your FPGA PLL can't be reconfigured at will, at least you haven't tell us how to.

Then use a tiny FPGA that allows dynamic PLL configuration, e.g.
MachXO2. But it is a fancy feature I have never used. What would be the
point of doing so if you can have multiple outputs from a PLL and can
disable the unused ones? And the MachXO2/3 series is much faster than
the ICE which would have trouble working at 180MHz. IO gearboxing that
would allow you to enter the GHz IO switching realm is another feature
out of the box.

Best regards, Piotr

Re: Fast simple microcontroller

<ouidgg506irrlkdjftjl3rskjfpac3sekv@4ax.com>

  copy mid

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

  copy link   Newsgroups: sci.electronics.design
Path: i2pn2.org!i2pn.org!aioe.org!news.dns-netz.com!news.freedyn.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!buffer1.nntp.dca1.giganews.com!buffer2.nntp.dca1.giganews.com!nntp.supernews.com!news.supernews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 01 Aug 2021 11:30:02 -0500
From: jlar...@highlandsniptechnology.com
Newsgroups: sci.electronics.design
Subject: Re: Fast simple microcontroller
Date: Sun, 01 Aug 2021 09:30:04 -0700
Message-ID: <ouidgg506irrlkdjftjl3rskjfpac3sekv@4ax.com>
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> <FDZDI.73843$1q1.31263@fx10.ams4> <7a3ec58f-1821-42f9-a13c-4bd4c392a014n@googlegroups.com> <se6dcc$itp4$1@portraits.wsisiz.edu.pl>
X-Newsreader: Forte Agent 3.1/32.783
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 31
X-Trace: sv3-qX50pdr2lt6ezHgwQEZJONuIDUEgySdZoaI0Xn6r33Ysg1On2jsc7FE8nQjHTTxJweXvROEsMJTtxmh!GseTCDk7IdCTf3QPD8jHptX2OGzAAE5B83vAJH1fLE1uAd2kw6llK2A5eRua6A6L/LIRsgiTqMxq!LaGepg==
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: 2163
 by: jlar...@highlandsniptechnology.com - Sun, 1 Aug 2021 16:30 UTC

On Sun, 1 Aug 2021 17:07:45 +0200, Piotr Wyderski
<bombald@protonmail.com> wrote:

>Ed Lee wrote:
>
>> But FPGA cannot do the deep sleep as micro. Many micros can sleep in 100uA.
>
>Some FPGAs can go well below that, e.g. MachXO2. And this is a lot for
>an MCU; MSP430 can go well below 1uA in sleep mode. They say it is in
>the 100nA range, but I have never had the need to go that low, so I
>can't confirm.
>
>But the FPGA addresses the hard real time requirements of a switched
>converter in a very natural way. In the case of an MCU it is always a PITA.
>
> Best regards, Piotr
>
>

Analog comparators are cheap and don't need code!

--

John Larkin Highland Technology, Inc

The best designs are necessarily accidental.

Re: Fast simple microcontroller

<0f1e89c6-3c3a-4f15-925e-2b26f7b4fad3n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:a37:a544:: with SMTP id o65mr11664684qke.68.1627835648257;
Sun, 01 Aug 2021 09:34:08 -0700 (PDT)
X-Received: by 2002:ae9:ed56:: with SMTP id c83mr11606010qkg.101.1627835648047;
Sun, 01 Aug 2021 09:34:08 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mixmin.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: Sun, 1 Aug 2021 09:34:07 -0700 (PDT)
In-Reply-To: <ouidgg506irrlkdjftjl3rskjfpac3sekv@4ax.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:5cc:4701:5250:ec5d:5a9e:fc9c:c2b1;
posting-account=iGtwSwoAAABNNwPORfvAs6OM4AR9GRHt
NNTP-Posting-Host: 2601:5cc:4701:5250:ec5d:5a9e:fc9c:c2b1
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> <FDZDI.73843$1q1.31263@fx10.ams4>
<7a3ec58f-1821-42f9-a13c-4bd4c392a014n@googlegroups.com> <se6dcc$itp4$1@portraits.wsisiz.edu.pl>
<ouidgg506irrlkdjftjl3rskjfpac3sekv@4ax.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0f1e89c6-3c3a-4f15-925e-2b26f7b4fad3n@googlegroups.com>
Subject: Re: Fast simple microcontroller
From: bloggs.f...@gmail.com (Fred Bloggs)
Injection-Date: Sun, 01 Aug 2021 16:34:08 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Fred Bloggs - Sun, 1 Aug 2021 16:34 UTC

On Sunday, August 1, 2021 at 12:30:12 PM UTC-4, jla...@highlandsniptechnology.com wrote:
> On Sun, 1 Aug 2021 17:07:45 +0200, Piotr Wyderski
> <bom...@protonmail.com> wrote:
>
> >Ed Lee wrote:
> >
> >> But FPGA cannot do the deep sleep as micro. Many micros can sleep in 100uA.
> >
> >Some FPGAs can go well below that, e.g. MachXO2. And this is a lot for
> >an MCU; MSP430 can go well below 1uA in sleep mode. They say it is in
> >the 100nA range, but I have never had the need to go that low, so I
> >can't confirm.
> >
> >But the FPGA addresses the hard real time requirements of a switched
> >converter in a very natural way. In the case of an MCU it is always a PITA.
> >
> > Best regards, Piotr
> >
> >
> Analog comparators are cheap and don't need code!

Stupid thread started by Sloman hallucinating about something he can't build in a million years. And all this in response to that mediocre moron Habib posing as an engineer again.

>
>
>
> --
>
> John Larkin Highland Technology, Inc
>
> The best designs are necessarily accidental.

Re: Fast simple microcontroller

<se6j8s$j5jr$1@portraits.wsisiz.edu.pl>

  copy mid

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

  copy link   Newsgroups: sci.electronics.design
Path: i2pn2.org!i2pn.org!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!wsisiz.edu.pl!.POSTED.h82-143-146-166-static.e-wro.net.pl!not-for-mail
From: bomb...@protonmail.com (Piotr Wyderski)
Newsgroups: sci.electronics.design
Subject: Re: Fast simple microcontroller
Date: Sun, 1 Aug 2021 18:48:19 +0200
Organization: http://www.wit.edu.pl
Message-ID: <se6j8s$j5jr$1@portraits.wsisiz.edu.pl>
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> <FDZDI.73843$1q1.31263@fx10.ams4>
<7a3ec58f-1821-42f9-a13c-4bd4c392a014n@googlegroups.com>
<se6dcc$itp4$1@portraits.wsisiz.edu.pl>
<ouidgg506irrlkdjftjl3rskjfpac3sekv@4ax.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 1 Aug 2021 16:48:28 -0000 (UTC)
Injection-Info: portraits.wsisiz.edu.pl; posting-host="h82-143-146-166-static.e-wro.net.pl:82.143.146.166";
logging-data="628347"; mail-complaints-to="abuse@wsisiz.edu.pl"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.12.0
In-Reply-To: <ouidgg506irrlkdjftjl3rskjfpac3sekv@4ax.com>
Content-Language: en-US
X-Antivirus: Avast (VPS 210801-4, 8/1/2021), Outbound message
X-Antivirus-Status: Clean
X-Received-Bytes: 1962
 by: Piotr Wyderski - Sun, 1 Aug 2021 16:48 UTC

jlarkin@highlandsniptechnology.com wrote:

> Analog comparators are cheap and don't need code!

The need for code I took for granted, don't know Bill's requirements.
But you are sort of right, an analog comparator driven by a DAC turns
out to be a way cheaper and much faster option than an ADC followed by
fully digital processing. Hybrid approaches work best.

Best regards, Piotr

Re: Fast simple microcontroller

<4ajdgglh4q2fagbdv3learet6voeo9uqnv@4ax.com>

  copy mid

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

  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!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!feeder1.feed.usenet.farm!feed.usenet.farm!news-out.netnews.com!news.alt.net!fdc3.netnews.com!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.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: Sun, 01 Aug 2021 11:50:07 -0500
From: jlar...@highlandsniptechnology.com
Newsgroups: sci.electronics.design
Subject: Re: Fast simple microcontroller
Date: Sun, 01 Aug 2021 09:50:09 -0700
Message-ID: <4ajdgglh4q2fagbdv3learet6voeo9uqnv@4ax.com>
References: <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> <FDZDI.73843$1q1.31263@fx10.ams4> <7a3ec58f-1821-42f9-a13c-4bd4c392a014n@googlegroups.com> <se6dcc$itp4$1@portraits.wsisiz.edu.pl> <ouidgg506irrlkdjftjl3rskjfpac3sekv@4ax.com> <0f1e89c6-3c3a-4f15-925e-2b26f7b4fad3n@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: 57
X-Trace: sv3-guo3qx2PK2iApa05RaBTKrE26N0SQdR7FsqgwQvZ6li4u32nue63buwm8kMJmO68aWln4DLdOYFyo7j!7VMog3MX+Ex29RXNAf8mK8eGB+cZ3ssnx33fBQX1GNaZU2hOMiv8pcGVQOKI6kUjuIdXJPVjDLdK!MCoxJw==
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: 3480
X-Received-Bytes: 3659
 by: jlar...@highlandsniptechnology.com - Sun, 1 Aug 2021 16:50 UTC

On Sun, 1 Aug 2021 09:34:07 -0700 (PDT), Fred Bloggs
<bloggs.fredbloggs.fred@gmail.com> wrote:

>On Sunday, August 1, 2021 at 12:30:12 PM UTC-4, jla...@highlandsniptechnology.com wrote:
>> On Sun, 1 Aug 2021 17:07:45 +0200, Piotr Wyderski
>> <bom...@protonmail.com> wrote:
>>
>> >Ed Lee wrote:
>> >
>> >> But FPGA cannot do the deep sleep as micro. Many micros can sleep in 100uA.
>> >
>> >Some FPGAs can go well below that, e.g. MachXO2. And this is a lot for
>> >an MCU; MSP430 can go well below 1uA in sleep mode. They say it is in
>> >the 100nA range, but I have never had the need to go that low, so I
>> >can't confirm.
>> >
>> >But the FPGA addresses the hard real time requirements of a switched
>> >converter in a very natural way. In the case of an MCU it is always a PITA.
>> >
>> > Best regards, Piotr
>> >
>> >
>> Analog comparators are cheap and don't need code!
>
>Stupid thread started by Sloman hallucinating about something he can't build in a million years. And all this in response to that mediocre moron Habib posing as an engineer again.

S hasn't designed anything in decades. The only thing he creates now
and silly droning insults.

Being retired is mostly a choice, and that makes some people happy,
but being a bitter old git sounds boring. It doesn't take much space
or money to have a workbench and play with electronics.

I recently did a class-D power amp for my alternator simulator. People
wanted to make that digital, but the PWM loop just took a few analog
parts, and that was easy to Spice first.

https://www.dropbox.com/s/uqcd5vh3aggwxyc/P900_17.jpg?raw=1

https://www.dropbox.com/s/mi8ijm3oqqpbf9q/P902B_3.jpg?raw=1

It's really a hybrid. The basic class-D amp is analog, but the outer
loop, current limiting and impedance control and stuff, is done in an
FPGA and ultimately controlled by a uP. Sort of three levels of
control.

--

John Larkin Highland Technology, Inc

The best designs are necessarily accidental.

Re: Fast simple microcontroller

<f1mdgg5e6m4t4328l137qiglah3g5qjf37@4ax.com>

  copy mid

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

  copy link   Newsgroups: sci.electronics.design
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news1.tnib.de!feed.news.tnib.de!news.tnib.de!news.uzoreto.com!tr3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr2.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: Sun, 01 Aug 2021 12:29:59 -0500
From: jlar...@highlandsniptechnology.com
Newsgroups: sci.electronics.design
Subject: Re: Fast simple microcontroller
Date: Sun, 01 Aug 2021 10:30:01 -0700
Message-ID: <f1mdgg5e6m4t4328l137qiglah3g5qjf37@4ax.com>
References: <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> <FDZDI.73843$1q1.31263@fx10.ams4> <7a3ec58f-1821-42f9-a13c-4bd4c392a014n@googlegroups.com> <se6dcc$itp4$1@portraits.wsisiz.edu.pl> <ouidgg506irrlkdjftjl3rskjfpac3sekv@4ax.com> <se6j8s$j5jr$1@portraits.wsisiz.edu.pl>
X-Newsreader: Forte Agent 3.1/32.783
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 32
X-Trace: sv3-18pNcAYAnFSid51P9ZuhIpi01hfikT1GBgL07gv0SKAsz9JXeBuwj5x54zwoAabUu9PZvE3fMan1WlT!7OIiMVoSfheGjISCxNd2hjN/nsski3+V0HpL1/fSI75tqY5HQeGyxc2rBv0CxZss8PM4hxpjRSf9!holx+g==
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: 2359
 by: jlar...@highlandsniptechnology.com - Sun, 1 Aug 2021 17:30 UTC

On Sun, 1 Aug 2021 18:48:19 +0200, Piotr Wyderski
<bombald@protonmail.com> wrote:

>jlarkin@highlandsniptechnology.com wrote:
>
>> Analog comparators are cheap and don't need code!
>
>The need for code I took for granted, don't know Bill's requirements.
>But you are sort of right, an analog comparator driven by a DAC turns
>out to be a way cheaper and much faster option than an ADC followed by
>fully digital processing. Hybrid approaches work best.
>
> Best regards, Piotr
>
>

My recent class-D amp uses analog stuff for the PWM, and has isolated
ADCs to acquire the output voltage and current. Current limiting is
done in an FPGA, but that's a relatively slow loop. I use two ADUM7703
isolated delta-sigma ADCs per amp. That needs sinc3 filters in the
FPGA, which gives accuracy but limits bandwidth.

--

John Larkin Highland Technology, Inc

The best designs are necessarily accidental.

Re: Fast simple microcontroller

<se6qg3$5qg$3@dont-email.me>

  copy mid

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

  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: Sun, 1 Aug 2021 11:51:48 -0700
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <se6qg3$5qg$3@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> <FDZDI.73843$1q1.31263@fx10.ams4>
<7a3ec58f-1821-42f9-a13c-4bd4c392a014n@googlegroups.com>
<se6dcc$itp4$1@portraits.wsisiz.edu.pl>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 1 Aug 2021 18:51:47 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="474d8b82c75ae90d85399fbb0563d434";
logging-data="5968"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19RsLSQ2PBYlx1Z7PPphkx8"
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101
Thunderbird/52.1.1
Cancel-Lock: sha1:dESJ5wanv589z8dEXMrn3KhWfOM=
In-Reply-To: <se6dcc$itp4$1@portraits.wsisiz.edu.pl>
Content-Language: en-US
 by: Don Y - Sun, 1 Aug 2021 18:51 UTC

On 8/1/2021 8:07 AM, Piotr Wyderski wrote:
> Ed Lee wrote:
>
>> But FPGA cannot do the deep sleep as micro. Many micros can sleep in 100uA.
>
> Some FPGAs can go well below that, e.g. MachXO2. And this is a lot for an MCU;
> MSP430 can go well below 1uA in sleep mode. They say it is in the 100nA range,
> but I have never had the need to go that low, so I can't confirm.
>
> But the FPGA addresses the hard real time requirements of a switched converter
> in a very natural way. In the case of an MCU it is always a PITA.

There are MCUs that address those needs. The advantage of an MCU is that
it is considerably easier to get it to do *other* things, as well.


tech / sci.electronics.design / Re: Fast simple microcontroller

Pages:1234567
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor