Electronics-Related.com
Forums

Nice MCU for small jobs

Started by Phil Hobbs September 3, 2018
On a sunny day (Fri, 7 Sep 2018 09:36:03 -0400) it happened Phil Hobbs
<pcdhSpamMeSenseless@electrooptical.net> wrote in
<EZqdnd4747le4w_GnZ2dnUU7-bXNnZ2d@supernews.com>:

>On 09/03/2018 01:25 PM, Phil Hobbs wrote: >> LPC804: 15 MHz Cortex M0+, 32kB flash, 4k RAM, 12-bit 2 us ADC with 1 >> LSB DNL, 10-bit DAC, the usual serial stuff, 20-TSSOP:&nbsp; 67 cents in >> reels, dev board $27. >> >> We're using it for a super-quiet diode laser controller where it will >> run the temperature control and automatic power control loops.&nbsp; I'll >> never use another ATmega. ;) >> >> Cheers >> >> Phil Hobbs >> > >The dev boards came in, and they're pretty slick. For the $27 you get >not only the MCU and so on, but two shields, one for capacitive touch >and one full of buttons and switches and jumpers and stuff, for use with >the programmable logic unit. The PLU is a small CPLD with 26 5-input >LUTs that you can program in Verilog. Super handy where hardware timing >is needed, which it usually is in instruments. > >The other thing I really like about the LPC804 is that it has this giant >pin multiplexer, so that you can put just about any peripheral function >on any GPIO pin, which is a huge time saver compared to the assing >around you have to do on other MCUs to try to get the best possible >combination of limited pinout choices. You can mix and match inputs and >outputs, e.g. you can put a capture input and a UART TXD on the same pin >if you like. Some combinations are silly, but some are potentially >useful, and it Probably the big MUX works a lot better at 15 MHz than 200. > >They basically give the dev board away, but (I imagine) charge just >enough that hobbyists aren't so tempted to use it instead of an Arduino >or RasPi.
Raspi 3B+ is impressive: https://medium.com/@ghalfacree/benchmarking-the-raspberry-pi-3-b-plus-44122cf3d806
On Friday, 7 September 2018 14:36:12 UTC+1, Phil Hobbs  wrote:

The single cycle multiplier and single-cycle access to i/o pins
are nice features too.

It looks as if the dev board can be adapted with the right
removal of jumpers to act as a debug interface to one's own
hardware.

John
On 07/09/18 23:36, Phil Hobbs wrote:
> The other thing I really like about the LPC804 is that it has this giant > pin multiplexer, so that you can put just about any peripheral function > on any GPIO pin, which is a huge time saver compared to the assing > around you have to do on other MCUs to try to get the best possible > combination of limited pinout choices.
The STM32F3 series has a pretty effective I/O cross-bar also.
> They basically give the dev board away, but (I imagine) charge just > enough that hobbyists aren't so tempted to use it instead of an Arduino > or RasPi.
The virtual give-away strategy has worked well for ST, who deliberately targeted hobbyists. There are a lot of real products around that started life on ST's Discovery boards Clifford Heath.
On 09/07/2018 06:08 PM, jrwalliker@gmail.com wrote:
> On Friday, 7 September 2018 14:36:12 UTC+1, Phil Hobbs wrote: > > The single cycle multiplier and single-cycle access to i/o pins > are nice features too. > > It looks as if the dev board can be adapted with the right > removal of jumpers to act as a debug interface to one's own > hardware. > > John >
All the LPCxpresso boards can do that. You can separate the programmer (LPClink) from the target and use it on your own hardware. That's often very useful. Cheers Phil Hobbs -- Dr Philip C D Hobbs Principal Consultant ElectroOptical Innovations LLC / Hobbs ElectroOptics Optics, Electro-optics, Photonics, Analog Electronics Briarcliff Manor NY 10510 http://electrooptical.net http://hobbs-eo.com
l&oslash;rdag den 8. september 2018 kl. 02.49.34 UTC+2 skrev Phil Hobbs:
> On 09/07/2018 06:08 PM, jrwalliker@gmail.com wrote: > > On Friday, 7 September 2018 14:36:12 UTC+1, Phil Hobbs wrote: > > > > The single cycle multiplier and single-cycle access to i/o pins > > are nice features too. > > > > It looks as if the dev board can be adapted with the right > > removal of jumpers to act as a debug interface to one's own > > hardware. > > > > John > > > > All the LPCxpresso boards can do that. You can separate the programmer > (LPClink) from the target and use it on your own hardware. That's often > very useful. >
same for STM, the STM Nucleo boards are in the same form factor and pinout as arduino and cost ~$10
On 09/07/2018 08:59 PM, Lasse Langwadt Christensen wrote:
> l&oslash;rdag den 8. september 2018 kl. 02.49.34 UTC+2 skrev Phil Hobbs: >> On 09/07/2018 06:08 PM, jrwalliker@gmail.com wrote: >>> On Friday, 7 September 2018 14:36:12 UTC+1, Phil Hobbs wrote: >>> >>> The single cycle multiplier and single-cycle access to i/o pins >>> are nice features too. >>> >>> It looks as if the dev board can be adapted with the right >>> removal of jumpers to act as a debug interface to one's own >>> hardware. >>> >>> John >>> >> >> All the LPCxpresso boards can do that. You can separate the programmer >> (LPClink) from the target and use it on your own hardware. That's often >> very useful. >> > > same for STM, the STM Nucleo boards are in the same form factor and pinout as arduino and cost ~$10 > >
Sounds as though STM may have got their support act together. Five years or so ago when I last looked at a STM32 MCU, the library headers were a complete nightmare. Unorganized, duplicated, horrible. I'll have a squint at their newer stuff when I have half a minute to myself. Cheers Phil Hobbs -- Dr Philip C D Hobbs Principal Consultant ElectroOptical Innovations LLC / Hobbs ElectroOptics Optics, Electro-optics, Photonics, Analog Electronics Briarcliff Manor NY 10510 http://electrooptical.net http://hobbs-eo.com
On 09/07/2018 09:36 AM, Phil Hobbs wrote:
> On 09/03/2018 01:25 PM, Phil Hobbs wrote: >> LPC804: 15 MHz Cortex M0+, 32kB flash, 4k RAM, 12-bit 2 us ADC with 1 >> LSB DNL, 10-bit DAC, the usual serial stuff, 20-TSSOP:&nbsp; 67 cents in >> reels, dev board $27. >> >> We're using it for a super-quiet diode laser controller where it will >> run the temperature control and automatic power control loops.&nbsp; I'll >> never use another ATmega. ;) >> >> Cheers >> >> Phil Hobbs >> > > The dev boards came in, and they're pretty slick. For the $27 you get > not only the MCU and so on, but two shields, one for capacitive touch > and one full of buttons and switches and jumpers and stuff, for use with > the programmable logic unit. The PLU is a small CPLD with 26 5-input > LUTs that you can program in Verilog. Super handy where hardware timing > is needed, which it usually is in instruments. > > The other thing I really like about the LPC804 is that it has this giant > pin multiplexer, so that you can put just about any peripheral function > on any GPIO pin, which is a huge time saver compared to the assing > around you have to do on other MCUs to try to get the best possible > combination of limited pinout choices. You can mix and match inputs and > outputs, e.g. you can put a capture input and a UART TXD on the same pin > if you like. Some combinations are silly, but some are potentially > useful, and it Probably the big MUX works a lot better at 15 MHz than 200. > > They basically give the dev board away, but (I imagine) charge just > enough that hobbyists aren't so tempted to use it instead of an Arduino > or RasPi. > > Fun. > > Cheers > > Phil Hobbs >
I'm going to get my hands on some to test, only thing that seems a bit of a downer with the 3.3V arm parts is it looks like most of the I/O has wimpy drive. AVRs at 5 volts can sink and source big currents out all their pins, 30-40mA. If I wanted to drive some 7-segment LED display I'd probably need another chip. Not the end of the world I guess
On 09/07/2018 09:58 PM, bitrex wrote:
> On 09/07/2018 09:36 AM, Phil Hobbs wrote: >> On 09/03/2018 01:25 PM, Phil Hobbs wrote: >>> LPC804: 15 MHz Cortex M0+, 32kB flash, 4k RAM, 12-bit 2 us ADC with 1 >>> LSB DNL, 10-bit DAC, the usual serial stuff, 20-TSSOP:&nbsp; 67 cents in >>> reels, dev board $27. >>> >>> We're using it for a super-quiet diode laser controller where it will >>> run the temperature control and automatic power control loops.&nbsp; I'll >>> never use another ATmega. ;) >>> >>> Cheers >>> >>> Phil Hobbs >>> >> >> The dev boards came in, and they're pretty slick.&nbsp; For the $27 you get >> not only the MCU and so on, but two shields, one for capacitive touch >> and one full of buttons and switches and jumpers and stuff, for use with >> the programmable logic unit.&nbsp; The PLU is a small CPLD with 26 5-input >> LUTs that you can program in Verilog.&nbsp; Super handy where hardware timing >> is needed, which it usually is in instruments. >> >> The other thing I really like about the LPC804 is that it has this giant >> pin multiplexer, so that you can put just about any peripheral function >> on any GPIO pin, which is a huge time saver compared to the assing >> around you have to do on other MCUs to try to get the best possible >> combination of limited pinout choices.&nbsp; You can mix and match inputs and >> outputs, e.g. you can put a capture input and a UART TXD on the same pin >> if you like.&nbsp; Some combinations are silly, but some are potentially >> useful, and it&nbsp; Probably the big MUX works a lot better at 15 MHz than >> 200. >> >> They basically give the dev board away, but (I imagine) charge just >> enough that hobbyists aren't so tempted to use it instead of an Arduino >> or RasPi. >> >> Fun. >> >> Cheers >> >> Phil Hobbs >> > > I'm going to get my hands on some to test, only thing that seems a bit > of a downer with the 3.3V arm parts is it looks like most of the I/O has > wimpy drive. AVRs at 5 volts can sink and source big currents out all > their pins, 30-40mA. If I wanted to drive some 7-segment LED display I'd > probably need another chip. Not the end of the world I guess
Not simultaneously, rather, but limited by package dissipation of course
On 8.9.18 04:10, Phil Hobbs wrote:
> On 09/07/2018 08:59 PM, Lasse Langwadt Christensen wrote: >> l&oslash;rdag den 8. september 2018 kl. 02.49.34 UTC+2 skrev Phil Hobbs: >>> On 09/07/2018 06:08 PM, jrwalliker@gmail.com wrote: >>>> On Friday, 7 September 2018 14:36:12 UTC+1, Phil Hobbs&nbsp; wrote: >>>> >>>> The single cycle multiplier and single-cycle access to i/o pins >>>> are nice features too. >>>> >>>> It looks as if the dev board can be adapted with the right >>>> removal of jumpers to act as a debug interface to one's own >>>> hardware. >>>> >>>> John >>>> >>> >>> All the LPCxpresso boards can do that.&nbsp; You can separate the programmer >>> (LPClink) from the target and use it on your own hardware.&nbsp; That's often >>> very useful. >>> >> >> same for STM, the STM Nucleo boards are in the same form factor and >> pinout as arduino and cost ~$10 >> >> > > Sounds as though STM may have got their support act together.&nbsp; Five > years or so ago when I last looked at a STM32 MCU, the library headers > were a complete nightmare.&nbsp; Unorganized, duplicated, horrible. > > I'll have a squint at their newer stuff when I have half a minute to > myself. > > Cheers > > Phil Hobbs
The library code is still a sorry mess. I had to end up writing all the low-level code for a STM32L4xx myself. -- -TV
ST recently released SPL code, which is HW close effective libraries