Author Topic: MCU recommendation  (Read 906 times)

0 Members and 1 Guest are viewing this topic.

Offline sanka1pTopic starter

  • Contributor
  • Posts: 23
  • Country: us
MCU recommendation
« on: February 08, 2024, 07:19:16 pm »
Hi All,

I use AVR 0/1 series MCU quite a lot and the best part for me is the Event system in those MCUs. Recently, I need an MCU which runs at higher frequency like 40Mhz+ and have the feature of Event system. I am not keeping my search only till AVR devices. I need advice from folks on other MCUs which has same feature as of Event system. I know that other manufacturers can call these feature with a different name.

what is an Event system?

"The Event System (EVSYS) enables direct peripheral-to-peripheral signaling. It allows a change in one peripheral
(the event generator) to trigger actions in other peripherals (the event users) through event channels, without
using the CPU. It is designed to provide short and predictable response times between peripherals, allowing for
autonomous peripheral control and interaction, and also for synchronized timing of actions in several peripheral
modules. It is thus a powerful tool for reducing the complexity, size, and execution time of the software"


Thank you. v
« Last Edit: February 09, 2024, 07:13:44 pm by sanka1p »
Using Analog in a Digital world.
 
The following users thanked this post: RJSV

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11264
  • Country: us
    • Personal site
Re: MCU recommendation
« Reply #1 on: February 08, 2024, 07:43:21 pm »
SAM D/L/C devices all have event system, which appeared before AVR one. They are based on Cortex-M0+ running at 48 MHz. Sounds exactly like what you want.
Alex
 
The following users thanked this post: sanka1p

Offline sanka1pTopic starter

  • Contributor
  • Posts: 23
  • Country: us
Re: MCU recommendation
« Reply #2 on: February 09, 2024, 01:49:43 pm »
 That’s awesome and good to know. Just wondering any other MCU series have similar feature ?
Using Analog in a Digital world.
 

Offline pcprogrammer

  • Super Contributor
  • ***
  • Posts: 3710
  • Country: nl
Re: MCU recommendation
« Reply #3 on: February 09, 2024, 03:20:42 pm »
STM32 devices also have some event driven options, but I'm not familiar with what is in AVR series of MCU's and if it really compares to what is in STM32 devices.

Offline PartialDischarge

  • Super Contributor
  • ***
  • Posts: 1611
  • Country: 00
Re: MCU recommendation
« Reply #4 on: February 09, 2024, 04:11:02 pm »
In PsoC you can wire modules, timers, counters, ADCs... so I guess that is your "event" system.
 

Offline djacobow

  • Super Contributor
  • ***
  • Posts: 1151
  • Country: us
  • takin' it apart since the 70's
Re: MCU recommendation
« Reply #5 on: February 09, 2024, 04:28:10 pm »
For those unfamiliar, the "event system" is the ability for on-chip peripherals generate "events" that other peripherals can receive to tell them to do things. The key benefit of this feature is that you can get certain complex behaviors running without the processor being involved at all. For example, you can have a timer generate an event, which triggers and ADC conversion, which on completion generates an event that does a DMA directly to the UART or whatever.

I think many controller families allow you to get this sort of orchestration running. For example, in the PSoC family you can literally wire up peripherals this way in their schematic editor.
« Last Edit: February 09, 2024, 06:07:15 pm by djacobow »
 

Online coppice

  • Super Contributor
  • ***
  • Posts: 8652
  • Country: gb
Re: MCU recommendation
« Reply #6 on: February 09, 2024, 04:51:33 pm »
For those unfamiliar, the "event system" is the ability to chip peripherals generate "events" that other peripherals can receive to tell them to do things. The key benefit of this feature is that you can get certain complex behaviors running without the processor being involved at all. For example, you can have a timer generate an event, which triggers and ADC conversion, which on completion generates an event that does a DMA directly to the UART or whatever.

I think many controller families allow you to get this sort of orchestration running. For example, in the PSoC family you can literally wire up peripherals this way in their schematic editor.
Most MCUs with a timer and an ADC offer the functionality you describe. Its hard to do regular sampling without it. Event systems try to generalise that, rather than rely on specific pathways around the peripherals, which only account for the use cases the designers thought of.
 

Offline eutectique

  • Frequent Contributor
  • **
  • Posts: 392
  • Country: be
Re: MCU recommendation
« Reply #7 on: February 09, 2024, 05:16:10 pm »
Have a look at Nordic Semiconductor nRF52 series.
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14484
  • Country: fr
Re: MCU recommendation
« Reply #8 on: February 09, 2024, 11:19:41 pm »
This is called "trigger" for some MCUs. Many STM32s do have something like that. And others. In particular, this is how you trigger ADC conversions from a timer, but there are many other possibilities.
 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 26907
  • Country: nl
    • NCT Developments
Re: MCU recommendation
« Reply #9 on: February 10, 2024, 12:40:31 am »
This is called "trigger" for some MCUs. Many STM32s do have something like that. And others. In particular, this is how you trigger ADC conversions from a timer, but there are many other possibilities.
I get the feeling that the AVR system is more like a chunk of programmable logic than some simple signals to start an AD conversion or trigger a DMA. Perhaps the PSOC mentioned by Tom66 comes the closest.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline Siwastaja

  • Super Contributor
  • ***
  • Posts: 8178
  • Country: fi
Re: MCU recommendation
« Reply #10 on: February 10, 2024, 07:16:02 am »
Nearly every MCU has such functionality, the difference is just whether it's completely generic (allowing any peripheral to control any other, in a predictable and easy to program way), or ad hoc mess where the designers just added connections between those peripherals where their customers most usually need them. STM32 belongs in the latter class. And sure enough, usually these "most wanted" connections do the job: for example, timer can trigger ADC, analog comparator can stop PWM cycle, timers can be chained, etc.

In the end, even if you have a completely generic event system, you still have to carefully read through the manuals (or worse, do actual tests) to figure out if the combination of peripherals can do what you need them to do, before even starting the HW design work. So for peripherals A and B to work together, you need to carefully read the specs of both A and B, meaning the ST's messy non-generic way is not actually any worse, just inelegant.

One of the worst features in ST's microcontrollers is very limited and arbitrary DMA mapping which needs careful planning before committing to PCB layout. This has been fixed in some newer generation devices (see DMAMUX).
« Last Edit: February 10, 2024, 07:23:59 am by Siwastaja »
 

Offline PartialDischarge

  • Super Contributor
  • ***
  • Posts: 1611
  • Country: 00
Re: MCU recommendation
« Reply #11 on: February 10, 2024, 08:36:16 am »
In PsoC its important to check the design before doing the actual PCB routing as not all pin routings are available. It has all the devices listed, after that a "Resource Meter" will tell you how much capacity has been used for interconnects etc.

What I like the most is that there some analog glue and the configuration of the peripherals is via windows, attached a couple of examples.

 
The following users thanked this post: sanka1p


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf