Author Topic: Microcontroller suggestions  (Read 6463 times)

0 Members and 5 Guests are viewing this topic.

Offline uer166

  • Super Contributor
  • ***
  • Posts: 1278
  • Country: us
Re: Microcontroller suggestions
« Reply #25 on: December 17, 2024, 06:28:37 am »
.... I’m really trying to avoid having to make messages to go between microcontrollers that are on different busses to get the info over, as an example: bus1 —> gateway —> gateway—> gateway —> bus3. ....
I finally understood the deep meaning.
video->video-gateway->sound-gateway->sound.
240volt->voltage-gateway->water-gateway->water.
Grandly.

What kind of truck is that? .....
What I meant was that if you use separate filters for different buses, you won't need to transfer data from one filter to another.
If we hypothetically assume that the old module was on the fast bus and the new one uses the slow bus, then any attempt at merging would require arbitration, which no one seems to want to do:
Not trying to do flow control, just pass messages from one bus to another. ....


That is, as I have already said, the optimal solution is to use one filter for one added module. Accordingly, you need 2 CAN bus controllers. And 4 or more CAN controllers are needed if you are arbitrating in equipment developed entirely by you personally.


... Some like STM32F105,407,446 are -40 to 105 C but not AEC-Q100 automotive grade qualified. .....  there is no better than NXP in my opinion. ...
The developers didn't see your advice in time (photo).

ST SPC5x series is indeed the most popular MCU used by a lot of automakers. The N and E variants have 8 CAN buses and are good for auto gateways.
 

Offline Postal2

  • Frequent Contributor
  • **
  • !
  • Posts: 826
  • Country: 00
Re: Microcontroller suggestions
« Reply #26 on: December 17, 2024, 08:05:55 am »
ST SPC5x series is indeed the most popular MCU used by a lot of automakers. The N and E variants have 8 CAN buses and are good for auto gateways.
There is a second MCU STM32F103 nearby. Description of the simplest gateway between two CAN buses, if anyone is interested:
Quote
The controller of two CAN-Bus channels performs all the main functions for working with data streams. The filtering system allows you to select messages from the CAN bus stream intended for transmission to the second CAN bus. Up to 128 filters with different parameters can be installed. For each filter, a queue is specified where the messages that have passed the filtering are sent. A part of the messages can be sent to a high-priority queue and will be sent bypassing the general queue. Messages from the general queue are sent for transmission to the bus only when the high-priority queue is empty. The monitoring system collects statistics on the operation of each channel, tracks the fullness of the transmission queues. In the event of critical situations on the bus, the system can send service messages to another bus. The thresholds of the error counters, FIFO levels, the contents of the service message of each type are set by the user.
 

Offline ifrythingsTopic starter

  • Contributor
  • Posts: 43
  • Country: ca
Re: Microcontroller suggestions
« Reply #27 on: December 19, 2024, 05:31:22 pm »
So I decided to try the SPC582B60E1MH, price isn’t bad for single units, is 5v, automotive approved, has 7 CAN busses, 1K flash and 96K ram. I also ordered the demo board (SPC582B-DIS) that they have examples for so I should be able to get something going fairly quickly.
 

Offline Siwastaja

  • Super Contributor
  • ***
  • Posts: 11308
  • Country: fi
Re: Microcontroller suggestions
« Reply #28 on: December 22, 2024, 01:26:21 pm »
BGAs are easier than you think.

Oh, BGAs are easy. They have relatively large pitch (they can afford it, because pin number scales quadratic to linear dimension) so alignment is not that critical. Balls self-align well during reflow. And most importantly, thinking of side view, the empty space around the balls regulate the amount of excess solder, so stencil apertures and printing process are not that critical.

QFN is opposite. It feels like it's somehow "easier" with pins on the edges. But it still doesn't have legs. It shares the limitation of legged parts: pin number increasing only linearly to linear dimension, so higher pitch is needed to enable miniature size, 0.5mm is very typical and even smaller used. And without balls, there is nothing limiting insertion depth physically: when you press it into paste, excess paste squeezes everywhere. Thus balanced amount of solder and insertion in perfect level is important, otherwise some pads do not flow at all (too little solder, and the solder ends up in a small isolated ball under the component).

It was kinda interesting to see how much problems I had with some trivially simple and low-cost 20-pin QFN, yet at the same time soldered hundreds of expensive specialty image sensors - chip scale packaged so "no packaging", and a lot of pins, all of which important for operation. Something which many would be afraid of, but 99% success rate even with a crappy amateurish process. But they had balls!

The historical reason for avoiding BGA as hobbyist or small player is that you usually need at least 4-layer board with small vias and small trace sizes to fan-out them. Those used to cost arm and leg, but for past 10-15 years this hasn't been a problem anymore. But there is nothing difficult either in design phase or prototype manufacturing either. Now if you had to manufacture your own PCBs then things would be different.
« Last Edit: December 22, 2024, 01:31:43 pm by Siwastaja »
 

Offline Postal2

  • Frequent Contributor
  • **
  • !
  • Posts: 826
  • Country: 00
Re: Microcontroller suggestions
« Reply #29 on: December 22, 2024, 01:49:05 pm »
...It was kinda interesting to see how much problems I had with some trivially simple and low-cost 20-pin QFN, ...
First solder the belly with neutral flux NC-559, then wipe the edges, lubricate the edges with active RMA-218 and go over with a drop of solder.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

-->