ID: | 5919 |
From: | rn...@igor2.repo.hu |
Date: | Thu, 19 Jan 2023 04:12:10 +0100 (CET) |
Subject: | Re: [pcb-rnd] [sch-rnd] wishlist: terminal alternate function |
in-reply-to: | 5918 from Wojciech Krutnik <wo...@gmail.com> |
Hi Wojciech, On Thu, 19 Jan 2023, Wojciech Krutnik wrote: >Hi, > >In microcontrollers, pins, beside of GPIO functionality, often have multiple >alternate functions of MCU's peripherals, eg. SPI, UART, TIMER, etc. >When drawing a schematic with an MCU, there's a process of assigning GPIOs. >If alt functions are used, then you have to open the datasheet and find out >on which pins can you connect, for example, an SPI memory. >What if this data could have been embedded in symbol (probably already can >in a terminal's attribute) and the user could select terminal's active alt >function? >The advantages I see in this approach: >- Faster (don't have to relate to datasheet) >- Less prone to errors, because the alt function would be directly >associated with terminals, so there's no way to assign it on a wrong pin >(maybe there also would be a way to prevent a situation where the same >peripheral is used twice) >- Ability to auto-generate gpio config for the firmware (would be nice if >additional data, like direction, pull-up/dn, open drain, etc. are also >provided) > >There are already tools from MCU manufacturers which provide similar >functionality, but I think, that the schematic editor is the right place >where it should be done. Thank you, good one! I agree this should be done in sch-rnd and all source data and current choice could be easily stored in symbol attributes. Added to the wishlist as W13. Best regards, Igor2
Reply subtree:
5919 Re: [pcb-rnd] [sch-rnd] wishlist: terminal alternate function from rn...@igor2.repo.hu