hybridfree/eevblog-posts huggingface dataset:
GD32F4 flash banks - Page 1
Forum section: electronics / general

author: Takkie
author_rank: Newbie
timestamp: June 24, 2024, 12:59:15 pm
content: Good day everyoneI am using the GD32F407VGT6 MCU in a project and I want to enable easy firmware updates by using 2 flash banks and switching between them using address mapping.The chip apparently supports these features but I cannot figure out what to do here exactly.Specifically, there is somewhat conflicting information in theuser manual:Option bytes contains a bit named "BB" (guess this stands for boot bank) in register FMC_OBCTL0 which has the following documentation:0: Boot from bank0, when configured boot from main memory1: Boot from bank1 or bank0 if bank1 is void, (or Bootloader continues executing ifbank1 and bank0 are both void, and the chip is not under security protectionlevel high,) when configured boot from main memory.On the other hand there is a bit named "FMC_SWP" in register SYSCFG_CFG0 with this documentation:This bit controls the address mapping swap between Bank 0 and Bank 1 of the MainFlash.0: Main Flash Bank 0 is mapped at address 0x0800 0000 and Main Flash Bank 1 ismapped at address 0x0810 00001: Main Flash Bank 1 is mapped at address 0x0800 0000 and Main Flash Bank 0 ismapped at address 0x0810 0000I tried setting both those bits with no success. The MCU just continues execution as if nothing happened.I know option bytes have to be unlocked, I can change other values in option bytes without problems, so I assume I unlock the option bytes correctly.I have not read anything about having to unlock syscfg registers. I just enabled the clock for the syscfg peripheral and tried to set the register but to no avail.Does anyone have experience using dual flash banks on this GD32 MCU or GD32 in general?Any help would be greatly appreciated.
Arduino Nano L led stays on - Page 1
Forum section: electronics / general

author: mfeldman
author_rank: Newbie
timestamp: June 21, 2024, 08:03:48 pm
content: Hello,I purchased Arduino Nano off of Amazon and I can't program it. The L led stays on all the time. When I run the code on the board it gives me error. Can somebody help me? Thanks in advance.Mikhail

author: PeterG
author_rank: Frequent Contributor
timestamp: June 22, 2024, 12:48:41 am
content: You need to tell us what the error is. A screenshot as least.My first guess would be you have one of the cheaper versions with an incompatible chip.

author: Lindley
author_rank: Regular Contributor
timestamp: June 22, 2024, 08:46:08 am
content: Try following one of the many Ytube beginner tutorials.Most start off with the Arduino Uno board but the Nano is just the same except for the need to Select the Nano board in the Tools, Board Manager menu.

author: TomKatt
author_rank: Frequent Contributor
timestamp: June 23, 2024, 09:23:09 pm
content: Quote from: mfeldman on June 21, 2024, 08:03:48 pmYour best bet for getting help is describing your issues as clearly as possible and providing screenshots and error messages verbatim. It’s difficult to offer advice for a vague problem.That said, I know that many cheap Arduino clones use cheaper CH340 serial usb chips that require a specific driver compared to the official version that uses the FT232- I’d start by confirming communication to the board. Also check device manager on your pc to verify the drivers are properly installed.
68HC12 Programmer - Page 1
Forum section: electronics / general

author: deisenberg
author_rank: Contributor
timestamp: June 22, 2024, 11:30:22 am
content: I have a bunch of pcb boards with MC68912dg128acf micros on them that I would like to try to re-purpose.It there a cheap programmers / debugger that work for these chips?Thanks.

author: tooki
author_rank: Super Contributor
timestamp: June 22, 2024, 11:56:49 am
content: And what did you find when searching for a “MC68HC912 programmer”, “HC912 programmer”, or “HC12 programmer”?

author: Postal2
author_rank: Frequent Contributor
timestamp: June 22, 2024, 01:30:51 pm
content: You need UPA v1.3, very cheap, but be aware of virus in software - check with defender of win10 first.

author: Benta
author_rank: Super Contributor
timestamp: June 22, 2024, 11:09:25 pm
content: Main support is from PE Micro,www.pemicro.com
HD64F7047 read strobe question - Page 1
Forum section: electronics / general

author: Postal2
author_rank: Frequent Contributor
timestamp: June 17, 2024, 04:50:49 pm
content: I prepared devboard for HD64F7047, mode for external flash. I compiled "blink", but chip set weird levels on /CS0 and /RD. Levels mostly low with short pulses to high. Datasheet tells these signals are negative, but I see positive pulses. Need understand what wrong.

author: Postal2
author_rank: Frequent Contributor
timestamp: June 18, 2024, 07:22:51 pm
content: Still no success. Filled external flash with "AFFE" as trap, cannot catch (address walks every half second). Behavior strange and exactly same on two devboards. Chip has pin "A17" (connected to flash), but address spase is 256kB (?) Seems external flash need to be specially formatted, I don't understand.Have somebody any little real experience with Hitachi mcu?

author: Postal2
author_rank: Frequent Contributor
timestamp: June 19, 2024, 08:58:14 pm
content: Catched on address 0x00001020 with firmware trap.

author: Postal2
author_rank: Frequent Contributor
timestamp: June 22, 2024, 01:38:51 pm
content: Mistake was in pin A17 connection, need disconnect A17 from flash. I will use A17 and D0..D7 for LCD (and /WR pin too). C-compiler "KPIT" works perfectly.
ili9341 Display Interface Jumper Question - Page 1
Forum section: electronics / general

author: DocRaptor
author_rank: Contributor
timestamp: June 18, 2024, 08:16:29 pm
content: Hello, I have a question with Interface of a display with the ili9341 controller (datasheet:https://www.buydisplay.com/download/manual/ER-TFT024-3_Datasheet.pdf). I want to run it in SPI, but there is mentioned in the jumpersettings on page 10 that there is Interface 1 and Interface 2. When looked in to the datasheet of the IC itself (https://cdn-shop.adafruit.com/datasheets/ILI9341.pdf), it looks like on page 33 it is interchangeable and is there only for the paralle bus. Is that correct and I only have to choose (and worry) betwen the 3 wire and the 4 wire spi option?

author: ataradov
author_rank: Super Contributor
timestamp: June 18, 2024, 09:21:35 pm
content: The difference is that in interface I the data line is bidirectional and in interface II there are separate input and output lines. Table on the page 33 does not include the data lines, so it looks the same.If you want a full SPI, then you need interface II.
CH32F030F3P6, what is it? - Page 1
Forum section: electronics / general

author: jnk0le
author_rank: Regular Contributor
timestamp: June 13, 2024, 07:58:38 pm
content: I'm repairing off grid inverter from a power bank (ap-ss-009, module is labelled as "CH/AP 6SLi-P2000W V2.1")and after removing blown IGBTs and gate drivers, I'm left with this micro that has a dead short on at least 2 inputs from photocouplers.consumes ~75mA from 5V, so maybe it can be still cloned.There is one on low voltage side and one on HV side.labelled as CH32F030F3P6no manufacturer logotssop-205V supplyPower pinout is of course incompatible with stm32f030 but matches exactly ch32v003 (NRST + SWDIO on prog header)Typographically closest ones are no match.cs32f030 - "CHipsea", but only f6p6, stm pinouthc32f030 - doesn't exist in this packagehk32f030 - no vcap use, swdio/swclk not routed to prog headerch32v003 - this device is too old for that chipAny ideas?

author: DavidAlfa
author_rank: Super Contributor
timestamp: June 13, 2024, 08:34:21 pm
content: https://github.com/qqq5127/CH32F030

author: jnk0le
author_rank: Regular Contributor
timestamp: June 13, 2024, 08:35:24 pm
content: all files in this repo are named "hc32"

author: jnk0le
author_rank: Regular Contributor
timestamp: June 18, 2024, 05:13:15 pm
content: tried to query LV one by SWIM, SWD and wch 1/2 wire "SWD" - no effectMust be something very exotic or level 2 locked.

author: DavidAlfa
author_rank: Super Contributor
timestamp: June 18, 2024, 09:21:09 pm
content: Not really, you can simply disable or repurpose the SWD pins in the app, so the only way would me to play holding reset while connecting and releasing it just in time.If there's a local oscillator your might have luck shorting it so the CPU executes nothing.
AVR: Isolating UPDI pin - Page 1
Forum section: electronics / general

author: sanka1p
author_rank: Contributor
timestamp: June 18, 2024, 01:29:33 pm
content: Hi All,I am using Atmega1608. On my current project, I want to isolate UPDI pin, i.e the UPDI pin from MCU will go to optocoupler or anything else(TBD?) first and then to a programming header. I already have a isolated 5v and GND on the board so now I need an isolated UPDI pin to program the MCU when board is powered though Mains. I cannot put the MCU on isolated side as it will increase the cost too much. So my question is, how do I isolate UPDI pin? Is there any Bi-directional optocoupler? or is there any other component I can use to isolate that pin apart from optocoupler?Thank you.

author: martinribelotta
author_rank: Regular Contributor
timestamp: June 18, 2024, 01:55:07 pm
content: A good solution is isolating UPDI pin like a data channel of i2c bus using a common i2c isolator like TPT72616/7 or ISO1640/1 (or older series ISO15xx).You can use only the bidirectional channel (the SDA side) and ignoring the pin assigned for SCL (do not leave the input float!!!)http://file.3peakic.com.cn:8080/product/Datasheet_TPT72616-TPT72617.pdfhttps://www.ti.com/lit/ds/symlink/iso1640.pdfhttps://www.ti.com/lit/ds/symlink/iso1540.pdf
Help about ksger t12 soldering station  - Page 1
Forum section: electronics / general

author: Dzoro
author_rank: Contributor
timestamp: June 12, 2024, 11:10:09 pm
content: So i bought this soldering station a few months ago and i do some hobby work with itLast time i worked with it was yesterday and today when i turned it on it says this and i searched the internet and i haven’t found a solution i will upload pictures so you can see and if someone can help or i need to buy a new oneThanks

author: DavidAlfa
author_rank: Super Contributor
timestamp: June 13, 2024, 03:43:50 am
content: Try thisgenerator.If still asking for the code, check the solder joints of the EEPROM (24c08 or similar) and the nearby parts, specially the stm32.Sometimes this EEPROM goes bad and needs replacing.

author: Dzoro
author_rank: Contributor
timestamp: June 13, 2024, 01:18:21 pm
content: Thank you i am at work i will try later and give a feedbackThanks again

author: Dzoro
author_rank: Contributor
timestamp: June 14, 2024, 11:22:27 pm
content: I tried the codes with the generator no luck i guess i will open it to see for bad solder connections

author: Dzoro
author_rank: Contributor
timestamp: June 15, 2024, 09:22:10 pm
content: Thank you very much it had half of the pins on the stm32 bad soldered so i removed it completly and reinstalled it and now works fineThank you very much
Extending USB connection on embedded device - Page 1
Forum section: electronics / general

author: AussieBruce
author_rank: Regular Contributor
timestamp: June 15, 2024, 03:16:31 am
content: I’m embedding a microboard in an enclosure, and need to extend the USB connection to a separate connector on the outside of the box. The connection points are easily accessible as lands under the board. I envisage short lengths of unshielded wire, with the D+ and D- signal leads twisted. Path length is expected to be below 4 cm. The USB will be running at 480 Mb/s.I don't have room to use a plug-to-plug cable.Can I be confident that this arrangement will work OK?

author: Nominal Animal
author_rank: Super Contributor
timestamp: June 15, 2024, 04:40:46 am
content: For USB 2.0 High Speed (480Mbit/s), yes, it should work fine.Many PC motherboards used to have 2×5-pin headers (bog standard 0.1" spacing) for a pair of USB 2.0 connectors to be mounted on the front, with a twisted pair for D+/D-, each, and straight wires for the common USB 5V and GND, for a total of 6 conductors. Mine were about 300mm/12" long, and I had no problems.(I'm assuming the environment inside the enclosure is not so noisy, electromagnetically speaking, that the microcontroller needs a shielding can or anything like that.)

author: peter-h
author_rank: Super Contributor
timestamp: June 15, 2024, 06:57:38 am
content: You need to keep the length of the stripped conductors (those not inside the shield) very short - under 2cm IME and preferably under 1cm.I have done this quite a lot e.g. wiring a toggle switch to switch the USB port of a Sony action cam to either a +5V power supply (the "smart" type which needs the D+ and D- connected because it presents specific resistors to them, for charging faster than 500mA) or to a USB data cable to a PC. I found all kinds of problems, and the PC cable became really critical as to what brand etc. One obvious solution was to connect the PC via an ancient USB1 hub; it just knocked the transfer speed down quite a bit.
Raw LwIP,  TCP streaming / Sending large file  - Page 1
Forum section: electronics / general

author: std
author_rank: Contributor
timestamp: June 10, 2024, 08:24:48 pm
content: Hello All!There is LwIP without RTOS, "Raw" model, TCP.Everything works fine with small TCP packets/answers.----- Question -----How to write LwIP TCP streaming code, that transfers hundreds of Kb or Mb over TCP?How to optimally and timely fill the internal output buffer of LwIP?Maybe someone can remember example code...

author: westfw
author_rank: Super Contributor
timestamp: June 12, 2024, 08:56:49 am
content: QuoteAre you actually having problems, or are you just worried?TCP doesn't really NEED to "fill the output buffers"; the network link is usually going to be the slow part.I've always been a little sad that modern TCP implementations focus almost entirely on avoiding congestion in the network. Originally it was assumed that the source and destinations could also be bottlenecks, and things like the window and the ACK strategy were supposed to reflect the host resources. (Now, they're manipulated (eg "slow start") to prevent the host from congesting the net.)

author: glenenglish
author_rank: Frequent Contributor
timestamp: June 13, 2024, 09:15:35 am
content: the thing is, if you want the device to do anything else, it will be very awkward and messy dealing with all the asynchronous IOso just use FreeRTOS+TCP.I have NFI why people persist with LWIP , that's like 1980s stuff for 4 bit microcontrollers.
need linux audio driver CrowPi - Page 1
Forum section: electronics / general

author: phred01
author_rank: Contributor
timestamp: June 11, 2024, 12:53:19 am
content: I have CrowPi with pi 4 installed but need a sound driver for Pi400 Ubantu / dragon OS to get CrowPi audio working

author: darkspr1te
author_rank: Frequent Contributor
timestamp: June 11, 2024, 09:18:37 am
content: Which crowpi model do you have ? from what i can see the Pi1 case only provides a 3.5 jack hole to use on board audio which the OS should have built in , you may have to route audio via that using the sound manager as the audio may automatically goto the screen which may/may not have audio built in.have you tried the guides found herehttps://www.elecrow.com/wiki/crowpi.htmla guide to audio options (alsa)https://forums.raspberrypi.com/viewtopic.php?t=269011darkspr1te

author: phred01
author_rank: Contributor
timestamp: June 12, 2024, 07:09:03 pm
content: The model I have is the CrowPi L that has on board speaker & an output jack next the HDMI port Under Ubuntu dragon version the PulseAudio Volume Control only offers the option is built-in audio is digital stereo iEC958 (SP/DIFF) which is for Pi 400
AVR64E: 32kHz osc doesn't start without a prod - Page 1
Forum section: electronics / general

author: nali
author_rank: Frequent Contributor
timestamp: June 11, 2024, 11:48:37 am
content: I have an AVR64EA48 fitted with a 32.768kHz crystal for low-power sleep operation. But for some reson the 32k oscillator won't start unless it is loaded with a lot more capacitance then it should have: touching a x10 scope probe starts it, or increasing the loading caps to >20pF (currently 24pF as 2x12pF piggybacked as that's all I had in stock)The XTAL I'm using is ECS-.327-7-34B-TR (7pF) and I'm using 6.8pF loading caps which as far as I can work out is the closest standard value. The Curiosity Nano dev board also has a 7pF xtal and uses asymmetric loading of 6.8pF & 5.6pF.The traces between MCU & XTAL are only about 3mm, and they both sit above a solid ground plane on a 2-sided PCB.Any suggestions where I should start looking?

author: RoGeorge
author_rank: Super Contributor
timestamp: June 11, 2024, 12:43:53 pm
content: AVR series used to have fuse-bits to set the oscillator type for low-power/low-frequency, don't recall the exact name they were using. And the fuse bits are active low.Are the MCU fuses programmed for low-frequency oscillator?

author: selcuk
author_rank: Frequent Contributor
timestamp: June 11, 2024, 12:44:19 pm
content: There is a XOSC32KCTRLA.LPMODE flag in the datasheet. Default is 0 and that expects a 18pF load capacitance. Do you set it to 1 before enabling 7pF crystal?

author: nali
author_rank: Frequent Contributor
timestamp: June 11, 2024, 01:55:17 pm
content: Looks like setting LPMODE sorts it (well so far based on my sample of 1 anyway).I missed the dual 8pF/18pF spec in Electrical Characteristics as I was looking at the Nano HW guide. I take it that means use a XTAL with a load spec of 18pF (which would result in load caps of 27-30pF)Anyways working now thanks
STC 12C5205 (CB station command) - Page 1
Forum section: electronics / general

author: blazzelia
author_rank: Newbie
timestamp: June 11, 2024, 12:39:04 pm
content: Hello,I recently came into possession of a defective CB station, a MEGAWAT PRO-1000, which seems to be completely dead. Digging for the problem I got to the uC part - an STC 12C5205, which seems to be a universal uC.On the pins where the crystal is connected, I have a clock frequency of 19.2MHz and on pins 9 and 15 (PWM) I have a rectangular signal of about 8KHz with a different fill factor. The signals disappear immediately after R815 and R816 respectively. Otherwise, all pins are 0 or 1, no other activity.I checked all the voltages - they are ok. I checked the RESET and LVD pins and both have the correct levels after initialization (according to the uC data sheet).I have attached the diagram of the station (please, a model with a different name but it is the same electronics).Does anyone have an idea? Thank you,D
Need help understanding how OSCCAL value works on PIC16F676 - Page 1
Forum section: electronics / general

author: chinoy
author_rank: Regular Contributor
timestamp: June 09, 2024, 05:52:29 pm
content: I need to move a hex file onto a PIC16F676In the past I have used my ICD2 to do this job and it has worked well.But then I moved to a PICKIT3. And gave the ICD2 away to a friend.I did test the PICKIT3 and it worked in the past. But after a gap of a few years Im trying with a fresh batch of PICs. Picked up a few dozen.This time I keep getting the message invalid OSCCAL value.Have spent days on the net trying to read up on a solution. Best I could find was that I may now need to buy a PICKIT2. Or build a custom circuit and run a program to re-calibrate the value. And then physically write that value to the PIC using the PICKIT3 s/w. Pickit2 had a function in the s/w to re calibrate the OSCCAL value.The circuit uses and External 10 Mhz oscillator.I did try buying a new batch of PICs from another shop same problem.My questions.1. Does the OSCAL value matter when using an external Crystal.2. Is there a middle of the road value I can use. What would it be ?3. Since PICkit2 and Pickit3 were made open source by microchip. If I find the source code can I copy over the recalibrate osccal code into the pickit3 code and complie it ?. Where can I find the open source code for Pickit2 and 3.

author: NorthGuy
author_rank: Super Contributor
timestamp: June 09, 2024, 08:38:21 pm
content: If it reports wrong calibration value, this most like this is because the connection is incorrect, the PIC is bricked, or so something of that sort - it simply cannot read the value.You will have much less problems if you use newer PICs.
Open access to USB ports on protoboards - Page 1
Forum section: electronics / general

author: AussieBruce
author_rank: Regular Contributor
timestamp: June 09, 2024, 07:33:47 am
content: Hi, I came across a recommendation for PJRC Teensy just a bit down in this topic, and browsed the site. It appears that these little devices provide user host and device access through USB, including the various endpoint software needed. I've been doing this for years using a much older device, but the details are complicated and involve a lot of arcane programming, including in Verilog. The associated host API is also legacy and could be grandfathered by MS any time.I'm wondering whether these PJRC devices are a one-off, or has open USB access been creeping across a wide front while I've been asleep at the wheel? If there are multiple choices, has anyone got suggestions for a couple of options that are well documented and supported? I need boards of credit card size or smaller, with the usual capabilities provided with modern ARM CPUs brought out to 0.1" pins.

author: josip
author_rank: Regular Contributor
timestamp: June 09, 2024, 12:21:20 pm
content: If you are thinking about I.MX RT / Kinets Teensy based devices, there are open source USB examples in NXP SDK. There is also tinyusb for this devices.
Do ALL 20 pin PIC MCU's have the same power supply pins? - Page 1
Forum section: electronics / general

author: djsb
author_rank: Super Contributor
timestamp: June 07, 2024, 04:30:30 am
content: I'm just wondering if ALL PIC microcontrollers in the 20 pin DIP package have the same power supply pins? Anyone know? Thanks.

author: hans
author_rank: Super Contributor
timestamp: June 07, 2024, 07:22:58 am
content: No.E.g. compare a classic PIC16F628 in SSOP-20 to a PIC24FV32KA302 in SSOP-20. Not the same.And then a PIC16F1509 is different again.

author: Ian.M
author_rank: Super Contributor
timestamp: June 07, 2024, 07:55:51 am
content: PIC16F628 in DIP is 18 pin, not 20 pin. However Microchip chose not to do a SOIC-18, but instead doubled up the centrally located power and ground pins and put it in the SOIC-20 package.

author: hexreader
author_rank: Frequent Contributor
timestamp: June 07, 2024, 11:32:16 am
content: QuoteI would say that this is probably true for PIC16 and PIC18Cannot be 100% sure, but I know of no exception.Don't know whether any PIC12 comes in 20 pin DIP package. If there is one, then it would probably match pic16/18PIC24 and PIC33 have very different power pins(side note: Most, possibly all, PIC12F/16F/18F processors in DIP8 and DIP14 packages are compatible with a 20 pin DIP socket - be sure pin 1 of PIC always matches socket pin 1)EDIT: Probably should have specified PIC16F and PIC18F above. Forgot that C versions used to exist until jpanhalt reminded me in following post.

author: jpanhalt
author_rank: Super Contributor
timestamp: June 07, 2024, 12:12:59 pm
content: I agree, all 20-pin DIP for PIC16 are likely to be the same, unless you go way back to a 16C62x series, for example.https://ww1.microchip.com/downloads/aemDocuments/documents/MCU08/ProductDocuments/DataSheets/30235j.pdfHowever, since you should have the datasheet for any chip with which you are not familiar, it's easy and important to check.
Labtool 48 UXP and 68HC11A1 - Page 1
Forum section: electronics / general

author: yabba235
author_rank: Contributor
timestamp: May 29, 2024, 09:18:42 am
content: Hi!I read eeprom from 68HC11A1 and I need write it to new chip. but I ran into an unexpected problem:The new chip has eeprom written with only 00. These are not FF, so it is not "empty". And the programmer shouts that the chip is not empty during programming. The "erase" button is inactive.Can Labtool write eeprom in 68HC11A1? Do I have to make a circuit with max232?

author: yabba235
author_rank: Contributor
timestamp: June 01, 2024, 07:35:57 am
content: Really no one knows if I can use labtool to program eprom in hc11?

author: daisizhou
author_rank: Super Contributor
timestamp: June 01, 2024, 07:55:43 am
content: 68HC11A1 is a microprocessor chip.If you plan to use the Labtool 48 UXP, you may need a special adapter.Or you can make your own adapter,There are adapter wiring diagrams on the Internet, you need to search

author: yabba235
author_rank: Contributor
timestamp: June 01, 2024, 08:14:25 am
content: Quote from: daisizhou on June 01, 2024, 07:55:43 amMaybe I didn't write clearly: I have an adapter, I connected the processor to Labtool through it and I can read the eeprom but I can't save it, I described it all in the first post. That's why I'm asking if Labtool can program eeporm in hc11 or it can only be done using a dedicated max232 system (I saw a diagram somewhere).

author: daisizhou
author_rank: Super Contributor
timestamp: June 01, 2024, 08:45:21 am
content: Quote from: yabba235 on June 01, 2024, 08:14:25 amIs your MC68HC11A1 code ?In other words, is it the processor chip used in the car?If yes, please use XPROG-box

author: yabba235
author_rank: Contributor
timestamp: June 01, 2024, 09:14:14 am
content: Is 68HC11A1 used in audio equipment (amplifier), not a car.Does this mean that the A1 version cannot be programmed in Labtool?

author: daisizhou
author_rank: Super Contributor
timestamp: June 01, 2024, 09:44:03 am
content: To be precise, there is a code under the MC68HC series MCU model. You should find it according to the code.I remember this series of MCUs have internal integrated EEPROM and FLASH,And there may be encryption.Labtool can only read and write unencrypted files, that's why I suggest you try XPROG-box.You need to read the data sheet to know

author: yabba235
author_rank: Contributor
timestamp: June 01, 2024, 10:50:50 am
content: It's MC68HC11A1FN D26E ZQSUL9320.A1FN mine ROM disable, operational temp -40 +85 deg.

author: asis
author_rank: Frequent Contributor
timestamp: June 06, 2024, 09:28:25 am
content: Hi,What kind of adapter do you have?

author: yabba235
author_rank: Contributor
timestamp: June 06, 2024, 11:11:24 am
content: This adapter:
storing memory in a cheap RGB led controller (Playing with 24C02N EEPROMs) - Page 1
Forum section: electronics / general

author: Herschel
author_rank: Regular Contributor
timestamp: June 04, 2024, 05:50:09 pm
content: Sooo I have bought a cheap RGB led controller(image 1). so the problem is, its working fine... but it can't store the settings i have made, that is, if I selected the "fade" mode, and if there is a power cut, the RGB controller just resets. So i decided to open it, and found a place for an 8 PIN smd which was not connected. So I did an image search and found out that IC to be a 24C02WP EEPROM. So I connected that ic and its working as expected. Anyway I decided to do the same thing on another, similar RGB controller, and this time i could only find a 24C02N and i used that. BUT, this time it didn't worked, i replaced it with a new one but still nothing. Are 24C02WP and 24C02N different in working, the datasheets seem to be same...24C02N :https://ww1.microchip.com/downloads/en/DeviceDoc/doc0180.pdf24C02WP :https://pdf1.alldatasheet.com/datasheet-pdf/view/1424877/STMICROELECTRONICS/24C02WP.htmlboth are different manufacturers...

author: aliarifat794
author_rank: Regular Contributor
timestamp: June 06, 2024, 06:15:14 am
content: Typically, EEPROMs in the 24C02 family follow the I²C protocol and have standard pin configurations, but it's always good to cross-check the datasheets.

author: Herschel
author_rank: Regular Contributor
timestamp: June 06, 2024, 10:59:32 am
content: both of them seems to be same... are these ICs prone to damage while soldering? I soldered these ICs to the board...
M5Dial - ESP32 controller with rotary encoder + lcd touchscreen - Page 1
Forum section: electronics / general

author: TomKatt
author_rank: Frequent Contributor
timestamp: June 20, 2024, 04:45:14 pm
content: Stumbled upon the M5Dial controller from M5Stack recently - ESP32S3 controller housed in a rotary encoder with 1.28" lcd touchscreen plastic housing that has a threaded nut body for easy panel mounting. Not too shabby at $35.I've been an AVR guy my whole life, but these new fangled ESP32 boards have quite a nice feature set with WiFi, BLE, RFID, RTC and much more. I had to get one just to play with and begin learning the ESP32 platform.More info atM5Stack
has anyone used the AD5624R DAC? - Page 1
Forum section: electronics / general

author: mianos
author_rank: Regular Contributor
timestamp: June 04, 2024, 02:43:02 am
content: I want a 16 bit DAC on a JLC populated PCB and most of the usual suspects seem to be out of stock or ridiculously expensive (DAC1220 DAC8562, both which I wrote drivers for).As this one seems pretty cheap and easy to get I am wondering what's wrong with it for a slow DC output?I was planning on using the chinky GP8211S, (which I also just write an esp-idf driver forhttps://github.com/mianos/GP8XXX/blob/main/main/gp8.h)But I can't even see a supplier for that one, aside from the DFRobot board that I already got (that's flawed in that it oscillates on the 5V range without a lot of extra output capacitance).Or maybe just tell me "use the Ti parts and stop messing about dumbass".

author: SiliconWizard
author_rank: Super Contributor
timestamp: June 04, 2024, 03:12:50 am
content: Nothing wrong with it. It's a good DAC from Analog Devices, with specs similar to the DAC85xx series from TI.

author: Chalcogenide
author_rank: Regular Contributor
timestamp: June 04, 2024, 05:08:22 am
content: I use DACs from that series pretty often and they are just fine. However, the AD5624R is 12-bit, not 16 as you said you need!

author: SiliconWizard
author_rank: Super Contributor
timestamp: June 04, 2024, 06:16:28 am
content: Quote from: Chalcogenide on June 04, 2024, 05:08:22 amYes, the AD5664R is the 16-bit one.But since the OP compared it with the DAC8562, which IIRC is 2-channel DAC (and the DAC8564 the 4-channel version?), maybe they have the numbers confused, and meant to pick a 2-channel, 16-bit DAC in this AD56 series? In this case, the 2-channel, 16-bit one would be the AD5689R, for instance.

author: mianos
author_rank: Regular Contributor
timestamp: June 04, 2024, 09:49:15 am
content: Quote from: Chalcogenide on June 04, 2024, 05:08:22 amYes sorry, looking at the common data sheet that has all 3, the AD5664R: 16 bit

author: mianos
author_rank: Regular Contributor
timestamp: June 04, 2024, 09:53:58 am
content: I just want a single channel, 16 bit that is easily available for stuffing by JLPCB.The DAC1220 is 20 bit and my favourite.Thanks all. I was mainly asking as there does not seem to be as much support on github for the AD56 series and they seem really good.I'd write my own driver, github just a measure of popularity outside hard core in house use.I only need 1 channel but the 4 channel one seems much more available.
Misterious microcontroller in mini-keyboard - Page 1
Forum section: electronics / general

author: t4rmo
author_rank: Contributor
timestamp: May 27, 2024, 09:08:05 am
content: I need some help identifying the chip in the picture:The anthena bluetooth presence and the location of the oscillator can give clues, but it doesn't match with microcontrollers that I know

author: selcuk
author_rank: Frequent Contributor
timestamp: May 27, 2024, 09:28:42 am
content: Looks like BK3432. You can check the connections with a multimeter to be sure.https://www.semiee.com/file/BEKEN/BEKEN-BK3432.pdf

author: t4rmo
author_rank: Contributor
timestamp: May 27, 2024, 05:15:54 pm
content: The pin 17 is XTAL32K in BK3432. In the chip of the picture does not seem to be XTAL32K

author: amyk
author_rank: Super Contributor
timestamp: May 28, 2024, 02:50:46 am
content: JieLi AC6321A, AC6956C, and AC7006F have the osc and RF in the right places.

author: t4rmo
author_rank: Contributor
timestamp: May 28, 2024, 09:47:42 am
content: At first glance, I think the AC6321A has a pretty good chance of being: How did you find it? I tried searching in electronics stores using the filters in their search engine but couldn't find anything.

author: amyk
author_rank: Super Contributor
timestamp: May 30, 2024, 01:19:26 am
content: I knew that JieLi makes a lot of Bluetooth SoCs, and just went through their product catalog until I found a package and pinout match.
Adapter schematic needed - Page 1
Forum section: electronics / general

author: yabba235
author_rank: Contributor
timestamp: May 23, 2024, 10:43:03 am
content: Hi !I'm looking for schematic or pinout diagram adapter plcc-52 to 40 dip socket (SDP-6811-52B) for Labtool 48 UXP programmer. I don't spend $.... for one operatiopn read and write on 68hc11.From manual instruction 48 uxp:"..User can build the adapter by himself; detail adapter pin swaptable can be down load from web:www.aec.com.tw/products/adapter.pdf.."Of course now is unavailable.If anyone has it and would like to share it, I will be grateful.

author: mikerj
author_rank: Super Contributor
timestamp: May 23, 2024, 11:22:09 am
content: The Wayback Machine is your friend!

author: yabba235
author_rank: Contributor
timestamp: May 24, 2024, 03:23:14 pm
content: I hope pinout SDP-6811-52 adapter is this same like SDP-6811-52B.I can't find the differences between them anywhere.
[SOLVED] STM32H725 USB FS PHY not detected - Page 1
Forum section: electronics / general

author: habosfing
author_rank: Newbie
timestamp: May 23, 2024, 05:34:42 am
content: Hello,I have been working on a project that requires USB communication with an STM32H7 mcu. Unfortunately, the computer cannot recognize the device. On the hardware side, I am using the STM32H725VGT6 mcu, an isolator, and a USB-C connector with some ESD protection. On the software side, I am using the internal FS PHY. The clock source is connected to PLL1Q running at 110 MHz. Windows couldn't even detect the device. What could cause this problem? Connections on the PCB are confirmed ok, and the isolator gets both the high side (5 V) and low side supply (3.3 V).

author: Chalcogenide
author_rank: Regular Contributor
timestamp: May 23, 2024, 05:48:29 am
content: First off I would try running the USB clock from the HSI48 and see if anything changes.

author: habosfing
author_rank: Newbie
timestamp: May 23, 2024, 05:53:43 am
content: Did that, nothing changed.

author: hans
author_rank: Super Contributor
timestamp: May 23, 2024, 07:08:23 am
content: I'm pretty certain USB FS needs a fairly precise clock (which HSI can't match) and the module needs to receive 48MHz. Why give it 110MHz from PLLxQ?On occasions like these I also like to test the hardware first. The ROM bootloader of ST contains a USB DFU bootloader, so if you can pull the BOOT0 pin high during reset you could rule out hardware issues first (on Linux it should pop up with lsusb, or on Windows as IIRC some kind of USB controller device, you could try USBview).

author: Chalcogenide
author_rank: Regular Contributor
timestamp: May 23, 2024, 08:08:18 am
content: The H7 bootloader uses HSI48 as USB clock, as HSI48 is auto-trimmed by USB clock recovery (see AN2606): that's why I suggested using it for testing; I use it all the time with G4 MCUs.Honestly hans's idea of trying to enter bootloader is great as that way USB MUST work unless there are hardware gremlins. If that still fails, I would just lift the pins on the isolator and try to connect directly: it that still fails, something is really screwed up somewhere.

author: hans
author_rank: Super Contributor
timestamp: May 23, 2024, 08:15:28 am
content: Ah yes you're right for this STM32. For other parts it measured HSE frequency and then configured PLLs accordingly.But the idea of testing hardware with the built in bootloader first still stands. USB can be tricky to debug as its often a black box, so any hints on hardware function are very welcome.

author: habosfing
author_rank: Newbie
timestamp: May 23, 2024, 11:34:55 am
content: So after resoldering every D+ D- leg on the low side and high side, it is working properly. However, Windows gives out error code 43 if I use anything other than 48 MHz. So I switched to HSI 48 MHz and I've been able to send and receive data.
Optimal code architecture for STM32 power saving? - Page 1
Forum section: electronics / general

author: hlab
author_rank: Contributor
timestamp: May 20, 2024, 06:36:07 pm
content: Hello all! I'm in need of some suggestions for reducing the current consumption of an STM32F411 target. For reasons I won't get into here, I've rolled my own event processor that handles all peripheral interactions. Timer events are pushed onto an event queue by a timer ISR every 10ms. My question is, what is the optimal method of sleeping the processor in between event handles? Ideally, I'd like to implement something like this:Code:// global object instantiationsint main(void){// initialize peripheralswhile(true){event_processor.handle();__WFI();}}In my testing, typically only 0.3% of the CPU time is spent inside handle(), so my setup has plenty of processing bandwidth. Adding WFI() has only reduced current consumption by a few mA, nothing close to the figures listed in the datasheet. What would be the best way to accomplish this, while guaranteeing that handle() is called every 10ms?

author: wek
author_rank: Frequent Contributor
timestamp: May 20, 2024, 06:41:51 pm
content: Set a GPIO pin before WFI(); and clear it in every ISR you have. That allows you to see on oscilloscope/LA the time portion actually spent in sleep.JW

author: SiliconWizard
author_rank: Super Contributor
timestamp: May 20, 2024, 09:27:17 pm
content: What does __WFI() do on a STM32F4 MCU? Are you sure you understood and read the datasheet properly?My guess is that it just puts the MCU to sleep mode (which is the "lightest" low-power mode, and doesn't save all that much), also your additional issue here is that the MCU may wake up more often than you think (due to other interrupts), something to check. But I would first look at using one of the Stop modes, which I don't think just calling __WFI() does.

author: hlab
author_rank: Contributor
timestamp: May 21, 2024, 02:02:37 pm
content: Alright, so last night I did some testing and found that it's spending less than 1ms in sleep, which I figured would be due to systick. However, if I disable systick and configure RTC for 10mS wakeup, there appears to be no change. How would I go about disabling all timer interrupts? Or is there a better way to accomplish this. I'm currently working inside the STM32Cube framework.

author: peter-h
author_rank: Super Contributor
timestamp: May 21, 2024, 02:54:26 pm
content: This may be interesting for youhttps://www.eevblog.com/forum/microcontrollers/how-fast-does-st-32f417-enter-standby-mode/msg4056850/#msg4056850
ATWINC1500 doesn't receive HTTP Body - Page 1
Forum section: electronics / general

author: semir-t
author_rank: Regular Contributor
timestamp: May 27, 2024, 02:03:32 pm
content: Hi everyone.I have custom board with GD32F303 and ATWINC1500. I managed to port the driver for ATWINC and I can connect to local WiFi network. Issue I have is that I can't seem to receive any HTTP data.This is an info avout ATWINC1500 firmware and driver version that I get printed out:Code:Firmware ver : 19.4.4Min driver ver : 19.3.0Curr driver ver: 19.4.4I know that there is newer ATWINC firmware version but I woud like to avoid upgrading ATWINC if possible.My code is based on the http_downloader_example and I can provide any part that you think it could be helpfull.For testing purpose I created the simple python server which echos the received header as body of the response package. The issue that I have is that I receive the Header of the response:Code:HTTP/1.0 200 OKServer: BaseHTTP/0.6 Python/3.10.12Date: Mon, 27 May 2024 13:58:13 GMTContent-type: text/plainContent-Length: 123But the Body is never received. I even went inside the driver and I a printed the expect body char and received:Code:BodyAny help or suggestions would be appreciated.

author: semir-t
author_rank: Regular Contributor
timestamp: May 27, 2024, 08:41:45 pm
content: I had development board with newer version of firmware. I tested it and it had same result.Then just to be sure I tried with my phone as I AP and device started receiving data. So it looks like that somehow my router blocks the traffic to ATWINCDoes anyone have an idea how could I solve this issue with my router, possibly on the ATWINC side ?
Program CH552 on WinXP PC? - Page 1
Forum section: electronics / general

author: BertP
author_rank: Newbie
timestamp: May 17, 2024, 10:14:14 pm
content: I have been programming the CH552 micro controller using a Win10 PC but would like to program it on a WinXP PC. The WCHISP Studio software does not seem to install on WinXP. Any ideas?

author: SiliconWizard
author_rank: Super Contributor
timestamp: May 17, 2024, 10:26:04 pm
content: Your only bet that I know of would be this:https://github.com/ch32-rs/wchispalthough they mention that the support of the CH552 may be buggy. But could be worth a shot. (I've used it on Linux with CH32V30x MCUs.)The problem is that they only provide win x64 binaries (and I highly doubt that you have a Win XP 64-bit, that did exist though, but also doubt it would be compatible anyway).You could try building it yourself, but I also doubt Rust supports building for Win XP, but that's something to have a look at. Sorry I don't see alternatives.

author: Postal2
author_rank: Frequent Contributor
timestamp: May 18, 2024, 06:44:56 am
content: Quote from: BertP on May 17, 2024, 10:14:14 pmWorks good.
Should you power the 3.3V plane with the USB internal regulator ? - Page 1
Forum section: electronics / general

author: Arte
author_rank: Contributor
timestamp: May 14, 2024, 02:30:36 pm
content: Some chips like the STM32H750x series can generate 3.3V from 5V via a USB internal regulator.See:https://wmsc.lcsc.com/wmsc/upload/file/pdf/v2/lcsc/2304140030_STMicroelectronics-STM32H750IBK6_C730200.pdf, @VDD33USBFrom what I understand, the 5v is provided at VDD50USB and the resulting 3.3V is then made available via the VDD33USB pin.Should you save a buck converter by connecting VDD33USB to the other power supplies (VDD, VDDLDO, VDDA assuming your analog accuracy requirements at low) ?Or will you run into problems I don't foresee ?

author: hans
author_rank: Super Contributor
timestamp: May 14, 2024, 02:52:04 pm
content: The VDD33USB pin supplies the USB internal transceiver. (On smaller packages its connected to VDD)The VDD50USB pin is available on the larger packages as a 3.3V regulator input.However, the regulator is disabled by default. The chip boots up in bypass mode (VDD33USB = power input), and you can enable the regulator to then supply that pin from VDD50USB.That means that powering the STM32 won't work as the regulator won't get enabled.I think the only selling point for having this regulator, is so you can power the MCU at VDD=1.8V and have USB operate in its own power domain of 3.3V. There are no specifications on this regulator, so its anyone's guess if it can deliver say 100mA for the STM32 part itself.See 6.4.7 of the reference manual(and perhaps AN5419)

author: ajb
author_rank: Super Contributor
timestamp: May 14, 2024, 03:04:01 pm
content: Quote from: hans on May 14, 2024, 02:52:04 pmyes, the datasheet also says that the 3.3V regulator is intended "to supply the internal  PHYs" when VDD is not 3.3V. If it were intended to supply anything beyond the chip it would hopefully have some sort of specifications in the datasheet. You might be able to power a small amount of other circuitry, but it's probably not worth the potential disruption to the PHYs if you're using USB, especially in a higher speed mode, and of course the usual caveats of working outside the datasheet parameters apply.Quote from: Arte on May 14, 2024, 02:30:36 pmIf you truly need a buck converter in the sense of a switching converter (not just a 'step down' in voltage), then the built in regulator wouldn't be a great replacement anyway, since it's a linear regulator, and therefore its efficiency and power capacity will be much lower.

author: Arte
author_rank: Contributor
timestamp: May 14, 2024, 03:19:40 pm
content: Got it, thanks.

author: pcprogrammer
author_rank: Super Contributor
timestamp: May 14, 2024, 03:24:07 pm
content: The datasheet in this case states that the 3.3V for the USB peripheral can be obtained by either connecting the 5V from the USB connector to VDD50USB pin or by connecting 3.3V to the VDD33USB pin. So I interpreted it as being the supply for just the USB peripheral, and not as an option to supply 3.3V to other devices.It does need a decoupling capacitor on the VDD33USB pin either way.
MH-M18(clone) Bluetooth module reprogramming possible? - Page 1
Forum section: electronics / general

author: Herschel
author_rank: Regular Contributor
timestamp: May 09, 2024, 02:42:26 pm
content: Is there any way to remove that annoying lady announcement from this bluetooth module?i ordered a mh-m18 bluetoothaudio recever off amazon and they send me a clone with this annoing announcement. and i noticed, instead of m18 ic, it had a JL AS208PO1429-25C4 ic.is it possible to disable this announcement or reprogram its firmware?

author: Sacodepatatas
author_rank: Regular Contributor
timestamp: May 10, 2024, 09:16:50 am
content: Yes, the chip is an AC6925C. This is good because the JieLi chips usually are encrypted with a passkey, but the AC6925C has a flawn that lets you program a new firmware. You need a programmer that just "triggers" the USB bootloader of the chip so a new device in your PC enumerates. I cannot say much more about this topic but i can point you where to find more details.https://github.com/kagaimiq/jieliehttps://usmi.mybb.ru/viewforum.php?id=8As a side note, the AC6925C is not a clone of the MH-M18. The MH-M18 is a relabelled AC6925C.

author: Herschel
author_rank: Regular Contributor
timestamp: May 10, 2024, 10:09:09 am
content: i thought this was a dead end. pretty happy to get the actual name of the ic. is it possible to get the bluetooth firmware used in the ic?

author: Sacodepatatas
author_rank: Regular Contributor
timestamp: May 10, 2024, 02:18:43 pm
content: Yes, you may use this tool for reading the encrypted firmware, and programming a new recrypted one (or unencrypted if you reset the chipkey that was set by the manufacturer of the module).https://github.com/kagaimiq/jl-uboot-toolAnd the tools for managing the firmware encryption are here:https://github.com/kagaimiq/jl-misctoolsIn this link there is the SDK for the AC692Xhttps://download.csdn.net/download/ledwin/10883331?utm_source=bbsseoBut i think such SDK is also published any place inside the USMI forum mentioned in my reply above.Firmware is programmed using something called "Codeblocks".

author: Herschel
author_rank: Regular Contributor
timestamp: May 10, 2024, 02:37:34 pm
content: can i use this same firmware for AC6965A bluetooth controller ic?

author: Sacodepatatas
author_rank: Regular Contributor
timestamp: May 10, 2024, 04:30:23 pm
content: I don't think so, but I'm not really sure. The MCU core of the AC6965A is different from the AC6925C. Furthermore, the devices sold with the 6965A are locked and encrypted with a chip key that is only known by the device manufacturer, and the workarround for the AC6925 intended for making it blank, doesn't work for the AC6965A (I'm also already waiting for a solution for this later chip).

author: Herschel
author_rank: Regular Contributor
timestamp: May 10, 2024, 04:34:54 pm
content: Quote from: Sacodepatatas on May 10, 2024, 04:30:23 pmthe bluetooth module i have comes with AC6965A. but i have another bluetooth module with AC6925C with actual chinese announcement. let me try on that