hybridfree/eevblog-posts huggingface dataset:
Can I program a microcontroller with universal programmer  - Page 1
Forum section: electronics / general

author: abdolah
author_rank: Regular Contributor
timestamp: January 20, 2025, 09:11:41 pm
content: Hi guysI bought the xgecu t48 universal programmer and I was wondering if I can programmer a microcontroller or plc with itOr is it only for memory flashing?Thanks for your time

author: Ian.M
author_rank: Super Contributor
timestamp: January 20, 2025, 10:19:15 pm
content: Did you read the device support list?http://www.xgecu.com/MiniPro/T48_List.txtif its not on the list you are out of luck.

author: mikerj
author_rank: Super Contributor
timestamp: January 21, 2025, 09:10:00 am
content: PLCs are normally programmed over a USB or serial link connection.
ESP32 alterative and arduino compatible bk7238 with WiFi & BLE funcs  - Page 1
Forum section: electronics / general

author: qqclient
author_rank: Newbie
timestamp: January 02, 2025, 04:50:09 pm
content: Hey, I have found an interesting module , ESP32 alterative and arduino compatible bk7238 with WiFi & BLE funcs， which is released by beken， a listed company of exchange in China as known as espressif ESP. the most important thing is, the price of this module is just 4.2 CNY, that is just 0.6 bucks in China!The link is on Taobao, which is the Chinese demastic version of Aliexpress:https://item.taobao.com/item.htm?abbucket=16&id=826326611685here is its official site：https://www.bekencorp.com/you may try it using arduino IDE，open the preference of arduino IDE，add this link to it：https://dl2.bekencorp.com/arduino/package_bk7238_index.jsonthen open devboard manager，search the keyword “BK”，you can find the board，there are many useful examples.

author: nimish
author_rank: Regular Contributor
timestamp: January 02, 2025, 05:41:45 pm
content: https://store.minewsemi.com/product/wifi-modules-bk7238-me16ws02/there's tons of these. all are basically the same blob of code from CEVA. the problem is that like most hw companies they have no good sw people so doing anything is like pulling teeth. you're stuck with their shitty binaries since the docs are proprietary

author: senso
author_rank: Frequent Contributor
timestamp: January 05, 2025, 04:01:18 pm
content: There is openBeken for those Beken MCUs, even esphome already supports them.

author: kripton2035
author_rank: Super Contributor
timestamp: January 05, 2025, 04:35:10 pm
content: there are no bk boards in the board manager, even after adding the link in the arduino ide prefs

author: ahsrabrifat
author_rank: Regular Contributor
timestamp: January 20, 2025, 12:58:08 pm
content: How is the performance? Did anyone try?
Libs, code example and/or project links for MikroE 4G LTE 2 Click - Page 1
Forum section: electronics / general

author: newbadboy
author_rank: Regular Contributor
timestamp: January 16, 2025, 08:39:37 am
content: I'm about doing a security system and will use this module for LTE connectivityhttps://www.mikroe.com/4g-lte-2-click-voiceIs there any good libs, projects or something that works well with MPlab??Cheers!

author: voltsandjolts
author_rank: Unknown
timestamp: January 16, 2025, 09:36:32 am
content: Try google search for "lara-r6 site:github.com"

author: newbadboy
author_rank: Regular Contributor
timestamp: January 16, 2025, 10:08:51 am
content: I have downloaded a lib from Libstock on mikroe homepage but i'm not using their compilers so it's quite hard to understand how the files should be used

author: ComfyChair
author_rank: Contributor
timestamp: January 16, 2025, 01:26:49 pm
content: Too bad you have chosen an u-blox module...https://www.u-blox.com/en/u-blox-announces-strategic-decision

author: newbadboy
author_rank: Regular Contributor
timestamp: January 17, 2025, 07:42:44 am
content: Whatever i choose i get bad newson the other hand it doesn't really matter. Its only for hobby purpose and nothing that will become commercial

author: JPortici
author_rank: Super Contributor
timestamp: January 17, 2025, 08:41:33 am
content: Mikroe libraries used to be very good in terms of documentation, you would always get a minimal example in a single C fileBut i think you can more or less copy their libraries and replace the calls to the hardware
Is ST planning to make a Cortex M85 based MCU? - Page 1
Forum section: electronics / general

author: rf-fil
author_rank: Regular Contributor
timestamp: January 21, 2025, 02:08:32 am
content: The new 'N6 is based on M55, which has much lower DMIPS/MHz and CoreMark/MHz than the M7, so it's a downgrade from the STM32H7 for me. I'm after simple raw DSP performance. Don't care about any of the AI stuff... The M85 core should be an upgrade, if they don't try to use some ultra small geometry with heaps of leakage current.

author: SiliconWizard
author_rank: Super Contributor
timestamp: January 21, 2025, 06:51:39 am
content: Good question. My guess is that they probably will, as they seem to have switched to the ARMv8.x-M cores for their newer products (M33, M55...) at least for their mid-range lines.So I would suspect that they will release something that will be in the same league, but outperform the M7. I just have no clue when. I haven't heard of leaked information about that so far.

author: jnk0le
author_rank: Regular Contributor
timestamp: January 21, 2025, 06:12:04 pm
content: on 18nm fd-soi:https://www.eejournal.com/article/st-rolls-a-new-fd-soi-microcontroller-with-phase-change-memory-pcm-for-automotive-applications/chinese leaks named it STM32V8

author: Shalomie42
author_rank: Newbie
timestamp: January 23, 2025, 11:41:32 pm
content: My position as an engineer for the last decade has afforded me the ability to meet with vendor marketing and FAE reps over the years for companies like ST, NXP, etc.. I met with them recently (last 6 months or so). One of the cool things that you usually meet for is MCU roadmaps.Let's just say you may be seeing some very interesting chips coming from ST in the next few years. ST is the only vendor with a good track record of releasing new chips (regardless of class) at least once a year. You can't say that about the other vendors. NXP, for example, is a complete joke. You also may be seeing another vendor come out of the woodwork for some nice cortex M offerings in terms of industrial connectivity & motor control. That's the area I am interested in at the moment.
DDR3L Bank Address Question - Allwinner H6 Design - Page 1
Forum section: electronics / general

author: pikey
author_rank: Newbie
timestamp: January 15, 2025, 01:01:22 am
content: Hi everyone,I've hit a confusing situation while designing with the Allwinner H6 V200 SoC and DDR3L memory.Based on the H6 V200 documentation (Rev 1.1):The SDRAM controller supports "3 bank signal lines" (section 4.1.1)https://linux-sunxi.org/images/4/46/Allwinner_H6_V200_User_Manual_V1.1.pdfThe DRAMC "automatically handles memory management, initialization, and refresh operations" and "hides details of the required address, page, and burst handling procedures"The memory controller works in "half rate mode" to simplify chip system integrationHowever, looking at the actual signals:H6 shows SBA[1:0] for Bank AddressH6 shows SBG[1:0] for Bank Group Address (which seems to be a DDR4-related)https://linux-sunxi.org/images/5/5c/Allwinner_H6_V200_Datasheet_V1.1.pdf- page 44Interestingly, every open source project I found for H6 uses LPDDR3 instead, where bank address lines are either grounded or left unconnected.I'm planning to use a 2Gb DDR3L F-die SDRAM with:x16 I/O configurationSpeed bins from DDR3-800 to DDR3-18661.35V operation8 banks requiring BA0-BA2 addressingOr whatever else that will work at this pointThe contradiction between the documentation stating "3 bank signal lines" and the actual signals showing only SBA[1:0] is confusing.Questions:* Has anyone successfully implemented DDR3L with H6 (V200, not H616)? How did you handle the bank addressing?* What's the proper interpretation of the H6 documentation vs the actual signals?* Is there a reason why most projects go with LPDDR3 instead? Is this related to the bank addressing issue?Any insights from those who've worked with H6 or similar situations would be greatly appreciated!Thanks in advance!
Dual regular simultaneous ADC mode - demo for the stm32F303 - Page 1
Forum section: electronics / general

author: iMo
author_rank: Super Contributor
timestamp: January 22, 2025, 06:08:08 pm
content: Hi, after spending many days with this - with a zero result - let me kindly ask you - do you may share a short complete demo source showing a working dual regular simultaneous ADC mode ?Like the ADC1 and ADC2 simultaneously (!) sampling two analog inputs triggered internally by a timer 1x per second and printing the 2 results over the USB serial out? Any environment, preferably Arduino with STM32 HAL, printing via Serial.print().. But it should be something which builds straight and prints out the 2 numbers every second such when I touch the pins I would see the noisy numbers..PS: Warning - do not try to start to dig into it (like to try elaborate)..Only if you may have something off the shelf (but working)..
NXP: New(-ish) MCX microcontrollers - Page 1
Forum section: electronics / general

author: diilettante
author_rank: Newbie
timestamp: January 08, 2025, 04:20:21 pm
content: I had read about them in the past, but I never had time to look into them in detail, so I was wondering if anyone here knows more about them that could not be found without reading hundreds of documents and attending special presentation sessions, especially in the sense of how do the compare to NXP's other two product lines, Kinetis and LPC?

author: SiliconWizard
author_rank: Super Contributor
timestamp: January 08, 2025, 11:38:53 pm
content: Nope, I just saw that they are going to release the MCX-L, ultra-low power series, apparently kinda in the same league as the STM32U5 (same ARM M33, "similar" power consumption figures), but as far as I've seen, they are going to have limited Flash & RAM compared to the STM32U5 and a limited set of peripherals, so not really excited at this point. OTOH, they seem to embed a second, M0+ core.
Looking for PCIe packet switch - Page 1
Forum section: electronics / general

author: fchk
author_rank: Frequent Contributor
timestamp: January 03, 2025, 05:35:15 pm
content: Hello world;I'm looking for a suitable PCIe packet switch with these features:PCIe Gen3 preferred, PCIe Gen2 minimumUpstream interface: 1/2/4 lanesDownstream interfaces: 2 or 3 single lanepreferred: Refclk buffers integratedpreferred: QFN package with less then 128 pinsparts and datasheets available in Europelow quantities (tens or hundreds)The Diodes/Pericom parts available on Digikey and Mouser are Gen2 only.Any sources for Asmedia?Any other suggestions?

author: EverydayMuffin
author_rank: Regular Contributor
timestamp: January 06, 2025, 11:41:32 pm
content: Microchip PCI12000 sounds like it might meet your requirements.PCIe Gen31x Upstream Port2x Downstream Ports72-pin VQFNhttps://www.microchip.com/en-us/product/pci12000Edit: Link todatasheet

author: fchk
author_rank: Frequent Contributor
timestamp: January 08, 2025, 04:42:13 pm
content: Quote from: EverydayMuffin on January 06, 2025, 11:41:32 pmThis is only the Product Brief. Do you have the full datasheet?

author: EverydayMuffin
author_rank: Regular Contributor
timestamp: January 08, 2025, 04:52:12 pm
content: Quote from: fchk on January 08, 2025, 04:42:13 pmFull datasheet here:https://www.microchip.com/myMicrochip/#/secure-document-download/59856/0You need to make an account here to access it:https://www.microchip.com/mymicrochip/
RP2350 Hacker challenge winner? - Page 1
Forum section: electronics / general

author: phil from seattle
author_rank: Super Contributor
timestamp: January 05, 2025, 12:29:26 am
content: It looks likesomeone has wonthe RP2350 hacker challenge.

author: ataradov
author_rank: Super Contributor
timestamp: January 05, 2025, 01:22:15 am
content: Yeah, when you have a pin named USB-OTP_VDD, you are asking for injection attacks. Imagine doing half the work for the attacker by conveniently separating the critical pin.They really need to work on their power supply topology. Not only it will free up half the pin for I/O, it will also significantly reduce the attack surface.
Live teaching session - developing network stack from scratch - Page 1
Forum section: electronics / general

author: tellurium
author_rank: Frequent Contributor
timestamp: January 04, 2025, 05:03:22 pm
content: I plan to conduct a free live streaming session, where I'll be developing a simple TCP/IP stack from scratch.For those who are interested to watch (and ask questions), see details athttps://www.reddit.com/r/embedded/comments/1htciiv/live_teaching_session_developing_network_stack/
Denon Stereo Toshiba TMP88CU74F MCU stopped sending volume commands ?? - Page 1
Forum section: electronics / general

author: MathWizard
author_rank: Super Contributor
timestamp: January 03, 2025, 06:11:24 pm
content: This stereo has 4 main IC involved in setting the 5-CH analog inputs, the main MCU, an analog switch for all the channels, and 2 for all the CH volumes.I bought it used and in no time I was having problems either changing input source, or changing volume, maybe both.But now today I'm back probing the MCU, and it seems the MCU is only sending the volume data, when I change input source, but not when I only turn the volume knob.However, the same MCU still sends the updated volume dB level to the display. So I wonder what could be going wrong with the MCU ? It's a Toshiba TMP88CU74F, something similar to the TLCS-870 family and Zilog-80's before those iirc.But there's not much info on them, does anyone know if these old Toshiba MCU's are hackable in anyway ? There's no external RAM/ROM. Are there any old Toshiba datasheets and instruction sets ??I guess there's no hope of fixing it, but for now I can learn how to read the digital volume knobby, and I already know the format of the volume data, and was working on a program to read and send data to these IC's at a way slower speed.

author: amyk
author_rank: Super Contributor
timestamp: January 04, 2025, 12:49:39 am
content: It's easy to find a datasheet, but it says it is mask ROM, so not programmable and likely not readable either.Are you sure the problem is the MCU and not the volume encoder?
Temperature algorithm (ESP32-S3) (language C) - Page 1
Forum section: electronics / general

author: Irilia
author_rank: Regular Contributor
timestamp: January 02, 2025, 01:07:14 pm
content: I I'm looking for an algorithm I can use for a fridge freezer or oven.Microcontroller: (ESP32-S3) (language C)The algorithm have to be able to learn how to get to the asked temperature, and know how to stay at this temperature with no overshoot, or undershoot.Supporting multiple temperature sensor.Should be generalist enough to be available (wasn't able to find it) standalone, to be integrated in the two projects.Thanks for your help

author: nctnico
author_rank: Super Contributor
timestamp: January 02, 2025, 01:21:05 pm
content: A PI control loop should do the trick. Where things get complicated is wanting the temperature to rise (or fall) as fast as possible. An additional problem with a freezer is that AFAIK these have a limited duty-cycle. You need to wait a while to turn the compressor back on to allow the pressure to equalise.

author: Irilia
author_rank: Regular Contributor
timestamp: January 02, 2025, 01:27:02 pm
content: Yes I know that, it also need to be efficient, but normally the temperature of a fridge freezer should change very gradually, so it should not be a problem (the code will obviously contain a hard coded minimum time for the compressor, (for the on and off time)

author: peter-h
author_rank: Super Contributor
timestamp: January 02, 2025, 05:19:58 pm
content: In apps where you have long time lags (heater to sensor propagation time) all kinds of tricks are used to make it work, because a classic PID would be sub-optimal by the time you got it stable.IIRC, one does feedforward stuff i.e. apply heater power appropriate to what is being asked for.On a freezer it may not matter too much because the user is happy with a long cooling time. Also you feed in whether a door is open.
[Solved]I can't get the CH32V003 output compare to toggle - Page 1
Forum section: electronics / general

author: kgavionics
author_rank: Regular Contributor
timestamp: January 01, 2025, 12:30:34 am
content: HelloI'm playing around with the CH32V003 chip and I have problem setting up the PC0 (TIM2_CHANNEL3) to toggle.this is my code:Code:#include "ch32v003fun.h"int main(){SystemInit();RCC->APB2PCENR |=RCC_AFIOEN | RCC_IOPCEN; //IO auxiliary function clocksGPIOC->CFGLR |=0X09;// PC0 is configured as alternate push-pullRCC->APB1PCENR |= RCC_TIM2EN; // enable timer 2 clockTIM2->CTLR1 &= ~TIM_CEN; //Disable timer counterTIM2->CTLR1 |=TIM_ARPE; //autoload of the ATRLR register enabledTIM2->PSC = (uint16_t) 48000 - 1; //Prescaler - 48Mhz / (48000 - 1) = 1kHzTIM2->ATRLR = (uint16_t)500; //Auto reload valueTIM2->CHCTLR2 |=TIM_OC3M_0 | TIM_OC3M_1 ;//TOGGLE 0C1REF TOGGLESTIM2->CCER |=TIM_CC1E; // COMPARE CAPTURE CHANNEL IS CONFIGURED AS OUTPUTTIM2->CTLR1 |=TIM_CEN; //ENABLE TIMER 2while(1){}}Any help is very much appreciated

author: SiliconWizard
author_rank: Super Contributor
timestamp: January 01, 2025, 01:19:49 am
content: If you use channel 3, shouldn't the CCER register be set like this instead?TIM2->CCER |=TIM_CC3E;

author: HwAoRrDk
author_rank: Super Contributor
timestamp: January 01, 2025, 11:09:08 am
content: IIRC, PSC is buffered (and so will be ATRLR if you enable TIM_ARPE) and only takes effect when the next update event occurs. So in your timer initialisation you need to generate one using UG in SWEVGR.To expand on why failing to do this results in the timer 'not working properly', two things are happening:- PSC doesn't get the right value loaded, so counter runs too fast on the default prescaling of 1.- ATRLR doesn't get loaded either, so stays with zero value, effectively disabling the timer.

author: kgavionics
author_rank: Regular Contributor
timestamp: January 01, 2025, 01:34:51 pm
content: Quote from: SiliconWizard on January 01, 2025, 01:19:49 amYour are right SiliconWizard! you spotted the mistake as always.Merci pour votre aide!
Open Source ESP32 WiFi MAC ....... - Page 1
Forum section: electronics / general

author: Smokey
author_rank: Super Contributor
timestamp: December 30, 2024, 01:52:34 am
content: Interesting. I can see where it would be nice to be able to tweak some of the wifi stack behaviors. I'm not a huge fan of Rust in this case, but at least it lays the groundwork for someone to do a pure C version that is more generally useful to people who don't have a Rust codebase.https://media.ccc.de/v/38c3-liberating-wi-fi-on-the-esp32https://github.com/esp32-open-mac/

author: linux-works
author_rank: Super Contributor
timestamp: December 30, 2024, 02:37:35 am
content: I have been doing a lot of esp8266 web rest stuff the last few years. I recently am trying to get esp32 to work with my code and its been a lot of non-fun dealing with esp32.esp8266 just plain works, its stable and I have devices that stay online (pingable, get'able) for months and even more than a year of uptime. cant say anything like that about esp32.and now there's a new 'boards manager' for it.just not happy that esp32 is too much of a moving target. I get why they update things but each major update breaks too much existing library and example code. very unprofessional.so far, for things I need to work its the old esp8266 for me. wemos d1 most often.
RAM images? - Page 1
Forum section: electronics / general

author: metertech58761
author_rank: Frequent Contributor
timestamp: December 26, 2024, 07:09:51 am
content: I am currently working on reverse engineering a schematic diagram of an early RAM storage device... it uses a Dallas SRAM chip to store programs as well as interfacing with a PC Card-style SRAM card.I suddenly got the idea of trying to read out the contents of the Dallas chips from both RAM storage devices and a CPU card I had that would work with this device, and I'd like the opinion of the 'brain trust' on the images I read out.One I'm 99.5% sure is a perfect copy of the factory diagnostic SRAM card - can anyone run it through a disassembler that understands code written for the 8031 MPU and verify?The other two look like the integrated batteries in the Dallas chips have kicked the bucket. These two would contain program data, but it looks like the pseudo-random data you'd see at initial power-up of a RAM chip...I also added the dump of the EPROM if it helps in checking the diagnostic cart.

author: squadchannel
author_rank: Frequent Contributor
timestamp: December 26, 2024, 09:30:16 am
content: To me, it looks like a memory reader/writer for industrial machines, interfaced via a serial connection.might have been used to replace punched tape.Of course, if anyone is familiar with MCS-51, can probably to do a memory dump via serial, it would be easy.if it were me, I would desolder and read it by TL866.it's 8934, that's 35 years. that's 25 years past his 10 year lifespan. he's a long lived boy.if he doesn't do something soon, he'll be gone.I always wonder. How can dallas live so long; CMOS batteries don't even last 10 years.

author: metertech58761
author_rank: Frequent Contributor
timestamp: December 26, 2024, 01:33:53 pm
content: Fortunately, this company had ALL the ICs on its boards socketed, and extracting the Dallas chip was easy.The CPU card was from 1988, this Program Loader unit was from early 1990.The second Program Loader that yielded what I think is a good image is young in comparison; it was from 1995 (it also appears to be 'new old stock').Oh, and this Program Loader replaced an earlier cassette deck that used Dictaphone-type cassettes.

author: abyrvalg
author_rank: Frequent Contributor
timestamp: December 26, 2024, 08:17:48 pm
content: I’ve checked the smaller (8K) image quickly, looks like valid code, found ROM checksum verification under one of the first function calls, computed the same checksum (a simple sum of all bytes) and it is correct (=0).The bigger image has several gaps, I’ll check it later.

author: metertech58761
author_rank: Frequent Contributor
timestamp: December 27, 2024, 10:37:10 pm
content: Update: Nearly finished the schematic; have ordered fresh sockets and will pull the existing sockets (and read the PAL) once I'm back at work in a few days.
Mouse implementation on GUIX Studio - Page 1
Forum section: electronics / general

author: abelCortex
author_rank: Contributor
timestamp: December 16, 2024, 02:02:36 pm
content: Currently I'm in a project with a S7G2 of Renesas, implementing a mouse on a touch screen, reading the official documentation a variable called "GX_MOUSE_SUPPORT" needs to be set on 1.As seen in the firs attachment this variable is needed for use the Mouse API functions, I've tried to force this to 1 manually but it didnt work, maybe something in the configuration.xml, if anyone can help me or has any example.Thanks
ESP32-C3 needs USB unplug/replug to start up after flashing Micropython - Page 1
Forum section: electronics / general

author: kmm
author_rank: Regular Contributor
timestamp: December 13, 2024, 05:29:36 pm
content: I'm working with a board of my own design using an ESP32 C3; just a little Christmas trinket to give to some friends and family, a very simple thing.It works completely fine once I have mpy flashed, but I haven't been able to fully automate the firmware provisioning because the board stops responding after flashing. It's not dead and comes up just fine after physically unplugging and replugging the USB, but I'd like to get a workflow going where I can plug a board in and get python and my application code installed with one `make deploy`. I don't have any issues with USB connectivity after mpy has been flashed and the board power cycled, I've had several of these things running for a couple days with no freezes or crashes, and all the parameters I've measured look good (+3.3V rail is at +3.3V, oscillator is wiggling at 40.0MHz, etc). I don't think it's a problem with the hardware unless it's a silicon bug in either my PC's USB host or the C3's USB debug block.I'm using `esptool` and `ampy` to do this (suggestions of other tools are welcome) and have tried all the software-driven reset mechanisms I'm aware of, `--after hard_reset` flag to esptool when flashing, `ampy reset`, and the `usbreset` linux command to reset the interface on my PC, but none seem to give it the thwack it needs to start up without a power cycle (or perhaps just USB re-association) after being flashed.Anyone have any suggestions or seen a problem like this before with the 'C3 and its built in USB debug interface? I've attached the (janky) makefile I'm using for reference as to what I'm doing.

author: Chicane
author_rank: Contributor
timestamp: December 16, 2024, 01:51:35 pm
content: Completely normal behavior for C3. Hit Reset button after programming and will run your code.
Why a 4.433619MHz XTAL in this FM Tuner? - Page 1
Forum section: electronics / general

author: djsb
author_rank: Super Contributor
timestamp: December 15, 2024, 04:56:16 pm
content: I'm just wondering why a 4.433619MHz XTAL is used in this tuner MCU schematic? Wondering if just a standard 4MHz XTAL would work? Thanks.PS I've seen references to PAL which was used in video recorders and TV receivers. Not sure how this is relevant to an FM tuner control system that uses a simple 8 bit micro? Maybe it was popular and to hand at the time, not sure.

author: oPossum
author_rank: Super Contributor
timestamp: December 15, 2024, 06:47:50 pm
content: Television cloudburst xtals where once some of the lowest cost and most readily available xtals. Using them with a CPU/MCU was common.

author: coppice
author_rank: Super Contributor
timestamp: December 15, 2024, 07:00:29 pm
content: The reason is exactly the same as the wide use of 3.58MHz crystals. 3.58MHz crystals are for 525 line NTSC TV. 4.43MHZ crystals are for 625 line PAL TV. A huge number of things were built to use 3.58MHz crystals, because of their volume pricing. Quite a few European things were built to use 4.43MHz crystals.

author: Benta
author_rank: Super Contributor
timestamp: December 15, 2024, 10:05:52 pm
content: Yup. Price back then.

author: coppice
author_rank: Super Contributor
timestamp: December 15, 2024, 10:11:57 pm
content: Quote from: Benta on December 15, 2024, 10:05:52 pmPrice now. Price always.

author: woofy
author_rank: Frequent Contributor
timestamp: December 15, 2024, 11:52:14 pm
content: Probably just cost.4.43361875 is the frequency of the colour subcarrier of the B-Y and R-Y signals used in UK 625 line colour TV's. The carrier was suppressed and needed to be recreated. The 4.433619 xtal was synced to a 4.43361875MHz burst inserted into the line flyback porch.The xtals were cheap and plentiful at the time.
eeprom reader writer for the DSPIC33FJ16GS502  - Page 1
Forum section: electronics / general

author: njsw88
author_rank: Contributor
timestamp: December 13, 2024, 11:21:52 am
content: what is the best programmer or eeprom reader writer for the DSPIC33FJ16GS502 chip its 28pins

author: oPossum
author_rank: Super Contributor
timestamp: December 13, 2024, 12:52:27 pm
content: Best in what way?Some of the options are:SNAPPICKit 4PICKit 5ICD 4ICD 5https://packs.download.microchip.com/DeviceDoc/Device_Support.pdf

author: Postal2
author_rank: Frequent Contributor
timestamp: December 13, 2024, 01:14:15 pm
content: Quote from: njsw88 on December 13, 2024, 11:21:52 amAny.

author: NorthGuy
author_rank: Super Contributor
timestamp: December 13, 2024, 02:14:15 pm
content: DSPIC33FJ16GS502 does not have EEPROM, only program flash.
Help with this MAX7219 MATRIX DISPLAY! - Page 1
Forum section: electronics / general

author: kgavionics
author_rank: Regular Contributor
timestamp: December 04, 2024, 03:24:10 pm
content: HelloI got a few of these Chinese Matrix display based on the Max 7219 chips, but none of them is working. The connection seems to be correct. All CLK, DIN AND CS pins are tied together and CHIP 3 DOUT going to chip 2 DIN, chip 2 DOUT is going to chip 1 DIN, CHIP 1 DOUT is going to chip 0 DIN.As a matter of fact, I tried a lot of library and the result is always the same (see picture 2). In this example, I'm writing "1 9 7 3" string on the display. Does someone have an idea what's going on? TIA

author: kgavionics
author_rank: Regular Contributor
timestamp: December 04, 2024, 05:46:19 pm
content: I fixed the problem by changing the type of display from PAROLA_HW to FC16_HW
I can't find a function, c166 assembler. (solved) - Page 1
Forum section: electronics / general

author: Postal2
author_rank: Frequent Contributor
timestamp: November 30, 2024, 03:04:12 pm
content: CPU C164CI. It is known that the motor encoder is connected to P3.4 and P3.6. I can't find a function in the firmware that reads these pins. Does anyone understand C166 assembler?

author: DavidAlfa
author_rank: Super Contributor
timestamp: November 30, 2024, 03:53:41 pm
content: Did you tryc166-ghidra-module? Working in latest Ghidra v11.2.1.Check the c164User ManualandDatasheet, it's probably used in alternate function mode, connected to a timer in Incremental Interface Mode.Edit: I foundFUN_01dc52doingT3CON = 0x1b3(0 1 1 0110011)This effectively sets T3 into incremental interface mode. In this mode, the timer runs automatically from the encoder pulses.If you want to know what uses the encoder, find what reads T3, but I wasn't able to find it out, neither anything setting T3 interrupts (T3IC reg) or anything else accessing T3, it might be using some sort of byte SFR addressing or indirect addressing that Ghidra isn't recognizing.Attached the decompiled program.

author: Postal2
author_rank: Frequent Contributor
timestamp: November 30, 2024, 05:01:31 pm
content: Quote from: DavidAlfa on November 30, 2024, 03:53:41 pmOh, thank you! That thought never occurred to me! I was straining my eyes trying to find the port address. I'll check now!Quote from: DavidAlfa on November 30, 2024, 03:53:41 pmNo, I haven't tried it, but I liked your decompilation. I'll set up this tool too. I'm using Ida (screenshot).I was looking for a port reference, because I suspected that the encoder was outputting some serial number at startup.

author: Postal2
author_rank: Frequent Contributor
timestamp: November 30, 2024, 06:43:44 pm
content: Great! Now everything is clear, thank you. This piece of iron managed to deceive me after all.
Custom GRBL pinout for custom Arduino Uno GRBL board - Page 1
Forum section: electronics / general

author: SebastianEspende
author_rank: Newbie
timestamp: December 09, 2024, 01:45:52 am
content: Hi, im a student from Argentina. Im looking to modify grbl to suit my needs for making my own GRBL Board for Arduino Uno.Im having a problem with changing the pins on the cpu_map.Basically i've already made my own board which pins are not setup the way grbl boards are setup normally, this isnt a thing i've done on purpose its just i didnt know enough when making the board.GRBL Pinout works by using Port groups, which you can see when checking the arduino uno pinout, the problem is my board does not do this.How can i modify the code to make it so that i can set any pin i want?Before anyone tells me to just buy a standard GRBL Board, i cant, this is part of my final project for my secondary school, which requires me to make my own, and im a bit short on time to make a new one with the correct pin arrangement. AlsoHere is what i would like the pinout to beX_STEP_BIT to be pin 12Y_STEP_BIT to be pin 11Z_STEP_BIT to be pin 3X_DIR_BIT to be pin 13Y_DIR_BIT to be pin 10Z_DIR_BIT to be pin 2Here is how its currently setup by default on the cpu_map:Code:// Define step pulse output pins. NOTE: All step bit pins must be on the same port.#define STEP_DDR DDRD#define STEP_PORT PORTD#define X_STEP_BIT 2 // Uno Digital Pin 2#define Y_STEP_BIT 3 // Uno Digital Pin 3#define Z_STEP_BIT 4 // Uno Digital Pin 4#define STEP_MASK ((1<<X_STEP_BIT)|(1<<Y_STEP_BIT)|(1<<Z_STEP_BIT)) // All step bits// Define step direction output pins. NOTE: All direction pins must be on the same port.#define DIRECTION_DDR DDRD#define DIRECTION_PORT PORTD#define X_DIRECTION_BIT 5 // Uno Digital Pin 5#define Y_DIRECTION_BIT 6 // Uno Digital Pin 6#define Z_DIRECTION_BIT 7 // Uno Digital Pin 7#define DIRECTION_MASK ((1<<X_DIRECTION_BIT)|(1<<Y_DIRECTION_BIT)|(1<<Z_DIRECTION_BIT)) // All direction bitsI have moved this question from the projects forum to this one, thought it was more fitting.Any help is apreciated, thanks.

author: Halcyon
author_rank: Unknown
timestamp: December 09, 2024, 03:01:08 am
content: Duplicate thread of:https://www.eevblog.com/forum/projects/custom-grbl-pinout-for-custom-grbl-board/If you want a topic moved, please ask.
esp32s3: maximum display bus speed? Overhead of GPIO matrix - Page 1
Forum section: electronics / general

author: exe
author_rank: Unknown
timestamp: November 29, 2024, 10:53:01 pm
content: Hello my friends!I'm connecting a display (16 bit bus) to esp32s3. I'd like to understand how much speed I can get. The datasheet says the MCU can deliver up to 40MHz on 8080-style bus, pin assignment doesn't matter ("5.2.1.4 LCD and Camera Controller"). However, I also remember that using GPIO matrix makes SPI bus twice slower.Question: is there a way to bypass GPIO matrix for 16-bit bus and does this make sense? Or it adds just a static latency? I can't figure this out from the datasheet.

author: DavidAlfa
author_rank: Super Contributor
timestamp: November 30, 2024, 11:03:30 pm
content: Use IOMux to directly connect pins and peripherals, avoiding the gpio Matrix latency.https://www.eevblog.com/forum/microcontrollers/esp32-s3-(dual-core-240mhz-blah-blah)-crappy-performance/msg4200127/#msg4200127

author: exe
author_rank: Unknown
timestamp: December 04, 2024, 05:43:52 pm
content: LCD bus doesn't support direct output, unfortunately. I'm attaching screenshot from esp32s technical reference, "Table 6-2. Peripheral Signals via GPIO Matrix"

author: DavidAlfa
author_rank: Super Contributor
timestamp: December 04, 2024, 08:45:55 pm
content: Even if the GPIO matrix causes it to go slower, let's say 16MHz, it's a 16-bit parellel bus, should provide decent throughput for 60fps+ in most screens.
Did I brick this ATmega169PA ?? - Page 1
Forum section: electronics / general

author: MathWizard
author_rank: Super Contributor
timestamp: November 25, 2024, 10:12:09 am
content: I'm trying to program an ATmega169PA with an ArduinoISP (as a STK500v1), with AVRDudess. I've used those for an ATtiny13A and didn't have this problem.Using the SPI pins, and no external oscillator for the ATmega, the default should be the internal 8MHz DIV 8 anyways tho, and just trying to detect the chip, or program it, I get the errorQuoteI bought a few off ebay, for about the going price. I soldered 1 onto a breakout board with a Yxxx 858D hotair station, set on 350C=~660F, (so about the same temp as my iron most the time). I knocked it and had to re-float it back into position but it went pretty smooth. But IDK, maybe I cooked it too long. The chip is really really thin. I used a fair bit of flux, I've treated chips worse and had them survive. But yeah this one is a very thin TQFP-64 package.Early this fall, I removed one of those same chips from a thermostat, and later put it back and it still works as good as before (it has some other problem tho).I touched up all the pins, and cleaned them all with a toothbrush and ISP, and checked all pins for continuity.Then soldered 3 GND pins together, and 2 Vcc's together, and added a 100nF cap on the breakout PCB.For the 4-wire SPI , I've tried using the /RESET pin besides the /CS or as they call it /SS, and no luck.IDK that much about the ArduinoISP, but I had a whole bunch of stuff added onto ArduinoIDE for AVR and STM ARM chips, and that's what turned my Arduino Uno into an ISP.But I'm bare-metal programming, and not using the ArduinoIDE, and AVRDudess is up to date.In AVRdudess, the ATmega169PA is there, and all my other COM/USB settings are the same.So what might be going on, besides maybe I cooked the chip ?? I could try another one, maybe just using the iron.I carefully soldered up another atmega, on another breakout PCB, and besides the 4-SPI wires, I put a pullup and 1uF cap on the /Reset pin, I still get nothing. I flipped the MOSI/MISO just in case, but nothing, (but I know AVRdudess still works right now with an attiny, and my USB cable is new and a good one.No emergency anymore,I have an new XGecu T48, that I finally tired, and that worked, and the software was easy enough to flash a program onto both ATmega's and they both work.I was worried they might have been sold defective, but nope they work.
ESP32 PWM options for a new user - Page 1
Forum section: electronics / general

author: djsb
author_rank: Super Contributor
timestamp: November 25, 2024, 10:30:56 am
content: I've started by using standard analogWrite on an ESP32 DevKitC V4, and I'd like to know what my options are when using PWM for LED and motor control. I've tried one example that uses LEDC to fade up/down a single LED, and I have another example that drives an RGB LED. I've read a little about the ESP32 having multiple channels, but I'm a bit confused as to what this means in detail. Also, what options open up for the use of simple DC (3v to 6v) motors and simple 4 wire stepper motors? Is there a separate motor control section, and is it worth using at all for simple motor applications? Is the LED section sufficient for this? Thanks.
STM32H533 Cannot identify the device - Page 1
Forum section: electronics / general

author: Szerev
author_rank: Newbie
timestamp: November 13, 2024, 02:10:33 pm
content: Hello,I've designed my own PCB using the STM32H533CET6 microcontroller. However, when I try to connect to it using an ST-Link V2 via SWD, STM32Cube Programmer gives me the error: "Cannot identify the device".I've already tried connecting under reset and adjusting the connection settings, but nothing seems to work. Additionally, on another PCB that was previously working well, I replaced the STM32F303 with the STM32H533, and the same issue occurred.Could you please help me with this? I'm completely at a loss as to what might be causing the error.Thank you!

author: coromonadalix
author_rank: Super Contributor
timestamp: November 13, 2024, 02:23:31 pm
content: have you initiated a connection ... the screen shot seems to show the interface not the target infosare you sure you don't have any shorts, does the 533 pins fit the target programmer pinoutstlink v2 : does it powers up the target ?? (normally you have to hack it to supply voltage ...) or do you power the target by external power ....stlink v2, is it the one on the nucleo board ? snapped out ? or other built ones the white one from original ST cloned we often see, theses are checking the target supply, dont power them

author: Masterval
author_rank: Newbie
timestamp: November 21, 2024, 11:12:18 am
content: Hi,I had the same problem as you. Check the connections. Especially VBAT, it must be connected at least to VDD.Now the problem I have is file download error.I use STlink/v2 (clone) and it works perfect with other families, except these H533.

author: Masterval
author_rank: Newbie
timestamp: November 21, 2024, 11:28:04 am
content: I also verified that the trusted zone was disabled. Also that the memory was not protected. And I tried the different modes and different ways to reset.Nothing works. In StmCubeIde I have the same error.Does anyone have any idea how to fix this?
[SOLVED] STM32G491 EXTI Interrupt takes milliseconds - Page 1
Forum section: electronics / general

author: BreakingOhmsLaw
author_rank: Frequent Contributor
timestamp: November 14, 2024, 07:32:02 pm
content: Hi everybody,I made a board with an STM32G491KEU6, and I am facing a peculiar problem.The external interrupt on Pin PA1 takes milliseconds (around 400k cycles @144MHz).To test, I've made a completely empty project, and just configured two pins:PA0 - EXTO GPIO with a PWM signal going in, rising and falling edge.PB0 as an output, which also drives a LED.Now, theonlycode i have added to the code generated by STM32CubeIDE is the ISR callback for that interrupt. Even the while loop in main() is completely empty.Code:void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin){if(HAL_GPIO_ReadPin(PWM1_IN_GPIO_Port,PWM1_IN_Pin))HAL_GPIO_WritePin(LED_RUN_GPIO_Port,LED_RUN_Pin, 1);elseHAL_GPIO_WritePin(LED_RUN_GPIO_Port,LED_RUN_Pin, 0);}So basically, all the callback function does, is copy the PWM signal from PA0 to PB0.If i probe the input and output, i see a delay which is utterly insane. So somehow, the core must be doing something else, because it should be less than 100 cycles. Pushing all registers onto the stack and doing some housekeeping, then call the ISR - that's it.I'm hoping someone has the experience to know what's going on. I've been pulling my hair out for the last two days.Things I've tried:- Changing the IRQ level. Makes no difference at all.- Cleared all other code. As mentioned, this happens even in a completely empty project with just the ISR.What's going on? Is HAL doing me dirty again?

author: wek
author_rank: Frequent Contributor
timestamp: November 14, 2024, 08:49:21 pm
content: What is"EXTO"? Did you mean EXTI0?> should be less than 100 cycles.Hardly so... because:> Pushing all registers onto the stack and doing some housekeeping, then call the ISR - that's it.Not, as you use Cube/HAL, which is rather bloated, and you are also using C and quite likely no optimization. Hundred of cycles under that circumstances is no exception.400k is way too much, though.Try just toggling the output pin in a loop, and post what you've observed.JW

author: BreakingOhmsLaw
author_rank: Frequent Contributor
timestamp: November 14, 2024, 09:00:01 pm
content: Quote from: wek on November 14, 2024, 08:49:21 pmTypo. Fixed.Quote from: wek on November 14, 2024, 08:49:21 pmThis works as expected.I am suspecting this MCU has ESD damage. I will solder in in a replacement tomorrow.

author: BreakingOhmsLaw
author_rank: Frequent Contributor
timestamp: November 14, 2024, 09:55:06 pm
content: The MCU input was damaged. I suspect that somehow some charge still went into the input, eventually still triggering the input stage. Just with a big delay.This had me chasing down the rabbit hole for two days.
Simultaneous debug of multiple STM32s - Page 1
Forum section: electronics / general

author: Ditiris
author_rank: Contributor
timestamp: November 12, 2024, 11:27:12 pm
content: Can I simultaneously debug multiple STM32s on the same two SWD lines, or does each uC needs its own set of SWD lines?

author: scottapotamas
author_rank: Regular Contributor
timestamp: November 12, 2024, 11:53:52 pm
content: SWD is not a multi-drop interface, you'll need one per micro.Provided your board/layout allows it, just connect two debug probes at the same time and reference the probes by serial number etc.ST parts also support JTAG, but the practicality depends on your debug probe's support, the electrical design, there's usually less info around for setting up and troubleshooting the software experience.

author: wek
author_rank: Frequent Contributor
timestamp: November 13, 2024, 03:36:00 pm
content: > ST parts also support JTAG [...]*Some* STM32 also support JTAG [...]

author: SiliconWizard
author_rank: Super Contributor
timestamp: November 13, 2024, 09:42:33 pm
content: To be more exact, more recent versions of SWD do support some kind of multi-drop, but so far it's mostly used on multi-core SoCs that have a single outside SWD interface, and rarely if ever available on MCUs with a single core or with several different chips. One popular example of such a multi-core MCU is the RP2040. You can access both cores with a single SWD interface and there is a specific (but ARM standard) sequence to select one of the cores. In theory though, it should be possible to implement it even on single-core MCUs and allow multi-drop between different vendors, even. But it would probably require more standardization across vendors and I haven't seen such a thing so far.In your case, with several MCUs, you can just multiplex the clock signal (SWDCLK) and connect all IO signals together (SWDIO). So there will be an extra step to select the target "manually", but the SWDIO signal is bidirectional and can be paralleled.

author: Grad12
author_rank: Newbie
timestamp: November 14, 2024, 05:45:36 am
content: Quote from: SiliconWizard on November 13, 2024, 09:42:33 pmThat's not multidrop. That are cores on different AP ports.
[solved]Why is CubeIDE socket opening to localhost on windows so slow - Page 1
Forum section: electronics / general

author: Grad12
author_rank: Newbie
timestamp: November 13, 2024, 02:54:33 pm
content: Hello,I just finished my EBlink project to make it CubeIDE compatible. I noticed that when I start a debug session it takes rather long for CubeIDE to connect the local GDB server. If I'm running that same GDB server in a Linux VM on the same machine, it connects very fast.Connecting from other IDE's (like my own EmBitz) that works always very smoothly.How can I speed up windows localhost connect times using Eclipse??Info:- Windows 10 (64bits)- GDB serverhttps://github.com/embitzUpdate:Using a RaspPi as remote debug is also faster!?!!

author: Grad12
author_rank: Newbie
timestamp: November 14, 2024, 05:42:29 am
content: Ok, Eclipse (Java) and name resolution are not a great combo.Don't know why or if it is machine related.
CMake error while compiling SDRPlusPlus in RPI bookworm - Page 1
Forum section: electronics / general

author: phred01
author_rank: Contributor
timestamp: November 13, 2024, 08:36:34 pm
content: I am running the latest Bookworm OS. Trying to compile a program SDRPusPlus The script file that was used with older OS version works correctly Being much of a noob with the compiling syntax so need some help in this department. However get a cmake error with this followingcommand line cmake .. -DOPT_BUILD_LIMESDR_SOURCE=ON -OPT_BUILD_RTL_SDR_SOURCEThe error generated is as follows CMake Error Unknown argument -OPT_BUILD_RTL_SDR_SOURCEthanks in advance

author: newbrain
author_rank: Super Contributor
timestamp: November 13, 2024, 09:45:54 pm
content: Quote from: phred01 on November 13, 2024, 08:36:34 pmThe second option should have the same syntax as the first one!Code:cmake .. -DOPT_BUILD_LIMESDR_SOURCE=ON -DOPT_BUILD_RTL_SDR_SOURCE=ONFrom the top level CMakeLists.txt:Code:option(OPT_BUILD_LIMESDR_SOURCE "Build LimeSDR Source Module (Dependencies: liblimesuite)" OFF)[...]option(OPT_BUILD_RTL_SDR_SOURCE "Build RTL-SDR Source Module (Dependencies: librtlsdr)" ON)

author: phred01
author_rank: Contributor
timestamp: November 14, 2024, 03:15:26 am
content: Thanks New Brain I need one 2Did finally worked this out by reviewing the supposedly the same script file from different sources.....BTW each contained error of one for or another. I now have a version that correctly runs And creates SDR++ on RPI bookworm current 2024 version. For those that want to create SDR++ find attached run.sh file However the main zip file can be found herehttps://github.com/AlexandreRouma/SDRPlusPlus/
BDI3000 Firmware PPC4xx - Page 1
Forum section: electronics / general

author: switch998
author_rank: Contributor
timestamp: November 13, 2024, 02:47:12 am
content: Does anyone have the firmware for the PPC4xx for an Abatron BDI3000? I can't find it online, Abatron no longer provides support, and it's not on my CD (I have the COP version) so if anyone has a copy it would be greatly appreciated.Thanks
anyone has experience with FMD MCU - Page 1
Forum section: electronics / general

author: hassana
author_rank: Newbie
timestamp: November 11, 2024, 01:31:57 pm
content: I am using FMD for first time I have FMD Link and few pcs of FT60E211I need an example code to make a blink led using delay

author: mon2
author_rank: Frequent Contributor
timestamp: November 11, 2024, 05:40:55 pm
content: https://www.eevblog.com/forum/projects/fremont-micro-devices-microcontroller-programming/