hybridfree/eevblog-posts huggingface dataset:
USART bootloader not working - Page 1
Forum section: electronics / general

author: sanka1p
author_rank: Contributor
timestamp: October 30, 2023, 01:07:40 pm
content: I am trying to use the USART Bootloader that Microchip provided for AVR 0 series. I am trying to use that on Atmega1608. I changed the UART pins accordingly to PA0(Tx) and PA1(Rx). Baud rate to 9600 and the boot pin to PC0. I am trying to flash a simple Blinky hex file. The issue I am facing is that I am able to successfully flash the hex file through the bootloader, but the LEDs are not blinking. When I just flash the blinky.hex through UPDI it works normally. I am attaching both my blinky hex file and the boot.c file If someone can help me figure out that am I doing wrong. I am using Microchip studio. main.c is a blinky c file.
Arduino ESP32 using both Cores ? - Page 1
Forum section: electronics / general

author: Lindley
author_rank: Regular Contributor
timestamp: October 26, 2023, 02:55:58 pm
content: Currently have code running as a single loop in the default Core 1 and have been viewing various web pages and ytubes about creating two Tasks and running one Task in each Core, which seems straight forwards enough.However some of those ytubes are several years old and some also contain comment that Core 0 should ideally be left unused as much as possible to avold problems with the Wifi/Bt etc that RTOS runs in Core 0.One video even said this what Espressif recommends.As things may have moved on, do those comments still hold ? can we use for our Core 0 for our Tasks safely or is it better to run the two Tasks in Core 1, abeit possibly slower ?

author: globoy
author_rank: Frequent Contributor
timestamp: October 26, 2023, 03:19:31 pm
content: I successfully run tasks on Core 0 in systems using Wifi or Bluetooth with no deleterious effects. Usually the Espressif stacks are running at a pretty high priority so get the CPU time they need. Of course you could create a task or tasks that would impact them so it's up to you to test your system.I generally am conscious of when designing and then profile my tasks to understand what kind of load they put on the CPU (and memory system). I usually try to design tasks so they have idle periods between evaluation periods (conscious of the minimum time slice - usually 10 mSec - the scheduler uses) so the OS has plenty of time to schedule them with other things. When using hardware interfaces it is much more efficient to have the interface use a DMA engine to move data to/from buffers (rather, for example, than the typical Arduino way of moving a byte at a time under CPU control).With some thought - and profiling - I've been quite impressed at how much real time data processing I can do on the dual CPU ESP32 cores.
AVR: Clock Speed Calculation - Page 1
Forum section: electronics / general

author: lumdef
author_rank: Contributor
timestamp: October 24, 2023, 09:40:04 am
content: I am programming AVR ATTiny2313, and I want to toggle an LED once per second. I do that using the 8-bit timer, here is the code:Code:.NOLIST.INCLUDE "tn2313def.inc".LIST;; ------ Register ---------------------.def rmp = R16 ; multi purpose register; ------ Program start ----------------.cseg.org 000000Start:; Stack initldi rmp,LOW(RAMEND)out spl,rmp; Reduce clock frequencyldi rmp,1<<CLKPCEout CLKPR,rmp ; Allow clock frequency modificationsldi rmp,(1<<CLKPS2) | (1<<CLKPS0)out CLKPR,rmp ; Prescaler /= 32; PB0 as outputsbi DDRB,DDB2; Start timer, toggle PB0 on compare match, CTC at 120ldi rmp,120out OCR0A,rmp ; Set CTC compare match valueldi rmp,(1<<COM0A0) | (1<<WGM01)out TCCR0A,rmp ; Toggle OC0A, CTC modeldi rmp,(1<<CS02) | (1<<CS00)out TCCR0B,rmp ; Timer prescaler /= 1024; Sleep modeldi rmp,1<<SE ; Sleep mode idleout MCUCR,rmp ; to universal control portWakeup:sleep ; send controller to sleepnoprjmp Wakeup ; send controller to sleep againThe problem is this code toggles the LED state at pin PB0 once per ~500ms (while I want 1/sec). Now please tell me where my calculations are wrong...Page 95 of ATTiny2313 datasheet gives the following formula for waveform frequency of OC0A: (chip_clock_speed)/(2*timer_prescaler(1+OCR0A)).In my case chip_clock_speed=250000, timer_prescaler=1024, OCR0A=120, which yields 1 if you put these values into the formula. Why is PB0 not being toggled once pre second?

author: lumdef
author_rank: Contributor
timestamp: October 24, 2023, 01:14:18 pm
content: Alright, seems like my understanding of frequency was wrong. If one wants to toggle an LED once per second, then the period of the waveform must be 2 seconds, not 1.

author: MikeK
author_rank: Super Contributor
timestamp: October 24, 2023, 03:18:42 pm
content: Depends what you mean by "toggle". If "toggle once per second" means that the LED changes state every second then, yes, the period is 2 seconds The LED is off for 1 second and on for one second. The waveform takes a total of 2 seconds.
SWO doesn't work with STLINK-V3PWR - Page 1
Forum section: electronics / general

author: n4te
author_rank: Regular Contributor
timestamp: October 18, 2023, 05:53:24 pm
content: I'm trying to get logging via SWO using STM32CubeIDE, an STLINK-V3PWR, and an STM32F411CEU6. It's wired and configured correctly because it does work if I use the 16MHz HSI, but I need to use my 25MHz HSE. I get no SWV entries at all when I set both the SYSCLK and the SWV clock to 25MHz. Does that make any sense? Is there some good reason for that?I got the STLINK-V3PWR to dork with the power measurements, but now I'm wondering if it's the problem. I don't have another programmer to try. I bought a Tag-Connect for it, so if I buy another programmer to try I'd like it to be V3 or V3MINI so my cable fits (STDC14). I'd rather the V3PWR work correctly.I could trash bin the stupid STLINK and get a JLink. At this point I just need it to work. I'd be very unhappy if the JLink also didn't work.I posted on theST forumbut I'm skeptical about getting a useful response.

author: Bud
author_rank: Super Contributor
timestamp: October 18, 2023, 07:28:49 pm
content: You can try to reflash ST-Link with JLink firmware to convert to JLink. Not sure though if JLink still provides it.

author: n4te
author_rank: Regular Contributor
timestamp: October 18, 2023, 09:45:40 pm
content: Interesting, but that seems to be for the Discovery and Nucleo boards. I wonder if it'd work on a V3PWR.

author: n4te
author_rank: Regular Contributor
timestamp: October 21, 2023, 05:57:02 pm
content: Turns out I'm an idiot and had misconfigured my clocks. I had thought my HSE was 25MHz, as it is in my other designs, but for this one I used 10MHz. After fixing that SWO logging works, but fails when messages are sent too fast. I'm not even sending all the fast, messages are sent at about 60Hz.I kept everything the same but replaced the V3PWR with a V3SET and V3MINIE and those work fine. SWO logging never stops. This leads me to believe the V3PWR is a piece of shit.I guess I should not have tried using ST programmers. I'll try a J-Link Mini.
Open-source projects with PIC MCU - Page 1
Forum section: electronics / general

author: AliRezaJoodi
author_rank: Contributor
timestamp: October 09, 2023, 01:47:01 pm
content: HiThese are my open-source projects of ten years ago.It may be useful for students.Note: The projects are prototype and should get better.Please follow and star me:GitHub Account:GitHub.com/AliRezaJoodiLinkedIn Account:LinkedIn.com/in/AliRezaJoodiThanksDigital Meter With SRF02 Ultrasonic Moudlehttps://github.com/AliRezaJoodi/PIC_Projects/blob/main/DigitalMeter_Ultrasonic_SRF02Gas Leak Detector Or Fire Alarmhttps://github.com/AliRezaJoodi/PIC_Projects/blob/main/GasDetectorUnipolar Step Motor Controller With A Computer (RS232)https://github.com/AliRezaJoodi/PIC_Projects/blob/main/MotorDriver_UnipolarStepperMotor_RS2321CH Relay Controller With Laser Pointerhttps://github.com/AliRezaJoodi/PIC_Projects/blob/main/RelayController_LaserPointer_1CHTel Card Readerhttps://github.com/AliRezaJoodi/PIC_Projects/blob/main/TelCardReaderText Display With 16*2 LCD and Controlled By Computerhttps://github.com/AliRezaJoodi/PIC_Projects/blob/main/TextDisplayWithLCD16x2_ControlledByComputerText Display With 16*2 LCD and Controlled By PC Keyboardhttps://github.com/AliRezaJoodi/PIC_Projects/blob/main/TextDisplayWithLCD16x2_ControlledByPcKeyboard

author: AliRezaJoodi
author_rank: Contributor
timestamp: October 16, 2023, 09:00:21 am
content: Text Display With 16*2 LCD and Controlled By PC Keyboard (PS2)It's an open-source project of ten years ago.MCU: PIC16F877AFrequency: 8MHz (External Crystal)Display: 16x2 LCDNote: Included schematic and PCB layout with ProteusNote: It's a prototype and should get betterPictures:Schematic:GitHub Link:https://github.com/AliRezaJoodi/PIC_Projects/tree/main/TextDisplayWithLCD16x2_ControlledByPcKeyboard

author: zapta
author_rank: Super Contributor
timestamp: November 03, 2023, 03:34:47 pm
content: Nice projects. Thanks for sharing. It says that PCB layouts are available but I couldn't find any, does it require Proteus?BTW, since you designed these projects, the prices of professionally made two layer PCBs drops to almost nothing, especially if you are willing to wait a few weeks for delivery.
J-Link Pro to program 3 wire SPI ??? - Page 1
Forum section: electronics / general

author: luudee
author_rank: Frequent Contributor
timestamp: October 04, 2023, 07:52:20 am
content: Hi Guys,I have a J-Link Pro, and am wondering if it can program SPI flashes with DI & DO (MISO & MOSI) tied together ?The controller requires that we connect the MISO and MOSI together, it has a single SDIO pin, but does init's data sheet specify a standard FLASH (W25X05CLS) with 4 pin SPI interface.I can't find anything in the Segger/J-Link documentation ....Any pointers appreciated.Best Regards,rudi

author: ajb
author_rank: Super Contributor
timestamp: October 04, 2023, 03:33:21 pm
content: I doubt it can program them directly, but don't know for sure. You can use J-Flash to program external memories connected to a supported MCU--it loads a small application into RAM, then it passes data to the application to be written to the memory. I haven't used that feature and don't know what the limitations are, but might be worth looking at.

author: GromBeestje
author_rank: Frequent Contributor
timestamp: October 04, 2023, 06:03:23 pm
content: You can connect an SPI flash directly to a J-Link and program it. However, I never heard of SPI flash operation with the DI and DO connected together.

author: DavidAlfa
author_rank: Super Contributor
timestamp: October 04, 2023, 08:01:11 pm
content: Most SPI slaves will work fine with SDI/SDO joined together, as SDO is Hi-Z when receiving and SDI is "don't care" when transmitting.(This should be checked in the datasheet).But the master must tristate SDO, either manually by disabling the pin, or using SPI 1-pin half-duplex mode, where the same pin does both functions depending if receiving or transmitting.

author: luudee
author_rank: Frequent Contributor
timestamp: October 21, 2023, 02:44:01 am
content: Just as a follow up:I talked to tech support at Segger. They say it doesn't directly support it,but I could use their DPK(?) to create a custom protocol.Cheers,rudi
Clone USB Blaster and TopJtag - Page 1
Forum section: electronics / general

author: GGMM
author_rank: Frequent Contributor
timestamp: October 18, 2023, 07:20:53 pm
content: Hello,I have a USB Blaster clone and would like to use it with TopFlash.Everything is correct for usb port detection.For the connection I put the following config "altera usb blaster"But no activity light and no chain detected.Of course the connections are made with the Jtag pins of a Rigol oscilloscope that I try to repair.(Of course it's powered)And other choice in the list to use because it' a clone?Thank you for your help with this first step.
MPLAB X v6.10 fails with MCP2221(A) attached to computer - Page 1
Forum section: electronics / general

author: jc101
author_rank: Frequent Contributor
timestamp: June 07, 2023, 05:49:25 pm
content: Having a new and shiny ICD 5 arrive, I thought I'd install MPLAB X 6.10 to give things a whirl. All went well, until I plugged a box of mine in development and MPLAB X just quit. Then it simply wouldn't start, nor would v6.05. Though v6 did seem to launch OK.It turns out, confirmed by Microchip support, that installing v6.10 isn't compatible with anything using a MCP2221(a) attached to the computer at the same time. A fix is in the pipeline, though they wouldn't give a timeline.This was their reply to my support ticket...QuoteTo be more precise, it crashes with anything connected using the USB VID / PID 0x04D8 / 0x00DD, which also includes a number of Microchip dev boards. Just a heads up for people.

author: SiliconWizard
author_rank: Super Contributor
timestamp: June 07, 2023, 07:40:40 pm
content: Sounds nice.

author: woofy
author_rank: Frequent Contributor
timestamp: June 07, 2023, 09:36:42 pm
content: yeah, I also had stability issues with 6.10. reverted to 5.50 and all is well again.6.00 is ok under win10, but crashes with linux (mint 20.3).

author: JPortici
author_rank: Super Contributor
timestamp: June 08, 2023, 04:57:44 am
content: yeeeeahwe knowluckily apart from 5th gen tools support, there was nothing else that made it worth updating. 6.05 working good here

author: jipihorn
author_rank: Contributor
timestamp: October 16, 2023, 07:55:21 am
content: Hello,Did Microchip correct this problem in the 6.15 version ?Jerome

author: jc101
author_rank: Frequent Contributor
timestamp: October 16, 2023, 07:58:04 am
content: Yes, you install 6.15, and then once it starts, there are some small patches to load. Check the small speech bubble icon bottom right when it appears and install the updates it suggests. It may take a few minutes for that to appear.

author: jipihorn
author_rank: Contributor
timestamp: October 16, 2023, 10:25:49 am
content: Ok, thank you.The problem with microchip is that there absolutely no way to know easily if they corrected something. Their release notes are a useless mess and the rest is placed in a secret location.Jerome

author: SiliconWizard
author_rank: Super Contributor
timestamp: October 16, 2023, 10:30:49 pm
content: Quote from: jipihorn on October 16, 2023, 10:25:49 amWell, in terms of hardware, to be fair, they do a decent job with erratas I think.But in terms of software, that's a whole other story indeed.

author: jipihorn
author_rank: Contributor
timestamp: October 17, 2023, 09:25:53 am
content: I was speaking about software, of courseI do like the hardware, i don't remember having trouble with all the chips I used from them...J.
MCU hangs when performing a reset from software - Page 1
Forum section: electronics / general

author: newtekuser
author_rank: Frequent Contributor
timestamp: October 16, 2023, 12:10:44 am
content: Hello All,I am trying to reset my PIC16F887 from software to no avail. Have tried disabling i2c, disabling interrupts and timers, but my MCU hangs when calling the RESET function. What am I doing wrong?The setup is fairly simple consisting of a 16x2 LCD and DS3231 chip connected to the micro-controller. I also have a push button connected to the external interrupt INT0 pin (RB0).Code:void reset(){INTCONbits.GIE = 0;PIE1bits.TMR1IE = 0;INTCONbits.INTE = 0;INTCONbits.PEIE = 0;T1CONbits.TMR1CS = 0;T1CONbits.TMR1ON = 0;SSPCON &= 0xDF;RESET();}Thanks!

author: DavidAlfa
author_rank: Super Contributor
timestamp: October 16, 2023, 03:22:34 am
content: IIRC there's no reset instruction in the pic16, so the program actually makes a jump to reset vector, not a good way to reset.https://onlinedocs.microchip.com/oxy/GUID-BB433107-FD4E-4D28-BB58-9D4A58955B1A-en-US-5/GUID-06B80226-9C00-4067-B659-E0D3760CDA94.htmlYou could use the WDT for a real reset:Code:void reset(){OPTION_REGbits.PSA = 0; // Make sure the PS prescaler is not used for the WDTWDTCON=1; // pre = 32, WDT onwhile(1); // wait for reset (About 1ms)}

author: newtekuser
author_rank: Frequent Contributor
timestamp: October 16, 2023, 03:28:16 am
content: Quote from: DavidAlfa on October 16, 2023, 03:22:34 amThat's very clever, many thanks!I'll try it out.

author: jpanhalt
author_rank: Super Contributor
timestamp: October 16, 2023, 09:17:14 am
content: If you switch to the very similar with respect to code enhanced midrange PIC, e.g., 16F1829, you will have a RESET instruction. That might be of use, if for some reason you need to distinguish a WDT reset from something done in code, e.g., user initiated reset.

author: DavidAlfa
author_rank: Super Contributor
timestamp: October 16, 2023, 11:15:59 am
content: You can still detected the reset reason in the 887 (Brown-out, WDT, etc).

author: DavidAlfa
author_rank: Super Contributor
timestamp: October 16, 2023, 02:14:49 pm
content: Now I arrived home I could check what RESET() actually does. It's defined in xc8debug.h :Code:#if defined(_PIC14E) || defined(_PIC14EX) || defined(_PIC18)#define RESET()asm("reset")#else#define RESET()asm("ljmp $")#endifasm("ljmp $")jumps to current PC address, basically awhile(1);, that explains why it was hanging.Maybe it was expecting the WDT to be active? Meh, just don't use it in PIC16!
STM32G030C8T6 - Is SPI1_NSS on pin 15 or 19? Confusing table in datasheet. - Page 1
Forum section: electronics / general

author: dusan
author_rank: Regular Contributor
timestamp: October 28, 2023, 03:24:13 pm
content: On page 32 of datasheethttps://www.st.com/resource/en/datasheet/stm32g030j6.pdfin Table 12 there is SPI1_NSS on 2 pins for LQFP48 package. Which one is it? Or both? If it is on both, how can arduino SPI library possibly know which one did I connected to?

author: ataradov
author_rank: Super Contributor
timestamp: October 28, 2023, 03:40:35 pm
content: It is on either one of them. How Arduino will know - check with Arduino, it might assume one or have a way to configure it.

author: Monkeh
author_rank: Super Contributor
timestamp: October 28, 2023, 05:03:08 pm
content: It's available on PA15, too.https://github.com/stm32duino/Arduino_Core_STM32/wiki/API#spi
Nuvoton: MS51FB9AE PWM retains previous state after turning off (Solved) - Page 1
Forum section: electronics / general

author: Ashwin619
author_rank: Regular Contributor
timestamp: October 05, 2023, 04:01:40 am
content: Hello everyone,I am working on a design where I need to drive a piezo buzzer (@2.7kHz, 50%) at some regular intervals for a certain duration. The PWM seems to work fine whenever I start it, although it retains its previous state whenever I turn it off. I want the default state to be LOW, however there seems to be no way to configure it as such through any particular register (might have missed it).A couple of possible solutions to this would either be to turn off the PWM by writing a LOW on the pin (unlikely this would work) OR make the duty 0 rather than turning off. Both of these methods don't seem to be a good way of doing it.I am attaching the PWM scope waveform and the piece of code that I am using to achieve this. I would appreciate if someone could shed some more light on this.Let me know if some more details are required regarding the macros that are being used for peripheral initialization.Regards,Ashwin619.

author: PCB.Wiz
author_rank: Super Contributor
timestamp: October 09, 2023, 03:18:34 am
content: Quote from: Ashwin619 on October 05, 2023, 04:01:40 amWhy do they'don't seem to be a good way of doing it. '?If you stop the clock to a PWM module it will freeze.If you disable the PWM module, it will revert the port to the default state, on 8051 that's usually 1, so you simply write 0 if you want 0.

author: Ashwin619
author_rank: Regular Contributor
timestamp: October 09, 2023, 04:21:46 am
content: Hello PCB.Wiz,I agree with your statement but in order to implement that Ill probably have to change the pin configuration from that of a PWM to a GPIO by changing this bit ->Note:- I have tried doing the above thing by writing a LOW on the PWM pin after making it go in the idle state although that didn't seem to work as expected. I believe Ill have to do the above changes in order to implement it. Let me know what do you think ?Regards,Ashwin619.

author: Ashwin619
author_rank: Regular Contributor
timestamp: October 16, 2023, 09:38:08 am
content: I have used the PMD (Pin masking data) and PMEN (Pin masking enable) to solve the above issue. Had found out a couple of days ago. Don't know how I missed it
AVR 0 series- TCA in split mode  - Page 1
Forum section: electronics / general

author: sanka1p
author_rank: Contributor
timestamp: October 16, 2023, 04:39:28 pm
content: Hi All, I am trying to use TCA in split mode in Atmega1608. I read Datasheet and Application note but few things are unclear to me. First one is, what does Low Byte count and High Byte count mean? How can I use them to make 2 PWMs? Can I just use LCMP0 and LCMP1 to generate those? It is quite confusing. I tried the understand the waveform on page 200 of datasheet, but it manly describes the count down nature of split timer. My Ultimate goal is to make a PWM of 2Hz on one pin and a 1Khz PWM on other pin.

author: TizianoHV
author_rank: Regular Contributor
timestamp: October 16, 2023, 04:56:26 pm
content: On github there are some examples. I find them really useful:https://github.com/microchip-pic-avr-examples/atmega4809-getting-started-with-tca-studio/tree/master/Generating_Two_PWM_Signals_in_Split_Mode

author: sanka1p
author_rank: Contributor
timestamp: October 16, 2023, 06:03:44 pm
content: Quote from: TizianoHV on October 16, 2023, 04:56:26 pmYes, I went through the application note. One big question I have is, when it says "A TCA instance can be split into two completely independent 8-bit timers" does that mean LPER and HPER register are 8 bit register or 16 bit?
Padauk pms150C strange Bandgap Comperator behavior  - Page 1
Forum section: electronics / general

author: KaeTo
author_rank: Contributor
timestamp: October 12, 2023, 07:49:09 am
content: Hello togetherI am working on a little padauk project at the moment. I try to create a little battery control circuit with included voltage indication. I started testing with PFS154. Internal Comperator is used to compare Voltage from resister network to internal Bandgap. 4 voltage ranges should be determined (<3V, <3.6V, <4V and >4V). The operating voltage is between 2.5V and 4.4V. The uC is running with 62kHz internal Oszillator. Oszillator and Bandgap calibration is programmed in startup (oscillator calibration at 3.9V)Now my problem:Circuit runs with pfs154 perfectly fine. Voltage levels are distinguished pretty good. When I compile project for pms150C and flash it, it misbehaves. The voltage levels are now shifted lower ( <2.7V, <3.2V, <3.6V and >3.6V). I don't know why this happens. The function and registers of comparitor are same.Futher abnormalities during programming:Pms150C calibrate frequency 58kHz - >4kHz offPms150C Bandgap calibration value 0x00I hope someone can help me or has some suggestions.
Resetting DS3231 from software - Page 1
Forum section: electronics / general

author: newtekuser
author_rank: Frequent Contributor
timestamp: October 16, 2023, 05:10:41 am
content: How does one reset a DS3231 rtc from software? I'd like to reset it so that the date and time resets back to factory.I already tried clearing the bits in the control register, but that didn't do anything:Code:I2C_Start();I2C_Write(0xD0);I2C_Write(0x0E);I2C_Write(0x00);I2C_Stop();

author: Shonky
author_rank: Frequent Contributor
timestamp: October 16, 2023, 08:06:13 am
content: Why do you think clearing the control bits resets anything?Just write the time back to whatever value you want it to be.

author: Ian.M
author_rank: Super Contributor
timestamp: October 16, 2023, 08:56:10 am
content: You cant fully reset it without cycling power to it (both Vcc and Vbat). e.g. its oscillator is initially shut off on powerup until the first I2C access to reduce the battery drain for extended in-store shelf life.
What is this component? Says L=30Z - Page 1
Forum section: electronics / general

author: girishji
author_rank: Contributor
timestamp: October 18, 2023, 09:45:44 am
content: I attached a schematic for application circuit for M487 MCU from Nuvoton. There is a component that says L=30Z in series with power lines (see red square). What is this? Physically it is 0603 component on their evaluation board. There are 3 or 4 of them.Are these necessary? I see one before power pins to GPIO, another one before VREF, another before power to ADC converter, few before ground pins. These are in addition to a few bypass caps. This is on their evaluation board NuMaker. I am designing a small pcb for some simple project. Never seen this with RP2040 or any of NRF MCUs. Thanks for info.

author: up8051
author_rank: Frequent Contributor
timestamp: October 18, 2023, 10:22:53 am
content: Ferrite Bead Impedance 30 Ohm/100MHz
TPIC1356 datasheet or pinout info - Page 1
Forum section: electronics / general

author: Noraglik
author_rank: Newbie
timestamp: October 10, 2023, 12:30:21 am
content: I am a university student and I am tackling a project in which I need to control a stepper motor, for various reasons that I am not going to mention I cannot buy the integrated circuit necessary to control said motor so I decided to recycle an old integrated circuit from a disk reader of a laptop, the TPIC1356 manufactured by Texas Instruments, the problem is that the information on said circuit is not available anywhere, not even on the manufacturer's website. That said, I would greatly appreciate any contribution of information on said circuit or any circuit. similar one that can guide me to make the necessary connections to use this circuit in my project
Microchip ICD5 PICKIT5 lack of reviews - Page 1
Forum section: electronics / general

author: pablo
author_rank: Contributor
timestamp: October 04, 2023, 03:11:39 am
content: Hello everyone!I was looking for an ICD5 or a PICKIT5 review but I couldn´t find anything. The thing is I´m considering to get on of those programmers/debuggers but there is a lack of reviews. No one has posted anything about them.I currently have a ICD3 and i want to get the newer ICD5 but I´m hesitating because of the price. Since I´m just a hobbyst, I´m not quite sure if those $400USD will be well invested (Let´s say the only feature for me, that is wothwhile from the ICD5, is the complex breakpoints function).Also, these debbugers are getting obsolete faster and more expensive over time. I don´t want to spend that amount of money every 5 years or so.If any of you guys have one of the newest microchip programmers/dubbugers, could you please share your review?Thanks

author: woofy
author_rank: Frequent Contributor
timestamp: October 04, 2023, 02:50:04 pm
content: There was a discussion on it here:https://www.eevblog.com/forum/microcontrollers/pickit-5/msg4868744/#msg4868744

author: slugrustle
author_rank: Frequent Contributor
timestamp: October 04, 2023, 09:41:41 pm
content: Some related info in this thread asking for experiences with ICE 4:https://www.eevblog.com/forum/microcontrollers/any-mplab-ice4-experiences/

author: tumbleweed
author_rank: Newbie
timestamp: October 04, 2023, 10:23:39 pm
content: QuoteI'd save your money and skip the ICD5 unless it has some other feature you need.At the rate they're EOL'ing the tools (RealICE, ICD4, etc) it's probably $400 down the drain, soon to be replaced by the ICD6.

author: nigelwright7557
author_rank: Frequent Contributor
timestamp: October 04, 2023, 11:34:11 pm
content: I am still using a PICKIT 3 !I bought a PK4 but it died very quickly so went back to PK3 and just stuck with it.I think I paid about £40 for my PK3.I have a Snap too which is faster and more reliable than PK3 but doesnt power DUT.Unless you needing to work with latest devices maybe a PK4 woud do ?

author: westfw
author_rank: Super Contributor
timestamp: October 05, 2023, 02:23:36 am
content: QuoteMicrochip is said to have a good return/replace policy WRT their tools...

author: SiliconWizard
author_rank: Super Contributor
timestamp: October 05, 2023, 02:29:07 am
content: Quote from: westfw on October 05, 2023, 02:23:36 amYes, we had a couple ICD3's that died for an unknown reason (although I suspect someone to have set the target voltage to 9V by mistake and killed them, but that was never proven), and we got them replaced with little asked.

author: tumbleweed
author_rank: Newbie
timestamp: October 05, 2023, 12:12:04 pm
content: If you want a PICKit4 you better get one fast...Quote
Break a number into multiples. - Page 1
Forum section: electronics / general

author: AVI-crak
author_rank: Regular Contributor
timestamp: October 04, 2023, 01:21:08 pm
content: Some hacks are allowed for working with floating point, including multiplication by a split integer. In my case, the number is the address of a table with a pre-calculated 64bit value through 4k integers - that is, everything is very precise. The table is slightly reduced, because multiplication with 128bit result is very expensive on embedded systems.Here's the problem - number preparation turns out to be equal in cost to one cycle.https://godbolt.org/z/3cd3xx9esThe number is parsed into three parts: 4 bits, 3 bits, 3 bits. The higher part is executed unconditionally even if it gets zero. The middle and lower parts should be ignored if there is a zero. Additionally - the middle and lower parts have an offset in the table, which must be added to the number (when the number is not zero).The obtained result is used in a loop with step-by-step curing of the table address. The loop is necessary because of the high overhead in calling a separate function. 64 bit numbers are quite fat.It all works here -https://godbolt.org/z/EKrxzEE1W.You may play with string recognition char txt[] = "9.9e-4";.The general task is to achieve a program code size of 1 kilobyte per M3 cortex. The task is complex, so it makes sense to break it into parts. And solve it in small pieces.To begin with it - we need to make it compotable in assembler.Code:uint32_t proo(int32_t degre){int32_t rem, enc;degre += 384;enc = (degre >> 3) & 7;rem = 0 - enc;enc += 11;enc &= rem >> 31;rem = (degre >> 6) & 15;degre &= 7;if (degre != 0){degre += 18;rem += degre << 8;rem += enc << 16;}else rem += enc << 8;return rem;};
Is anywhere exist C compiler for Sharp SM8521 (SM85CPU Series) microcontrollers - Page 1
Forum section: electronics / general

author: TheHungry
author_rank: Newbie
timestamp: September 30, 2023, 02:19:11 pm
content: HiIs anywhere exist C compiler for Sharp SM8521 (SM85CPU Series) micro controllers .I have and use Assembler for this controller but want C ( i think that will be easy to write some parts of my code in C ) .In Sharp documentation is mention that "ADaC" is make "Structured assembler/C compiler" for this microcontroller but i cannot find anything about this compiler.
Hakko Programming The Renesas M38039FFFP In Circuit Without a Segger Flasher 5 - Page 1
Forum section: electronics / general

author: KG7AMV
author_rank: Frequent Contributor
timestamp: June 02, 2021, 06:55:05 pm
content: Wondering of anyone had a solution for Programming The Renesas M38039FFFP In Circuit Without a Segger Flasher 5I do not have the QFP64 adapter or I would just remove the chip and use the Xeltek 6100N.The unit (Hakko FM-202) has a Serial Programming Header On the PCB.I know Hakko will flash the latest firmware for free (I have Already Had 2 Done) but there has to be a faster way then 2-3 week turn.Datasheethttps://datasheetspdf.com/pdf-file/1150500/Renesas/M38039FFFP/1Hakko FM-202 CN8 Programming Header Pinout:Header Pin = M38039FFFP PinPin 1 = Pin 12 P47/Srdy1 / (Busy)Pin 2 = Pin 18 CNVSS (VPP)Pin 3 = Pin 57/24 VCC/VSSPin 4 = Pin 13 P46/sclk1 (SCLK)Pin 5 = Pin 15 P44/RxD1 (SDA)Pin 6 = Pin 49 P37Srdy3/RD (OE) or (CS)Pin 7 = Pin 19 RESETPin 8 = Pin 59 P30/DA1/AVSS

author: amyk
author_rank: Super Contributor
timestamp: June 03, 2021, 12:12:08 am
content: This MCU does not appear to have code protection, so you're lucky on that part.If all you're missing is an adapter, then you should be able to make one pretty easily, although tediously - the Xeltek is likely to want parallel mode instead of serial.But the instructions are clearly documented in the datasheet starting on page 91:QuoteRead the rest of that section and you should be able to figure out how to wire up an adapter.

author: KG7AMV
author_rank: Frequent Contributor
timestamp: June 03, 2021, 12:52:34 am
content: Would like to use the existing in circuit programming header.If not will keep an eye out for a Segger Flasher 5Figured someone may have figured out simple way.

author: KG7AMV
author_rank: Frequent Contributor
timestamp: January 20, 2023, 04:45:34 am
content: I was able to locate a Segger Flasher 5 (Another Video Soon)

author: KG7AMV
author_rank: Frequent Contributor
timestamp: August 18, 2023, 07:29:47 pm
content: Done Firmware Has Been Backed Up.

author: MathWizard
author_rank: Super Contributor
timestamp: September 17, 2023, 04:28:48 pm
content: Why is the Segger Flasher 5 so expensive at ~$1200 ? If there was any real competition, what would it cost, $50-100 ?

author: KG7AMV
author_rank: Frequent Contributor
timestamp: September 22, 2023, 10:52:28 pm
content: Quote from: MathWizard on September 17, 2023, 04:28:48 pmThey do not make the Flasher 5 (Legacy) any more. But can be found on feebay for about $100 or so.I made the request to xeltek for the Renesas M38 to be added to the Superpro IS01 they said they can do it but will take some time or $$
Ask for help on how to write firmware to DSP chip(fluke) - Page 1
Forum section: electronics / general

author: daisizhou
author_rank: Super Contributor
timestamp: September 20, 2023, 10:33:46 pm
content: Hello everyone,Forgive me for asking for help again.I am repairing a 6000D analyzer,Please allow me to give an overall introduction to the 6000D,The host is made up of 2 chips working together，One is ATMEGA2561V, it looks like it is a UI control chip,The other one is the TMS320F2812 chip, which seems to be used for measurement purposes.I found a JTAG-like interface next to the TMS320F2812 chip.There is also an FT232RL chip on the motherboard, which seems to be used to convert RS232 signals and USB signals.The TMS320F2812 chip has been damaged.I bought a brand new TMS320F2812 chip and plan to replace it,But it has program inside, I don't know how to write firmware inside new TMS320F2812.About firmware，I only found 6000D upgrade files on the official website, one is a .hex file and the other is a .x00 file.I don't know if the .x00 file is what I need,Because I have never encountered a file format in this format.(I have attached the upgrade tutorial and firmware)In this post(https://www.eevblog.com/forum/microcontrollers/ask-for-help-how-to-write-firmware-to-dsp-chip/), a friend told me to use UniFlash+XDS110 to write firmware via JTAG dictation, but it seems that it does not support .x00 file formatIf you know, please tell me, thanks for your help

author: daisizhou
author_rank: Super Contributor
timestamp: September 21, 2023, 10:24:03 pm
content: Can anyone assist me?

author: daisizhou
author_rank: Super Contributor
timestamp: September 22, 2023, 12:11:24 pm
content: Does anyone have constructive suggestions? How should I repair it

author: tggzzz
author_rank: Super Contributor
timestamp: September 22, 2023, 12:21:46 pm
content: Given the variety all these threads you have started, including at least one duplicate, it makes me wonder whether you are trying to reverse-engineer product(s) for some reason.https://www.eevblog.com/forum/microcontrollers/help-who-can-reverse-compile-27c1001-firmware-internally-i-encountered-difficu/msg5050477/#msg5050477https://www.eevblog.com/forum/microcontrollers/help-who-can-reverse-compile-27c1001-firmware-internally-i-encountered-difficu/msg5046898/#msg5046898https://www.eevblog.com/forum/projects/how-to-read-the-information-in-the-16krom-of-the-mc68hc11g5fn-microcontroller/msg5049745/#msg5049745https://www.eevblog.com/forum/microcontrollers/ask-for-help-on-how-to-write-firmware-to-dsp-chip/msg5073343/#msg5073343https://www.eevblog.com/forum/microcontrollers/ask-for-help-how-to-write-firmware-to-dsp-chip/msg5059060/#msg5059060https://www.eevblog.com/forum/projects/help-offset-voltage-cannot-be-reset-to-zero/msg5072578/#msg5072578

author: daisizhou
author_rank: Super Contributor
timestamp: September 22, 2023, 12:42:37 pm
content: No, these are all electronic projects I've worked on.Some I plan to build, some I just repair.That's all
ESP32-WROOM-32U Not Flashing - Page 1
Forum section: electronics / general

author: machinehum
author_rank: Contributor
timestamp: September 22, 2023, 08:10:47 pm
content: Any help would be appreciated. I've tried several different chips with the same error.Here is the log:https://pastebin.com/raw/VAwvwNb0

author: bookaboo
author_rank: Frequent Contributor
timestamp: September 23, 2023, 04:44:41 am
content: Where are those logs from? They are quite verbose.Have you tried flashing direct from idf.py?Can you erase ok?Check the datasheet for bootstrap pins.

author: tooki
author_rank: Super Contributor
timestamp: September 23, 2023, 10:52:25 am
content: Just as a test, can you flash it using the Arduino IDE?I’d add a much larger capacitor (1-10uF) in parallel to C14. This solves a common problem where an ESP32 fails to enter flash upload mode. (The problem occurs when the IO0 bootstrap pin is asserted after the ESP is released from reset. A large cap on EN holds the EN line low for longer, holding the ESP32 in reset long enough for IO0 to be asserted.) I’m not convinced this is the issue here, but it’s something you can easily do to ensure it’s not going to cause issues.Quote from: bookaboo on September 23, 2023, 04:44:41 amI think it’s ESP-IDF (Espressif’s native programming environment).Quote from: bookaboo on September 23, 2023, 04:44:41 amIO0 is the main bootstrap mode pin. Holding it low while the ESP32 is released from reset tells it to enter programming mode.EN is the ESP32’s reset line.IO2 is also a bootstrap pin which must be low to enable programming mode, and some reference designs (like the ESP32-LyraT and ES32-WROVER-KIT) use a third bootstrap transistor to pull it low. But this isn’t strictly necessary, and most designs leave IO2 floating, which is fine due to its integrated pull-down resistor. However, if IO2 is used as a GPIO pin and some external circuit keeps it pulled high, this will interfere. That isn’t the case here, since programming is able to begin.IO12 is the other critical bootstrapping pin. It sets the voltage of the integrated LDO. If it’s pulled high, the LDO will switch to 1.8V, which will cause problems with 3.3V flash memory. The WROOM module uses a 3.3V flash chip, so IO12 must be low or floating on boot.IO5 is a bootstrapping pin which should be high (or floating, due to internal pull-up) on boot. If the circuit is holding it low, that can cause problems, as it affects IO5’s subsequent output mode (this pin outputs PWM a during startup).See:https://docs.espressif.com/projects/esptool/en/latest/esp32/advanced-topics/boot-mode-selection.htmland pages 12-13 of:https://www.espressif.com/sites/default/files/documentation/esp32-wroom-32e_esp32-wroom-32ue_datasheet_en.pdf

author: machinehum
author_rank: Contributor
timestamp: September 25, 2023, 06:25:41 pm
content: Thanks for all this info; I started looking into this today. Just changed C14 to 1uF with no change.I'll strike the trace connecting IO12, if that doesn't work I'm out of ideas.
help to read MCU firmware - Page 1
Forum section: electronics / general

author: nassih
author_rank: Newbie
timestamp: July 05, 2023, 07:58:57 pm
content: hello I need your support, if someone can explain to me how can I read the content of the microcontroller (TMS320F28021) and write it on several MCUs of the same family without going through Code composer,I 'have: programmer XDS100 ,motherboard with a JTAG interface and UNIFLASH software from Texas instrument.I plugged the XDS100 programmer into the JTAG interface then I opened UNIFLASH software I go to read target memory the process went well, but when I want to export the firmware I can't figure out all these thing also the file is only a few kilo octet, if someone can explain the step by step or if there is a software that is easier than this,please i nedd help

author: justjason
author_rank: Contributor
timestamp: September 10, 2023, 07:35:09 pm
content: Do you have some pictures of the board and connectors ?

author: KG7AMV
author_rank: Frequent Contributor
timestamp: September 23, 2023, 01:04:43 am
content: That chip family has a Flash and a One Time Programmable Area.I have not used the programmer you have. I have programmed that family of MCU's only with my universal programmer with and adapter for specific package.

author: rsjsouza
author_rank: Super Contributor
timestamp: September 23, 2023, 02:30:22 am
content: To export memory contents to a file, check section 7.4.5 of the CCS User's Guide.https://software-dl.ti.com/ccs/esd/documents/users_guide/index.html
Unable to flash XDPE132G5D chip - Page 1
Forum section: electronics / general

author: tonycstech
author_rank: Regular Contributor
timestamp: September 19, 2023, 10:05:53 pm
content: I have some chips from mauser and a dongle.Drivers installed, software seems to work ok, it can read and i was able to dump the firmware from the chip.But i cannot flash it.Every time i try to flash USER slot, i get errors. Errors are not consistent. Most of the time they are but sometimes i get writing register errors allover.Chips are brand new.I was able to read/write IR35217 using the same dongle, no problem with IR power centerCannot flash XDPE132G5D using Open Power.Is there a solution to this problem ?Cable length does not seem to have any effect.
Arm RDP and RDI history - Page 1
Forum section: electronics / general

author: metebalci
author_rank: Frequent Contributor
timestamp: September 18, 2023, 08:52:34 am
content: I am trying to find some information about RDP and RDI used for semihosting. Arm has some documentation regarding semihosting and Angel SWI but not much (and I cannot find application note 39: Demon and RDP). My understanding is:- Demon SWI, Demon monitor, RDP and rdpmon are related to the same concept or protocol- Angel SWI, Angel monitor, ADP, RDI and rdimon are related to the same concept or protocolI see almost only RDI at the moment, is Demon/RDP the old way/not-supported anymore ?
"Problem Reading Temperature from DHT11 Sensor via RS485 Between Raspberry Pi 4  - Page 1
Forum section: electronics / general

author: rdvncrt
author_rank: Newbie
timestamp: September 16, 2023, 07:39:29 am
content: I want to read the temperature data from the DHT11 sensor connected to the Pico using RS485 between Raspberry Pi 4 and Raspberry Pi Pico. I use the following code for this, but when I use it like this, I can send data from Raspberry Pi without any problems. However, when I send data from Raspberry Pi Pico, if I assume the temperature is 25, sometimes I can read this value from Raspberry Pi and sometimes I can't. I tried to adjust the correct time with Time.sleep() but I couldn't succeed. How can I solve this?Raspberry Pi Codeimport serialimport timeRS485 = serial.Serial('/dev/serial0', baudrate=9600, timeout=1)def send_data(data):ser = serial.Serial('/dev/serial0', baudrate=9600, timeout=1)ser.write(data.encode())print("data sent")temperature = 0while True:data_to_send = "xtemperature"time.sleep(1)send_data(data_to_send)time.sleep(1)while True:received_data = RS485.readline().rstrip()received_data = received_data.decode('utf-8')print(received_data)time.sleep(1)received_value = int(received_data)if 0 <= received_value <= 70:temperature=received_valuebreakbreakprint("TEMPERATURE : ",temperature)Raspberry Pico Codefrom machine import Pinimport timefrom dht import DHT11uart_tx = machine.Pin(4) # TX pin: GPIO 0uart_rx = machine.Pin(5) # RX pin: GPIO 1# UART nesnesi oluşturmauart = machine.UART(1, baudrate=9600, tx=uart_tx, rx=uart_rx)def response():received_data = uart.read()try:received_string = received_data.decode('utf-8').strip()print("DATA :")print(received_string)if received_string:if received_string == 'x':pin = Pin(15,Pin.IN,Pin.PULL_UP)d = DHT11(Pin(15))d.measure()T = d.temperature()x=0while x<150:x=x+1T=d.temperature()send_data = str(T)data = (send_data + "\r\n")time.sleep(1)uart.write(data.encode('utf-8'))print("data sent")print(data)return received_stringexcept UnicodeError:passreturn ""while True:if uart.any():incoming_data = response()print(incoming_data)

author: AndrewNorman
author_rank: Contributor
timestamp: September 17, 2023, 12:10:56 pm
content: Not sure on what the exact solution to your problem is, but a couple of observations.1. Some of the printed DHT11 datasheets I have seen to indicate that they are able to be read every 1 second but depending on the quality I have found some to be unstable reading more than once every 2 seconds.2. You are creating two instances of the connection for the serial device in the Raspberry PI code. Not sure if the library supports this usage, but in the past I use the same instance for both sending and receivingQuoteThat might be causing some of the strange problems you are seeing.Hope this helps narrow down the cause.- Andrew
CRP Bypass - Page 1
Forum section: electronics / general

author: AMDFX8150
author_rank: Newbie
timestamp: September 15, 2023, 06:54:02 pm
content: Has anyone had any success with bypassing CRP on a NXP LPC824J? I am in need of access to the data on a few of these on BMS boards on Ryobi 40v batteries
Serial programmer for Ti TMS320f28xx mcus. - Page 1
Forum section: electronics / general

author: justjason
author_rank: Contributor
timestamp: September 13, 2023, 08:21:27 am
content: Does anyone have any info on the connections for required on the programmer side for flashing the Ti TMS320f280021 MCU over serial. ?I am not sfinding anything about what is required on the programmer side with regards to where the pins for controlling the boot selection mode are connected. egWhere would I be connecting these pins on the programmer side - CTR RTS ... ??

author: darkspr1te
author_rank: Frequent Contributor
timestamp: September 13, 2023, 12:28:37 pm
content: you should check this pdf outhttps://www.ti.com/lit/an/spraca2a/spraca2a.pdf?ts=1694550221445&ref_url=https%253A%252F%252Fwww.google.com%252F

author: justjason
author_rank: Contributor
timestamp: September 13, 2023, 07:57:24 pm
content: Thanks for the reply. It looks like it may be a simple case of manually setting the boot pins to the desired mode and the then I can send the data over to the MCU. Somewhere in a different data sheet I found reference of first sending an "A" in the beginning to trigger the auto baud rate negotiation. I will give that a try tomorrow.

author: darkspr1te
author_rank: Frequent Contributor
timestamp: September 14, 2023, 07:14:48 am
content: Yes, you just follow that supplied truth table and set your desired boot mode, most mcu use this trick as do SOC's like rockchip/qualcomm etc.darkspr1te

author: mtwieg
author_rank: Frequent Contributor
timestamp: September 17, 2023, 11:50:33 pm
content: The first thing the MCU does upon exiting reset is read the two bootmode pins to determine which boot mode it will use. As the table implies, to enter the SCI boot ROM, hold GPIO37 low and GPIO34 high, initiate a reset with XRSn, then once the MCU is in the SCI bootloader you can release those two GPIO.The ROM bootloader uses specific pins for TX and RX, this should be explained in the datasheet.Importantly, to use the SCI boot ROM you do not need to touch any of the OTP memory inside the MCU.