hybridfree/eevblog-posts huggingface dataset:
ESP32 + AT Firmware V2.4.0 + STM32 Lib - Page 1
Forum section: electronics / general

author: paulca
author_rank: Super Contributor
timestamp: October 31, 2022, 04:30:24 pm
content: Quiet day at work. So.Starting with this:https://github.com/jrmejiaa/ESP8266I adapted it to* use the ESP32 AT V2.4 command set* added "parallel data channel" support* added an initial set of MQTT sub client functionsSo both command/control messages can be sent and acknowledge synchronously, while data is being received asynchronously.To explain. When you ask the ESP32 AT something, like:Code:AT+CIPSTA?To get your IP address. It will send a set of data messages like:Code:+CIPSTA.ip="10.0.0.205"+CIPSTA.gateway="10.0.0.2"+CIPSTA.netmash="255.255.255.0"(sic?)It will also send anCode:OKThe later you can expect, synchronously. i.e. you can spin waiting on OK or ERROR until you get a response or you give up in error.The former, while expected in this example, can arrive at anytime asynchronously.When you subscribe to an MQTT topic, for example, messages off the wire arrive randomly.The code successfully splits data messages out from control response messages, allowing normal request/response style command/control to carry on, unaffected by the data flow. (In theory)You can do things like subscribe and unsubscribe to channels while messages are still flowing and processing.An example without error code:Code:Wifi_Enable();Wifi_FactoryReset(); // TODO detect is already connecting with last saved by "WIFICONNECTED"Wifi_Init();Wifi_SetMode(WifiMode_Station)) {Wifi_Station_ConnectToAp("cmmwguest", "guestguest", NULL);Wifi_MQTT_Init(&mqttCfg);Wifi_MQTT_Configure(&mqttCfg);Wifi_MQTT_Connect(&mqttCfg);Wifi_MQTT_Subscribe("home/clock", 0);data_ch_t *ready_buffer = NULL;while (ready_buffer == NULL) {ready_buffer = DataChan_GetReadyBuffer();}// ready_buffer is your raw message// some time later.....DataChan_ReleaseReadyBuffer(&ready_buffer);Next are functions parsing the MQTT raw messages into usable strings.I'm thinking with a bit of tidy up I could put it on the public Git Hub. Anyone interested?I've even thinking of creating a dev board already setup, so "maker style" IoT becomes and HomeAssistant stuff becomes far more accessible on STM32?At least it will to me, and that's most important.TODO list includes fixing the original ESP8266 library functions which request data, to use the data channel for data responses and the command channel for OK/ERROR.TODO lots of code clean upTODO add publish functionsTODO slap lip stick on it and push to gitlab/hub.
HP5315 Counter MK3870 Micro & MRC Chip  - Page 1
Forum section: electronics / general

author: Kjo
author_rank: Regular Contributor
timestamp: October 27, 2022, 03:57:51 am
content: I am heading down a rabbit hole with this project an hope there are a few old farts out there that may have access to some proprietary data. I have build a USB based daughter card for this series of frequency counters that interrogates the MK3870 for all of the info that is sent to the display. From this, the firmware figures out what mode the switches are in and formats the data for transmission over the USB to a logging application.This all works quite well. While I have several of these meters, I managed to brick a MK3870 after many removals. I think the plastic package actually bent in the middle.I have the binary ROM image and 5 MK38P70-02H micros. But I can only get one of them to run. I can’t figure out what is the problem with the others.Now for the rabbit hole. A modern PIC should be eminently better in this application. I’m using a 16F887 cause I have a bunch. Even with a disassembly of the 2K ROM, it is a near impossibility to figure program flow. There are just no good tools around any more. Even ADA PRO doesn’t support the F8/MK3870 hardware.But HP has described the 5315 both in manuals and the HP Journal. So I understand it quite well.Using a daughter translation card, I have all of the front end firmware working, including reading the switches and programming the display.The tricky part is programming the MRC and reading it. I have decoded the basic MRC programming for Freq, period, gate time & osc check modes by logic analysis. I’m confident I can decode the other modes also. But I fear that that there are settings that I will never figure out this way.There are 4 registers in the MRC. Three are read only. They are event, time, status & control. Event and time are easy. But while I can read and write the others, I can’t really determine what the bits mean. The status is 12bits & control 20bits.I am hoping there is someone who might have undocumented specs on the HP MRC as it was used in quite a few other instruments over the years. Any help or pointers is appreciated.
Share multiple MIPI screens with one microcontroller. - Page 1
Forum section: electronics / general

author: luiHS
author_rank: Frequent Contributor
timestamp: November 03, 2022, 07:23:47 am
content: Can someone suggest me an integrated circuit that can be used to share several MIPI screens with one microcontroller?I have only found electronic switches, with one input and several outputs, to connect several screens, but selecting only one of them, like this FSA641UMX.https://www.mouser.es/ProductDetail/512-FSA641UMXBut what I need is that two MIPI screens are displaying at the same time the same video that is playing an STM32H7.
Holtek Micro Controllers - Page 1
Forum section: electronics / general

author: jerryk
author_rank: Regular Contributor
timestamp: October 19, 2022, 09:13:54 pm
content: I have a Holtek HT50F80 that I'm trying to find a replacement for. I think it's an OEM part as I cannot find it anywhere. My guess is it's an off the shelf MC from Holtek that has been custom marked but am not sure which it might be. I have studied the circuit and have some possible candidates for replacement but was wondering if there is some way to cross reference the OEM number. Also I'm looking at the Holtek ecosystem and wondering if anyone has experience programing Holtek MCs that they might share.Jerry

author: slugrustle
author_rank: Frequent Contributor
timestamp: October 19, 2022, 11:21:00 pm
content: There's nothing on Holtek's english language site, not even in EOL notices.I did a little searching on baidu and came up with two references to an HT50F61, which is the closest thing I could find.https://b2b.baidu.com/land?id=bc9ff009f50959fe5cbfc6deb4e68d5510has the title "HT50F61(HT66F004) SOP20 HOLTEK".http://www.icdemi.cn/HT50F61_SOP20_106812.htmlhas some text description of an HT50F61, but no datasheet.You could try reaching out to Holtek's customer support. They do have a dedicated website for the U.S.; here's the contact page:https://holtekusa.com/contact.phphttps://jaycarlson.net/pf/holtek-ht-66/has a nice writeup of programming an HT66F0185. It's part of the "Amazing $1 Microcontroller" series.

author: bidrohini
author_rank: Regular Contributor
timestamp: October 31, 2022, 04:19:13 am
content: I think you can submit your query here too:https://www.holtek.com/question
Going round in circles. - Page 1
Forum section: electronics / general

author: paulca
author_rank: Super Contributor
timestamp: October 24, 2022, 12:36:21 pm
content: I'm back to trying to use ESP8266 / ESP32s with their AT command framework and not my own custom firmware. I think if I can get reuseable code to interface that and make it easy to use it makes the effort of using them easier and more portable. Mostly that the V2.0.0 of the Espressif AT firmware support MQTT out of the box now (and HTTP on the ESP32).While developing it I ran into issues, it was a bear to solve, when I got there and needed to add more functionality I decided I need a "serial tap" to see both sides of the UART coms and get an understanding of what was happening on the wire.I just happened upon a tutorial on using the USB-C port on the Black Pill board as a virtual com port. Plenty of available UARTs so I created 2 UARTs Rx only and wrote code to read to idle both UARTs and send them one line at a time to the VCOM port with a > or a < in them to denote direction.It didn't work. I spent all Sunday evening diagnosing why. To the point of tearing the test rig apart, reassembling and trying to scope the UART. Failing because of PC USB noise induced and my cheap scope triggering nuts.In the end I connected the logic analyser to the UARTs and immediately spotted the problem, stepping through the STM32 HAL code confirmed it (I think). I was reseting the ESP8266 to make it talk on the UART. When you reset the ESP8266 it pulls it's UART lines low and holds them low until it re-init's them. This is seen as a BREAK condition by the STM32 and instead of firing the RxEventCallback it instead fires a RxAbortCallback. As I was re-launching the DMA receive to idle in complete call back, it never got restarted. It was late, I gave up.It was this morning the realisation hit me. I spent a day trying to create a debug tool and ended up debugging IT with the tool far, far, far more capable and should have been on the bench and connected from the start.... the logic analyser. It's smaller, faster, has 12 channels and software to pull the UART apart and show things you would miss like BREAK conditions and other control stuff you weren't aware was happening. Like Autobaud for example.
Trying to identify this Chinese microcontroller - Page 1
Forum section: electronics / general

author: LarryR
author_rank: Contributor
timestamp: September 23, 2022, 01:47:10 pm
content: I recently purchased a micro-controlled AM/FM/SW receiver board from Aliexpress and although the board works, the Am band only has European 9KHz steps.I need North American 10KHz steps and want to edit the FW.The uP on the board is aYA3018Bthat controls a BK1088 radio chip.An image of the chip is attached.There are programming pads on the board (photo below) but they are not identified in any way.I have searched high and low without finding anything about this micro.I created a partial schematic of the board as well.Any ideas?thanks!...Larry

author: PCB.Wiz
author_rank: Super Contributor
timestamp: September 24, 2022, 03:12:11 am
content: Google finds one reference to YA3018B on a 8051 website, so you could search for 8051 vendors with TQFP32 package parts and similar pin mapping.Check the VDD and VSS pins and then check the 32Khz Osc pins, as those tend to be fixed.Note that there is a high chance the code is locked, in the part, so "edit the FW." may take more effort than you think.

author: LarryR
author_rank: Contributor
timestamp: September 25, 2022, 03:17:56 pm
content: Thanks. I've looked at matching up the dedicated pins on various lqfp32 uP devices but haven't found anything yet.There is a wealth of info on using an ATmega328 to drive the BK1088 so I can always go that route.

author: amyk
author_rank: Super Contributor
timestamp: September 25, 2022, 07:51:21 pm
content: AT89C5131 at least has the oscillator pins in the right place.

author: LarryR
author_rank: Contributor
timestamp: October 21, 2022, 05:31:56 pm
content: Well, it's definitly not an ST uP clone of any kind. I just tried my STLink on the 3 (what appear to be) programming pins, in various combinations and nada.Pin 1 is GND and pin 32 is Vdd. Pins 2-3 are the xtal.That's all I have so far.I've been pouring through various 8/16/32 bit uP pinouts but nothing matches so it' was probably a custom or cheap domestic Chinese no-name uP.Oh - and for those who have this radio, you can get it to work while charging the battery by lifting pin 4 of the processor and tying it high to pin 32 through a 2K res.The display will always show a full battery but at least it won't turn off the radio when you plug in a USB conn.
Wolfgang Denk - the father of U-Boot passed away  - Page 1
Forum section: electronics / general

author: DC1MC
author_rank: Super Contributor
timestamp: October 22, 2022, 12:08:02 pm
content: I sadly have to announce that Wolfgang Denk, the man behind the U-Boot, a fundamental piece of OSS that I'm sure many of you have used and continue to use, passed away.It is a great loss for the Open Source community and for software development, please spend a moment to remember him and his contributions.Very sad,DC1MC
Inertial Measurement  Unit on Phil's Lab LittleBrainPlusPlus  STM32F411 - Page 1
Forum section: electronics / general

author: sarbog
author_rank: Contributor
timestamp: October 19, 2022, 02:17:03 am
content: I got lucky and found an open source driver for the MPU-6050 IMU that Phil's Lab used on his LittleBrainPlusPlus pcb. It works! I want to be sure and give credit and thanks to the original sources so see below;Basic bring up of the boardThe IMU driver;https://github.com/leech001/MPU6050I am using STM32 Cube Ide and yes some problems but I was able to work around them.I recorded the output using Mac Quicktime Player but I can't upload the .mov file so I will attach a screen shot.I have not yet set up Serial Studio to plot the output of the IMU but you get the idea. I have more to learn about this.Stephen
A cool tool for observing/plotting serial data - Page 1
Forum section: electronics / general

author: sarbog
author_rank: Contributor
timestamp: October 15, 2022, 09:10:13 pm
content: Here is a cool tool I found useful for observing and plotting serial data from my LittleBrainPlusPlus STM32F411 board with a barometric pressure sensor.https://github.com/Serial-Studio/Serial-Studio

author: Karel
author_rank: Super Contributor
timestamp: October 15, 2022, 10:52:09 pm
content: Here's another cool tool for plotting timeseries:https://www.teuniz.net/edfbrowser/

author: sarbog
author_rank: Contributor
timestamp: October 15, 2022, 10:55:50 pm
content: Very cool! Thankyou.

author: ralphrmartin
author_rank: Frequent Contributor
timestamp: October 16, 2022, 01:44:30 pm
content: rrdtool is also worth checking out, especially for long term data collection.https://oss.oetiker.ch/rrdtool/Its often used for collecting network data, but is quite general.

author: voltsandjolts
author_rank: Unknown
timestamp: October 16, 2022, 07:00:14 pm
content: Quote from: sarbog on October 15, 2022, 09:10:13 pmCan you point me to documentation for the serial protocol (that an mcu has to send)?I found the doxygen internal code documentation but was looking for a 5min tut really :-)

author: sarbog
author_rank: Contributor
timestamp: October 16, 2022, 07:22:22 pm
content: For Serial Studio the mcu should start a frame with /* and end with */ and the data values separated by ','Here is an exampleuint8_t usbBuf;uint16_t usbBufLen;usbBufLen = (uint16_t) snprintf(usbBuf, 64, "/*%.2f, %.2f, %.2f*/\r", rawPressure_Pa, procPressure_Pa, procRelAltitude_m);CDC_Transmit_FS(usbBuf,usbBufLen);It will look like/* 40125.34, 40125.21, 0.15 */

author: voltsandjolts
author_rank: Unknown
timestamp: October 17, 2022, 06:51:29 pm
content: Thanks sarbog, ...and I've now found the relevant documentation also...https://github.com/Serial-Studio/Serial-Studio/wiki/Communication-Protocol
How can i read my pre code that debugged to DSP? - Page 1
Forum section: electronics / general

author: tlhsglm
author_rank: Contributor
timestamp: October 15, 2022, 09:29:49 am
content: Hi everyone,I uploaded a code about 1 month ago to MC56F8345VFGE. but I wrote a lot of code. when I tried one i worked and I was negligent in separating working code, my dummy. I forgot which one was the last. I had uploaded the code on the chip without a password. How can I read the code on the chip?The ide i use is codewarrior for mcus eclipse

author: paulca
author_rank: Super Contributor
timestamp: October 17, 2022, 10:41:40 am
content: If the DSP supports a code read, then the datasheet should outline how to do it. If it doesn't, then it would be a long path studying on firmware hacking to see if you can hack it back out.In other regards, I think you just learnt your first? hard lesson in code hygiene. There are no panaceas. Either be strict with versioning/history/tags or pay the peril with losing working code because "you fixed it" and broke it.Some IDEs have local history caches which might help you reconcile it manually. If not, then I'm sorry, but the price you will pay fixing your code will just put more ephamisis on code hygiene.I'm not saying I rigorously commit all my personal projects to version control. I don't. However, when I make a screw up and lose working code as a result of not doing so, then I already know it's my fault, accept it and move on.I don't think there are other ways. Version control pain or lost code pain. Pick your poison.
ESD protection b/w USB-C receptacle and MCU? - Page 1
Forum section: electronics / general

author: girishji
author_rank: Contributor
timestamp: October 15, 2022, 07:59:05 pm
content: I cannot find definitive answer on this subject. I am looking at example circuit with Nuvoton MCU (M487) with HS USB. In their example D+ and D- lines from the MCU pins are directly connected to USB receiver. In the similar example of FTDI HS USB MCU (FT2232) they use a ESD protection device on the USB data lines (like Nexperia IP4220CZ6).What is the rule regarding using ESP protection for USB-C data lines when designing pcb? Should one follow manufacturer's reference design? Does the length of traces of differential pair matter?Thank you.

author: ataradov
author_rank: Super Contributor
timestamp: October 15, 2022, 09:30:02 pm
content: The rule is how much cost it will add to your device vs how many returns do you expect and can handle. If you want to be on a safe side, always add ESD protection.I personally never do, never seen any issues. But I don't ship millions of devices. For mass produced things I'd at least add a footprint so that you could easily adjust if things don't work out based on the first batches.

author: mon2
author_rank: Frequent Contributor
timestamp: October 15, 2022, 10:35:11 pm
content: Our 2 bits..1) we do ship high volumes of products and back it up with a 5 year replacement warranty. Respectively, we do not want the product back. ESD protection is a must for our designs.2) You have 2 separate questions:a) for the ESD protection of USB 2.0 HS interface, recommend the TI ESDS312 device. From our past reviews, it is the best in the industry.https://www.digikey.ca/en/products/detail/texas-instruments/ESDS312DBVR/9655797?utm_source=findchips&utm_medium=aggregator&WT.z_cid=ref_findchips_standard&utm_campaign=buynowIf the cost is too high, consider to contact Socay in Shenzhen, CN - we have used their devices for the past 10+ years and have met them numerous times at trade fairs in HK. Solid company and they private label for some of the major brands. A quality ESD TVS array for 2.0 HS will be ~$0.05 USD or less in a full T&R qty out of Shenzhen. They do impose a MOQ.b) the other question is about PCB layout:https://www.microchip.com/content/dam/mchp/documents/OTH/ApplicationNotes/ApplicationNotes/doc7633.pdf* one of many articles on the internet about high speed PCB designs that will be a must read before you get started* also, very important is to inform your PCB shop of the same details that your end PCB layout is impedance controlled - supply them with the full details of what you are doing and they will tweak the PCB stackup (BTW - should be 4 Layers or more) so that your finished PCB is able to support the requirement using the laminate they use to build your PCB. A good shop will even perform testing to confirm the finished PCB is able to meet the requested specs using a TDR tool. JLC does not do this but our FTDI USB 2.0 HS designs have worked out just fine.
Replace Eprom by Flash. Pinout. - Page 1
Forum section: electronics / general

author: luiHS
author_rank: Frequent Contributor
timestamp: October 08, 2022, 08:31:38 pm
content: Some time ago I redesigned the PCB of an old board, and among other things I replaced the Eprom DIP memories with PLCC32. What I tried to do some time later is to use Flash memory instead of Eprom, both PLCC32.But I got a surprise, the pinout is identical except for 2 pins that are swapped, A18 for Vpp/WE. I don't understand why the manufacturer decided to make this change, what use it has besides preventing Eprom or Flash from being used on the same board without any other change. This has forced me to redesign the PCB by changing only those two pins.The Eprom is a 27c040 that I replace with a Flash SST39SF40. I already did something similar a long time ago in another old board, although in that case there were other changes to make and also the original Eprom was DIP and the Flash I put TSOP.

author: DavidAlfa
author_rank: Super Contributor
timestamp: October 09, 2022, 12:37:02 am
content: Seems strange to me, that's clearly intentional, they must have done it for some reason!But go figure why!

author: SiliconWizard
author_rank: Super Contributor
timestamp: October 09, 2022, 12:56:23 am
content: I wanted to check in the Jedec std, but unfortunately I don't have a full copy of it. (Should be JESD21-C.)It's likely that one of them doesn't follow the Jedec std. Which is apparently not uncommon for EPROMS and Flash of that era.

author: TomS_
author_rank: Frequent Contributor
timestamp: October 09, 2022, 07:39:46 am
content: I had to make some adapter boards for some reverse engineering projects to swap A18 from the original socket/footprint to the other pin to suit a SST39SF040.These use a Winslow Adaptics W9324-ZC-160 "PLCC plug", a PCB that is more or less 1:1 pin to pin, and a standard 32pin socket.Would have been nice if they just followed the same pinouts, but I suspect I would have still needed these adapters anyway because the WE pin was connected to an additional address signal to permit the use of 8mbit ROMs in the original device, and during normal operation this would be low. So my adapter also has to pull WE high to prevent writing to the ROM.

author: Gribo
author_rank: Frequent Contributor
timestamp: October 11, 2022, 12:36:34 pm
content: If you can manage with a smaller device, the 28F020 (Intel) or the AM29F020 (AMD) fit the original pinout.
Forest Electronic Developments-WIZ-CMX3 C compiler/RAD and PIC Key MX programmer - Page 1
Forum section: electronics / general

author: djsb
author_rank: Super Contributor
timestamp: October 10, 2022, 12:12:56 pm
content: Just thought I'd try out the WIZ-CMX3 C compiler/RAD and PIC Key MX programmer from Forest Electronic Developments in the UKhttp://www.fored.co.uk/They both cost me £35 for both on that auction site. The main reason for trying them out is the support for the 18f series as well as the 16f series of PIC's. I mainly use the CCS PCM compiler (Just upgraded to V5.110 for £25 as a special offer) but it can't hurt to try another compiler. We shall see if it's any good. Has anyone else tried the FORED products from Robin Abbott?
STM 32F4 - output pin "speed" setting - what does it actually do? - Page 1
Forum section: electronics / general

author: peter-h
author_rank: Super Contributor
timestamp: October 04, 2022, 07:08:50 pm
content: This has come up here before so I did some careful measurements.Firstly, it does not appear to be done by paralleling different size MOSFETs, because the data sheet has just one current capability spec:It looks like a slew rate limit - maybe done by switching in of different capacitors into the signal driving the output MOSFETs:The last-1 option seems the one to go for because ir produces less ringing (not evident in the traces below) and the last two show the same risetime, so limited by the 350MHz Lecroy 3034 scope + 1GHz probe. Some devices ask for a fast risetime. One Adesto SPI FLASH wants 3ns and a Lyontech SPI RAM wants 1.5ns!

author: redkitedesign
author_rank: Regular Contributor
timestamp: October 05, 2022, 09:18:22 am
content: Quote from: peter-h on October 04, 2022, 07:08:50 pmThe datasheet is about the DC rating, not about the transition. Since the speed setting seems to affect the transistion (and is called speed setting, not strength setting!) the final output drive strength can very well be the same for all speed settings.Note that IC manufacturers can make any shape and geometry of FET they like. A single channel FET with multiple (overlapping) gates is very well possible, and can thus be modulated in channel size and therefor resistance. Note that capacitors are expensive in IC design, they take too much space.

author: peter-h
author_rank: Super Contributor
timestamp: October 05, 2022, 09:58:01 am
content: OK; they may have done that.What surprises me is just how easy it is to get really clean waveforms with this CPU. Makes EMC compliance so much easier.

author: thm_w
author_rank: Super Contributor
timestamp: October 05, 2022, 09:00:54 pm
content: Can dig into the references here if you really want:http://www.ics.ee.nctu.edu.tw/~mdker/International%20Conference%20Papers/2008%20ICECS_Design%20on%20mixed-voltage%20IO%20buffers%20with%20slew-rate%20control%20in%20low-voltage%20CMOS%20process.pdfBut yeah not having IO switching at FCPU is much nicer for many scenarios.

author: T3sl4co1l
author_rank: Super Contributor
timestamp: October 05, 2022, 11:22:20 pm
content: More likely implemented by varying the number of transistors driving the final inverter. So Miller plus drive resistance controls slope, while current capacity is independent.Nice on the AVRs that have it, too (XMEGA, Dx).Tim
TI ms432e401y I2C configuration - Page 1
Forum section: electronics / general

author: Thomas83
author_rank: Contributor
timestamp: October 18, 2022, 04:18:15 pm
content: Hi everyone,I use a msp432e401y microcontroller and I need to configure I2CC5 (pin 120 & 121) as slave and configure I2C5(pin 95 & 96) as master (cf. attached photo).This is the first time I see the same i2c (i2c5) module on different pins.How can I configure I2C?Thanks.
Need a datasheet for XC68HC58DW - Page 1
Forum section: electronics / general

author: jmarkwolf
author_rank: Regular Contributor
timestamp: October 02, 2022, 07:53:41 pm
content: I need to find a datasheet for the old XC68HC58DW, in order to identify the functionality.A client of mine needs 2000 of them, but as far as I can tell it's long obsolete since the late 90's.I'm assuming it is a microcontroller but can't be sure without a datasheet. I'm wondering if a little adapter could be fashioned to allow a modern part to solder directly to the footprint on 2000 original PCB's, with some software updates of course.

author: PCB.Wiz
author_rank: Super Contributor
timestamp: October 02, 2022, 08:15:38 pm
content: What package ?Google finds some 68HC58 on Aliexpress and suggests the 68HC58 is a Link ControllerMany of those upper 68HCxx part numbers are peripherals - eg 68HC68 is a CMOS Serial Real-Time Clock With RAM

author: woofy
author_rank: Frequent Contributor
timestamp: October 02, 2022, 08:23:45 pm
content: Looks like a bus interface,https://datasheetspdf.com/pdf-file/717132/Pioneer/XC68HC58FN/1

author: Benta
author_rank: Super Contributor
timestamp: October 03, 2022, 12:19:49 am
content: It's an automotive data link controller (DLC) for, eg, J1850 comms. Here you go:https://datasheetspdf.com/pdf-file/374731/Motorola/MC68HC58/1Don't be confused by the "XC"- thing, thats's Motorola SOP.

author: jmarkwolf
author_rank: Regular Contributor
timestamp: October 03, 2022, 02:26:20 pm
content: You guys are awesome! Thanks.
DSP using STM32F429-DISC1 Discovery Board - Page 1
Forum section: electronics / general

author: sarbog
author_rank: Contributor
timestamp: September 29, 2022, 07:47:26 pm
content: I came across a project to implement DSP on an STM32 microcontroller, see links below. I implemented it on mySTM32F429-DISC1 Discovery board.Part 1:Part 2:More Info:https://www.eetimes.com/fundamentals-of-embedded-audio-part-3/Results are;The input sine wave is 7 kHz in yellow.The output is in blue.The sampling rate is 450 k samples/secFuture plan is to place DSP such as a digital filter between ADC in and DAC out.

author: betocool
author_rank: Regular Contributor
timestamp: September 30, 2022, 11:54:01 am
content: Very cool stuff, Ping Pong Buffering.I first came across that concept in 2007, on a DSP. Been using it ever since. I do a lot of audio processing stuff at 48 or 96 KHz. My applications are really simple, but I haven't missed a DSP since.Cheers,Alberto
Infineon XC166 Erase - Page 1
Forum section: electronics / general

author: affa
author_rank: Newbie
timestamp: October 05, 2022, 10:29:50 pm
content: Hi all,I am trying to repair a board with an infineon XC161CJ. Its fried.However it seems the earliest time for possible delivery / last time buy is mid/late 2023. I do however, have a few of these I have salvaged from other boards. Problem is that they are locked and I cannot erase them.Apparently I need the password to temporarily disable the protection in order to erase the flash. No, I don't care about the code on the salvaged chips, I'm not trying to copy or pirate it. I just want to erase the chip so I can load what I need on it afterwards.Does anyone know if there's a way to do this? I can talk to the chip via BSL using memtool and minimon.Thanks in advance.
touch screen for Iot applications - Page 1
Forum section: electronics / general

author: arivel
author_rank: Regular Contributor
timestamp: September 22, 2022, 07:14:38 am
content: hello everyone, I would like to ask your opinion.I would like to carry out the following project:https://www.instructables.com/ESP8266-01-IoT-Smart-Timer-for-Home-Automation/to control the three small PCBs 8266-01 I don't want to use my mobile phone but something to always keep on the bedside table. then I thought of small capacitive touch screens with wifi such as the one below at low cost:https://it.aliexpress.com/item/1005003966169573.html?spm=a2g0o.productlist.0.0.56bb4689DX80q3&algo_pvid=b809e72f-d3d7-4941-9408-13ccaf109b98&algo_exp_id=b809e72f-daf9-13p_id=b809e72f-daf9-13p_id=b809e72f-daf3if you have a better one to suggest, please do so.then replace the touch screen firmware with freeRTOS and use the browser.can you do it this way?

author: darkspr1te
author_rank: Frequent Contributor
timestamp: September 22, 2022, 09:14:07 am
content: Quote from: arivel on September 22, 2022, 07:14:38 amThose are neat looking devices. I would say try them out, also think of adding a HA (home assistant hub) , it makes controlling-updating multiple modules a breeze and data capture too.darkspr1te

author: arivel
author_rank: Regular Contributor
timestamp: September 25, 2022, 04:26:34 pm
content: Thanks for the reply.these smart screens are beautiful.the only one that comes close to what I have to do is the meta portal but only for the backup battery in case of power failure.I have to make an alarm clock and a music player, the wireless NTP function for the alarm clock is also essential, and the weekly programming of the alarms is also essential.then as regards the music player it would be nice to use a DAC and an amplifier of my choice, certainly not that of the smart display which has small speakers and an unknown audio sector, I tried to search the network for hardware details but nothing is found. or transmit through the wi-fi to some wav player module or to a chromecast.

author: rooppoorali
author_rank: Regular Contributor
timestamp: September 26, 2022, 07:20:46 pm
content: You can take a look at Adafruit TFT feather:https://learn.adafruit.com/adafruit-esp32-s2-tft-featherThis one is an ESP32 board with an in-built TFT screen. Good for IOT projects.
48 pin version of MC9S12C32? - Page 1
Forum section: electronics / general

author: JohnnyP
author_rank: Regular Contributor
timestamp: October 05, 2022, 03:24:27 pm
content: I can't find any stock of the 48 pin version.This is a 25MH version: MC9S12C32CFAE25Is the 48 pin version being discontinued?
Time Interval In STM32 - Page 1
Forum section: electronics / general

author: Md_Aslam
author_rank: Contributor
timestamp: September 12, 2022, 10:33:47 am
content: I want to set the Timer/Counter of STM32 as such that it(timer) should START by the external trigger on one GPIO pin and should STOP by another GPIO pin of the STM32. After stop I want to have the value of counter OR the time elapsed from START pulse to STOP pulse. Basically I have two pulse signal and I want to measure the delay between them using only STM32.Any help would be appreciated.

author: AndyC_772
author_rank: Super Contributor
timestamp: September 12, 2022, 10:40:11 am
content: First, buy your STM32, which is probably the hardest part right now.STM32 timers have the ability to gate the clock with an external signal, but I'm not aware of any way to configure them so that they start on one GPIO and stop on another.An external XOR gate may be useful.

author: pcprogrammer
author_rank: Super Contributor
timestamp: September 12, 2022, 10:47:20 am
content: You can use a free running timer and capture the value on the start signal in the first capture register, and capture it on the stop signal in the second capture register. Then do the math to get the interval between them.This way you can do it with two separate pins.Get the manual for the STM32 MCU you plan to use and check out the timer section.Here is a link to documentation for the STM32F1 series.https://www.st.com/en/microcontrollers-microprocessors/stm32f1-series.html#documentation

author: rooppoorali
author_rank: Regular Contributor
timestamp: September 25, 2022, 10:24:03 am
content: You may get help from the following contents:https://community.st.com/s/question/0D50X0000BI1ysiSQB/how-to-trigger-a-timer-to-start-from-an-external-rising-edgehttps://deepbluembedded.com/stm32-timers-tutorial-hardware-timers-explained/
STM32CubeMX  sprintf does not work with float - Page 1
Forum section: electronics / general

author: ebclr
author_rank: Super Contributor
timestamp: September 23, 2022, 10:17:21 am
content: I have those 2 similar routines, one to write an integer to the LCD and the other to write a float, the integer ones work perfectly but the very similar one for float does not work, I'm guessing that sprintf fails for a float on stm32cubemx compiler, any tips on that?void writeInteger(LiquidCrystal *lcd, int valueToBedisplayed, uint8_t MaxLenghtOfDigitis){char StringValue;sprintf(StringValue, "%d", valueToBedisplayed );size_t Lengh = strlen(StringValue);for (uint8_t i = 0; i < Lengh; i++){write(lcd ,*(StringValue+i));}}void writefloat(LiquidCrystal *lcd, float floatToBeDisplayed, uint8_t MaxLenghtOfDigitis){char StringValue[MaxLenghtOfDigitis+2];sprintf(StringValue, "%f", floatToBeDisplayed );size_t Lengh = strlen(StringValue);for (uint8_t i = 0; i < Lengh; i++){write(lcd ,*(StringValue+i));}

author: langwadt
author_rank: Super Contributor
timestamp: September 23, 2022, 10:21:59 am
content: mcu settings: -u _printf_float

author: peter-h
author_rank: Super Contributor
timestamp: September 23, 2022, 11:10:17 am
content: Have a read around herehttps://www.eevblog.com/forum/microcontrollers/is-st-cube-ide-a-piece-of-buggy-crap/msg4363183/#msg4363183You can have lots of fun with the Newlib libc.a library and it's duff mutexes, its use of the heap, etcIn the end I replaced it with an open source one - all in the thread and herehttps://www.eevblog.com/forum/programming/best-thread-safe-printf-and-why-does-printf-need-the-heap-for-f-etc/msg4325479/#msg4325479

author: DavidAlfa
author_rank: Super Contributor
timestamp: September 23, 2022, 10:15:38 pm
content: I remember some option in the compiler/linker whatever settings to enable floats in printf

author: DavidAlfa
author_rank: Super Contributor
timestamp: September 24, 2022, 09:01:49 am
content: As I said, here it is

author: peter-h
author_rank: Super Contributor
timestamp: September 24, 2022, 10:53:01 am
content: That gives you the crappy Newlib library from 1990 which uses empty mutex function stubs, and the heap (which also has empty mutex function stubs)Best to follow the instructions I posted and replace the printf family entirely.But if not using an RTOS and the program is just simple, it doesn't matter. You do need to set up a heap though (_sbrk etc).
INFINEON TriCore 12209896 datasheet - Page 1
Forum section: electronics / general

author: DC1MC
author_rank: Super Contributor
timestamp: September 24, 2022, 09:09:58 am
content: Hello all, looking for a datasheet of the part in the title, is an automotive INFINEON part from long ago, any information will be appreciated, including the equivalent non-automotive part if exists.Many thanks,DC1MC
Motorola 1820-2099 - Page 1
Forum section: electronics / general

author: jrharley
author_rank: Regular Contributor
timestamp: September 10, 2022, 04:36:16 pm
content: Greetings EEVBLOG Forum,Just a general inquiry to the field:Does anyone have access to a datasheet for the Motorola 1820-2099 microprocessor or know where one can be found? My searches so far have yielded nada.Any help is appreciated!Best,JRH

author: bdunham7
author_rank: Super Contributor
timestamp: September 10, 2022, 04:44:17 pm
content: Due to the way the forum is organized and used, multiple threads are usually not helpful and create problems. Also, I think you are very unlikely to get an answer in this section, because the specific reason you can't find info on that chip is that it has a proprietary HP part number, as many/most HP parts from that era do. So it is an HP issue, not a Motorola issue. I've answered your question in the other thread and suggest you delete this one. HTH

author: mikerj
author_rank: Super Contributor
timestamp: September 11, 2022, 09:42:17 pm
content: That's a Motorola MC6802P CPU, effectively a 6800 with a little bit of onboard RAM. These are available on eBay, but beware of the usual fake/remarked ICs from China.

author: jrharley
author_rank: Regular Contributor
timestamp: September 22, 2022, 12:41:06 am
content: Not sure I completely follow bd, but I appreciate the guidance. The Dude abides, I'll delete the post in a few.Thanks for the input mikerj! I need all the help I can get.JRH
EEG circuit with ADS1299. Help on schematic, SSI comms and PCB layout - Page 1
Forum section: electronics / general

author: frusciante89
author_rank: Newbie
timestamp: August 28, 2022, 11:57:43 am
content: Hello everyone!I am a robotics engineer based in London and I have interest in sensing and electronics. As a part of a personal project, I want to design my own EEG setup (potentially to control a robot). I stumbled open work done by other people/companies, and the ADC of choice seems to be the ADS1299 from Texas Instrument.I have a lot of experience with analog PCBs (I design PCBs for guitar amps), however I never had the chance to do SMD boards for sensing: I figured this would be a great learning experienceI have created my schematics and layouts in Eagle and the board is basically completed. I would love to have some expert opinion o the results, and any suggestions you might have that might increase the chances of successA couple of things to note/doubts:- I'm using a 2 layers PCB- ground planes and fence vias on both sides- I'm using an external oscillator for the clock: not sure the location of it on the board is best to avoid noise/interference- I tried to separate the analog and digital signals, not sure if this is the best practice- I'll be using SPI communication with a Raspberry PI (never used SPI before, so I hope the wiring is correct)- I kept the supply and filtering components quite far from the chip and the digital signals as much as possiblePlease let me know your thoughts, hope to learn more about circuit design and add some knowledge to my toolboxAndrea

author: rooppoorali
author_rank: Regular Contributor
timestamp: September 05, 2022, 11:02:02 am
content: I think it's better to make a prototype. From design, everything often looks OK. But after printing and testing, many scopes for modification are found.

author: Fraser
author_rank: Super Contributor
timestamp: September 15, 2022, 09:54:22 pm
content: This thread may be of interest to the OP…….https://www.eevblog.com/forum/testgear/how-to-solve-the-ti-ads1299-eeg-demo-kit-is-not-save-for-humans-problem/I have no strong views on the matter but the creation of an EEG system that someone else will use appears to have some liability issues.Fraser
regarding atmega168-20mu - Page 1
Forum section: electronics / general

author: rajbuddy
author_rank: Contributor
timestamp: September 16, 2022, 09:20:56 am
content: Hello lovely people,Can you please suggest me an alternative for atmega168-20mu?Regards,Raj

author: wraper
author_rank: Unknown
timestamp: September 16, 2022, 09:31:39 am
content: ATMEGA168P-20MU should work fine. ATMEGA168PA and ATMEGA168PB could be used too but there are some pin differences you need to take into account. You may need to change fuse configuration, in some cases firmware modification may be needed.http://ww1.microchip.com/downloads/en/appnotes/doc8035.pdfhttps://ww1.microchip.com/downloads/en/Appnotes/Atmel-42374-Differences-between-ATmega48_88_168-Variants-and-the-new-ATmega48_88_168PB_ApplicationNote_AT06609.pdf

author: rajbuddy
author_rank: Contributor
timestamp: September 16, 2022, 09:44:07 am
content: Will it be suitable to chipcard iso 7816 as i need to connect to ti?

author: fchk
author_rank: Frequent Contributor
timestamp: September 16, 2022, 11:06:08 am
content: Quote from: rajbuddy on September 16, 2022, 09:44:07 amAVR UARTs don't have support for ISO7816. A PIC24FJ128GB202 would be a much better solution from a technical standpoint.https://www.microchip.com/en-us/product/PIC24FJ128GB202fchk
[Lilygo TTGO T8] Pins? - Page 1
Forum section: electronics / general

author: Winfried
author_rank: Contributor
timestamp: September 12, 2022, 01:39:36 pm
content: Hello,I have a few newbie questions about working with aLilygo T8 ESP32-S2:1. Instead of the ill-located JST plug, can I connect the battery's red wire to the TTGO's "VBAT" pin, and expect it to work the same (powering the board, or recharging when the board is powered by a wall plug)?2. Generally speaking, are some pins hard-wired for a given use, eg. 17/TX + 18/RX? IOW, even if I change the settings in the source code, only specific fins can perform specific tasks?3. What are "VBUS" and "VDD3V3"?Thank you.

author: mikerj
author_rank: Super Contributor
timestamp: September 12, 2022, 08:37:09 pm
content: Quote from: Winfried on September 12, 2022, 01:39:36 pmThe JST connector is unfortunately the only option that retains full functionality. You can connect your battery (or other external power source) to the +5v pin and it will work, but the downsides are:1) It bypasses the polyfuse overcurrent protection that the JST circuit includes2) It bypasses the charger IC. Also I suspect that plugging the board into a USB might apply VBUS (minus a diode drop) to the +5v pin which wouldn't be a great idea if there is a Lipo connected. Definitely check this out.The "BAT" pin is a switched power output for supplying external circuits, as is the 3V3 pin. Both of these pins are enabled by the presence of VBUS or a high level on the ESP GPIO 14 pin.Quote from: Winfried on September 12, 2022, 01:39:36 pmMost of the pins can be configured for at least two functions, some as many as five. 17 and 18 can be configured for GPIO, UART, DAC or ADC by your code. Worth downloading the ESP32S datasheet and use it in conjunction with the TTGO board schematic on Github.https://www.espressif.com/sites/default/files/documentation/esp32-s2_datasheet_en.pdfQuote from: Winfried on September 12, 2022, 01:39:36 pmVBUS is the 5v supply that comes from a USB charger or computer when plugged into the USB connector.VDD3V3 is the output of a 3.3v regulator that is powered from either the battery or VBUS when the USB is plugged in. The VDD3V3 pins have 3.3v on them all the time that the board is powered but as mentioned above the 3V3 pin is switchable output which derived from VDD3V3.

author: Winfried
author_rank: Contributor
timestamp: September 13, 2022, 11:11:08 am
content: Thanks very much.
STM32H747-757, Dual core question. - Page 1
Forum section: electronics / general

author: luiHS
author_rank: Frequent Contributor
timestamp: September 10, 2022, 10:59:07 pm
content: Hi.I have never worked with multi-core microcontrollers before. These H747-757 have two cores, a Cortex M7 and an M4. I have to make a design that uses this microcontroller to play videos on small MIPI screens, and control several hundred WS2813 digital LEDs.At first I thought of just using the M7 core to do it all. Now I think that I could take advantage and dedicate the M4 core to control the LEDS.But I have two problems:1.- The microcontroller will have an encrypted bootloader loaded to provide updates with files on a micro SD card.2.- The microcontroller will receive commands through the serial port or CAN bus, to indicate which video should be played and which LED light patterns should work.So I don't know if it is possible for both cores to share access to the same micro SD card slot, and if both could also share data reception through the same UART or CAN bus port.Using two serial ports, one for each core could be acceptable, I don't know if there are also two CAN bus ports and one can be assigned to each core. And although the microcontroller can have two micro SD card slots, it would not be a very elegant design, and it would even take up too much space on the board for certain designs where there is no more space available. Fundamentally, what I see as more complex is how to share the same SD card slot between the two cores.

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: September 10, 2022, 11:26:36 pm
content: Have you read AN5557 (here:https://www.st.com/resource/en/application_note/an5557-stm32h745755-and-stm32h747757-lines-dualcore-architecture-stmicroelectronics.pdf)?

author: luiHS
author_rank: Frequent Contributor
timestamp: September 11, 2022, 07:20:34 pm
content: Quote from: Sal Ammoniac on September 10, 2022, 11:26:36 pmThanks, I'll read it.
"Sipeed lichee rv-nezha CM C906 risc-v" - WEB Browser - Page 1
Forum section: electronics / general

author: FlyingDutch
author_rank: Regular Contributor
timestamp: September 05, 2022, 04:36:43 pm
content: Hello chaps and chapsses,I have been tinkering with the "Sipeed lichee RV-Nezha" board (RISC-V CPU) for several days. See links:https://www.aliexpress.com/item/1005003594875290.html?spm=a2g0o.productlist.0.0.303a5654d4StWS&algo_pvid=a3b708ed-dc3d-4d33-862f-28ac0915437d&algo_exp_id=a3b708ed-dc3d-4d33-862f-28ac0915437d-0&pdp_ext_f=%7B%22sku_id%22%3A%2212000026453901220%22%7D&pdp_npi=2%40dis%21PLN%21103.07%21103.07%21%21%2118.86%21%21%402100bb5116623947720821051ed8ee%2112000026453901220%21sea&curPageLogUid=kgeMcoqxZYtahttps://pl.aliexpress.com/item/1005003751223526.html?spm=a2g0o.order_list.0.0.34d51c24ycYTa0&gatewayAdapt=glo2polThis board is based on a one-core "Alwinner D1" chip (RISC-V) . I launched a Debian (Sipeed) Linux distribution from uSD card - here is quick tutorial how to run OS from uSD card:https://wiki.sipeed.com/hardware/en/lichee/RV/flash.htmlThe board is connected to HDMI 24-inch monitor, keyboard, mouse, and WiFi router. The board is not a speed demon, but most applications work well enough.I have just one problem - cannot find it in the packages repository of Debian (Sipeed) WWW Browser. I also cannot find tutorials on how to compile from sources any WEB Browser for this board. I started looking for a more general way to compile a WEB Browser for the RISC-V platform, but this attempt was also unsuccessful.Can anyone indicate any materials on the web regarding the compilation of WEB browser for RISC-V CPU? Or even better for this board "Sipeed lichee RV-Nezha" .So far I found such GitHub repositories:https://github.com/riscvand here Yocto layer for this board:https://github.com/riscv/meta-riscv/pull/327Thanks in advance and Regards

author: FlyingDutch
author_rank: Regular Contributor
timestamp: September 06, 2022, 02:51:13 pm
content: Hello,I was looking on the web and it seems that for the RISC-V (64-bit) platform there is no properly functioning WEB browser yet. The reason is that the Javascript engines are not working properly - see for example:https://bugs.webkit.org/show_bug.cgi?id=224134Can anyone confirm that this is in fact the case?Update: I found one thread that mentions a working Firefox for 64-bit RISC_V, but I don't know how reliable this information is:https://lists.riscv.org/g/software/topic/83352236https://groups.google.com/a/groups.riscv.org/g/sw-dev/c/81caeTrQWLs?pli=1Best Regards