hybridfree/eevblog-posts huggingface dataset:
TMS320 clones: has anyone tried them - Page 1
Forum section: electronics / general

author: uer166
author_rank: Super Contributor
timestamp: December 01, 2022, 03:44:19 am
content: Per title, has anyone tried to do anything with TMS320 clones such as :https://datasheet.lcsc.com/lcsc/2207061215_Haawking-HXS320F28034PNT_C2859021.pdfhttps://datasheet.lcsc.com/lcsc/2207061215_Haawking-HXS320F28034PAGT_C3293111.pdfThey seem to be neat parts that can do lots of good stuff on the cheap, and wonder if it's similar to the Gigadevice/ST situation? Or something else (die copy instead of a re-implementation?). What do the tools look like? Is it binary compatible with TI?

author: daisizhou
author_rank: Super Contributor
timestamp: December 01, 2022, 05:09:21 am
content: Do you mean the chip like in the attachment?

author: thm_w
author_rank: Super Contributor
timestamp: December 02, 2022, 01:14:14 am
content: Quote from: daisizhou on December 01, 2022, 05:09:21 amThats an actual TI part, or is trying to be, the parts OP is talking about are something else:https://lcsc.com/product-detail/Digital-Signal-Processors-Controllers-DSPs-DSCs_Haawking-HXS320F28034PNT_C2859021.htmlIt says RISCV so it might be equivalent to how the GD32VF103 is to the GD32F103 and STM32F103. In that its quite a change, and likely won't be binary compatible.https://bbs.elecfans.com/jishu_2278016_1_1.html

author: bidrohini
author_rank: Regular Contributor
timestamp: December 11, 2022, 09:21:13 pm
content: Nay. Even the Chinese datasheets are inconvenient enough for me.

author: nomead
author_rank: Contributor
timestamp: December 12, 2022, 06:32:29 pm
content: They seem to churn even more of C2000 look a likes with Risc-V core.http://haawking.com/28027http://haawking.com/28335

author: mkissin
author_rank: Regular Contributor
timestamp: December 13, 2022, 07:52:36 pm
content: These are interesting.I'm not sure what the use case for them would be, since they use different core architectures and the C2000 has a very odd core (16-bit is the smallest addressable unit, etc...) which would mean code is extremely unlikely to work without a lot of checking and work.

author: thm_w
author_rank: Super Contributor
timestamp: December 13, 2022, 10:36:28 pm
content: Quote from: mkissin on December 13, 2022, 07:52:36 pmFootprint compatibility, featureset compatibility (ePWM, HRPWM, etc.). Even if they have to rewrite most of the code, its worth it for some people.TMS320F2802PZA seems to go for ~$8. So if you produce enough product using them, it might be worth it to port.Dave recently had a teardown with a microinverter using TMS320. I'm sure they make massive quantities of those, its a huge market.
Home IoT Dash widget - cool? additions. - Page 1
Forum section: electronics / general

author: paulca
author_rank: Super Contributor
timestamp: November 28, 2022, 10:40:46 pm
content: I wrote a driver for a single WS2812 called, imaginatively WS2812Indicator. It takes a single timer and dma channel and every call is async, returns immediately. Even if you want to flash it like an idiot and give people a fit at boot up, while connecting to Wifi.So you just tell it to flash for how ever long, it will. Say when the Wifi connects it's still flashing, you tell it to cancel the flash and display green... for example. It has a single blocking method to let it catch up if you want to sequence a bunch of different outputs. It's optional, but if you run two commands back to back the second will almost certainly be dumped.Another addition is the UART command line. Decided just a debug log wasn't enough and as I happened to already have a working "line buffering" system for UART in the project to handle the ESP32 AT command coms... I just reused those on a UART CLI interface. It's quite cool.The breadboard is becoming a mess though. I am literally tieing myself in knots at times. Don't think there is anything more to add though. Need final draft of PCB with latest changes (timer pin, uart pins) and hopefully get the first set of green coasters made before xmas to solder and smoke over christmas hols.On the display, I have work to do. I want to make those boxes pretty by using a nicer background than a plane old rectangle. Also need to add the humidity values, the electric power usage and the heating state.

author: bidrohini
author_rank: Regular Contributor
timestamp: December 11, 2022, 02:25:50 pm
content: Yeah. You are right. A PCB will certainly make the whole project compact. If you are interested to make a low-cost PCB at home, you can see this:https://pcbtracks.com/how-to-manufacture-pcb-at-home/

author: paulca
author_rank: Super Contributor
timestamp: December 12, 2022, 01:48:14 pm
content: Quote from: bidrohini on December 11, 2022, 02:25:50 pmI never like the look of the home made ones. It's not expensive to get it down profressionally.

author: bidrohini
author_rank: Regular Contributor
timestamp: December 13, 2022, 07:25:51 am
content: Yeah, you are right. Home-made PCBs are good for prototyping. But for pro-level PCBs must be printed by a good company.
RPi Pico - Serial over PicoProbe - Page 1
Forum section: electronics / general

author: sebajom
author_rank: Contributor
timestamp: December 16, 2022, 02:09:40 am
content: Hi all,I've just started exploring the Pico/RP2040 as a platform, so I may have missed something obvious, but...Decided to try it with Arduino, so I hooked up the the Arduino IDE using Earle Philower's Pico/RP2040 package. I build a picoprobe so I could do proper debugging. It hits breakpoints, I can inspect variables, memory etc. So far so good.The Picoprobe can also probe physical UART RX/TX on two separate pins, which can be piped directly into a terminal or Arduino's Serial Monitor. However, I'd rather like to stream the "virtual" serial-over-USB channel that's available when connecting a pico direcly over USB (i.e. arduino's Serial, rather than Serial1 or Serial2).Can that be done through the picoprobe at all? I can't figure it out, and the documentation is a bit sparse. Or would I have to connect the guest pico board to both the picoprobe (for SWD) and USB (for "serial") simultaneously?
404: ATTINY not found - Page 1
Forum section: electronics / general

author: ppTRN
author_rank: Regular Contributor
timestamp: December 11, 2022, 10:08:13 am
content: Hi, I am currently working on a very simple progect in which I need to use a uC. Since it has to be used as a controller for a GPS module and a CAN transreceiver I chose an ATTINY841, which has 2 uarts, or an ATTINY84, with a single uart, so SoftwareSerial will be needed. Well, it is the first time that the semiconductor crisys hits me. These uCs arent available anywhere, and the few i found were sold at something like 13$ each, a clearly unacceptable price. How do you guys deal whit this situation while designing a new circuit? Do you start by what is available? But again, stoks changes very rapidly, so what is available today won't be tomorrow and vice versa. Please let me know what you think.ps: more reasons why I choose ATTINY84(1): just as many GPIO pins I need, not much memory required (even ATTINY44(1) would be fine), analog comparator with bandgap reference. By the way, do you think it is ok to use the analog comparator as a voltage level controller of a battery? Since it has no hysteresis, when the battery level (properly attenuated) is very close to the reference, won't I just get a noisy output? If this is the case, how do you usually deal with it? Just using the ADC?Thank you very much.

author: westfw
author_rank: Super Contributor
timestamp: December 11, 2022, 10:38:55 am
content: How about an avr16dd20 or similar. New, 2 UARTs, more memory, and in stock at several distributors, and cheap.

author: Psi
author_rank: Super Contributor
timestamp: December 11, 2022, 10:58:20 am
content: ATMega162 also has 2x UARTS

author: Psi
author_rank: Super Contributor
timestamp: December 11, 2022, 11:02:00 am
content: Quote from: ppTRN on December 11, 2022, 10:08:13 amerr...

author: ppTRN
author_rank: Regular Contributor
timestamp: December 11, 2022, 11:25:59 am
content: Quote from: Psi on December 11, 2022, 11:02:00 amWell this is akward. I even found them on farnell. Thank you all for the suggestions.
Help identifying microcontroller believed to be Freemont Micro Devices - Page 1
Forum section: electronics / general

author: Yamaha32088
author_rank: Newbie
timestamp: December 08, 2022, 10:32:14 pm
content: It may be a long shot based on the post here:https://www.eevblog.com/forum/projects/fremont-micro-devices-microcontroller-programming/I have tried looking for a datasheet for a microcontroller in the images attached but I am not having any luck. Based on its markings I am assuming it is a Freemont Micro Device product "B1cTEKH" but nothing comes up with the part number on the chip. There is also another chip on the board I can't identify marked with "SXD094B", any help with that one would also be greatly appreciated.

author: pcprogrammer
author_rank: Super Contributor
timestamp: December 09, 2022, 06:57:00 am
content: The IC you left out is a receiver (CMT2210LCW) so the board is some radio controlled thingy?The SXD094B does not yield results but could it be some I2C device. It looks like there are level converters between the two IC's you are after, and if you trace back the connections to the IC's and scope the signals to confirm if it is I2C, then it might help in identifying the IC'sEdit: I'm reffering to Q1 and Q2, but a second look shows that the pull up resistors are a bit high with 100K on the one end and 10K on the other, so maybe it is something else.

author: Yamaha32088
author_rank: Newbie
timestamp: December 09, 2022, 10:28:18 am
content: You are correct about it being a radio controlled thing, it is a wireless doorbell.

author: pcprogrammer
author_rank: Super Contributor
timestamp: December 09, 2022, 11:52:25 am
content: What kind of special functions does it have that it requires a mcu for a simple doorbell.

author: Yamaha32088
author_rank: Newbie
timestamp: December 09, 2022, 01:02:34 pm
content: It has two different "musical" chimes that are user selectable from the doorbell button. My plan was to see if I can pull off the firmware and figure out how the chime is stored and create my own just for the heck of it.

author: pcprogrammer
author_rank: Super Contributor
timestamp: December 09, 2022, 01:46:16 pm
content: Ah, then maybe the SXD094B is some sound chip that either has recordings in it or it is generating the notes based on input from the mcu.
Capacitive touch sensing with STM32 -- struggling with linear sensor - Page 1
Forum section: electronics / general

author: ebastler
author_rank: Super Contributor
timestamp: December 11, 2022, 04:54:33 pm
content: [I have just asked this question on theSTM32 forumas well, but that does not seem to be the liveliest of places. I hope it's OK to double-post here.]I am trying to get a linear slider (capacitive touch) to work on the STM32F373. I am using a three-segment linear slider, comprising three interlaced electrodes (no half ends); I have chosen the M1 Basic type. I am using HAL, the TSL Touch Sensing Library, and the STM32CubeIDE code generator.Normalization of the Delta values is turned on in the library, to compensate for differences in response between the electrodes. I have determined suitable correction factors and entered them in the tsl_user.c file.The Delta values for the individual electrodes, which indicate the change in capacitance vs. the untouched electrodes, make sense, at least qualitatively. But the position calculated from these by the TSL library does not. Please see the details below and the attached chart. Two things have me puzzled mainly:(a) The Delta values for the three electrodes look plausible when I scan my finger over the sensor -- see the three thin lines in the attached plot. But are they expected to be in the 1000s of counts? (I can only specify a detection threshold from 0..255 in the TSL parameters, and the Delta values for simple touch buttons are in that range < 255. Is something wrong with the slider's Delta values already?)(b) The Position which TSL calculates from these Deltas is total nonsense -- see the fat orange line in the plot. Note how the "position" flips just at the crossover points where another segment signal becomes the strongest one. What is up with this readout?! Am I reading the wrong variable? Is some critical parameter missing?Many thanks for any pointers you might have!
Fujitsu F2MC-16FX Microcontroller Development Software - Page 1
Forum section: electronics / general

author: lluchiari
author_rank: Contributor
timestamp: December 07, 2022, 01:09:39 pm
content: HiI recently found an old board on garbage and I got curious about the project. I'm trying to understand how electronic work but when I came to Microcontroller I got surprised that It's an Fujitsu MB96F613 from family 16FX.I tried to pull the code but I couldn't find a tool for that. Contacting Infineon (who bought Cypress who had own the rights for that micro family), and for my surprise, the page had all the information about SOFTUNE software (dev IDE) but it had no link, just a message to contact support to get the software. I contacted them and they keep me in an infinity loop of questions and there's nothing I say that make them provide me the software. I had not found any reference in internet about. No one talking about alternatives. I don't know what I can do!!!Anyone have any valid information that can help me?
Using a 2.8in SPI LCD Touchscreen ILI9341 with an ESP32 on the new Arduino IDE 2 - Page 1
Forum section: electronics / general

author: jcrubin
author_rank: Frequent Contributor
timestamp: December 03, 2022, 04:38:16 am
content: Today well be interfacing the 2.8 inch SPI LCD Touchscreen with the ILI9341 chipset to an ESP32 using the new Arduino IDE 2.X Taking advantage of both display and touchscreen features, though well skip the SD card as its just an addon to the board not directly connected to these systems. I have a separate video for SD card interfacing. Out setup will not be powered through the ESP32 so I'm setting up an HW-131, a well known cheap DC power supply for this task.First Ill actually be installing the new IDE version 2.0 because I dont actually have it. Though its much more streamlined than the 1.x series of Arduino IDE. It also allows for a per project board configuration which is quite an improvement over the old version. I make sure that TDT_ESPI library is installed; in my case it is, but the latest should be installed.Following library installation, some library configurations will be made in support of out device. In particular, setup 42 will be addressed in a few files. Once these changes are made the physical wiring will be made between the two devices as demonstrated in the video. Note I did make a mistake in the wiring, it did work but wasn't ideal and caught an interesting quirk.In the Arduino IDE I first attempt an easy example under 320x240 to ensure correct operation and wiring of the device, finding quickly a python issue on my system, easily corrected. The next attempt shows the example working correctly. Following this a touchscreen example is loaded for testing, which proves to also work correctly, completing this demonstration.

author: coromonadalix
author_rank: Super Contributor
timestamp: December 04, 2022, 02:07:46 pm
content: Maybe harsh or having some rantAlways visual examples, never a code snippet ...... downloadableNice to see but .... i tend to back away from all of this, it's like a teaser nothing elseAnd on some cases, i had to revert to an pre v2 version, v2 was not working well for an AR488 project ?

author: Ian.M
author_rank: Super Contributor
timestamp: December 04, 2022, 03:22:55 pm
content: +1. Post your code somewhere sane, that doesn't require registration to download from and link it from at least the video description, but preferably add links in the video.If you are still using the Arduino 1.8x IDE, and have conflicting libraries (or even just settings) between different projects, a portable install of it is your friend:https://docs.arduino.cc/software/ide-v1/tutorials/PortableIDE

author: Lindley
author_rank: Regular Contributor
timestamp: December 04, 2022, 06:45:55 pm
content: Timely post @jcrubin as we are just updating our old ESP32/ILI9341 project which uses the Adafruit libraries.Just run your tutorial after changing the Setup file to reflect our existing wiring (DC,RST,CS pins) and even on our old Arduino v1.8.19 IDE it works fine, looks lke some useful code/ fonts etc in those example files.
Why Doesn't My Sprintf work properly - Page 1
Forum section: electronics / general

author: Ground_Loop
author_rank: Frequent Contributor
timestamp: November 28, 2022, 04:03:46 pm
content: I have a PIC24 uC application that uses sprintf in a number of locations correctly. However, one instance is pushing back, refusing to properly format an argument. I have verified that all the arguments are of type uint16_t, removed any calculation from the argument list, and then type cast the external calculations. For instance, I know that one of the arguments, 'use' value is 301, sprintf displayed it as 46 which is 301-255 which led me to suspect a data type issue. This was prior to type casting an intermediate 32 bit integer calculation to 16 bit integer, both unsigned. Now the 301 value is displayed as a negative value like -1267 even though the data types are unsigned. Any helpful suggestions?Code:for (q=0;q<=3;q++){Lcd_Set_Cursor(0, q);position = reviewHour + q;use = useTrack[reviewHour + q];sprintf(review, "hour %.2d = %.2d Gal", position, use);Lcd_Write_String(review);}The above code places a data point on each of four lines of a LCD character display.

author: Andy Watson
author_rank: Super Contributor
timestamp: November 28, 2022, 04:54:17 pm
content: %d expects an integer value: use %u for unsigned. Also, there may be a problem with the length of the integers - you may need to modify the format specifier for short-integers. I believe the short modfier is "h", i.e. try using %hu

author: Ground_Loop
author_rank: Frequent Contributor
timestamp: November 28, 2022, 11:24:18 pm
content: That worked! Thanks a bunch.
Renesas RX assembly, using registers, MOVLI & MOVCO - Page 1
Forum section: electronics / general

author: slugrustle
author_rank: Frequent Contributor
timestamp: November 27, 2022, 07:31:26 pm
content: I've mostly used 8-bit PIC MCUs that I program in assembly for personal projects. I have a pipe dream for something I want to build that could benefit from more performance and am looking to learn another architecture. To that end, I designed a dev board for a 176-pin RX72N series MCU. I picked Renesas RX because the flash program memory has no wait states at 120MHz and they come in high pin count LFQFP packages (I want a lot of I/O without soldering QFN or BGA).I plan to program this MCU in assembly because I love assembly. The RXv3 instruction set looks incredible. One question is, what do I do with all these registers? I'm used to only having an accumulator. Here are some ideas:Obviously, R0 is the stack pointerPointers / offsets for indexed and relative addressing (much like the FSRs in 8-bit PICs)Loop countersBasic temporary variablesArgument passing to subroutinesVery frequently used global variablesAm I missing anything?I'm accustomed to programming with a very flat call hierarchy and using the same RAM bytes as temporary variables in multiple different routines that don't use the RAM at the same time. From this perspective, common C calling conventions seem pretty wasteful. I might not use the stack for much more than saving the PC and PSW during subroutine calls and ISRs.Another question: How are MOVLI & MOVCO typically used? brucehoult mentions inhttps://www.eevblog.com/forum/microcontrollers/renesas-rx-architecture/msg3995909/#msg3995909that they're for atomic operations. Here's how they work:MOVLI , Rd is a 32-bit memory (address held in register Rs) to register (Rd) load operation that sets the LI flag to 1.MOVLI is the only thing that sets the LI flag to 1.MOVCO Rs,  is a 32-bit register (Rs) to memory (address held in register Rd) store operation that:If LI == 0, abandons the store operation, clears LI to 0, and stores 1 in Rs.If LI == 1, executes the store operation, clears LI to 0, and stores 0 in Rs.Return from exception / interrupt also clears the LI flag to 0.Aside from MOVLI, MOVCO, and return from exception / interrupt, nothing else touches the LI flag. I assume LI is cleared to 0 upon reset.I'm guessing MOVLI and MOVCO are used in a code block something like the following when a memory address (stored in R1 in this example) is modifiable by both the main context and by one or more ISRs. Is that about right? Is there any other use case?Code:{Memory address in R1.}atomic_loop:MOVLI , R2{Various operations on R2.}MOVCO R2, CMP #1, R2BEQ atomic_loopI wish they'd say what LI stands for. Load interruptable? Not sure.
Sparkfun BlueSMiRF - Arduino Communication - Page 1
Forum section: electronics / general

author: simba15
author_rank: Regular Contributor
timestamp: November 21, 2022, 07:51:04 pm
content: Hi there EEVblog,I have purchased a couple of sparkfun BlueSMiRF Bluetooth modules and intend to use them with Arduino.I have followed the instructions athttps://learn.sparkfun.com/tutorials/using-the-bluesmirf/introduction?_ga=2.130510221.300646374.1669038264-572122409.1669038264When I get to the page where I should receive data from the device but I get nothing.https://learn.sparkfun.com/tutorials/using-the-bluesmirf/example-code-using-command-moI send $$$ and the device changes into "Configuration Mode" but there is no data from the device. ( I have tried another cable and other pins ( 4/5) but no change).I have tried a few alternatives and other version of the code but all seem to have no ability to return any data from the device.I also tried the steps to connect to a PC and the Pc always responds with error 1186 when trying to open the com port. ( I was able to get 1 connection, but the pc was in raw not line mode)Any suggestions or solutions would be greatly appreciated ( or alternatives that have better results)Thanks,

author: simba15
author_rank: Regular Contributor
timestamp: November 22, 2022, 04:27:06 pm
content: So turns out the issue is the Arduino Mega that was used.It is an official Arduino Mega ( I have about 20, all work the same) but when I tested this setup with an Arduino UNO (official also) It works perfect.I have seen other issues with the Arduino Mega ( Clone but it would lockup when enabling the watchdog timer).Or just RTFM, Arduino mega has specific pins for SoftwareSerial library.
Probing the JTAG state non-destructively - Page 1
Forum section: electronics / general

author: planc
author_rank: Regular Contributor
timestamp: December 05, 2022, 11:11:24 am
content: I want to use MSP430 Flasher to read the Texas Instrument M430F2617T main memory of a device into a file. But I don't know if it has the JTAG fuse blown already. Can just using the MSP430 Flasher delete the main memory? I know that accessing the Bootloader can delete all the memory including the main memory. But is using the MSP430 Flasher automatically like accessing the Bootloader?How could I probe if the MCU has JTAG fuse blown without it detecting the access attempt and the deleting the memory?
esp8266 CH_PD useful for anything? - Page 1
Forum section: electronics / general

author: ralphd
author_rank: Frequent Contributor
timestamp: May 27, 2015, 03:26:28 pm
content: I have ESP-01 and ESP-03 modules, both of which have CH_PD(aka CHIP_EN) broken out. Has anyone seen CH_PD put to good use? Since bringing it low completely powers down the chip including the RTC, it isn't even useful for implementing deep sleep.

author: Muxr
author_rank: Super Contributor
timestamp: May 27, 2015, 04:04:42 pm
content: Quote from: ralphd on May 27, 2015, 03:26:28 pmESP-01 and ESP-03 were initially meant to be used as an Arduino WiFi module. In that aspect it made sense to break out CHIP_EN so that the user could disable the device when not in use (to save power).Now that people have figured out how to replace the firmware on the module and run code on it there is little use for it.

author: PaulB.
author_rank: Newbie
timestamp: November 19, 2022, 11:53:52 am
content: Not at alluseless!The notion that the ESP-01 - or indeedanyESP - was "meant to be used as an Arduino WiFi module" is really just a fantasy.Arduinox are not the "be all and end all" and to imagine a chip manufacturer whether Microchip or Espressif would make something "for Arduino" is fanciful to say the least.While "deep sleep" uses verylittlepower, pulling CH_PD LOW reduces this tozero- or would but for the 12k resistor on theESP-01S, thus making that variant unsuitable for standby battery operation (275 µA draw). You would instead need to use the ESP-03.The point is that youcompletelycontrol whether the chip (well, module) is turned on and drawinganypower, by this pin which is a CMOS logic input. That is the beauty of CMOS; turn it off and the power consumption iszero.What youcando, operating the ESP at 3 V from two alkaline "AAA" or "AA" cells, is to hold CH_PD LOW with a resistor and pull itupwith a pushbutton, then hold it HIGH via a diode from any available I/O which is not already pulled up by a resistor. The ESP can then perform whatever WiFi task is necessary, when this is complete, pulling the controlling I/O LOW to disable itself completely (given that the button has been released) and using virtually no power until next required.
Beware MAX32660 UART corruption - Page 1
Forum section: electronics / general

author: robbym
author_rank: Newbie
timestamp: November 21, 2022, 10:20:33 am
content: When evaluating the MAX32660 for a project I came across an interesting silicon failure when sending and receiving UART data simultaneously. It seems to be a silicon issue which is not detailed by their errata, and there doesn't seem to be a solution for it, so I wanted to let people know.Regardless of baudrate, if you start receiving a byte on either UART peripheral, and you simultaneously start to transmit data out of the same peripheral, and the falling edge of the start bit of the transmitted byte falls within the first data bit of the received byte, then the received byte will be corrupted.I have attached a picture of a Saleae capture to show what I mean. Again, this happens regardless of baudrate and regardless of what UART peripheral you use (UART0 or UART1).I've already had communications with their technical support which were able to reproduce it, and they have said that they reported it to their application engineers. I haven't gotten a response since.
NXP replenishes stock, ST doesn't. - Page 1
Forum section: electronics / general

author: luiHS
author_rank: Frequent Contributor
timestamp: November 18, 2022, 09:57:43 pm
content: I am realizing that NXP is replenishing stocks of its microcontrollers, stocks of the RT series are already appearing, and in any case the expected dates of availability are being met. For example, today they have put on sale more than 10172 units of the RT1062 and this is also happening with other of their microcontrollers. Unfortunately not with their Kinetis, which also interested me, but at least the RT series is becoming available.However, with ST it is the opposite, there is no stock of anything and the worst thing is that there are no expected availability dates for any of its microcontrollers. I'm interested in some of their H7s, but I still don't know when they'll be back in stock.I don't understand why the global semiconductor crisis affects these two manufacturers so differently.I also need Raspberry, which is now sold out in all suppliers, but some references such as 3A+ are expected to be in stock by mid-December.

author: josuah
author_rank: Regular Contributor
timestamp: November 18, 2022, 10:44:30 pm
content: Quote from: luiHS on November 18, 2022, 09:57:43 pmI suppose they have different contracts with different foundries on one side, different volume being ordered daily on another, and different existing stocks on another side.For instance, I think the Raspberry Pi RP2040 is not much used at scale yet (hobbyists buy them per dozen rather than thousands), and had plenty of stock just before the outage came.Also, maybe they use different feature size, each being affected differently?Not sure about any of this.

author: NorthGuy
author_rank: Super Contributor
timestamp: November 18, 2022, 11:22:19 pm
content: Quote from: luiHS on November 18, 2022, 09:57:43 pmGee. I just bought one couple months ago. Looks like things are getting worse

author: peter-h
author_rank: Super Contributor
timestamp: November 19, 2022, 08:53:38 am
content: QuoteThe stuff is actually arriving. The lead time stays at 1 year or whatever but a package arrives...This is a standard semiconductor industry tactic when a shortage is about to end. You book as many orders as you can at the inflated price and delay any news of the bubble bursting for as long as possible. Everybody upstream loves it.I've just had this on one chip (not ST but I am not posting which because the company is sh*it and might hit me with something when they read it) where I had to pay a £1/chip extortion fee to get a few k of them, and it turned out they all knew that stock was imminent. Now it is in stock but they still want that £1.This business stinks. I've been in it since 1978 and nobody in the supply pipeline ever had any ethics.
ESP32  remove OTA programming ? - Page 1
Forum section: electronics / general

author: Lindley
author_rank: Regular Contributor
timestamp: November 17, 2022, 06:22:13 pm
content: Did a few OTA tests with the ESP32 Dev 32 Module via the Arduino IDE and the Examples etc and it all worked ok.Now we want to revert to normal Serial/USB programming, though we can seemingly program a new program, it just reverts to the existing OTA program.Is there a simple way to removed the OTA from the ESP32 ? - have looked on the web but not found anything understandable for our basic level.

author: GromBeestje
author_rank: Frequent Contributor
timestamp: November 18, 2022, 11:09:22 am
content: Try to erase it before flashing it again.I don't know about Arduino, but using esptool.py it can be done likeCode:esptool.py erase_flash

author: Lindley
author_rank: Regular Contributor
timestamp: November 18, 2022, 04:22:07 pm
content: Thanks, that seems to have cleared the problem of the old program reappearing when it says the new program compiled and uploaded ok ?!Don't have python loaded, but came across this ytube where you can use the esptool via the browser, very easy to erase and reload the factory defaults etc.
AVR DB: Microcontroller internal opamp - input bias current? - Page 1
Forum section: electronics / general

author: Faranight
author_rank: Unknown
timestamp: November 22, 2022, 07:19:34 am
content: Hello.TheAVR32DB32microcontroller comes with a few built-in signal-conditioning operational amplifiers.I've checked the datasheet, and chapter 35 on page 525 describes the opamp, chapter 39.5.12 on page 615 shows the opamp AC characteristics while chapter 40.1 shows the opamp charts.But can't seem to find any information on theinput bias currentfor the built-in opamps. Am I missing something or is this parameter just not listed (why?)?I need it to calculate an error margin and resistor values for a voltage divider.https://ww1.microchip.com/downloads/aemDocuments/documents/MCU08/ProductDocuments/DataSheets/AVR32DB28-32-48-DataSheet-DS40002301A.pdf

author: magic
author_rank: Super Contributor
timestamp: November 22, 2022, 08:12:59 am
content: My guess:"It's CMOS, so input bias is insignificant for applications this dodgy thing could be adequate for"."If you need to ask, this isn't a device for you".Yeah, it would be kind of them if they could at least provide a ballpark "typical" spec.But then again, look at MCP6002, which is a "real" opamp from the same guys. No guaranteed maximum at all

author: Faranight
author_rank: Unknown
timestamp: November 23, 2022, 06:32:59 am
content: Maybe it's because the opamp input pin is multiplexed with other functionality available on that pin.So, whatever current the opamp is draining is insignificant to the leakage on other parts of the input?And the datasheet does state a spec about current leakage on I/O pins (< 5nA) though it applies for pins in high-impedance state only.I'm not sure.

author: Dabbot
author_rank: Regular Contributor
timestamp: November 23, 2022, 08:24:25 am
content: In the datasheet you linked, search for "Input Leakage Current":<5natypical, and "...valid also when the pin is used as an input to an enabled analog peripheral"

author: Faranight
author_rank: Unknown
timestamp: November 23, 2022, 10:17:06 am
content: Oh, thanks. I missed the "valid also when the pin is used as an input to an enabled analog peripheral" part.Solved then.

author: harerod
author_rank: Frequent Contributor
timestamp: November 23, 2022, 08:00:50 pm
content: Quote from: Faranight on November 23, 2022, 10:17:06 amDon't beat yourself up. Although I knew that I was looking for that specific information, I overlooked it last night. I expected and wanted to give exactly that answer.I had one major project on the AVR32AP, back in 2008. Critical omissions in the datasheet of that then new product led to several redesigns. We started out with 6 layers and ended with 12 layers. One crucial problem was the power supply during peak performance. MCU was fine with basic hardware tests, but tended to crash when the Linux application went full power.Atmel pulled the same stunt in 2004 with the AT91RM9200.I hate eventually seeing errata that burned thousands of Euros of my money.Looking back at those two old Atmel components, I can only say that STM32 is gold by comparison.
Basic IDE for 68HCS12 - Page 1
Forum section: electronics / general

author: AussieBruce
author_rank: Regular Contributor
timestamp: November 10, 2022, 08:09:16 am
content: I’ve been using the ICCV7 IDE for HCS12 from Imagecraft in the US for over a decade. Until some time last year their support was fantastic, but the company has closed down. Googling them brings up a page that provides some contact details, including an undertaking that perpetual license matters will still be covered, however my emails aren’t getting responses. The machine I’ve been working on is failing, and I need a license key to fully enable a new instance on a different machine.I’ve hunted for another HCS12 environment, the one that comes up most is Code Warrior, which seems to have been taken over by NXP, and is available for what is for me an eye-watering fee. There are a few other options around, but all seem to be in the ‘professional’ class, with commensurate costs – in some cases ongoing. This is a totally non-commercial situation.Is anyone aware of a free or low cost basic WIndows10 C environment for HCS12? Even a command line compiler that can generate .s19 output – a platform standard format - would do, don’t need a debugger. I have Linux available, but then I'd also need burning capability through a (legacy) BDM adaptor, which would probably open up a whole new can of worms.

author: Benta
author_rank: Super Contributor
timestamp: November 10, 2022, 05:05:16 pm
content: The usual way is using the Eclipse IDE and plugging in the appropriate compilers/assemblers/linkers etc.Eclipse is free open source, the rest may vary.

author: bidrohini
author_rank: Regular Contributor
timestamp: November 17, 2022, 06:17:34 am
content: Have you tried this?https://www.nxp.com/design/software/development-software/codewarrior-development-tools/codewarrior-legacy/codewarrior-development-studio-for-hcs12x-microcontrollers-classic-ide-v5-2:CW-HCS12X

author: AussieBruce
author_rank: Regular Contributor
timestamp: November 17, 2022, 11:39:56 am
content: UPDATE: I sent a reminder email to the contact address today, and a new license key arrived very promptly. I don't know why my initial application some weeks ago was not handled, the reason is likely to be just normal delays. I'm sending this response to put on record that the outfit concerned has responded promptly and effectively, and in accordance with the undertaking on their website.
Padauk microcontroller hex file generation - Page 1
Forum section: electronics / general

author: rs04
author_rank: Newbie
timestamp: November 16, 2022, 10:17:23 pm
content: Hello everybody,The EEVblog community has made the padauk programmer which I have and used it. I also have the 5S-I-S02B padauk provided emulator. For testing my programs I use this emulator using the IDE provided by padauk itself which supports mini c language.My question is, can I convert this mini-c programmed code to the ihex file supported by the freepdk programmer? If not I have to first check the code in emulator, then write the same code for sdcc compiler which does not feel good to me.The IC that I am working with is PMS171B which is OTP type and I can not reprogrammed it to fix any minor mistake for which I have to use emulator.

author: brucehoult
author_rank: Super Contributor
timestamp: November 16, 2022, 11:46:37 pm
content: What is the format of the code used by the emulator?

author: rs04
author_rank: Newbie
timestamp: November 17, 2022, 03:13:32 am
content: Below is the attachment of a blink program using T16.
How to read GX0011D temperature sensor with CH32V003 or STM32 - Page 1
Forum section: electronics / general

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: November 13, 2022, 09:31:28 am
content: Today I was searching for the lowest cost digital temperature sensor that I can find on LCSC, I have found this GX0011D ,https://www.lcsc.com/product-detail/Temperature-Sensors_GXCAS-GX0011D_C3345101.htmlThe data sheet is in chinse, So I hope Chinese members help us in here,I have used google translate for it, there is a diagram in the chip that shows it uses pulses to tell the temperature info, we should count the pulses to calculate the temperature!? But in the table below that we have some timing info’s like the 1 and 0 timings, so what efficient ways do you suggest to extract the data from the chip?Has anyone here used this chip before?

author: DavidAlfa
author_rank: Super Contributor
timestamp: November 13, 2022, 01:49:52 pm
content: QuoteI think it's pretty clear?Efficient ways? Just set a counter with external clock, check it few ms later.Each pulse is ~10us (Min. 6.5us, Max 13us) and the Max. Largest pulse train you can get is16003201.So in the worst case: 3201*13us=~42msWhat I'd do:- Set the counter in free running mode.- Check the counter value on each systick interrupt (Every 1ms)- If the same count as previous check: copy count value and reset counter (More than 1ms idle, you know it's doing a new conversion).

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: November 13, 2022, 03:24:54 pm
content: Thanks David for the Tip

author: DavidAlfa
author_rank: Super Contributor
timestamp: November 13, 2022, 03:45:55 pm
content: This would be it:

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: November 14, 2022, 07:52:01 am
content: Thanks david for pseudocode,I think this is a very nice and attractive device indeed.
A Bluepill-based VT100 terminal - Page 1
Forum section: electronics / general

author: profdc9
author_rank: Frequent Contributor
timestamp: November 11, 2022, 08:53:52 am
content: I made a cheap, simple VT100 emulator that works with a cheap Bluepill development board. I managed to get the STM32F103C8T6 or CS32F103C8T6 variants to work. I designed a PCB for the emulator though that is not strictly necessary. The Bluepill plugs into a NTSC monitor, a PS/2 keyboard, and a serial device. The source code and firmware are provided. You can find it athttps://github.com/profdc9/OneChipTerminalThis should hopefully provide a simple, cheap way to add an interface to projects.Dan
Control of a DC motor with a microcontroller or RPY. - Page 1
Forum section: electronics / general

author: luiHS
author_rank: Frequent Contributor
timestamp: October 10, 2022, 01:35:47 pm
content: Hi.Won't these two circuits work exactly the same to control a motor using a microcontroller or a Raspberry?. I don't understand the need to use two NPN transistors, when apparently just one NPN and the MOSFET would be enough.In my case, the load will be an electromagnet at 50v DC, so I don't know if using the circuit with a single NPN, the base resistor R1 of Q1 would have to be increased or the 100K resistor would be the same. Or is there any advantage to using the circuit with two NPN transistors and the MOSFET.

author: pcprogrammer
author_rank: Super Contributor
timestamp: October 10, 2022, 01:51:09 pm
content: The difference between the two is the first one is active on GPIO low, and the other one on GPIO high.The IRFZ44 might even work without the transistor, but it depends on where it sits in the range. The gate on voltage can be as low as 2V, but also as high as 4V according to specs.I myself would use a 2N7000 before the IRFZ44 instead of a BJT. Makes a better separation between the low 3V3 and the high 50V you need. The IRFZ44 is rated to 60V so might be a bit low.

author: bidrohini
author_rank: Regular Contributor
timestamp: November 07, 2022, 06:39:33 am
content: You can also use L298 dual DC motor driver. This is an H-bridge MOSFET.https://www.theengineeringprojects.com/2018/05/how-to-control-dc-motor-with-raspberry-pi-3.html

author: drvtech
author_rank: Regular Contributor
timestamp: November 07, 2022, 08:46:54 am
content: In the second schematic you show the supply as 24V. This means the gate will be going up to 24V which exceeds the Vgs (max) of the IRFZ44 (+/- 20V).
AT89LP51RD2/ID2 SPI and PCA problems - Page 1
Forum section: electronics / general

author: etik61
author_rank: Newbie
timestamp: November 17, 2022, 08:57:00 pm
content: I'm slowly running out of ideas... I'm desperately trying to migrate a project from AT89C51RD2 to AT89LP51RD2 (or ID2).Out of the box the ports of the LP51*D2 should be 8051-compatible, i.e. quasi-bidirectional (but could also be set to push-pull).In quasi-bidirectional mode, the SPI seems to have a problem with the MOSI output. Sending multiple bytes 42h works fine (picture A).If, on the other hand, 82h is sent, the pull-up will not be active at the first bit (figure B).For illustration purposes MOSI was fitted with an 47 kOhm pull-up. So it looks as if the first bit will be wrong if the last bit (D0) of the previous transfer is low and the first bit of the current transfer is high.With the C51 anything works in quasi-bidirectional mode. The LP51 requires the port to be operated in push-pull mode. Existing firmware may have to be adapted for this.So far so bad. With PCA module, there is the next problem (compare mode for pin toggling): Channel 0 works as intended. However, when I try to run one of the other channels individually, nothing happens. It will not work until channel 0 is also active. With the C51, the channels can used independently.Has anyone had similar experiences? I can't actually imagine an MCU that has been on the market for so long that has the errors described. I tested with two very different batches (probably 2021 and much older, 2012?).By the way, the user configuration fuses of a fresh AT89LP51RB2 (B!) will be in tri-state mode. That's even worse and you'll need a programmer capable of changing user configuration via SPI.

author: PCB.Wiz
author_rank: Super Contributor
timestamp: November 18, 2022, 01:48:33 am
content: Quote from: etik61 on November 17, 2022, 08:57:00 pmThe Quasi mode includes a change in drive, that depends on voltage level. They do that to save power with pull downs.It looks like your case spikes the pin low briefly, but that's enough to flip into that low driver zone, which is then too slow for your clock speed. The other rising edges have the brief impulse pullup, so they are ok.Remedies would be stiffer pullup, or more usually on a driven pin, just pick CMOS push-pull drive, because that part supports it.Quote from: etik61 on November 17, 2022, 08:57:00 pmYou can configure the pins in SW, which is usually good enough.Quote from: etik61 on November 17, 2022, 08:57:00 pmAnything is possibleHowever, what you describe seems to needmorelogic, not something missing which is more common errata ?
Fake processors on ebay? - Page 1
Forum section: electronics / general

author: JohnnyP
author_rank: Regular Contributor
timestamp: October 08, 2022, 04:42:09 am
content: I posted an earlier thread looking for MC9S12C32CFAE25. It's 48 pin, 25MHz, 32KBytes flash.I found a few listings on ebay for MC9S12C64CFAE, but the part numbers on the devices in the photos does not include the last two digits, which identify the speed option of 16 or 25MHz.I tried to get answers from two of these sellers but got the runaround. I suspect these are scammers.I have attached a photo of a genuine part, one from ebay, along with my question and his reply.

author: JohnnyP
author_rank: Regular Contributor
timestamp: October 08, 2022, 04:48:28 am
content: Must be a scam, the Freescale logo is pretty poor.

author: coromonadalix
author_rank: Super Contributor
timestamp: October 10, 2022, 03:57:31 am
content: yep smell like a scam, welcome to this nightmare ....

author: chickenHeadKnob
author_rank: Super Contributor
timestamp: October 10, 2022, 04:32:16 am
content: "long lead time reported on this product"factory lead time is 110 weeksYikes, I am grateful this is only a hobby for me now.

author: JohnnyP
author_rank: Regular Contributor
timestamp: October 12, 2022, 05:14:15 pm
content: One of the suppliers coughed up a real part number (sans photo) complete with the speed option, @$12, with a 60 day return policy, so I ordered 20 of them.

author: bidrohini
author_rank: Regular Contributor
timestamp: November 08, 2022, 08:04:16 am
content: I don't consider this website to be a dependable source for original ICs.

author: AVI-crak
author_rank: Regular Contributor
timestamp: November 08, 2022, 03:16:57 pm
content: Laser engraver on ali express is sold from $100.Buy it and draw anything on the chips.

author: bidrohini
author_rank: Regular Contributor
timestamp: November 10, 2022, 10:50:34 am
content: Quote from: AVI-crak on November 08, 2022, 03:16:57 pmOh my God! Cheating is becoming easier day by day!