Deutsch English Français Italiano |
<vhf5ec$2h6bb$1@paganini.bofh.team> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder8.news.weretis.net!newsfeed.bofh.team!paganini.bofh.team!not-for-mail From: antispam@fricas.org (Waldek Hebisch) Newsgroups: sci.electronics.design Subject: Re: Grounded grid VHF front-end Date: Mon, 18 Nov 2024 10:38:06 -0000 (UTC) Organization: To protect and to server Message-ID: <vhf5ec$2h6bb$1@paganini.bofh.team> References: <1r2rj8l.msi28f14weovyN%liz@poppyrecords.invalid.invalid> <vgpiks$e1ei$1@solani.org> <vgq12n$ao84$2@dont-email.me> <vgq4rj$eagg$1@solani.org> <eld1jjl15hq8ohgm3kifpodkktupt1lr3g@4ax.com> <vgqg85$6t1$1@solani.org> <vhbh7j$26abk$1@paganini.bofh.team> <vhc2ts$9v2r$1@solani.org> <vhcvsg$28q26$1@paganini.bofh.team> <vhd6dk$enst$1@solani.org> <vhdick$29o3r$1@paganini.bofh.team> <vhent9$iddd$1@solani.org> Injection-Date: Mon, 18 Nov 2024 10:38:06 -0000 (UTC) Injection-Info: paganini.bofh.team; logging-data="2660715"; posting-host="WwiNTD3IIceGeoS5hCc4+A.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A"; User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.1.0-9-amd64 (x86_64)) X-Notice: Filtered by postfilter v. 0.9.3 Bytes: 3254 Lines: 41 Jan Panteltje <alien@comet.invalid> wrote: > > Yes it all depends, I still have my old 8052 BASIC computer: > https://panteltje.nl/pub/8052AH_BASIC_computer/8052AH_BASIC_computer_inside2_img_1757.jpg > wrote an assembler for it so I could do inline assembler in the BASIC. > I used 5 pole audio connectors to make teh i2c bus external, with sensors and stuff connected to it all around the house. > from before year 2000. Around 1985 I planned to build a Z80 machine, but then I got ZX Spectrum and there was no need to build it. > As to PIC serial code > As you can see from the below example, PIC asm is very simple and straight forward. > That is the code in my GPS based radiation meter / logger with OLED display and SDcard storage: > https://panteltje.nl/panteltje/pic/gm_pic2/ > Still working 24/7 after all these years... can hear it ticking on rasiation, logs to a Raspberry Pi 4 4 GB via a serial to USB adaptor. > ASM code: > https://panteltje.nl/panteltje/pic/gm_pic2/gm_pic2-0.8.asm > > I like to comment in the code, but it is basically very simple. Well, I used to think "assembler requires comparable effort to C and is more efficient", but then I looked how much time both take and compared efficiency: assembler may be more efficient but efficient assember requires significantly more effort than C. One can write assembler in a way that saves effort, but then it tends to be less efficient than output of a good C compiler, and still takes a bit more effort than C. You may be used to assembler, but if you are used to both, then reading C is easier than reading assembler. Anyway, I see no reason to use PIC-s, from normal sources I would have to pay more for them than I pay for STM32 and I see no special advantage of PICs. BTW: It seems that there are few thousends of instructions in your code, AFAICS object code for such a program when compiled for something like STM32 would be of comparable size and C source would be smaller. -- Waldek Hebisch