hybridfree/eevblog-posts huggingface dataset:
AN1310 Pic bootloader (Doesnt enter application mode) - Page 1
Forum section: electronics / general

author: Simon123
author_rank: Regular Contributor
timestamp: January 30, 2022, 02:30:03 pm
content: Hello!I am trying to use PIC 18F14k22, PICKIT2, mplab 8.92 and AN1310 bootloader app. (Using XC8 v1.45)I am able to put the bootloader and my program onto the chip (using bootloader), but the pic doesn'tenter application mode on startup. I am only able to enter application mode using "run application firmware" button inthe bootloader gui.As described in AN1310 pdf I tie RX to 5v. Only thing is, my MCLR is internally tied to 5v, but shouldn't the app still start, if i disconnect and connect power later on?Any tips?i attached code of my project and asm of bootloader.AN1310 app note:https://ww1.microchip.com/downloads/en/AppNotes/01310a.pdfAN1310 download:https://ww1.microchip.com/downloads/en/AppNotes/Serial%20Bootloader%20AN1310%20v1.05r.zip
STM32G pins fallen out, will it work? - Page 1
Forum section: electronics / general

author: AQUAMAN
author_rank: Regular Contributor
timestamp: January 22, 2022, 01:01:26 am
content: HiDue to semiconductor shortage I only have access to 1 STM32G431It was soldered on a makeshift copper boardSo I tried to desolder it and lost 3 pins in the process. Two of them are for OSC in and OSC outOne is PA14 which I was using for UART, so I could change to another pin for this I thinkIt’s a 32 pin chip but only need spi and UARTDo you think the chip will still work? The pins proper fell out with just holes remainingWhat pins are required for programming?Also are there any alternatives to STM32G431 that I can actually buy?Project needs to use printf at very high speed

author: Robotec
author_rank: Contributor
timestamp: January 27, 2022, 08:15:20 am
content: well if only these pins have fallen it wouldn't be much of a problem, but you will have to use the internal oscillator for clock generation, problem will be UART at high speed, you may need some precision there and the internal RC wont give it, it depends of what you understand as high speed.PA14 no idea because didn't give us the package you are using but normally there are several USART(g431 has 3)you can use, depends again of the layout of your board.
Unable to flash ESP32-WROOM-32D through UART - Page 1
Forum section: electronics / general

author: aiq25
author_rank: Regular Contributor
timestamp: January 19, 2022, 10:55:19 pm
content: Hi guys. I'm having a strange issue flashing an ESP32-WROOM-32D module using UART (using an CH340C but I have tried it with a CP2104 module as well with no luck).Upon restart of the ESP32, it communicates data via UART, so I think it is working nominally and the TX and RX lines are working.When I try to program by putting it into bootloader mode (hold IO0 LOW then doing a RESET), I get the "waiting for download" message from ESP32 but when I try to program, Arduino can never connect to the module.I have this on a breakout board from Amazon with 22uF capacitor on the 3.3V on the module and a 100nF from EN (RESET) to GND.Attached are the messages I get from the ESP32 module.I have also tied IO2 externally with a 10kOhm resistor to ground.Does anyone have any experience with this?I have tried to use different baud rates as well but no luck connecting during the flash process.I'm using the latest Arduino IDE with the latest ESP32 cores.

author: UberBen
author_rank: Newbie
timestamp: January 20, 2022, 07:11:08 pm
content: I picked the NodeMCU-32S in the IDE. To program, I hold the IO0 button from power up until flashing is done. Letting go of the IO0 button caused it to fail.I have this board:https://www.amazon.com/gp/product/B09J95SMG7

author: aiq25
author_rank: Regular Contributor
timestamp: January 25, 2022, 08:05:07 pm
content: I tried another board and it worked. I guess the first breakout board I was working with had some issue with the "RX" pin.

author: mazurov
author_rank: Frequent Contributor
timestamp: January 25, 2022, 09:29:55 pm
content: Related - if anyone is struggling with automatic bootloader entry from non-esp-idf toolchain the correct timing is on the screenshots. Details here:https://owenduffy.net/blog/?p=21574
Control two MIPI displays with just one microcontroller. - Page 1
Forum section: electronics / general

author: luiHS
author_rank: Frequent Contributor
timestamp: January 24, 2022, 06:49:53 pm
content: HiWould it be possible to control two MIPI displays with one microcontroller?I have a design to do, this one has two small 3 inch screens with MIPI interface, on opposite sides of a cube. This cube rotates and at a given moment only one of the screens is visible, so it would help me to use only one microcontroller that plays the video, I can detect the position of the cube to know which video I have to play.The first thing would be to know if I can share the data and clock differential pairs between two screens and if I would have to keep the track length the same for both screens, there are two data lanes and one clock.Then I would have the problem of the Tearing signal (TE), from which only one of the two screens could be used, my question is if both screens still receive the same data at the same time, they could not be perfectly synchronized in terms of the Tearing signal to display perfectly stable image.

author: mazurov
author_rank: Frequent Contributor
timestamp: January 24, 2022, 07:19:34 pm
content: You need a multiplexer for that. Most are 2 channel though. AFAIK ADI is the only manufacturer of a 4 channel one, don't remember the PN, sorry.

author: luiHS
author_rank: Frequent Contributor
timestamp: January 24, 2022, 08:07:43 pm
content: Quote from: mazurov on January 24, 2022, 07:19:34 pmThanks.I found a switch, the Onsemi FSA642UMX, with it I can select between two MIPI inputs to one output. As in my application both screens do not really have to be working at the same time, it will be useful with a switch that selects between one of the two inputs.I also looked at a multiplexer (mostly from Texas and Onsemi), but the problem is that all the ones I found are with 0.4mm pitch BGA package, too thin for a reliable assembly in soldering for me, and it would also complicate the PCB design. The switch, although it is also 0.4mm, is a QFN package, easier to solder and check that there are no short circuits between pins in the welds.
Dumping stlinkv2 from usb - Page 1
Forum section: electronics / general

author: mar02
author_rank: Newbie
timestamp: January 24, 2022, 02:44:48 pm
content: Hello, is there a way to dump a protected stlinkv2 firmware without using uart?

author: DavidAlfa
author_rank: Super Contributor
timestamp: January 24, 2022, 03:07:30 pm
content: If you want to make your own STlink, just flash the bootloader withthis, download ST-Link utility and update the firmware.v2.0 is for 64KB-only STM32F103, v2.1 is for 128KB.

author: mar02
author_rank: Newbie
timestamp: January 24, 2022, 03:22:16 pm
content: yes, I'm interested to make another stlink but I've already one and I want to save his firmware.. I read some articles like thishttps://www.eevblog.com/forum/microcontrollers/dumping-and-reverse-engineering-st-link-v22-1-firmware/but I don't undertand ho to use st link dumper and how to connect stlink.
Silabs EFM32 tools / experiences? - Page 1
Forum section: electronics / general

author: poorchava
author_rank: Super Contributor
timestamp: January 21, 2022, 08:38:57 pm
content: Hey, so will be doing a project on Silabs EFM32 MCU (mainly due to the fact that I was able to buy them in required quantity).How do the things look when it comes to debug tools? Does a Jlink embedded on a 20€ low cost devkit fare? Can it be used with an external target or is it somehow locked to the part on the devkit? (I know some vendors have done that in the past). I intend to use the vendor-provided IDE, just for simplicity.I want to use the TG11 part. Are you aware of any quirks that those chips (or the EFM32 family in general) have? I chose the chip mainly because it it ARM core and has CAN. Are the different families pin compatible? (like ST and Atmel mostly are)
Audio Spectrum Monitor - Page 1
Forum section: electronics / general

author: BlogRahul
author_rank: Regular Contributor
timestamp: January 21, 2022, 08:32:20 am
content: I don't have any idea how system task's divide into a subtask in the real-time operating system. I see that the spectrum analyzer is a real-time system that's why I'm using it to understand real-time taskshttp://elm-chan.org/works/akilcd/report_e.htmlI have divided the whole system tasks into three tasksSamplingFFT processingDisplayAny idea How all tasks will execute in real-time ?
STM32CubeIDE a beginner's guide? - Page 1
Forum section: electronics / general

author: Watth
author_rank: Frequent Contributor
timestamp: January 18, 2022, 01:36:12 pm
content: Hello,Do you know any source of tutorials aimed at people that are familiar with Arduino that want to start using STM32 programming with STM32CubeIDE?For example, I have some Nucleo boards and managed making basic IO and serial stuff, but I'd like to know how to use the IDE's debugger to check on the variables (I managed to use STMCubeMonitor to do that, but not on the IDE).I personally prefer guides with text and pictures, rather than videos.Thanks for reading!

author: wek
author_rank: Frequent Contributor
timestamp: January 18, 2022, 01:43:50 pm
content: UM2609?Maybe you would want to have a look at chapters 3.5.2 and 5.I don't use Cube/CubeMX/CubeIDE.JW

author: rpiloverbd
author_rank: Regular Contributor
timestamp: January 21, 2022, 01:53:05 pm
content: I hope this tutorial will help you:https://www.theengineeringprojects.com/2021/10/first-project-using-stm32-in-stm32cubeide.html
AD6528 pinout? - Page 1
Forum section: electronics / general

author: oh2ftu
author_rank: Regular Contributor
timestamp: February 21, 2020, 07:23:34 am
content: Hi,I'm looking for pinout/complete datasheet for AD6528. Exact model is .. DABCZThere is a basic datasheet available on the net, but complete data seems to be under NDA..The chip is quite old, so I would assume someone might have the information needed :-)I'm looking for a JTAG or other means to easily dump the contents of a connected flashBest regards,Martin

author: oh2ftu
author_rank: Regular Contributor
timestamp: February 29, 2020, 06:11:05 am
content: Found a service manual for sharp gx25 phone. Thanks for the pinout!

author: oh2ftu
author_rank: Regular Contributor
timestamp: January 18, 2022, 07:04:44 am
content: I'm resurrecting this, as I'm still looking for a complete datasheet.It seems very elusive. I need a way to dump the flash via the CPU (non-invasive method)
3-pin optical incremental encoder IC with digital output. - Page 1
Forum section: electronics / general

author: afedorov
author_rank: Newbie
timestamp: January 07, 2020, 03:10:29 am
content: Stumbled upon rather interesting part in broken Logitech mouse. Maybe someone knows the part number. It's in 3-pin TH package (just like standard dual phototransitor), also marked on PCB as LQxx, but seems like it's an IC with binary output. Two pins provides the power, the third is IO pin. MCU provides 2 strong clock pulses and IC responds with weak pull-up or pull-down. If wheel is idle both bits are 0. First bit is 1 if scroll wheel rotates back, second bit is 1 if wheel rotates forward. Although I figured out the protocol, still would like to see the documentation.

author: jwet
author_rank: Frequent Contributor
timestamp: January 18, 2022, 03:10:25 pm
content: I known this is an old thread. I'm curious about this- did you ever figure it out? Can you post any other details, maybe a sketch of the circuit. I have worked with a lot of optical interrupters, etc. and never seen anything like this.Mouse guys are very clever- usually in order to save power. Keeping a phototransistor biased up with a pull up and having full swings would draw milliamps- bad. Not such a problem in the old days of hardwired PS2 mice but I was curious about how these wireless mice could run a year on an AA cell. I ripped apart several mice and found a variety of neat techniques. My favorite was the simplest and also the lowest power. The hung a photodiode on a port pin, reverse biased. They would drive the pin high to charge up the photodiode capacitance, then go into tristate (input) mode and the capacitance of the diode would hold up the pin because of its 20 or so pF and the pin's low leakage as long as there was no light. They would then briefly light the interrupter LED to test the state. They would poll the sensor to see if light had been on it in the last interval- it would discharge the cap. The leak rate was something like 1 mS so they did this all very quickly each time they wanted to read out the state. Its very clever and very low power. It has a bunch of kind of hidden virtues. It has a bi-stable and integrating action, they set it and the light would reset it. Each read was done in just fractions of a millisecond and the only power was the brief LED light pulse and the energy required to recharge the photodiode capacitance (miniscule) . Overall, genius. I built a mouse gadget for a Motorola design contest long ago (6805K1) and used these techniques- amazingly low power. I don't if its patented but if I had thought of it I would have!Take care.
raspberry pi shield - Page 1
Forum section: electronics / general

author: Munyua44
author_rank: Contributor
timestamp: January 15, 2022, 06:27:26 am
content: Hello all, am working on a project that involves the raspberry pi and 9i don't want to purchase it. Am current l am working on the raspberry pi shield like this one herehttps://www.pcbway.com/project/shareproject/RaspberryPi_IO_Shield_v1_0_EA_03055437.htmlAm new to this and am confused on which microcontrollers or chips i should use. Please! advice me

author: luiHS
author_rank: Frequent Contributor
timestamp: January 16, 2022, 05:45:15 pm
content: Why don't you want to use a Raspberry ?You already have the design done, and it's cheap. If you put a Raspberry pi zero2 in there, you won't be able to get it cheaper using a microcontroller and you'll have to create your own PCB.The requirements to use a microcontroller, instead of a Raspberry, are simply that it has I2C, UART and 10 GPIO ports. Pretty much any 32 bit microcontroller will do.The problem is that right now almost everything is out of stock, due to the global semiconductor crisis. You could still find in stock some LPC or i.Mx from NXP, also some STM32 from ST.
Schematic Review: ESP32 TinyPico + Murata Lora - Page 1
Forum section: electronics / general

author: waymond91
author_rank: Regular Contributor
timestamp: January 12, 2022, 11:15:38 am
content: Hello All,I've been working on this board for a while now, and I just had a few questions that I wanted to run by you all and just get any feedback before I go too crazy routing it and designing an enclosure. This is basically a GPS tracker for snorkeling and spearfishing that I want to make for myself so after diving I can review where I was in the water. It also has a mems mic and a speaker to act as close-range 'walkie talkie' in the water, ideally using ESP-NOW. I know this is not the best choice, but I also want to be able to offload data automatically so the ESP32 just does everything.Because the ESP32 is so power hungry, and I also wanted to try to add a few longer range lora features, I also included a murrata LoRa module that can be programmed with arduino ide.This schematic is actually for two boards that will be manufactured together, one GPS board (to ensure a large, clear ground plane) and another board with, well, everything else.In this case everything else is:ESP32 TinyPico Nanohttps://www.tinypico.com/tinypico-nanoMurrata CMWX1ZZABZ-078 programmable LoRa modulehttps://www.murata.com/en-us/products/connectivitymodule/lpwa/overview/lineup/type-abzMAX98357 I2S audio amplifierBNO055 MEMs sensorICS-43434 I2S MEMs microphoneADXL343 accelerometer for tap detectionMy big questions at this point are:Can I drive the audio driver from the ESP32/Murrata and record from the microphone to the ESP32/Murrata on the same I2S bus if one device is left channel and the other is right?Is ESD protection on USB connectors necessary?I'm still not sure what processes will be run on which MCU, but ideally the LoRa module does most of the work and then occasionally offloads data to the ESP32. Does anybody know of a good firmware that will let me use the ESP32 as a slave device to the Murrata chip? Otherwise my plan is to use the Murrata chip to monitor the I2S Mic and another offboard I2C sensor that does not generate interrupts, then wake up the ESP32 to chug all the data, and sleep again. But this just seems really bad...Any obvious "whoopsies" on my schematic?Thank you in adance!
Microcontroller  - Page 1
Forum section: electronics / general

author: Fourier15
author_rank: Newbie
timestamp: January 06, 2022, 07:22:41 am
content: Anyone knows Microcontroller IC with 20 pin SMD SOP package with pin 1 as VCC and Pin 2 as GND which generally comes in Cheap Chinese Electric scooter lcd panel with lcd driving IC

author: DavidAlfa
author_rank: Super Contributor
timestamp: January 07, 2022, 03:11:48 pm
content: No markings or pictures?

author: rpiloverbd
author_rank: Regular Contributor
timestamp: January 08, 2022, 12:33:56 pm
content: I don't think it is possible to find. If they have removed the markings from the IC's body, it means that they do not wish to expose any info regarding the IC.

author: jpanhalt
author_rank: Super Contributor
timestamp: January 08, 2022, 01:35:11 pm
content: Is more than one pin grounded? Maybe pin2 is ground for a different reason (e.g., unused input), and the real power ground is another pin.

author: DavidAlfa
author_rank: Super Contributor
timestamp: January 09, 2022, 01:48:04 pm
content: Anyways it's a MCU, a new one won't fix anything without the programming, also it might be OTP only.Getting the programming tool usually rises the costs beyond repair.I'm pretty sure you can find replacement boards at aliexpress.. Have you checked?
STM32 and Mipot 32001353 LoRaWAN - Page 1
Forum section: electronics / general

author: reyntjensm
author_rank: Regular Contributor
timestamp: March 25, 2021, 11:34:51 pm
content: I'm trying to communicate over LoraWAN with an STM32F429. I can't choose the LoRaWAN device so it turned out to be an Mipot 32001353. Does anybody has experience with using these modules with STM32 micro's? I have a Lora 4 click breakout board (https://www.mikroe.com/lora-4-click). Are there any library's available to use with STM32's? I couldn't find any so i tried to make one. The datasheet is not very clear to me. Would i still need to add some extra pullup resistors according to this datasheet ( see attached image ). It's not clear to me and there are no pullups on the breakout board. If somebody knows any example projects or library's please let me know!

author: crossroad
author_rank: Contributor
timestamp: March 26, 2021, 02:36:47 am
content: I don't know much about this but you do not need any external pull up resistors as the TX line is high on idle and RX already have internal pull ups.If you just want the basic features all you need is to talk to it using UART with the TX and RX pinsThe specification for the module is available here, there is a list of commands you can send on UART as well as pinout and some waveform pictureshttps://www.mipot.com/allegati/file/32001353uartcommandreferencerev0.5.pdf

author: Cire
author_rank: Newbie
timestamp: December 10, 2021, 03:42:17 pm
content: HiI am also trying to communicate with the same module by using the commands provided over the uart. I also put the wake_up pin in the high state before the transmission and the low state after transmissionMy problem is that I do not receive a response from the module knowing that the order has been sent. Have you been able to communicate with the module.Can you help me please?Thanks

author: aja29
author_rank: Newbie
timestamp: January 06, 2022, 09:14:09 am
content: Hello, i'm havining the same problem as Cire, any updates on this issue ? were you able to figure it out ?Thanks
help with P80C31BH - Page 1
Forum section: electronics / general

author: mahyar
author_rank: Newbie
timestamp: January 03, 2022, 10:43:20 am
content: so i friend gave me a few of these intel P80C31BH he said they are old stock from '80s (either that or they are Chinese clones) but i can't find anything about how to program them what compiler they use and ...so do you guys have any information about them?thanks in advance

author: retiredfeline
author_rank: Frequent Contributor
timestamp: January 03, 2022, 11:22:08 am
content: The 8031 is just a 8051 with no internal ROM so you need an external ROM/EPROM/EEPROM for the firmware. You hold the EA pin high to enable access to external ROM. Otherwise you can use 8051 datasheets.
How Many Standard PWM's Can Work at the Same Time PIC18F25K22? - Page 1
Forum section: electronics / general

author: martys
author_rank: Regular Contributor
timestamp: January 03, 2022, 04:12:06 am
content: If I am reading the datasheet correctly, five different PWM's are possible, five single output PWM output pins are possible, yet there are only three 8-bit counters, TMR2,TMR4,TMR6, but each PWM cannot share any of the three 8-bit counters with other PWMs?These 8-bit counters define the period or duty cycle of each PWM and so cannot be shared to create 5 PWMs by using Enhanced Compare CCP modules that are configured downward for standard PWM operation?Then this means there can be only three standard PWM's (each independently being set to a different duty cycle) possibly working at the same time?This means that 5 PWM's possible cannot each have/share the same timebase/period and be used at the same time?

author: Dabbot
author_rank: Regular Contributor
timestamp: January 03, 2022, 10:28:26 am
content: The PWMs must be assigned to TMR2, TMR4 or TMR6 for their period, but they can all have independent duty cycles. This means to use all 5 PWMs (CCP/ECCP in PWM mode), you will always have two pairs which share a period.
Micropower Voltage Detector, Active Low, Push Pull MCP112 - Page 1
Forum section: electronics / general

author: Lucky-Luka
author_rank: Unknown
timestamp: January 01, 2022, 10:00:56 am
content: Hi allI paste the description of this IC:The MCP111/112 Series are CMOS voltage detectors are well suited for portable, consumer electrics applications due to the extremely low 1uA operating current and small surface-mount packaging. These devices are designed to hold the microcontroller in reset until the supply voltage reaches a predetermined operating level. These devices also protect against brownout conditions that occur as a result of the supply voltage dropping below a tolerable level.I thought this function is integrated into microcontrollers. Am I wrong?What does it mean holding the uC in reset?https://www.microchip.com/en-us/product/MCP112#Thanks

author: snarkysparky
author_rank: Frequent Contributor
timestamp: January 01, 2022, 02:23:34 pm
content: Most micros do have brown out detector. Have to setup in code. Might be a little tricky to get correct.The external ones usually pull down the reset line on the micro and release it when the voltage is correct for some time interval.My guess is that the external IC solution is simple to implement and very reliable. So if keeping the micro running un attended is primary importance I would use one if budget allowed.

author: TomS_
author_rank: Frequent Contributor
timestamp: January 02, 2022, 01:05:26 pm
content: Quote from: Lucky-Luka on January 01, 2022, 10:00:56 amBasically, it pushes the reset button.Bare in mind, this device has a "push pull" output, so you will need to be careful about what other devices you connect in parallel. This device will actively drive the signal highandlow, as opposed to being an open collector/drain output which only pulls low and uses a pull up resistor to keep the signal high otherwise.If you plan to use this device, you will want to look at including a jumper to disconnect it so that you can hook up your programmer. You'll also have to consider carefully how you implement a separate reset button.

author: Ian.M
author_rank: Super Contributor
timestamp: January 02, 2022, 01:19:17 pm
content: Quote from: Lucky-Luka on January 01, 2022, 10:00:56 amFrom the MCP112 product page:QuoteThose features are *vanishingly* rare in MCU built-in BOR modules. The incremental current drain of enabling the built-in BOR is typically an order of magnitude or more higher, and typically there are far fewer BOR threshold voltages available with much worse tolerances. Also, if you are dealing with CPUs, FPAs, etc. on-chip BOR is an extreme rarity.
Help Getting PIC18F25K22 to work at  64Mhz Internal System Clock(solved) - Page 1
Forum section: electronics / general

author: martys
author_rank: Regular Contributor
timestamp: January 02, 2022, 12:40:53 am
content: The following settings now work:(problem solved, I had one of the lines below commented out)Oscillator SettingsCONFIG1H Bits 7 6 5 4 3 2 1 0IESO FCMEN PRICLKEN PLLCFG ------------------------- FOSC<3:0---------1 1 1 1 1 0 0 0This should set the startup Fosc to Internal Osc Block with Failsafe Clock, Primary Clock always En, PLL always on, HFINTOSCIn main()SCS = 0; //mandates CONFIG1H clock settingsPLLEN=1; //Redundant PLL ONOSCCON bits 7 6 5 4 3 2 1 0IDLEN --------------------IRCF------------------- n/a n/a ------SCS----------0 1 1 1 0 0 0 0OSCCON=0b01110000; // ------ HFINTOSC=16MHZ-------------- n/a n/a Osc by CONFIG1HOSCTUNE = 0x40; //PLL enabled (redundant), center freq setCM1CON0=0;CM2CON0=0; //Disables comparators//no IRQ's enabled for anything.IPEN=0;PEIE=1;GIE=1;//TMR0N=1;//TMR0IE=1;//TMROIF=0;TRISA=0; TRISB=0; TRISC=0;ANSELA=0; ANSELB=0; ANSELC=0;Start:LATB1=1; LATB1=0;goto Start;PORTB bit1 now toggling correctly
PIC programming tool problems - Page 1
Forum section: electronics / general

author: Ground_Loop
author_rank: Frequent Contributor
timestamp: November 14, 2021, 02:14:35 pm
content: Until yesterday my PICKIT4 worked just fine on both IOS and WIN platforms. After MPLAB core device updates on both machines MPLAB v. 5.4 does not recognize either PICKIT4 or PICKIT3. I have tried the Hardware Tool Emergency Boot Recovery procedure for the 4. IOS does not 'see' the 4 while attempting the recovery, but WIN does see it and goes through the erase process. Still, after reconnection, MPLAB on either platform does not recognize either tool. I have also verified that each OS platform does recognize the devices attached to the USB ports. Also tried the hold-button-down-while-plugging-in process on the 4. No Joy! It powers up with solid purple light and no recognition by MPLAB. Thoughts?At the moment I don't want to ask Microchip for a replacement because I'm not convinced the PICKIT is the problem.

author: JPortici
author_rank: Super Contributor
timestamp: November 14, 2021, 02:35:24 pm
content: tri installing an older version of MPLABX (or reinstalling the same one). I've seen many posts about this issue but i wasn't personally affected so i don't have a better solution

author: sicco
author_rank: Regular Contributor
timestamp: November 14, 2021, 03:46:44 pm
content: Same happened to my ICD4 just last week. On the same windows PC, the ICD4 works fine with the latest programmer (IPE 5.50?) but is not working with MPLABX 5.50. I went back to MPLABX 5.45, and then all worked fine. After that, tried the latest MPLABX again, and it also worked. But not very well. Hanging regularly. So for now I stopped using the latest MPLABX (5.50?).

author: Ground_Loop
author_rank: Frequent Contributor
timestamp: November 14, 2021, 09:59:24 pm
content: I ended up going the opposite direction. Uninstalled 5.45 and installed 5.5. Now my Mac sees the 3 and the 4. Strange.

author: JPortici
author_rank: Super Contributor
timestamp: November 15, 2021, 07:04:19 am
content: Probably because the installed version doesn't come with the core modules update

author: sairfan1
author_rank: Frequent Contributor
timestamp: November 19, 2021, 02:33:35 pm
content: I also got into this issue and I'm sorry its not fresh on my mind. I believe I installed standalone software for pickit3 that helped.

author: MarkF
author_rank: Super Contributor
timestamp: November 19, 2021, 04:53:47 pm
content: Have you seen this:https://www.eevblog.com/forum/microcontrollers/pickit3-requires-adminstrative-privilege/

author: rpiloverbd
author_rank: Regular Contributor
timestamp: December 31, 2021, 02:11:47 pm
content: Quote from: Ground_Loop on November 14, 2021, 09:59:24 pmThanks for sharing with us.
Art-pi Altium Files - Page 1
Forum section: electronics / general

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: November 29, 2021, 12:47:31 pm
content: Hi,W have a nice open source hardware for RT-Thread,You can find the Github repo in this linkhttps://github.com/RT-Thread-Studio/sdk-bsp-stm32h750-realthread-artpiThe problem is that I can not find the Altium files, do you know where I can find them?

author: gamalot
author_rank: Super Contributor
timestamp: November 29, 2021, 03:59:20 pm
content: I have browsed their Chinese official website and it seems that they have not published the Altium design files.

author: rpiloverbd
author_rank: Regular Contributor
timestamp: December 31, 2021, 12:36:02 pm
content: Looks like the manufacturer did not expose it anywhere.
<SOLVED> Bitfield definition results in error - Page 1
Forum section: electronics / general

author: Exystence
author_rank: Newbie
timestamp: December 29, 2021, 11:16:48 am
content: Hi,I'm always strugling with bitfields (because I don't use it very often).My bitfield is defined in main.h, like:Code:typedef struct{unsigned int unused: 4;unsigned int DTIME: 2;unsigned int ISGAIN: 2;unsigned int EXSTALL: 1;unsigned int MODE: 4;unsigned int RSTEP: 1;unsigned int RDIR: 1;unsigned int ENBL: 1;} structDRV8711CTRL;extern structDRV8711CTRL DRV8711CTRL;And in main.c as:Code:structDRV8711CTRL DRV8711CTRL;From within another file windingProcess.c the I use the code:Code:DRV8711MODE=4;DRV8711CTRL.DTIME=3;DRV8711CTRL.ISGAIN=0;DRV8711CTRL.EXSTALL=0;DRV8711CTRL.MODE=4;DRV8711CTRL.RSTEP=0;DRV8711CTRL.RDIR=0;DRV8711CTRL.ENBL=1;data=SPIserial(1,1,DRV8711CTRL);Which results in error:windingProcess.c:120:5: error: incompatible type for argument 3 of 'SPIserial'I guess because an unsigned int is expected as declared in the file procEE.h:extern unsigned int SPIserial(unsigned int SPIn, unsigned int target, unsigned int data);But I can't get a grip on where it's going wrong. I've searched online for several solutions, but none worked so far.Can anyone help in this?Thanx!

author: Siwastaja
author_rank: Super Contributor
timestamp: December 29, 2021, 11:29:03 am
content: You are trying to put astructinto unsigned int. Not going to work.Personally, I solve this by wrapping the struct inside an union to create aliases in all types I need to work with.Remember that bitfields are implementation defined and the ordering and padding of the elements only works within one compiler. I'm usually fine with that, language purists are not. In any case, you need to be aware of this.Code:typedef union{struct __attribute__((packed)) { // seems to be 16 bits actuallyunsigned int unused: 4;unsigned int DTIME: 2;unsigned int ISGAIN: 2;unsigned int EXSTALL: 1;unsigned int MODE: 4;unsigned int RSTEP: 1;unsigned int RDIR: 1;unsigned int ENBL: 1;};uint16_t u16;uint8_t u8;} structDRV8711CTRL;...data=SPIserial(1,1,DRV8711CTRL.u16);SPIserial() should be modified to use stdint types, in my opinion. Does it really expect at 16-bit or 32-bit argument? What is the platform? unsigned int might be 16 or 32 bits.

author: Exystence
author_rank: Newbie
timestamp: December 29, 2021, 03:59:51 pm
content: Thanx!I'm using the 16 bit controller PIC24FJ128GA308 and MPLABX with XC16.The result is:In main.h I had to include<stdio.h>(even though it is included in main.c (?))The code in main.h is:Code:typedef union{uint16_t ALL;struct{unsigned int unused: 4;unsigned int DTIME: 2;unsigned int ISGAIN: 2;unsigned int EXSTALL: 1;unsigned int MODE: 4;unsigned int RSTEP: 1;unsigned int RDIR: 1;unsigned int ENBL: 1;};} structDRV8711CTRL;extern structDRV8711CTRL DRV8711CTRL;And in main.c:Code:structDRV8711CTRL DRV8711CTRL;Then in windingProcess.c the code is:Code:DRV8711MODE=4;DRV8711CTRL.DTIME=3;DRV8711CTRL.ISGAIN=1;DRV8711CTRL.EXSTALL=0;DRV8711CTRL.MODE=DRV8711MODE;DRV8711CTRL.RSTEP=0;DRV8711CTRL.RDIR=0;DRV8711CTRL.ENBL=1;data=SPIserial(1,1,DRV8711CTRL.ALL);Now I only have to remember it!
Attiny85 development board not recognised by Windows 10 - Page 1
Forum section: electronics / general

author: YurkshireLad
author_rank: Frequent Contributor
timestamp: December 31, 2021, 12:43:08 am
content: I have what I think must be a Digispark Attiny85 development board. I've followed the instructions from the following site and other sites:https://www.best-microcontroller-projects.com/digispark-attiny85-arduino-install.htmlWhen I connect the dev board to any USB port on my Windows 10 laptop, an error pops up saying the device isn't recognised.I installed the drivers fromhttps://github.com/digistump/DigistumpArduino/releases/but that didn't change anything.I tried all USB ports on my laptop, USB2 and USB3, but all give the same errors.Did I miss anything? Is there something else I need to install?Thanks

author: rpiloverbd
author_rank: Regular Contributor
timestamp: January 01, 2022, 11:12:09 am
content: Hello, here is a video and blog that may help youhttps://startingelectronics.org/tutorials/arduino/digispark/digispark-windows-setup/if you have not checked it yet.

author: YurkshireLad
author_rank: Frequent Contributor
timestamp: January 01, 2022, 02:57:15 pm
content: Thank."After the driver installation has finished, click the Finish button in the Device Driver Installation dialog box."I don't recall seeing this dialog so maybe the drivers didn't install properly.
ATMEGA644PA-AU genuine or fake? - Page 1
Forum section: electronics / general

author: NickE
author_rank: Contributor
timestamp: December 17, 2021, 12:39:45 pm
content: I use ATMEGA644PA-AU MCU on one of my project. This chip is out of stock everywhere. Big distributors told me it won't be available within one year.On the first picture you can see a (hopefully) genuine chip from an authorized distributor. But it was the last piece. The 2nd and 3rd picture is the suspicious chip.Now I only found a few chips at a small electronic shop but it looks different as you can see on pictures. Actually it does the job but I afraid it is fake. Is it possible to identify it is genuine or fake?

author: Kleinstein
author_rank: Super Contributor
timestamp: December 17, 2021, 12:53:31 pm
content: If the chips does the job, chances are very high that it is real. It does not really look like a pulled part - not that likely with a relatively new part. AFAIK there is no way to change the Chip IC code the programmer usually checks before doing the programming.

author: wraper
author_rank: Unknown
timestamp: December 17, 2021, 01:12:36 pm
content: Chip does not look grinded. Marking looks OK for older chips. Also it's good that bottom side has the same date code. Microchip later changed the marking, but in 2015 they still should had the old marking.

author: rpiloverbd
author_rank: Regular Contributor
timestamp: December 23, 2021, 02:25:25 pm
content: The first one looks tempered to me. To the best of my knowledge, the AVR chips come with 'AU' suffix. Not only 'U' like I can see in the pictured. Moreover, the last numbers are erased. The second photo looks genuine.

author: wraper
author_rank: Unknown
timestamp: December 23, 2021, 02:39:10 pm
content: Quote from: rpiloverbd on December 23, 2021, 02:25:25 pmOnly if you are out of date. Microchip removed the letter indicating package type from the marking a few years ago.

author: rpiloverbd
author_rank: Regular Contributor
timestamp: December 26, 2021, 07:46:38 am
content: Quote from: wraper on December 23, 2021, 02:39:10 pmOh I see. Had there been any official declaration or update in the datasheets since then? Thank you.
Black Pill STM32F411 Stm32duino Virtual COM Port Signals Timing  - Page 1
Forum section: electronics / general

author: bb1
author_rank: Regular Contributor
timestamp: December 15, 2021, 06:46:03 pm
content: It is interesting to see signals on USB wires when Black Pill sends data to PC using Virtual COM port.The attached PDF has several Scope and Hardware USB sniffer screenshots illustrating maximum data transfer speed and timing of data packets sent between the Black Pill and PC.

author: bb1
author_rank: Regular Contributor
timestamp: December 18, 2021, 05:07:35 pm
content: Writing data from PC to Black Pill is significantly faster than reading data from Black Pill.To observe that, I used the following simple Arduino code:void loop(){if (Serial.available() > 0) {digitalWrite(pin, 1);Serial.readBytes(arr1, arrSiz);digitalWrite(pin, 0);}}Pin value is shown by blue trace, USB_DP is shown by the yellow trace on the scope screenshots.For arrSiz=10000 the result can be seen on the scope screenshot readBytes_10000bytes_13mS.png. Time of the transfer is not well defined, and it may take up to 14 mS to transfer 10000 bytes from PC.Hardware sniffer screenshot is shown on sniffer_500bytesToBlackPill.png for 500 bytes transfer. One can see that some OUT tokens are NAKed. All OUT transfers are separated by IN packets. In this case 500 bytes transfer took about 0.8 mS.In other cases it can take about 0.6 mS.Typical scope screenshot for 500 bytes transfer is shown on readBytes_500bytes_750uS.png.
Multimeter EEPROM modding Zeast282 RX/TX enabling - Page 1
Forum section: electronics / general

author: Atom
author_rank: Regular Contributor
timestamp: September 17, 2019, 05:15:12 pm
content: hello! first time posting in the micro section..So the problem here is that i bought 2 Zeast 282 multimeters for dirt cheap 12e each, the thing is that i'v seen some multimeters have a serial out functionality and that could be very useful for datalogging, + i can learn something about eeproms and the ch341 programmer that has been sitting in the bag in which arrived for over a yearso the zeast282 uses a HY12P65 chipset that has UART capability , on datasheet pin 20 or TX/PT1.4http://www.hycontek.com/wp-content/uploads/DS-HY12P65-EN.pdfi probed the pin but nothing comes out of it, so i though that maybe the serial tx was disabled, i managed to dump the eeprom from the multimeter , ic was atmel 24C08Nhttp://ww1.microchip.com/downloads/en/devicedoc/atmel-8787-seeprom-at24c04c-08c-datasheet.pdfi'll attach the eeprom bin file and maybe also the dump from another similam multimeter the hy_19E beacuse they are the same multimeter.so is there anyone that can guide me to modify the eeprom to enable the tx pin?any help is really appreciated, keep in mind that i'm a noob when it comes to eeprom reading and understandingNOTESidont know the name of the chip on the lefti soldered 2 cables on the left header because i tought i found the serial out .. so i was trying to read that with a serial to usb converter. i obtained only trash from the serial monitor . i'm not really sure what signal is that butits coming from the ht12p65pin PT2.2/PWM/PFDpin 14.. in the datasheet its written as pwm port orPFD PORT (wtf is that?)i think its a signal that the 2 ic uses to communicate but i have no cluein the rar there are 2 bins the zeast282 is the one that i dumped , the hy19e bin was taken from a russian siteagain what is a PFD PORT??signal in the next post

author: Atom
author_rank: Regular Contributor
timestamp: September 17, 2019, 05:20:59 pm
content: so this is the signal on pin 14 the ?PFD OUTPUT? i dont know what this is but i tought i should share it anyways, the times in red are in microseconds. the signal i think is coming from the hy12p65 ang going into the other chip and then to the header... soo any ideas of what that could be?if you have any question feel free to ask

author: vinibali
author_rank: Newbie
timestamp: December 16, 2021, 07:27:22 pm
content: Hello Atom!I was just googling around for some weeks and I found Sigrok. I didn't want to buy another multimeter instead of this one and I found your page and others too in the past days.This processor was probably rebranded to DTM0660L. I found some page around the web which hacked that one but I was able only to tune the device power-off and backlight.Sources:http://improwis.com/projects/reveng_multimeters/http://www.kerrywong.com/2016/03/19/hacking-dtm0660l-based-multimeters/I made a comment here too:https://www.eevblog.com/forum/testgear/hacking-dtm0660l-based-multimeters/
reading current and voltage signals using STM32F103 - Page 1
Forum section: electronics / general

author: e0ne199
author_rank: Regular Contributor
timestamp: December 30, 2021, 11:45:44 pm
content: hello everyone,i want to ask something about my project that i am currently building. I want to use STM32F103 to read the phase signal of voltage and current on mains in realtime using ADC through voltage and current sensor, but is that microcontroller capable of doing such task? and is the ADC of STM32 accurate enough to read voltage and current signal? i really want to avoid using external metering chip to read those things, because i want to make my project as compact as possible...any answer are really appreciated, thx

author: ledtester
author_rank: Super Contributor
timestamp: December 30, 2021, 11:59:02 pm
content: Here's a Microchip/Atmel app note on how to build a single phase energy meter with a XMEGA processor (an 8-bit mcu):Atmel AVR1631: Single Phase Energy Meter using XMEGA Ahttps://ww1.microchip.com/downloads/en/AppNotes/doc42039.pdfHere's one of the things it mentions with regards to sampling rate:Quote

author: e0ne199
author_rank: Regular Contributor
timestamp: December 31, 2021, 12:29:21 am
content: Quote from: ledtester on December 30, 2021, 11:59:02 pmnice article though, thanks, but looks like XMEGA is a bit overkill, i guess? i don't know whether XMEGA is faster than STM32F103 or not...anyway do you have the similar article but with STM32?

author: ledtester
author_rank: Super Contributor
timestamp: December 31, 2021, 12:57:54 am
content: That app note is actually an updated version of a previous one -- AVR465 -- which was written with the older ATmega88 in mind:Atmel AVR465: Single-Phase Power/Energy Meter with Tamper Detectionhttps://www.microchip.com/content/dam/mchp/documents/OTH/ApplicationNotes/ApplicationNotes/Atmel-2566-Single-Phase-Power-Energy-Meter-with-Tamper-Detection_Ap-Notes_AVR465.pdfThe algorithm and processing steps presented in the app note are explained in a very MCU-agnostic way so you should have no trouble implementing it on an STM32.
STM 32F4 PA0/WKUP pin and TIM5 - what are the gotchas? - Page 1
Forum section: electronics / general

author: peter-h
author_rank: Super Contributor
timestamp: December 14, 2021, 07:22:57 pm
content: I have been reading the RM and various stuff online about this, and wonder what the issues are with PA0 if the 32F4 isnotused in any low power modes.On my board, PA0 is set up to be an input with a pulldown, but it otherwise unused because we could not work out the full extent of the limitations. I would like to use it with TIM5 (CH1, via AF2) which is handy because it is a 32-bit timer.CH1 can be an input or an output so you can use it for PWM etc.

author: DavidAlfa
author_rank: Super Contributor
timestamp: December 14, 2021, 09:01:38 pm
content: I don't get it?It's very much like a normal GPIO, with the exception that it can be used to wake up the stm32 while in sleep mode.If configured for that, the pin won't be disabled when the stm32 goes into deep sleep state.In running state there would be no limitations at all? Have you actually tried to use it as TIM5 CH1?

author: peter-h
author_rank: Super Contributor
timestamp: December 15, 2021, 06:02:23 am
content: I have not tried it because it could be working "by luck"Also, the timers are complex so something might not be working for multiple reasons.But from what you say it is simple. The data sheet talks a lot about PA0 and the onboard voltage regulator, etc. and it doesn't sound totally simple.

author: DavidAlfa
author_rank: Super Contributor
timestamp: December 15, 2021, 10:19:22 am
content: What F4?

author: peter-h
author_rank: Super Contributor
timestamp: December 15, 2021, 12:49:19 pm
content: Sorry - STM 32F417

author: Siwastaja
author_rank: Super Contributor
timestamp: December 15, 2021, 02:36:39 pm
content: I don't see any issue.I understand your concern, I myself feel like validating every normal thing I do on STM32 because always there is a gotcha somewhere, or outright silicon bug, documented or non-documented.But you have to draw the line somewhere, you need to assume that the alternative functions listed in the pin mapping section of the datasheet means those alternative functions actually work.

author: peter-h
author_rank: Super Contributor
timestamp: December 16, 2021, 06:32:39 am
content: Thank youThe data could directly state that PA0 is a GPIO pin unless low power modes are used, but it doesn't say that.
More MMACs! -- Alternatives to FPGAs - Page 1
Forum section: electronics / general

author: ezalys
author_rank: Frequent Contributor
timestamp: December 08, 2021, 06:21:13 pm
content: I would like to ingest, mix, and filter data from a 40 MSPS DAC, as well as run an ADPLL to lock onto an incoming signal. In other words, I'd like to make a lockin amplifier.Since FPGAs are so hard to get these days, I'm inclined to ask what else is on the market that can handle high speed DSP. About 5 years ago I would have looked at a Blackfin, but this seems to be dying. Are people using ARMs as high speed DSPs? What about just off the wall alternative architectures? I did some back of the envelope calculations and thought one of those Greenarrays CPUs might be kinda fun to try, but it seems too slow. There's also some new parts from XMOS that seem cool. Just for my own interest, what else is available that might be fun to try?

author: uer166
author_rank: Super Contributor
timestamp: December 08, 2021, 09:01:41 pm
content: How many MACs do you actually need? The sample rate doesn't tell much since it depends on the filters/processing. Maybe look at some TI DSPs like TMS320C6655 and such, 40 GMACs per core per second, so that's like 1000 MACs per sample.

author: fchk
author_rank: Frequent Contributor
timestamp: December 13, 2021, 08:57:35 pm
content: NVidia Jetson Modules have powerful GPUs with thousands of CUDA cores that all work in parallel. If your algoorithms can be vectorized this might be the way to go.fchk

author: ezalys
author_rank: Frequent Contributor
timestamp: December 14, 2021, 12:17:20 am
content: Jetson looks neat but I don't think it has a particularly easy to talk to high speed I/O thing. Best I can imagine is hanging an FPGA off the PCI/e bus and now we're back to an FPGA.

author: fchk
author_rank: Frequent Contributor
timestamp: December 14, 2021, 04:15:47 pm
content: Quote from: ezalys on December 14, 2021, 12:17:20 am1. PCIe Bridge, doesn't need to be an FPGAhttps://www.broadcom.com/products/pcie-switches-bridges/pcie-bridges/pex83112. USB3https://www.infineon.com/cms/en/product/universal-serial-bus-usb-power-delivery-controller/peripheral-controllers/ez-usb-fx3-superspeed-usb-3.0-peripheral-controller/?utm_source=cypress&utm_medium=referral&utm_campaign=202110_globe_en_all_integration-product_families3. CSI2 with bridge