hybridfree/eevblog-posts huggingface dataset:
Raspberry Pi4 chip blown need ID - Page 1
Forum section: electronics / general

author: horga83
author_rank: Newbie
timestamp: October 25, 2021, 10:57:56 pm
content: Hi All,I have a RPI4 and the 6 pin chip just behind the USB2 connector is fried. I have tried to search for the ID which is BJ9uD but alas nothing found.Can anyone help me out here.Thanks in advance.George

author: amyk
author_rank: Super Contributor
timestamp: October 26, 2021, 01:20:33 am
content: Pictures please?Could be SY8101B.https://rik174.ru/files/products/izobrazhenie-001_321.1200x800w.jpg?4658e52af253445ca68ee69721bbb804

author: horga83
author_rank: Newbie
timestamp: October 26, 2021, 02:37:43 am
content: Yes here is a picture. I can't get the camera close enough to take a pic but through the microscope it is certainly a BJ9uDThanks for your reply I tried to look up the BJ9YK in your link but no luck.The SY810B could be a candidate.

author: amyk
author_rank: Super Contributor
timestamp: October 26, 2021, 01:33:09 pm
content: BJxxx is SY8101B.As an aside... what is this half-baked piece of crap they call a "schematic"?https://datasheets.raspberrypi.org/rpi4/raspberry-pi-4-reduced-schematics.pdfI'm surprised no one has RE'd the whole thing yet, given how many have been made. Shows what the "maker community" is actually capable of...

author: horga83
author_rank: Newbie
timestamp: October 26, 2021, 06:39:52 pm
content: Thank you very much, now if I can find a place that would sell me a couple, any suggestions?My normal sources, digikey, mouser, amazon, ebay etc all fail to have them.

author: wraper
author_rank: Unknown
timestamp: October 26, 2021, 07:08:20 pm
content: Quote from: amyk on October 26, 2021, 01:33:09 pmIt's certainly not SY8101B. It's a USB power switch with current protection. AP2552W6-7https://www.diodes.com/assets/Datasheets/products_inactive_data/AP255x.pdf(page 13)

author: wraper
author_rank: Unknown
timestamp: October 26, 2021, 07:16:47 pm
content: BTW does this Raspberry pi boot? Because if it does not boot, you have more problems rather that just a dead USB power switch.

author: horga83
author_rank: Newbie
timestamp: October 26, 2021, 07:20:27 pm
content: It boots just fine and everything else works just the USB ports are dead. lsusb shows the hubs so those seem ok. A device attached to one of the USB ports had a failure and put some unknown amount voltage (likely +15 to 25) on the port.

author: wraper
author_rank: Unknown
timestamp: October 26, 2021, 07:25:05 pm
content: AP2552W6-7 is out of stock at major distributors. You can also use AP22652AW6-7 instead which is in stock.

author: horga83
author_rank: Newbie
timestamp: October 26, 2021, 07:26:09 pm
content: I see that, thank you, just ordered a few from Digikey, we'll see what happens.Thank you all for your help.

author: wraper
author_rank: Unknown
timestamp: October 26, 2021, 07:30:30 pm
content: As you said a high voltage came in, I looked more and it looks like 100uF cap (connected to USB VBUS) has a hole on it's side and solder mask came off from a copper trace.

author: horga83
author_rank: Newbie
timestamp: October 26, 2021, 08:36:28 pm
content: Took the chip off and all looks well.
16x8 LED matrix based on TLC5920 - issues - Page 1
Forum section: electronics / general

author: FlyingDutch
author_rank: Regular Contributor
timestamp: October 17, 2021, 11:18:49 am
content: Hello,i am attempting to make 16 rows X 8 column LED driver based on "Texas Instruments" IC - TLC5920. Here is product page on TI website;https://www.ti.com/product/TLC5920and here data sheet:https://www.ti.com/lit/ds/symlink/tlc5920.pdf?ts=1634467956053&ref_url=https%253A%252F%252Fwww.ti.com%252Fproduct%252FTLC5920I am using custom board with STM32F103VGT6 MCU and lightly modified C language code from "Matrix Clock" project from this link:http://www.carbonfrog.com/Products/MC201V1.htmlWhen i try display on LED matrix constant pattern (not changing pattern) everything is OK. When I am trying to display pattern which is changing wit frequency about 20 Hertz I had some issues - relay on that slightly shine columns that shouldn't shine.I am using semaphores to synchronize displaying data on LED driver and refreshing display procedure. Can someone has experience with this TLC5920 IC?I am also wondering if it is good idea to make TLC5920 IC controler based on small FPGA and writing VHDL code?Thanks in advance and Regards

author: TomS_
author_rank: Frequent Contributor
timestamp: October 19, 2021, 08:21:16 pm
content: How are you driving the LATCH pin?At a guess you are idling high. When this pin is high, the latch is transparent, which means you are probably seeing the data as it is being shifted through.You will want to keep LATCH low when shifting, then give just a brief high pulse to allow the newly shifted data through to the output drivers.FPGA .. depends on the size of the matrix you want to drive, and how fast you want to refresh it. Small matrices can be done easily enough in software with timers and interrupts.

author: FlyingDutch
author_rank: Regular Contributor
timestamp: October 22, 2021, 12:21:57 pm
content: Hello,today I had a little of time that I could spend on this subject. Simple VHDL code had been written by me to generate signals needed to drive serial in to TLC5920 IC. Here is link on polish forum Forbot.pl - translated to English by "Google Translate" wher I described further works on this subject:https://forbot-pl.translate.goog/forum/topic/20667-tlc5920-sterownik-matrycy-led-16wierszy-x-8-kolumn/?tab=comments&_x_tr_sl=pl&_x_tr_tl=en&_x_tr_hl=pl&_x_tr_pto=nui#comment-169760Best Regards
problem in keil 5 - Page 1
Forum section: electronics / general

author: tariq
author_rank: Contributor
timestamp: October 24, 2021, 01:59:55 pm
content: hi everyoneI'm using keil 5 for stm32 i have problems fist while building my project some black windows comes for 1 second.second when i want to load my project i have this error :ERROR:Flash Download failed - could not load file'C:\Users\..............'when i delete keil and install it again The problem solves but after few days i have the error again.i dont know what is wrong with it.i'm also using stmcubemx to tranfer data to keil.appreciate your help.

author: ataradov
author_rank: Super Contributor
timestamp: October 24, 2021, 03:44:47 pm
content: This looks like some licensing issue. Contact ARM support and ask them. They will know better.It is possible that thee is some grace period, and things are already broken right after the installation. You just don't see that yet.

author: tariq
author_rank: Contributor
timestamp: October 24, 2021, 05:44:40 pm
content: i don't think problem comes from license i was working with the license for a year and i had no problem after i changed my lab tab windows this issue comed.after changing my windows i downloaded the latest version of stmcubemx i don't know i think maybe stmcubemx does something to keil.or some keil setting or directory changes.do you have any idea where problem comes?thank you.
How to fix Stack Usage Warnings - Page 1
Forum section: electronics / general

author: Red_Micro
author_rank: Regular Contributor
timestamp: October 19, 2021, 03:13:30 am
content: I'm using IAR Workbench to program STM32. My application uses USB. I'm getting the following warning when compiling:Warning: [stack usage analysis] the program contains at least one indirect call. Example: from "USB_Exc". A complete list of such functions is in the map file.When I go to the map file, I can see the list of functions that perform unknown indirect calls.Are these warnings serious? Would they cause issues if I ignore them?

author: ataradov
author_rank: Super Contributor
timestamp: October 19, 2021, 03:23:30 am
content: It looks like a warning from a static code analyzer complaining that it can't analyze code with indirect/pointer calls. This is not a serious warning, there is nothing wrong with the code itself and you can ignore it.If you write code that code analyzers like, your code would suck for humans to read.
USB Type C interfacing with STM32F7 - Page 1
Forum section: electronics / general

author: jonathan_nadar
author_rank: Contributor
timestamp: October 17, 2021, 04:42:46 pm
content: I need to connect the data pins of USB and STM32 so that I can program the microcontroller in DFU mode. I am using a Type C USB port (requested by the customer) and I am finding it difficult to figure out a way to interface it. Should I connect the two sets of differential pair pins of the USB together and use them?

author: SiliconWizard
author_rank: Super Contributor
timestamp: October 17, 2021, 10:59:00 pm
content: This is a common question. You can refer to this thread as well:https://www.eevblog.com/forum/projects/usb-type-c-(usb2-0)-wiring/
8-bit PIC programmer using an Arduino - Page 1
Forum section: electronics / general

author: jfedison741
author_rank: Contributor
timestamp: October 15, 2021, 09:30:26 pm
content: Hello,I have been using a-p-prog (developed by jaromir-sukuba seehttps://github.com/jaromir-sukuba/a-p-prog) to program a PIC16LF1902 and it is working fine for smaller code sizes, but as soon as I get above about 40% Flash usage, the code tries to run but then seems to be resetting itself at a certain point (LED blinks erratically instead of at the expected 1 sec intervals). Even though the a-p-prog loader does not report any errors while loading, the code on the PIC does not run when file size is above approx. 40% Flash. When I load the same code using an old PIC programmer, the code runs fine.Anyone have experience using a-p-prog to program an PIC16LF1902 (or similar)?This part allows a max Vdd of 3.6 V so I am using 3.3 V on the Vdd pin of the PIC and also using bi-directional level shifter between the 5 V Arduino and the 3.3 V PIC (on the ICSPDAT, ICSPCLK and MCLR lines). It appears a-p-prog was designed to be used only with 5V/16MHz Arduinos as I could not get it to run with a 3.3 V/8MHz Arduino. I don't think the level shifting is a problem as smaller programs work correctly while larger ones (all using a-p-prog as programmer) don't.

author: jfedison741
author_rank: Contributor
timestamp: October 16, 2021, 01:30:08 am
content: Update: Problem solved.After looking at the device file "pp3_devices.dat", it seems the parameters for the PIC16LF1902 part were a bit off. For this part, the flash size is 4096 bytes and the page size is 64 bytes. I adjusted the PIC16LF1902 line of pp3_devices.dat to read:16lf1902 4096 64 2C20 FFE0 CF_P16F_AAfter that I tried to load a large hex file and it now appears to be loading correctly.(I have not tested any other parts in PIC16LF19xx family but it looks like some of those may also need similar corrections in the pp3_devices.dat file.)I would submit an update to a-p-prog on github but currently don't know how.

author: ledtester
author_rank: Super Contributor
timestamp: October 16, 2021, 03:22:30 am
content: Quote from: jfedison741 on October 16, 2021, 01:30:08 amYou can just open up an issue and explain your fixes.- go to:https://github.com/jaromir-sukuba/a-p-prog/issues- click on the "New issue" button in the upper rightYou might have to be logged into github (i.e. have an account.)Otherwise you have to clone the repo, make and commit the changes in your repo and then create a PR (pull request) in the original repo.Here's a video:- Creating a Simple Github Pull Request -- Jake Vanderplashttps://youtu.be/rgbCcBNZcdQ

author: jaromir
author_rank: Unknown
timestamp: October 16, 2021, 07:26:35 am
content: Or alternatively, you can contact me here. I'll fix the problem you found, thanks.
Resource and Time Management for RTOS - Page 1
Forum section: electronics / general

author: BlogRahul
author_rank: Regular Contributor
timestamp: October 12, 2021, 05:57:02 am
content: HiI read that different tasks share resources in real time application. I don't understand exactly what resource are and how they are shared ? Is MCU peripheral called a resource?

author: JPortici
author_rank: Super Contributor
timestamp: October 12, 2021, 06:53:03 am
content: is this the same ashttps://www.microchip.com/forums/m1187480.aspx?

author: BlogRahul
author_rank: Regular Contributor
timestamp: October 12, 2021, 08:23:46 am
content: Quote from: JPortici on October 12, 2021, 06:53:03 amNo, I am not asking for PIC microcontroller.

author: rstofer
author_rank: Super Contributor
timestamp: October 12, 2021, 09:07:41 am
content: Quote from: BlogRahul on October 12, 2021, 05:57:02 amAnything that is shared between two or more tasks could be considered a resource. One example is a counter that is incremented in an interrupt service routine and tested in some non-interrupt function. Under some conditions, you need to prevent an interrupt while manipulating the variable in the non-interrupt function.A queue is another example. Data may be put into the queue during an interrupt process and extracted during a non-interrupt process. Or, data could be put into the queue by the non-interrupt function and extracted and sent to the UART by an interrupt function. The head and tail pointers require special handling so that the addresses don't get tangled up.Hardware resources (peripherals) aren't necessarily shared resources. Usually only one function deals with a peripheral.Memory can be a shared resource. Perhaps as a result of some DMA function...

author: MarginallyStable
author_rank: Regular Contributor
timestamp: October 12, 2021, 05:34:08 pm
content: The most obvious one is the cpu/mpu itself is a resource. The RTOS time manages execution of multiple tasks.

author: SiliconWizard
author_rank: Super Contributor
timestamp: October 12, 2021, 05:55:22 pm
content: Well, that's one of those catch-all terms.A resource used by a task is just anything a task can use while running. A shared resource, you guessed it, is this anything that several tasks could be using instead of just one.Examples are many. Memory, peripherals, CPU core...Now before caring about how 'resources' are shared, you may want to start with knowing what tasks are, in what context...

author: westfw
author_rank: Super Contributor
timestamp: October 12, 2021, 06:20:17 pm
content: QuoteOne can easily share an I2C or Ethernet Interface/peripheral.Or a "pool" of timers.
Is the ESP32-MINI-1 supported by Arduino IDE? - Page 1
Forum section: electronics / general

author: VK3DRB
author_rank: Super Contributor
timestamp: October 14, 2021, 04:59:49 am
content: Hi.I am new to the ESP32's and the Arduino IDE. I did get a hold of the ESP32-WROOM and could easily use the Arduino IDE to program the Bluetooth part and sending/receiving serial data to/from an Android phone... all within an hour of installing the IDE. That's fast! I have done low level programming of BLE in the past on a Bluegiga (Silicon Labs) and it can take days. I have an application needing a small, low cost solution with BLE, a 12-bit ADC, i2C and UART, which this ESP32-MINI-1-N4 has. I could go down the path of uBlox, Sierra Wireless, Microchip (if you can get 'em) etc, but what is key in this project is fast development time, reliable supply, and low cost.I emailed the engineers at Espressif in China two days ago if I can use the Arduino IDE for the ESP32-MINI-1-N4 and they have not answered. Maybe someone here knows where this device is supported and the libraries will make development time quick. Unlike with an MSP430 I just programmed from barebones up, this new project cannot afford the time to mess around.Any hints/tips/suggestions are welcome.- Dave
MSP430G2333 PWM generation capability - Page 1
Forum section: electronics / general

author: VK3DRB
author_rank: Super Contributor
timestamp: October 08, 2021, 01:49:23 am
content: Hi.I am fairly new to MSP430's but have I have programmed a state machine and a whole lot of functions into this chip so far without any problems so far.I am using Timer0 to generate a 1ms timer tick through an interrupt, which is used for a whole lot of timing events in the main() - no issues and it works nicely.The only thing in this project now is to generate two PWM's - one to port P2.0 and the other to port P2.1. They can both have a have a period of 1ms. The CPU clock is 1MHz.I just need to vary the duty cycles on each of these outputs independently. Reading the datasheet, I think this is possible.How can I generate the two PWM outputs without messing up Timer0? Can I use the second timer to generate the two independent PWM duty cycles? If so, how should the registers be set up? Any suggestions much appreciated!

author: oPossum
author_rank: Super Contributor
timestamp: October 08, 2021, 07:04:16 am
content: You can use Timer1 for the PWM. Just set CCR0 to the PWM period, CCR1 to the duty cycle of the first PWM, and CCR2 to the duty cycle of the second PWM. Set timer mode to up, and the output modes to set or reset.The first PWM can be output on P2.1, P2.2 or P3.2. The second PWM can be output on P2.4, P2.5 or P3.3.If you must have PWM on P2.0 then this method can be used to get PWM from CCR0 in addition to CCR1 and CCR2. The pins for CCR0 are P2.0 and P2.3.https://forum.43oh.com/topic/5619-pwm-using-timer-output-toggle-mode/

author: VK3DRB
author_rank: Super Contributor
timestamp: October 11, 2021, 03:05:47 am
content: Thanks, oPossum.You post provided hints which helped me sold the problem, although I did not use your three PWM solution. Because my PCBA was only in the proto stage, I could swap P2.0 with P2.4 (with some microsurgery on 0.2mm tracks). And voila! It all works beautifully. I used Timer0 for a 1ms timer tick, and TA1CCR1 and TA1CCR2 for the independent PWMs. A re-spin was required anyway, so it is easy to swap the tracks.After I got this going the rest of the coding to vary the duty cycles dynamically was a piece of cake. The firmware part of the project is complete.If you ever travel to Melbourne, Australia, I will shout you a beer.Incidentally, the MPS430G2333's are very nice, but for pin-steering there are newer devices that are far more flexible. Code Composer is OK, but in my opinion IDEs with register wizards like CodeVision/AVR (for AVR's) kills it as far as speed of development goes. But it's free and it works, so I cannot complain.Most importantly, I can source the 28-pin MSP420G2333 during the global shortages, where as STM is a basket case. This product has the potential of being very high volume, and when STM finally decides to free up supply, I am not interested. If chip vendors cannot supply to the engineering fraternity now, they will lose out in the long run.Once again, THANKS!
samsung GT-N8010 android software upgrade from 4.12 to 9 Android - Page 1
Forum section: electronics / general

author: phred01
author_rank: Contributor
timestamp: October 11, 2021, 12:35:42 am
content: Need help!Followed cookery book recipe to upgrade Note 10.1 Everything went well until tried connected WiFi router. The WiFi is fine with with the PC, iPad, iPhone and other El-Cheapo Chinese Android tablets. The Note 10.1 running 4.12 was fine too but with Android 9 the tablet successfully discovers & connects then disconnects a few seconds later and then reconnects ad-infinitum. Is there something that's not setup properly?
IL9341 Soft reset - Page 1
Forum section: electronics / general

author: cezar
author_rank: Contributor
timestamp: October 09, 2021, 09:09:57 am
content: Hi all,I'm designing a little thing with IL9341 TFT display and ESP8266. I'm trying to save a couple GPIOs for further use. I have pulled the TFT RESET PIN high and I'm trying to use soft reset command 0x01 but it does not seem to be working. The display works fine when is powered up but If I reboot the ESP, it gets stuck on what was displayed before.Does anyone have any experience with soft resetting it?for reference:https://cdn-shop.adafruit.com/datasheets/ILI9341.pdf

author: mikerj
author_rank: Super Contributor
timestamp: October 09, 2021, 09:31:29 am
content: Soft reset is not a replacement for the hard reset. From the datasheetQuote

author: HB9EVI
author_rank: Frequent Contributor
timestamp: October 09, 2021, 09:33:10 am
content: I started to join the reset pin of the ILI9341 with the reset pin of the mcu driving it properly on power up, and so far I had no problem with the soft reset, which is part of the init routine.some code could help finding the issue

author: cezar
author_rank: Contributor
timestamp: October 09, 2021, 09:37:34 am
content: Quote from: mikerj on October 09, 2021, 09:31:29 amThe display works completely fine after the power on. It gets stuck when I reboot the MCU (and doing soft-reset from the code)

author: cezar
author_rank: Contributor
timestamp: October 09, 2021, 09:48:11 am
content: Quote from: HB9EVI on October 09, 2021, 09:33:10 amThat's a good idea. I'll test it outQuoteFor the prototype, I use the Adafruit_ILI9341 library.I basically issueCode:tft.begin();It should do soft reset when tft is initialised with rst declared as -1Code:if (_rst < 0) { // If no hardware reset pin...sendCommand(ILI9341_SWRESET); // Engage software resetdelay(150);}
Does anyone know this microcontroller (LSDBOOT) ? - Page 1
Forum section: electronics / general

author: Leo86
author_rank: Contributor
timestamp: October 05, 2021, 06:05:58 pm
content: Hi,I'm with a product that are connected in USB port. But, i don't know what microcontroller, i dont find any information in internet.Does anyone know the datasheet this item in attached?.thanks!

author: amyk
author_rank: Super Contributor
timestamp: October 05, 2021, 11:47:42 pm
content: Do you have a bigger picture including the package?

author: Leo86
author_rank: Contributor
timestamp: October 08, 2021, 05:23:09 pm
content: The package is QFN
Microcontroller HT66F03C programming tool - Page 1
Forum section: electronics / general

author: Leo86
author_rank: Contributor
timestamp: October 04, 2021, 02:43:59 am
content: Hi folks!Someone know, which programming tool i can use for program HT66F03C?.I usehttps://www.holtek.com/e-writerpro.But i cant't identify which pin i connect programming tool for microcontroller.
Bell Fruit Machine Display Hack (GU96X8M-K657C2) - Page 1
Forum section: electronics / general

author: TheEPROM9
author_rank: Frequent Contributor
timestamp: October 02, 2021, 02:45:13 pm
content: So these display are pretty cheap & plentiful on eBay lets hack one & post the code & whatnot here. Main micro used was a Arduino Pro Micro

author: TheEPROM9
author_rank: Frequent Contributor
timestamp: October 02, 2021, 02:57:15 pm
content: Back

author: TheEPROM9
author_rank: Frequent Contributor
timestamp: October 02, 2021, 02:58:35 pm
content: First Power Up

author: TheEPROM9
author_rank: Frequent Contributor
timestamp: October 02, 2021, 02:59:13 pm
content: Successful Test

author: TheEPROM9
author_rank: Frequent Contributor
timestamp: October 02, 2021, 03:00:07 pm
content: Code Complete

author: TheEPROM9
author_rank: Frequent Contributor
timestamp: October 02, 2021, 03:01:05 pm
content: Truth Table V1

author: TheEPROM9
author_rank: Frequent Contributor
timestamp: October 02, 2021, 03:02:45 pm
content: Pinouts

author: TheEPROM9
author_rank: Frequent Contributor
timestamp: October 02, 2021, 03:03:33 pm
content: Complete Turth Table
PIC UART and LAT question - Page 1
Forum section: electronics / general

author: amwales
author_rank: Regular Contributor
timestamp: September 27, 2021, 09:00:29 pm
content: I am using a dsPIC33EV, I have a UART TX assigned to a pin on PORTB.Set to OUTPUT in TRISB and the UART is working correctly, I can send and receive data.The question I have is what happens if I write a 1 to the TX pin on LATB.Will this be ignored as the pin is assigned to the UART or will the 1 be output?

author: DavidAlfa
author_rank: Super Contributor
timestamp: September 27, 2021, 10:07:07 pm
content: Will be ignored, just check the datasheet

author: amwales
author_rank: Regular Contributor
timestamp: September 28, 2021, 07:54:26 am
content: Thankyou for taking the time to reply

author: SiliconWizard
author_rank: Super Contributor
timestamp: September 28, 2021, 04:34:02 pm
content: Yeah PIO output is multiplexed with any peripheral that can be selected for the corresponding pin. So this is an exclusive access. Writing to a LAT register will have no effect *on the pin* if UART TX function is selected, but... it will have an effect nonetheless. The LAT register will still be modified, and the output state would be reflected to the pin if said pin was selected back to PIO function.OTOH, as you can see on the diagram, you can still read the pin as an IO, even if it's selected for UART TX. Not that it would have much use in general, but that's how it works.
Raspberry CM4 - value of one specific inductor - Page 1
Forum section: electronics / general

author: aandras
author_rank: Newbie
timestamp: September 27, 2021, 01:07:07 pm
content: Hello,maybe someone can help. I would like to know the value of the part (inductor) that is "destroyed" on the attached picture.It is too late now to measure it on that board...thank you

author: SiliconWizard
author_rank: Super Contributor
timestamp: September 27, 2021, 04:53:47 pm
content: Can't answer this as I don't have one here, but just wondering... what happened?Did it get destroyed due to a mishandling or during "normal" operation?

author: aandras
author_rank: Newbie
timestamp: September 27, 2021, 07:19:33 pm
content: That was mishandling by the owner whom i try to help. But we should know the value to do the repair.

author: wraper
author_rank: Unknown
timestamp: September 27, 2021, 07:27:20 pm
content: Should be the same as in Pi 4Bhttps://datasheets.raspberrypi.org/rpi4/raspberry-pi-4-reduced-schematics.pdf

author: aandras
author_rank: Newbie
timestamp: September 27, 2021, 07:37:45 pm
content: That might be true, thank you for the info!

author: luiHS
author_rank: Frequent Contributor
timestamp: September 28, 2021, 07:02:56 am
content: It is an inductor that is part of the MxL7704 switched regulator. And specifically that inductor is connected to pin 30 of that chip.In the datasheet, that inductor is 0.47uH, which also matches the value of the RPY-4 scheme that they have published, 470nH which is the same as 0.47uH.
ATmega 0 series. setting internal Vref required with external Vref - Page 1
Forum section: electronics / general

author: Simon
author_rank: Unknown
timestamp: September 26, 2021, 03:29:06 pm
content: Reading through the ADC section of the ATmega1608 carefully I came across a requirement when using an external reference voltage to set the internal voltage reference to a voltage as close to it and higher than it as possible.Why? is there some sort of leakage from the inter reference that by default is 0.55V to the external reference pin or the reference circuitry?

author: harerod
author_rank: Frequent Contributor
timestamp: September 27, 2021, 09:15:18 am
content: Simon, thank you for bringing this to my attention. I have been using the tinyAVR 1-series for a while, but never with external ADC reference. I looked through Microchip's appnotes for ATtiny, but couldn't find any information beyond what is found in the datasheet (e.g. ATtiny1616 -> ADC operation -> "external reference")."When using the external reference voltage V_REFA , configure ADCnREFSEL[0:2] in the corresponding VREF.CTRLnregister to the value that is closest, but above the applied reference voltage. For external references higher than4.3V, use ADCnREFSEL[0:2] = 0x3."Looking at this I can only suspect some structural diode.The implication of this requirement is that other peripherals (e.g. DAC) are limited in their range of reference, when the ADC uses the external reference.I don't have an isolated tinyAVR 1-series ready for measurement. If anybody had one, I would be curious as how currents (supply, reference input) and analog accuracy change, when this requirement is violated.

author: Simon
author_rank: Unknown
timestamp: September 27, 2021, 12:22:01 pm
content: The mega 0 series does not have a DAC. In light of this I really don't know why they do not have the internal reference register in the ADC registers. In fact you could be told to select the next voltage up from you external reference thus setting the internal one or the same bit set VDD or one of the internal values, it would make the coding easier. 1 bit to say internal or external followed by 3 bits that set the voltage including VDD as an internal option.What they have done is so "mechanical"

author: harerod
author_rank: Frequent Contributor
timestamp: September 27, 2021, 02:54:08 pm
content: Ah, thanks for tacitly telling me to clean my glasses.Anyways, the ATmega1608 and ATtiny1616 seem to share some properties. Good to know.

author: Simon
author_rank: Unknown
timestamp: September 27, 2021, 06:22:35 pm
content: all the new mega's and tiny's are just Xmega's with a new name that will run on 5V. I don't know what microchip are playing at other than confusing everyone. They may as well just call everything what it is: Xmega!
Utilizing Vintage Processing for Modern Diy Projects. - Page 1
Forum section: electronics / general

author: magnoliaikon
author_rank: Newbie
timestamp: September 22, 2021, 12:55:32 am
content: I have a little stash of vintage components and have been curious on wacky ways to utilize them in simple diy projects. Im a fan of overkill and design sarcasm, so take a look at these part numbers and help me understand how they could be used in place of modern diy friendly parts.Intel P8243ST MK48Z12B-15HARRIS HSP45106JC-25NEC-D70325L-10TI- NS87P50D-11MAX- XR88C681CP/28-FHP- 4N55MOT- MCM2708LHARRIS- CD4098BE-HC-NDSony - CXK581001M-70LI will post more when i get time to dig around again.
What is required to read / write firmware to Winbond 25q128 8soic flash memory? - Page 1
Forum section: electronics / general

author: SeamlessPurse
author_rank: Newbie
timestamp: September 16, 2021, 04:52:08 am
content: HelloExcuse my lack of knowledge but I need to copy the firmware from a Winbond 25Q128JVSQ flash memory chip.Manufacturer page:https://www.winbond.com/hq/product/code-storage-flash-memory/serial-nor-flash/?__locale=en&partNo=W25Q128JVData sheet:https://www.winbond.com/resource-files/W25Q128JV%20RevH%2003102021%20Plus.pdfI was going to buy a AliExpress CH341a programmer and clip for the 8-pin footprint but wasn't sure if it would work or there is suitable software?The chip isn't listed on flashrom.com, I can't find a site for Colibri, or what other software is available.Any advice is greatly appreciated!

author: voltsandjolts
author_rank: Unknown
timestamp: September 16, 2021, 09:52:55 am
content: I would recommend the excellent value TL866IIhttp://autoelectric.cn/EN/TL866_main.htmlIt lists this device as supportedhttp://autoelectric.cn/MiniPro/TL866II_List.txtW25Q128JV @SOIC8https://www.ebay.com.au/itm/192489430193(no affiliation just a happy TL866II user)

author: darkspr1te
author_rank: Frequent Contributor
timestamp: September 16, 2021, 10:27:04 am
content: If this is a one off copy/write operation then a ch340 adapter or ftdi232h would work. if you intend to do more poking about then i would say a bus pirate (does uart,i2c,spi,jtag, swim, SWD and more) ,the bus pirate has flashrom(to copy spi flash roms like w25q64 etc ) support and can also be used with openocd and other programs for debug and more.while slow compared to some specific tools its more universal in it's support.also other way of doing it is any arduino device (check you chip voltages as arm based arduino is normally 3.3v and atmel are 5v )darkspr1te

author: DavidAlfa
author_rank: Super Contributor
timestamp: September 17, 2021, 08:10:58 pm
content: Just get a $4 CH341A programmer.NeoProgrammer 2.2.0.8 works great with it.You can find it in the Hantek Drive of my signature, I'm pretty sure it supports that memory.

author: voltsandjolts
author_rank: Unknown
timestamp: September 18, 2021, 02:46:46 pm
content: Who wrote the NeoProgrammer software and where is their download page?

author: DavidAlfa
author_rank: Super Contributor
timestamp: September 18, 2021, 10:07:19 pm
content: The creator is posting the software on4PDARequires to be registered for downloading, but even for logging in they use russian captchas, so it's a mess.I usually bother a russian friend when the login expires. That's why, for easiness, I referred to my drive instead providing a link to the author.It's based onUsbAsp-flash(AsProgrammer), which also works great, however it's becoming outdated, while NeoProgrammer keeps adding support for new ICs.

author: newtekuser
author_rank: Frequent Contributor
timestamp: September 19, 2021, 03:10:08 am
content: I've used DediProg sf600 in the past with great success.
Sending 24-bit frames via SPI using Arduino Uno - Page 1
Forum section: electronics / general

author: aiq25
author_rank: Regular Contributor
timestamp: September 23, 2021, 02:36:16 pm
content: Hi guys,I'm trying to interface with an ADS7038 8-channel ADC IC. I'm trying to interface it to an Arduino Uno. This device works with 24-bit frames SPI (3 bytes). Unforunately I'm having all sorts of issues getting the IC to configure correctly but I think one of the issues I'm seeing is that the data being sent to the ADS7038 is not in the format it's expecting to be. I have the Arduino configured for 200kHz.I am trying to read some registers upon power up of the IC. I have attached a screenshot of what the SPI message should be according to the datasheet.Also attached is the Arduino SPI frame. I haven't done SPI communication in a long time and don't remember doing multi-byte SPI frames so I'm not sure if this looks correct. CH1 is the CS, CH2 is MOSI, CH3 is MISO, and CH4 is SCLK. Does the MOSI frame seem correct? Arduino is supposed to send the following bytes: 0b00010000, 0x00, 0x00. I see on the MOSI line after the first 8-bits, the line goes HIGH for then comes back then. Is this standard for SPI or should all the bits, even after the first byte stay LOW (5V) (since the next 2 bytes being sent are 0x00's)? Not sure if this transition after the first byte is causing the IC any issues.

author: MarkF
author_rank: Super Contributor
timestamp: September 23, 2021, 03:32:05 pm
content: The first thing to verify is that you have the correct SPI protocol selected.I don't do much Arduino programming. So, you will need to check that the clock and sample time meets the A/D requirement (Figure 2 in the datasheet).The second thing is that the order you are sending is the MSB bit first.Finally, that you are sending the correct commands remembering that you always receive a byte for each byte sent.

author: voltsandjolts
author_rank: Unknown
timestamp: September 23, 2021, 03:35:02 pm
content: The ADC should be reading in data on the rising clock edge (by default at power on) so those little glitches shouldnotmatter, since they are away from the rising clock edges.At first glance, I'd say it looks good. Yeh, double check bit order and CPOL/CPHA settings in the arduino.Edit: I meantnotmatter, I missed out the 'not'!!

author: aiq25
author_rank: Regular Contributor
timestamp: September 23, 2021, 07:33:34 pm
content: Quote from: voltsandjolts on September 23, 2021, 03:35:02 pmThanks. I ended up getting the module to FINALLY work!
arm-none-eabi-g++ error fuse-linker-plugin, but liblto_plugin.so not found - Page 1
Forum section: electronics / general

author: reneman
author_rank: Contributor
timestamp: September 13, 2021, 10:14:14 am
content: I move my embedded toolchain for C++ SAMD21 from Ubuntu 16 to Ubuntu 20.4 and arm-none-eabi-g++ no longer compiles my project. This is the error I get:arm-none-eabi-g++: fatal error: -fuse-linker-plugin, but liblto_plugin.so not foundcompilation terminated.Seems like liblto_plugin is either not installed, or installed but not found. What is this library and how could I solve this issue?My makefile runs this:Code:/home/reneman/toolchain/arm2021/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DSAM21 -Iinclude -I../../../myOS.v11/HardwareSAM21/include -I../../../myOS.v11/ports/include -c src/Principal.cpp -o obj/sam21/Principal.o/home/reneman/toolchain/arm2021/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -L../../../myOS.v11/lib/sam21 ../../../myOS.v11/lib/sam21/libRenesys.a -o bin/sam21/myOS.elf obj/sam21/Principal.o -mcpu=cortex-m0plus -mthumb -specs=nano.specs -specs=nosys.specs -Wl,--gc-sections -Wl,--script=/home/reneman/toolchain/arm2021/linker/samd21j18.ld -lKernelComunicacion -lEthernet -lPuertos -lSPI -lHALCore -lHAL -lstreaming -lHardwareSAM21 -lCoreSAM21Thanks,

author: bingo600
author_rank: Super Contributor
timestamp: September 13, 2021, 05:59:46 pm
content: If i were you i'd probably grab the install package once again , and do a new installhttps://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloadsThe 2017-q4 is a bit down on the page/Bingo

author: reneman
author_rank: Contributor
timestamp: September 14, 2021, 08:54:41 am
content: Quote from: bingo600 on September 13, 2021, 05:59:46 pmThis worked like a charm. I had previously copied the same .so file from a previous (4.X) gcc version and it already worked and built just fine, but using 2017-q4, the same toolchain version, seems like a better idea and works equally well. So yeah, just copy the missing file(s) and the build process worked again
new PIC CLCDesignerTool with simulator - Page 1
Forum section: electronics / general

author: tumbleweed
author_rank: Newbie
timestamp: September 11, 2021, 03:49:45 pm
content: For those with an aversion to MPLABX, or who just want a simple, easy to use standalone toolthere is a new, updated version of the old CLCDesignerTool available.CLCDesignerTool V4 adds features not available in the original version, including:* support for all PIC18 devices (also supports PIC10/12/16, and a few PIC24 devices)* support for up to 8 CLC modules* CLCSELECT register overlay support* enhanced device ini file format with improved CLC and PPS input and output selections* BASIC or C output code generation* output format selectable to support different dialects of BASIC* improved file operations (Open, Save, Save As)* ability to load different device configuration files* new ViewCode window to preview output* improved output register settings displayThere is also a simulator tool available, allowing you to view the interaction of the various CLC module elements.The files are available athttps://www.sfcompiler.co.uk/wiki/pmwiki.php?n=SwordfishUser.CLCDesignerTool
Using ESP8266's WiFi feature next to a timing-critical routine - Page 1
Forum section: electronics / general

author: BlvckBytes
author_rank: Newbie
timestamp: August 30, 2021, 10:44:13 pm
content: Hey there!Since I saw that VF-Display on the EEVBlog channel, I had to get my own. Now I've written a DIY driver for it, and it works pretty good so far. This is my code:https://github.com/BlvckBytes/VFDisplay/tree/master/firmware/vf_displayI use assembly NOPs for timings, to ensure a flicker-free display. As soon as I'm trying to load up the ESP8266WiFi header file to connect to WiFi, I run into WDT-resets all the time. When I disable the NOPs, WiFi works, but the screen doesn't (obviously).Is it even possible to run both things on the same device? I thought about using a weaker external microcontroller to handle just the screen, which takes in commands over serial from the ESP. This would be a waste of processing power tho, just because I'm not able to get the software running properly.Multitasking is hard,.Any ideas? Thanks!

author: ebclr
author_rank: Super Contributor
timestamp: August 31, 2021, 05:05:28 am
content: Change to esp32, and all your problems will finish

author: BlvckBytes
author_rank: Newbie
timestamp: September 05, 2021, 12:16:35 am
content: Since the ATtinys are quite cheap, I'm going to get one with 4K flash, since my code takes around 2.2K, with everything in my power already optimized, and totally barebones.https://github.com/BlvckBytes/VFDisplayMultiplexerThis gets serial commands, which my ESP sends out using a software-serial, using just the TX pin, and common ground. I think this is the cheapest solution, since an ESP32 would be a total overkill, as with most ESP-projects tho.
Linduino One board cannot connect to PC via USB - Page 1
Forum section: electronics / general

author: ixfd64
author_rank: Frequent Contributor
timestamp: September 02, 2021, 12:16:07 am
content: We have a DC2026C board at work that won't connect to our PCs. I tried plugging it into several different computers, but the board would not show up in the Device Manager. Arduino IDE is also unable to detect the board and can't send serial commands, and installing drivers on the computer did not make a difference. The board is not visible to macOS either. I'm pretty sure there's an issue with the device's USB port because we were able to connect to a replacement board without problems.Does anyone have an idea what might be causing this?

author: retiredfeline
author_rank: Frequent Contributor
timestamp: September 02, 2021, 12:36:00 am
content: Sounds like what you suspect, the USB interface is broken, and you say another board works. On Linux you can do "dmesg -T -w" to view the system log while pluggng it in. If no new USB device is detected, then it's kaput.

author: Nusa
author_rank: Super Contributor
timestamp: September 02, 2021, 12:39:39 am
content: Quote from: ixfd64 on September 02, 2021, 12:16:07 amAssuming you've tried a known-good usb cable as well, you seem to have already narrowed it to the board itself. The board itself is well documented and even has idiot lights for serial comms from USB. There's always the ICSP header alternative if the only concern is programming. Otherwise, you're looking at some simple board diagnosis and repair. Which may be more expensive than just replacing the board, in many situations.

author: ixfd64
author_rank: Frequent Contributor
timestamp: September 02, 2021, 06:43:53 am
content: It does seem like the USB port is busted as using a different cable didn't make a difference. I agree it's cheaper and more convenient to just order a new board as they're less than $100 each. At least we can still use the original board for manual tests as everything else seems to work fine. A bad USB port only means we can't send serial commands using our automation scripts.
liquid-dsp on STM32 with libopencm3 - Page 1
Forum section: electronics / general

author: galvanix
author_rank: Contributor
timestamp: September 01, 2021, 10:08:43 am
content: Hi, I've just started messing around withlibopencm3and so far it seems quite nice, abstracting away most of the annoying differences in STM32s between chips.Has anyone tried to use theliquid-dsplibrary in conjunction with libopencm3?I'd love to port a simple embedded SDR to libopencm3 + liquid-dsp but it seems like it's not that easy to incorporate liquid-dsp (using automake) into the libopencm3 build system (GNU make).
SAMG55 freezes at negative temperature - Page 1
Forum section: electronics / general

author: Roman Lipskiy
author_rank: Newbie
timestamp: August 31, 2021, 03:38:57 pm
content: We are faced with the problem of using SAMG55 microcontroller. After several months of continuous operation as part of G3-PLC communication module, we met firmware hanging and negative temperature.Time before failure: 3-4 months and freeze at -40 ℃). Over time, the “freeze” temperature rises, after another 3-4 months freezing temperature -20-30 ℃).Several thousand devices has this problem.Same problem at different systems, firmwares, and KIT SAMG55-Explained.Any idea what causes this problem.

author: daqq
author_rank: Super Contributor
timestamp: August 31, 2021, 04:45:24 pm
content: Capacitors are a possible culprit, depending on the dielectric they can lose some 60% of their capacitance at temperature extremes. Depending on how your design reacts to this sort of loss, it may be an issue.Another possible area is the oscillator - if it's operating on the edge you can run into some problems. I know of a design where the capacitors were poorly chosen and occasionally the tolerances would add up and cause the oscillator to not run.

author: wilhe_jo
author_rank: Regular Contributor
timestamp: August 31, 2021, 06:05:05 pm
content: I would directly investigate the oscillators...In case you have crystals and not some integrated oscillators, that's for sure some place to start...I learned how to do the calculations for crystals also the hard way and started using complete oscillators whenever possible (read: basically always!)Regards

author: Miyuki
author_rank: Frequent Contributor
timestamp: August 31, 2021, 06:15:54 pm
content: Did you consider mechanical issues and issues with solder joints at this temperature?as of "The brittle failure of Sn-based Pb-free solders at low temperatures (i.e. below -30°C) is of great concern for electronic assemblies"

author: SiliconWizard
author_rank: Super Contributor
timestamp: August 31, 2021, 06:33:09 pm
content: At -40°C, you know you are at the absolute bottom range of the operating conditions for the SAMG55 and most common semiconductors? So that's already a bit harsh.But as said above, I would suspect other parts firsts, like passive components. Just start by reading ALL datasheets.After this, yes I would also suspect the assembly. So I would ask the PCB manufacturer and the assembly house too.Have the boards been tested over their intended temperature range before shipping?

author: iMo
author_rank: Super Contributor
timestamp: August 31, 2021, 07:52:06 pm
content: QuoteIt could be silicon too..Double-check the latest Errata document for G55.And ask Microchip directly.

author: Scrts
author_rank: Frequent Contributor
timestamp: September 01, 2021, 01:51:09 am
content: Are all the parts around the micro rated to -40°C? This is industrial grade and all components around the micro must adhere to that.
J-link HW versions - little confusion  - Page 1
Forum section: electronics / general

author: Miyuki
author_rank: Frequent Contributor
timestamp: August 27, 2021, 08:16:14 am
content: Hi folks.I want to buy Segger J-link EDU, it is reasonably cheap to avoid messing with Chinese clonesI'm just a little confused with their hardware versions.Do they still have it as the same J-link box without any marking and inside is a surprise?As today should be 3 versions V9, V10, and V11.And all that version x features table is deep in the wiki page and not in the main product page

author: wilhe_jo
author_rank: Regular Contributor
timestamp: August 27, 2021, 01:48:34 pm
content: The boxes are indeed the same, but the sticker on the bottom tells you the version.IIRC, when I bought mine, the online listing explicitly said V11.... when I checked today, I couldn't find that anymore...But I would be surprised if you get something other than V11... I got mine 3 years ago and it was a V1173

author: gamalot
author_rank: Super Contributor
timestamp: August 27, 2021, 01:57:43 pm
content: https://www.eevblog.com/forum/chat/what-did-you-buy-today-post-your-latest-purchase!/msg3610195/#msg3610195

author: rvalente
author_rank: Frequent Contributor
timestamp: August 27, 2021, 02:36:07 pm
content: I bought mine @ digikey, april this year and it is version 11