hybridfree/eevblog-posts huggingface dataset:
PIC developers - can you help with Unisolder project? - Page 1
Forum section: electronics / general

author: salavat
author_rank: Contributor
timestamp: February 11, 2019, 11:45:18 pm
content: Hello,I recently assembled Unisolder controller, which I use with JBC 245 iron. The station has a potential for development (since it is based on PIC32 MCU), but unfortunately, author of the project has lost interest to this wonderful project and he does not appear on the main discussion board for soon to be almost 2 years (http://dangerousprototypes.com/forum/viewtopic.php?f=56&t=7218).There are some things still to be implemented, such as support for hibernation (while changing tips on JBC stand), encoder support, new profiles for irons, etc.Are there any developers who can help with further development of the project? If a substantial amount of work to be done, I think community possibly can raise funds to pay for this via Kickstarter or similar platforms...

author: donotdespisethesnake
author_rank: Super Contributor
timestamp: February 14, 2019, 11:35:49 am
content: I think the first thing to do would be to get the latest hardware and software into a repository somewhere. I wouldn't fancy reading through 2280 posts to work out what the latest revision is.I notice there are a few people selling the PCBs, I guess any developer would need to be a user already of an assembled controller. Or you would need to provide them with an assembled controller.

author: salavat
author_rank: Contributor
timestamp: February 15, 2019, 01:36:50 pm
content: Quote from: donotdespisethesnake on February 14, 2019, 11:35:49 amThank you very much for reply.1) There are some github repos already, surely they could be organized along with existing minor forks (such as display version for SH11306, buttons reversed, etc)2) As sample station is concerned - it is possible too, there are assembled and working stations available, as well as it is possible to get soldering handle with a tip for developer.Please let me know if you are willing to do this, in case you do, we probably need to run a sort of crowdfunding compaign))) for 250 USD (that is my rough estimate for controller plus handle).

author: sparkybg
author_rank: Regular Contributor
timestamp: November 13, 2020, 09:48:49 pm
content: Well, I'm back.My Github repo with latest version is here:https://github.com/sparkybg/UniSolder-5.2A very good work with explanations is made by a friend here (I strongly suggest to take a look at it):https://github.com/valerionew/unisolder-notesThe repos are linked, so you may use either.
is it possible to power the target for ATTiny10 with PICkit 4? - Page 1
Forum section: electronics / general

author: FrankBuss
author_rank: Unknown
timestamp: November 12, 2020, 03:39:26 pm
content: If I program a PIC10F200, I can check the "Power target circuit from PICkit 4" checkbox, to power the target board from the programmer. When I try to program a ATTiny10, this option is missing.I asked the Microchip support, and this is the response:QuoteI don't think it is a hardware limitation, at least if I don't need more power than the maximum allowed 40 mA for VDD for the programmer. Has someone the same problem and maybe know any way to hack MPLAB-X to enable the power option? I tried to modify the poweroptions.powerenable setting in the configurations.xml project file and set it to "true", but apparently it is ignored.
STM32F411 USB interface. - Page 1
Forum section: electronics / general

author: phil from seattle
author_rank: Super Contributor
timestamp: November 10, 2020, 07:40:03 pm
content: I am in the process of designing a board around an STM32F411. I will only use the Full Speed interface and no Host Mode (at least initially). I've looked at a number of designs to see how they handle USB. I am seeing things that make for more questions than answers.In some cases I am seeing low value resistors (10 ohm, 12 ohm) in series with D+/D- and in other cases none. I've also seen at least one design that calls out 0R resistors - maybe the designers weren't sure and added them to be safe? I assume the resistors are an attempt at impedance matching. The STM appnote AN4879 says that FS Phys have the impedance matching resistors. So why then the resistors on the boards?In a similar vein, a number of designs I've looked at use a 1.5K pull up resistor on D+ (usually controlled via a transistor) and yet the data sheet and the app note say the 411 has a PU built in.Were the circuit designers unaware of the features of the chip? Early chip errata? Maybe clones don't support this? Maybe it is just a case of the first designer not being sure/aware and everyone just copied from him/her?

author: thm_w
author_rank: Super Contributor
timestamp: November 10, 2020, 08:27:23 pm
content: Earlier STM32 parts needed that pullup, earlier than that probably needed the series resistors. Its just following old protocols. That or the board is designed to accept another ST part with the same pinout.Of course check errata for anything relevant to USB. But if nothing there its not needed.There are no F411 true clones to my knowledge.

author: bugnate
author_rank: Regular Contributor
timestamp: November 11, 2020, 04:58:44 am
content: Quote from: thm_w on November 10, 2020, 08:27:23 pmThis. Specifically I would bet that the vestigial bits or whatever are inherited from a STM32F103 or similar design.

author: GromBeestje
author_rank: Frequent Contributor
timestamp: November 11, 2020, 10:43:43 am
content: The Pull Up resistors were required for the F103. But as far as I am aware, the F103 didn't require series resistors. This was a requirement by earlier USB designs. Therefore, I'd guess such board was designed by someone who had experience with USB but not specifically with STM microcontrollers.

author: phil from seattle
author_rank: Super Contributor
timestamp: November 11, 2020, 04:49:11 pm
content: Thanks guys. That helps to confirm my suspicions.
SAMD10: how similar are the HAL drivers to STM32? - Page 1
Forum section: electronics / general

author: Refrigerator
author_rank: Super Contributor
timestamp: November 10, 2020, 09:21:52 pm
content: Received my ATSAMD10 Xplained mini today and besides uploading examples haven't done anything else with it.I've spent a couple hours looking through the examples to maybe get the hang of how things go together and noticed the HAL drivers.I've done programming on STM32 where i also used HAL drivers for various peripherals but i noticed there are some differences.Should i expect it to be reasonably easy to transition from STM32 to SAMD10?Are there any major differences between the HAL drivers or how they're used?

author: ataradov
author_rank: Super Contributor
timestamp: November 10, 2020, 09:58:09 pm
content: No, they are not similar at all. HAL is just a generic term. The actual libraries are completely different. Not only that, you need to confirm which HAL you are using on SAM D10 side, since everything is different in ASF3, ASF4/Start and Harmony 3.
A new code generator tool for nRF52xx series MCUs - Page 1
Forum section: electronics / general

author: Adityaraj Bhatt
author_rank: Newbie
timestamp: November 17, 2020, 06:15:42 am
content: Hello Everyone,Most of you here might be familiar with or are already using the Nordic MCUs, specifically the nRF52xx series MCUs, however writing long lines of codes is always a tiring process or rather a process that we don't wanna go through with these boards.In order to simplify that problem, our team developed a code generator tool for nRF52xx series MCUs.Here's the link:https://vicara.co/nrf52-code-generatorCould you guys please give it a shot and let me know your feedback?, since the project is in development stage this would help us a lot too.
USB daisy-chaining STM32 devices? - Page 1
Forum section: electronics / general

author: StefanHamminga
author_rank: Contributor
timestamp: November 09, 2020, 10:01:31 am
content: Many of the higher-end STM32s (F7, H7) have two USB interfaces which support both device and (at least one) host mode. Has anyone tried to daisy-chain these? Like this:(host) <= (device)[stm32 A](host) <= (device)[stm32 B](host) <= (device)[stm32 C]So the PC sees all three devices A, B and C?I suppose each device would either need to act as a hub or proxy. Ideally I'd like to be able to chain 4 or more devices to a single PC USB port (all with suitable firmware, of course).
How configurate PWM STM8S003F3P6 for 125kHz? - Page 1
Forum section: electronics / general

author: Leo86
author_rank: Contributor
timestamp: November 09, 2020, 06:05:25 pm
content: Hi everyone,I'm configurate the modulo PWM of the STM8S003F3P6 for works in 125kHz with duty cicle 50%. I did it, but PWM is not accurate at 125kHz. It varies between 125kHz and 126kHz.my code:// HSI in 16MHzvoid CLK_Config(void){CLK_DeInit();CLK_HSECmd(DISABLE);CLK_LSICmd(DISABLE);CLK_HSICmd(ENABLE);while(!CLK_GetFlagStatus(CLK_FLAG_HSIRDY));CLK_ClockSwitchCmd(ENABLE);CLK_HSIPrescalerConfig(CLK_PRESCALER_HSIDIV1);CLK_SYSCLKConfig(CLK_PRESCALER_CPUDIV1);CLK_ClockSwitchConfig(CLK_SWITCHMODE_AUTO, CLK_SOURCE_HSI, DISABLE, CLK_CURRENTCLOCKSTATE_ENABLE);CLK_CCOConfig(CLK_OUTPUT_CPU);CLK_CCOCmd(ENABLE);}// TIM_2 PWM 125kHz 50% duty cliclevoid TIM2_setup(void){CLK_PeripheralClockConfig(CLK_PERIPHERAL_TIMER2, ENABLE);TIM2_DeInit();TIM2_TimeBaseInit(TIM2_PRESCALER_64, 1);TIM2_OC3Init(TIM2_OCMODE_PWM1, TIM2_OUTPUTSTATE_ENABLE, 1, TIM2_OCPOLARITY_HIGH);TIM2_Cmd(ENABLE);TIM2_SetCompare3(1);}Why is PWM not accurate?thanks

author: JOEBOBSICLE
author_rank: Regular Contributor
timestamp: November 09, 2020, 09:01:57 pm
content: Clock driftYou're using HSI clock which drifts with temperature. Use an external accurate 16Mhz crystal oscillator or a resonator via the HSE input
Using ST-Link v2 clone modified with SWO output with CubeIDE 1.4.2 upgrade - Page 1
Forum section: electronics / general

author: RCinFLA
author_rank: Contributor
timestamp: November 04, 2020, 04:09:01 pm
content: I have been using a clone ST-Link v2 modified to bring out SWO for debug with no issues.I recently updated the ST Cube IDE software to version 1.4.2. First thing I noticed was that it required FW update on ST-Link dongle. I allowed update and it did clone ST-Link dongle FW update with no issue. Second thing I noticed is the IDE Debug configuration screen has be changed somewhat on IDE v 1.4.2.I cannot get SWO working with version 1.4.2 IDE now. The SWO output with FW updated clone ST-Link V2 dongle on a programmed STM eval board still works on STLINK utility.The IDE will not work in debug when selection of ST-LINK (ST-LINK GDB server) for Debug probe and IDE blocks out SWV selection when probe set to ST-LINK (OpenOCD).I am not sure if there is some other setting I am now missing but it appears that the new version of CubeIDE is detecting the clone ST-Link dongle as not legit STM dongle and preventing SWO from being used.Does anyone have more info on this?
Arduino_DUE: free running mode DAC - Page 1
Forum section: electronics / general

author: Tadaspadas
author_rank: Newbie
timestamp: November 03, 2020, 06:01:42 pm
content: Hello there,I am new to Arduino world, thus looking for some help. I chose Arduino Due to my project because it has DAC built on it. My aim is to generate a 10kHz sine wave to input signal to the system and then take the reading at two outputs using ADC functionality. The problem is that if I use DAC with a analogWrite, this will be the only thing my DUE will perform and I will not be able to read analog input. Therefore, I want to use DAC in free running mode. Does anyone have suggestions on how to make it working and enable free running mode for DAC? Help would be much appreciated.
Ch55xduino, Arduino development package for ch55x - Page 1
Forum section: electronics / general

author: ds_user
author_rank: Newbie
timestamp: June 17, 2020, 02:27:31 pm
content: Ch55xduino is an Arduino-like programming API for the CH55X, a family of low-cost MCS51 USB MCU. The project tries to remove the difficulty of setting up a compiling environment. Users can simply write code in Arduino IDE and hit one button to flash the chip to get code running. No configuration or guesswork needed.CH551/2/4 may be the lowest part count system that works with Arduino. The minimal system only requires one chip, 2 decoupling capacitors, and one optional pull-up resistor. These features made it ideal for DIY projects.At this moment the project is still working-in-progress. Support most Arduino functions (Except pulse, shift, tone). Refer to examples in this repo for more info.https://github.com/DeqingSun/ch55xduino

author: jasonmrc
author_rank: Newbie
timestamp: November 06, 2020, 11:03:24 am
content: HiAny plans to include the 554 - 559 range of C51 Processors in the Arduino ide.I am developing a USB mass storage interface to read a U-disk - Pendrive and looking to use Arduino.regards

author: ds_user
author_rank: Newbie
timestamp: November 13, 2020, 03:16:32 pm
content: https://github.com/DeqingSun/ch55xduino/blob/playground/ch55xduino/ch55x/libraries/Generic_Examples/examples/05.USB/USBhostOnCH554/USBhostOnCH554.inoIt is planned to support CH554 but not finished yet. However, you can choose CH552 and your own USB stack to make it work. Also the example above is the basic code to jump into boot loader. You can use serial to upload sketch when your USB port is occupied.

author: voltsandjolts
author_rank: Unknown
timestamp: November 13, 2020, 06:40:21 pm
content: Are there any english datasheets available for the CH55x series?

author: ds_user
author_rank: Newbie
timestamp: November 14, 2020, 02:23:08 am
content: Blinklab did onehttps://github.com/Blinkinlabs/ch554_sdcc/blob/master/documentation/CH554%20manual%20english.pdf
Arduino Onboard LED Polarities - Page 1
Forum section: electronics / general

author: Electro Fan
author_rank: Super Contributor
timestamp: November 07, 2020, 10:28:59 pm
content: Just confirming that the onboard LED that blinks in the basic Blink sketch is wired so that the anode is facing the side of the board with the USB connector but the TX and RX LEDs are wired so that the cathodes are facing the side of the board with the USB connector. Kind of curious why the TX and RX LEDs would have been installed in a different (opposite) orientation than the other LED.

author: ataradov
author_rank: Super Contributor
timestamp: November 07, 2020, 11:14:27 pm
content: Probably just leftovers from a long time ago.Anode to MCU, cathode to ground is a more intuitive configuration, since you have to set the pin high to enable the LED. This is probably why this was chosen for the user LED.The other way around is technically slightly better, since MCU outputs are much better at sinking the current than sourcing it. This difference is negligible in CMOS logic, but was significant in TTL. So people that remember those days still do "anode to VDD" configuration.The USB IC is not user accessible, so it does not really matter which way LEDs are connected.
GD32V source - Page 1
Forum section: electronics / general

author: brucehoult
author_rank: Super Contributor
timestamp: October 20, 2020, 08:25:08 pm
content: I know a lot of people have avoided trying the GD32V because it's not available from western companies such as Mouser, Digikey, Element14/Farnell.I've found them at tme.com, which seems to be headquartered in Poland.https://www.tme.com/nz/en/details/gd32vf103cbt6/microcontrollers-others/gigadevice/That's an LQFP48 package. Also listed in QFN36, LQFP64, LQFP100 with stock ranging from 77 to 490 pieces.

author: I wanted a rude username
author_rank: Frequent Contributor
timestamp: October 20, 2020, 10:18:16 pm
content: Thanks for this, Bruce. I've added TME to the list onthe GD32VF103 supplier thread.

author: brucehoult
author_rank: Super Contributor
timestamp: October 20, 2020, 11:36:39 pm
content: Ah there's that thread, thanks. I've added a new post to it as your edit doesn't bump it onto people's "unread" list.

author: brucehoult
author_rank: Super Contributor
timestamp: October 30, 2020, 12:16:42 am
content: My order arrived in New Zealand after eight days.
microcontroller kit for viewsonic gaming monitor XG2703-GS - Page 1
Forum section: electronics / general

author: uzairs14
author_rank: Newbie
timestamp: October 28, 2020, 12:06:20 pm
content: Hola!I am building a customized PC for personal use. And need a good microcontroller kit for my screen monitor from viewsonic having an IPS screen which I use for gaming. I searched their sitehttps://viewsonic.com/me/if they provide such kits. But, couldn't find it.I need advice on which to buy?

author: Hideki
author_rank: Frequent Contributor
timestamp: October 30, 2020, 10:45:49 pm
content: I don't really understand what you mean by a "microcontroller kit". What do you want to do with it -- output a signal for the monitor? That isn't going to easy, since very few microcontrollers (I can't think of any) can generate HDMI or Displayport signals.You might find something that converts a parallel display output to HDMI with an additional chip, but it's not exactly a common solution.If you move up to an application processor, like ARM Cortex A, the likelyhood of driving your type of monitor becomes much higher. Raspberry PI is a typical example of a common board that is capable of this, but it will run Linux and it's not a microcontroller.
Starting a new job at Silicon Labs as an SDET soon — what to expect? - Page 1
Forum section: electronics / general

author: ixfd64
author_rank: Frequent Contributor
timestamp: October 28, 2020, 12:39:25 am
content: So I recently accepted an offer for an SDET position at Silicon Labs and will start working next month. From the job description, I'll be responsible for implementing test automation for their embedded wireless products and microcontroller units. Are there any tools or libraries, particularly test frameworks for embedded devices, that I should know about? And is there any reading that you would recommend?I did try to download Simplicity Studio to get a better feel of how it works, but apparently I need a work e-mail address.

author: ttt
author_rank: Regular Contributor
timestamp: October 28, 2020, 01:07:29 am
content: On the application/library level you can do unit testing using qemu-arm and a framework like Google Test.Segger has tools like J-Run to do automation on actual hardware, though openocd can be used for that too.I assume you are familiar with the usual DevOps stuff. Since Simplicity Studio is Eclipse based I would expect to see a lot of ant, python for scripting, jenkins, artifactory and similar tools.

author: Dubbie
author_rank: Unknown
timestamp: October 28, 2020, 01:30:54 am
content: Judging by your experience, they will probably get you to write a new HAL.

author: ixfd64
author_rank: Frequent Contributor
timestamp: October 28, 2020, 01:33:24 am
content: Quote from: ttt on October 28, 2020, 01:07:29 amThanks for the information. I'm definitely familiar with build automation and CI/CD pipelines. I also worked with Wind River Workbench at a previous job and believe it's similar to Simplicity Studio, so hopefully I can quickly get up to speed.
SAMD51 dual bank flash memory..Starting address of Bank B? - Page 1
Forum section: electronics / general

author: snarkysparky
author_rank: Frequent Contributor
timestamp: October 26, 2020, 04:51:35 pm
content: Need to implement a bootloader for SAMD51P20 ( 1024 K bytes flash ). I have decided on the dual bank scheme where code can execute from either Bank depending on how the STATUS.AFIRST bit is set in the NVMCTR group.So I think all is needed is to write the new image to bank B and then flip this bit.But finding the start address of bank B is escaping me. This doc for the SAMD54 says it starts at 0x00080000. Another source claimed that it would start where a large address had only the most significant bit set in the middle of the flash.http://ww1.microchip.com/downloads/en/Appnotes/Dual-Bank-Bootloader-on-SAME54-Microcontroller-Using-MPLAB-Harmonyv3-DS00003508A.pdfWhere is the start of bank B ?Thanks

author: thm_w
author_rank: Super Contributor
timestamp: October 26, 2020, 08:58:29 pm
content: http://ww1.microchip.com/downloads/en/DeviceDoc/SAM_D5xE5x_Family_Data_Sheet_DS60001507F.pdfQuoteIt looks like Bank B immediatelly follows Bank A, so it should be at 512KB right?

author: ataradov
author_rank: Super Contributor
timestamp: October 26, 2020, 09:26:29 pm
content: Yes, the second bank is just the second half of the flash.But don't forget to copy your bootloader to the second half as well, otherwise flipped image will not boot.

author: snarkysparky
author_rank: Frequent Contributor
timestamp: October 27, 2020, 11:48:06 am
content: Thanks.Then this is probably correct.The boundary is where the most significant address bit flips to one. So 0x80000 is the first address in bank B.
LGT8f328P - Page 1
Forum section: electronics / general

author: Anobium
author_rank: Regular Contributor
timestamp: October 25, 2020, 07:32:22 am
content: Sharing a fork of Great Cow BASIC that supports the LGT range of chips.https://github.com/LGT8FX/BASIC_Compiler-for-LGT8FX-ChipsetI was adding the LGT range of chips to Great Cow BASIC (an Open Source compiler for 8-bit PIC and AVR) and I created a fork specific to the LGT range of chips. The GIT has an installer that has only the LGT chipset. Please, let us not get hung up on BASIC- Great Cow BASIC generates ASM that you can use with many other tool chains.This fork supports the key operational features of the LGT chipset.Support of 0.125 to 32 MhzVoltage ReferencesAnalog ComparatorDifferential AmplifierComputation AcceleratorSoftwareSerial and Hardware SerialSupport 32 Mhz and other clock speedsDifferential Amplifier API12-bit ADCand, the huge list of drivers that Great Cow BASIC supports are also supported by this Fork. LCD, GLCD, Sensors etc. etc. Seehttps://github.com/Anobium/Great-Cow-BASIC-Help/wiki/libraries_overviewfor an overview of the libraries.To help I have also put a series of demonstration files on Git, seehttps://github.com/LGT8FX/BASIC_Compiler-for-LGT8FX-Chipset/tree/main/LGT8F328P/LGT8F328PI am looking for someone with the LGT168 or LGT88 chipset - to further validate this fork. Let me know via a PM.Enjoy,Evan
ESP32: Unresponsive code - Page 1
Forum section: electronics / general

author: mwestern
author_rank: Newbie
timestamp: October 22, 2020, 06:40:16 pm
content: I have written some code for a flashlight I am trying to work on. I have attached it below. Currently it will upload on the board but when I am testing it nothing happens. Just curious if anybody would like to look at the code for me and let me know if you think it is the code or my board. Thanks.

author: mskeete
author_rank: Contributor
timestamp: October 23, 2020, 05:34:54 pm
content: you only read the state of the botton once. You need to update your variable in the while loo or ditch the varible altogether//loop functionvoid loop(void){const int Button = 16; //GPIO 17int Button_state = digitalRead(Button);pinMode(Button, INPUT);//Set Button to be input -- does this need to be in the loop?if(Button_state == LOW){timer1 = millis();timer2 = millis();while(Button_state == LOW){ // while(digitalRead(Button) == LOW){Button_state = digitalRead(Button); // added this line. Alternatively, change the while statement as in the commenttimer2 = millis();}Hold_time = timer2 - timer1;passOn(Hold_time);}}Changes tested with Notepad compiler

author: TomS_
author_rank: Frequent Contributor
timestamp: October 24, 2020, 10:57:43 am
content: You definitely do not need to:1. Read the button state in the setup function2. Reconfigure the button pin as an input in the loop functionAnd as mskeete says, you only read the button once when entering into the loop function, and then loop forever if the state was low, but never check the state of it again - so if the button was pressed you will never exit that while loop and it will appear to be unresponsive as a result.You can also use a #define to create a compile time variable to hold the button pin number so that you do not need to declare it in multiple locations throughout your code - a maintenance nightmare!
ESP32: Upload issue - Page 1
Forum section: electronics / general

author: mwestern
author_rank: Newbie
timestamp: October 15, 2020, 07:37:41 pm
content: I am having a problem uploading my code using the arduino IDE onto my esp32. I am new to this and have never seen these issues before, I have my own programming board which I have used for other projects so I do not believe that to be the issue. Attached is a photo of the errors I am receiving and my code.

author: drvtech
author_rank: Regular Contributor
timestamp: October 15, 2020, 10:05:01 pm
content: Sorry if this is a bit basic but have you put it into boot mode before trying to upload? See here for detailshttps://github.com/espressif/esptool/wiki/ESP32-Boot-Mode-Selection

author: Lindley
author_rank: Regular Contributor
timestamp: October 16, 2020, 08:45:34 am
content: Which ESP32 board are you using ? ours just work fine out of the box.Have you tried uploading the basic Arduino Blink example ?Always try a different USB cable and pc socket, some can cause uploading problems.

author: Lindley
author_rank: Regular Contributor
timestamp: October 17, 2020, 11:00:54 am
content: Also, depends on what board from the Board manager you have selected.Not all boards program up on the original 'ESP32DevModule' setting.
Attiny 0 and 1 series - Page 1
Forum section: electronics / general

author: MakeIt
author_rank: Contributor
timestamp: October 13, 2020, 07:36:38 am
content: Hello,I am new to the ATtiny range from Microchip.Is it possible to use an ATtiny as programmer with a USB bootloader?I like the Micronucleus bootloader that is used for the ATtiny85, does someone know if this is possible with the ATtiny816?

author: HB9EVI
author_rank: Frequent Contributor
timestamp: October 13, 2020, 10:46:12 am
content: why to reinvent the wheel?:https://www.fischl.de/usbasp/https://learn.adafruit.com/usbtinyisp/download

author: MarkR42
author_rank: Regular Contributor
timestamp: October 13, 2020, 05:07:02 pm
content: Attiny 0/1 series use the UPDI programming pin, not the older ISP interface.I have used a simple usb-serial dongle with a resistor and pyupdi.py, but also the "Attiny 416 Xplained Nano" evaluation board can also be used as an UPDI programmer for any of the other chips in the interface. (You can disable the on-board attiny416 by removing a 0 ohm resistor or something)The xplained nano is really cheap and works with the official Atmel Studio.

author: HB9EVI
author_rank: Frequent Contributor
timestamp: October 13, 2020, 05:15:43 pm
content: the USBasp supports PDI programming although not TPI (for ATXmega); but it requires the last firmware which by itself requires either an ATmega8 or ATmega88; the ATmega48 is no longer supported due to too little flash

author: cv007
author_rank: Frequent Contributor
timestamp: October 13, 2020, 06:10:51 pm
content: >You can disable the on-board attiny416 by removing a 0 ohm resistor or somethingNo hardware mod needed, just connect PA0 to Vcc and use the UPDI pin of the programmer (pin 2, DBG DATA). There is a 1k resistor between the programmer UPDI output and the UPDI (PA0) of the 416, so by shorting PA0 to Vcc you disable the on board 416 and the resulting 1k pullup on UPDI is harmless. You now have a UPDI programmer/debugger for external targets, or remove the PA0-Vcc jumper and use the on board 416.The 416 xplained nano sells for <$10, and you also get a debugger which can be handy. Another option which is probably better, is to get a SNAP programmer/debugger for $15 which runs at usb high speed and can program/debug many of the mcu's mchp sells. Or get both.
STLink V3 Mini: open source firmware - Page 1
Forum section: electronics / general

author: koendv
author_rank: Contributor
timestamp: October 10, 2020, 10:26:47 am
content: Micropython, Black Magic Probe and DAP on your STLink V3 Mini.https://github.com/koendv/bmp

author: jnz
author_rank: Frequent Contributor
timestamp: October 11, 2020, 03:28:13 am
content: I wish less emphasis was put on python for microcontrollers controllers. It just does not (fucking) belong there.Rust is actual systems programming, but haven’t used it personally, but it’s GOT to be better than python. I’d even consider Go a better alternative!

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: October 12, 2020, 04:12:26 pm
content: What does this offer that's better than the standard firmware for STLink V3?
gone to ground (PIC) - Page 1
Forum section: electronics / general

author: PerranOak
author_rank: Frequent Contributor
timestamp: October 09, 2020, 10:09:46 am
content: When a PIC has a pin at logic level zero is it literally connected to ground?

author: snarkysparky
author_rank: Frequent Contributor
timestamp: October 09, 2020, 11:54:32 am
content: driven by low side mosfet.

author: PerranOak
author_rank: Frequent Contributor
timestamp: October 09, 2020, 01:20:03 pm
content: ...so, near as dammit?

author: Siwastaja
author_rank: Super Contributor
timestamp: October 09, 2020, 01:50:47 pm
content: With some 10-50 ohms of series resistance. Too much current and it blows up.

author: NivagSwerdna
author_rank: Super Contributor
timestamp: October 09, 2020, 02:07:26 pm
content: Depending on your PIC... but take the PIC16F87XA series as an example...The I/O Section of the datasheet 4.0 shows the idea in Figure 4-1P MOSFET to VDD, N MOSFET to GNDIn Section 17.0 Electrical CharacteristicsMaximum output current sunk by any I/O pin...25 mAandMaximum current sunk by PORTA, PORTB and PORTE (combined) (Note 3)....................................................200 mAPICs are pretty good at sourcing or sinking current. 25mA is not bad. Ask it for more and the voltage will probably start to increase and smoke come out.

author: PerranOak
author_rank: Frequent Contributor
timestamp: October 09, 2020, 04:23:05 pm
content: Brilliant. Cheers all.
8051 interrupt in interrupt - Page 1
Forum section: electronics / general

author: blueskull
author_rank: Unknown
timestamp: October 15, 2020, 09:34:04 am
content: Quick question: during an ISR is being executed (from interrupt to RETI), can THE SAME interrupt be raised and served and interrupting the current ISR?I ask this because I know there is this interrupt priority system in 8051, where higher level interrupts can interrupt a lower level ISR, and another interrupt of the same level or lower level interrupts cannot. But there's no clear way stating whether the same interrupt can interrupt its own ISR.I observed this on CH552, and I'd like to know if this is normal in 8051, or should I call WCH and report a silicon bug.

author: Jeroen3
author_rank: Super Contributor
timestamp: October 15, 2020, 09:42:28 am
content: Only if you change the priority inside said interrupt I suspect.There are two interrupt levels. Default all interrupts are the same. Only higher interrupt priority can nest.

author: Wilksey
author_rank: Super Contributor
timestamp: October 15, 2020, 10:43:58 am
content: I would suspect it depends on when you clear the interrupt but you could get into a sticky mess if you do not use priorities.

author: Jeroen3
author_rank: Super Contributor
timestamp: October 15, 2020, 11:24:36 am
content: Quote from: Wilksey on October 15, 2020, 10:43:58 amInterrupt flags are latched until RETI.

author: PCB.Wiz
author_rank: Super Contributor
timestamp: October 16, 2020, 02:08:15 am
content: Quote from: blueskull on October 15, 2020, 09:34:04 amWhat exactly did you observe ?Until a RETI occurs, thesameinterrupt should not be possible to re-enter.Usually, that RETI is at the end of the interrupt, but in very rare and special cases, with extreme care when using assembler, you can call an early RETI, which resets the interrupt state engine, but continues one longer/rare fork of the interrupt code.

author: oPossum
author_rank: Super Contributor
timestamp: October 16, 2020, 03:22:16 am
content: I am not touching the USB interrupt enable in the ISR and everything works as expected. Debugging is with blocking bit-bang UART at 3 Mbps.
Getting Started with SAMD21E18 - Page 1
Forum section: electronics / general

author: braised_beef
author_rank: Newbie
timestamp: October 07, 2020, 08:50:08 am
content: Hi all,I just recently purchased aATSAMD21E18A-MU(QFN32) microcontroller.I'm a second year engineering student and would like some help setting up this chip.What is the minimum configuration to get started with this chip?I've come across this configuration fromADVweb, however, this is for the SAMD21G.Any help is greatly appreciated.

author: NivagSwerdna
author_rank: Super Contributor
timestamp: October 07, 2020, 09:27:48 am
content: Looks about right. I have used ATSAMC21 and it looks similar... I have two additional small .1u caps between 17 & 18 and 42 & 43 but otherwise it looks similar.Obviously if you want to program it in place you need to bring out SWDIO, SWCLK, nRESET, GND and 3V3 to a header of some kind.

author: westfw
author_rank: Super Contributor
timestamp: October 07, 2020, 10:15:34 am
content: better put some pins on SWDIO/SWCLK, or you won't be able to talk to it at all.Unlike some ARM chips, the SAMDs do not include a USB bootloader by default.

author: EverydayMuffin
author_rank: Regular Contributor
timestamp: October 07, 2020, 06:06:21 pm
content: I think this might be what you're looking for:http://www.technoblogy.com/show?2833

author: braised_beef
author_rank: Newbie
timestamp: October 07, 2020, 11:29:20 pm
content: Thanks for the help guys!
Bootloader for PIC18F6622 - Page 1
Forum section: electronics / general

author: akmal122g
author_rank: Newbie
timestamp: October 06, 2020, 10:50:28 pm
content: Hello. I am trying to program PIC18F6622 using UART. My computer cannot detect the PIC18F6622. I think it requires the bootloader. Where can I get the bootloader for PIC18F6622?Thank you.
Replacement bluepill PCBs for LQFP-64 and LQFP-48 - Page 1
Forum section: electronics / general

author: profdc9
author_rank: Frequent Contributor
timestamp: October 07, 2020, 02:02:52 am
content: Hello,I have a replacement LQFP-64 PCB for the STM32F405RGT6 or STM32F103RET6 (just requires some component swaps). The project is populated with the JLCPCB/LCSC BOM and placement files so their SMT assembly service can be used. It may be found at:https://github.com/profdc9/STM32F4surfaceThere is also a LQFP-48 PCB for the STM32F103CBT6 that can be used with the STM32F303CCT6 by just swapping the part. It also contains JLCPCB/LCSC BOM and placement files:https://github.com/profdc9/STM32surfaceHopefully this helps those of you working on getting genuine Bluepill parts or upgraded Bluepill boards.
Clock Multiplier Logic Pins - Noisy? - Page 1
Forum section: electronics / general

author: ssashton
author_rank: Frequent Contributor
timestamp: October 05, 2020, 05:15:05 pm
content: Hi,I'm designing a PCB with an audio DSP chip on it, plus a separate regulator for the digital and the analog supplies.The chip has some mode setting logic pins, in this particular case for the clock multiplier that happen to be a pain to route to the digital supply to pull high. Is there any chance a pin like this would introduce noise on my analog supply? Or perhaps as part of the PLL it should be on the analog side?Perhaps it depends entirely on the internal structure of the chip...

author: jc101
author_rank: Frequent Contributor
timestamp: October 05, 2020, 05:30:54 pm
content: It might be to attract attention to the post, but perhaps an edit of the thread title could be in order to avoid a spate of "interesting" replies...QuoteIt might be some of the clock signal escapes on the pin to select the multiplier, can you see anything on that with a scope?

author: Nominal Animal
author_rank: Super Contributor
timestamp: October 05, 2020, 05:54:36 pm
content: Does the DSP datasheet electrical section not describe which power circuit the multiplier logic pins belong to?(The ARM microcontroller datasheets I've looked at all do. I know nothing about DSPs, though.)

author: ssashton
author_rank: Frequent Contributor
timestamp: October 05, 2020, 06:07:21 pm
content: In the case of the PLL multiplier unfortunately they do not state it. However they are on the side of the chip with most of the analog stuff and the PLL filter so I'm starting to think it is meant to be on the analog supply, even though clock stuff is usually digital.

author: Nominal Animal
author_rank: Super Contributor
timestamp: October 05, 2020, 06:34:02 pm
content: If you can find a schematic for the reference implementation, you could check that. Or contact the manufacturer and ask; perhaps formatted as a defect report on their datasheet with a correction suggestion.

author: ssashton
author_rank: Frequent Contributor
timestamp: October 05, 2020, 07:20:36 pm
content: Ah ha! Great idea, in the eval board user guide there is a schematic which shows them pulled to the digital supply!Thanks for the suggestion.
STM32H SPI SS DMA - Page 1
Forum section: electronics / general

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: October 05, 2020, 11:24:34 am
content: Hi,I want to know, if it's a way or nice trick to send Data over SPI using DMA, with the SS line output goes from the first word low to the end of the transaction!I have done it, But the SS line would goes high after each word is send.Do we have a work around?

author: mikerj
author_rank: Super Contributor
timestamp: October 05, 2020, 03:24:14 pm
content: Configure the SS pin as a GPIO and set/clear it in software.

author: mark03
author_rank: Frequent Contributor
timestamp: October 05, 2020, 04:43:20 pm
content: Yes. What he said. STM32's have broken SS management; it has been this way for as long as I can remember. Best thing to do is relieve the SPI peripheral of this task completely.

author: Siwastaja
author_rank: Super Contributor
timestamp: October 05, 2020, 04:56:35 pm
content: I think I have succeeded in using the nSS hardware management with DMAonce; it was with a certain optical mouse sensor. .... oh wait, I checked my code, I remembered wrong. I have never succeeded with it. For some odd reason, I always design the PCB pin mapping so that the CS signal goes to the dedicated nSS pin so I can always give it achance...In another codebase with the brand new H7 with the least sucking SPI implementation so far, I have written this comment:Code:The STM32 SPI peripheral still sucks beyond belief!The most common use case:* Write something to be sent-> nSS is asserted-> Clock is generated-> data is clocked outIS IMPOSSIBLE!The options are:-> nSS is asserted too early, before there is anything to be sent* Write something to be sent-> Clock is generated-> data is clocked outIf NSSP "Pulse Management" is turned on - another completely different feature - it has an ADDITIONAL side effect offixing that broken behavior:* Write something to be sent-> nSS is asserted!Great! But NSSP adds extra nSS=1 periods between bytes. If you don't want that, but still want a non-brokenSPI, you are out of options!Sadly, due to the broken STM32 SPI, it's just impossible to useit with DMA to do the simplest thing of reading the ADC (which is a completely usual chip).So with NSSP control bit, you can choose either always-active nSS (useless) or one-word transfers only (usually useless). They still haven't figured out the concept of "transfer" or "packet" or "delimitation" which is a fundamentalconceptin SPI, and the reason why it is such a great interface.

author: mark03
author_rank: Frequent Contributor
timestamp: October 05, 2020, 05:25:58 pm
content: Quote from: Siwastaja on October 05, 2020, 04:56:35 pmThis is my experience, exactly! Why do I do this??
swapping a display - Page 1
Forum section: electronics / general

author: m3vuv
author_rank: Super Contributor
timestamp: October 04, 2020, 02:19:17 pm
content: hi all,i have a spot welder timer unit,see pic,it looks like an ic2 interface to me,can i swap it with this one?https://www.ebay.co.uk/itm/Arduino-Blue-LCD-2004-with-I2C-interface-only-requires-2-I-O-pins-UK-Seller/191961308435?hash=item2cb1c91d13:g:1xcAAOSwSzdXBEoA

author: DrG
author_rank: Super Contributor
timestamp: October 04, 2020, 02:49:01 pm
content: Looks more like these, which are very common. Do you have exact measurements?https://www.amazon.com/Pieces-Display-Module-SSD1306-3-3V-5V/dp/B08CDN5PSJ/ref=sr_1_4?dchild=1&keywords=OLED+Arduino&qid=1601822863&sr=8-4Edit: If you mean can you replace it with the larger one that you linked to, then I would say, no, because it is a different controller and, while not impossible, you would need to modify the firmware.

author: m3vuv
author_rank: Super Contributor
timestamp: October 04, 2020, 03:06:39 pm
content: it looks like 28mmx12mm

author: DrG
author_rank: Super Contributor
timestamp: October 04, 2020, 03:36:26 pm
content: Quote from: m3vuv on October 04, 2020, 03:06:39 pmhttps://www.amazon.com/dp/B07D9H83R4/ref=vp_d_ac_sub_sp_pd?_encoding=UTF8&pd_rd_i=B07D9H83R4&pd_rd_w=yU6p0&pf_rd_p=2ffcd48a-9fc6-4fa5-9277-084a00597c0f&pf_rd_r=108508b7-0a20-46b1-879f-3767397a7525&pd_rd_r=108508b7-0a20-46b1-879f-3767397a7525&pd_rd_wg=VhGCgGives measurements (converted to mm) 38.1 X 11.43 - BOARD size, not screen or viewing area.But, again, are trying to simply replace the display with the same display or trying to use a bigger display or ?

author: m3vuv
author_rank: Super Contributor
timestamp: October 04, 2020, 04:20:24 pm
content: thats the viewing area,i just want a biiger display so i can read it without glasses.

author: madires
author_rank: Super Contributor
timestamp: October 04, 2020, 04:56:37 pm
content: Quote from: m3vuv on October 04, 2020, 02:19:17 pmThe current display is a graphics OLED, possibly an SSD1306 based one. The one you've linked is an HD44780 based character display with a PCF8574 backpack for I2C. That would require a different firmware driver. There are slightly larger OLEDs sold as SSD1306 based, but some (most?) come with an SH1106 instead. The SH1106 is quite similar to the SSD1306, though it needs some tweaks.

author: SiliconWizard
author_rank: Super Contributor
timestamp: October 04, 2020, 06:34:58 pm
content: Yes it looks like a graphics display.Anyway, there are literally myriads of such displays on the market, with different characteristics and different controllers, so unless you're ready to re-write the code for the display, all bets are pretty much off unless you can find the exact same couple (display + controller). Even if it's the same controller but not the same display, it may not function as there can be a specific configuration (that again would require modifying the software.)
Free Hitex training on Cortex-M - Page 1
Forum section: electronics / general

author: gmb42
author_rank: Frequent Contributor
timestamp: September 30, 2020, 10:53:01 am
content: Received via email, a link to a set of training videos on the Cortex-M, topics include:Cortex-M knowledge in compact formUsing a real time operating system (RTOS)Middleware with Cortex-MDesigning secure IoT devices with Cortex-M33Secure communication for Arm microcontrollersExperts GuideWeb pagehere.

author: voltsandjolts
author_rank: Unknown
timestamp: September 30, 2020, 10:57:53 am
content: Link not working

author: newbrain
author_rank: Super Contributor
timestamp: September 30, 2020, 11:33:19 am
content: Quote from: voltsandjolts on September 30, 2020, 10:57:53 amhttps://www.hitex.com/index.php?id=806

author: gmb42
author_rank: Frequent Contributor
timestamp: September 30, 2020, 01:26:52 pm
content: Quote from: voltsandjolts on September 30, 2020, 10:57:53 amDuh, wrong markup, sorry. Fixed in original post.
How to set FUSE for protect my code in flash memory STM8S003F3P6, using IAR? - Page 1
Forum section: electronics / general

author: Leo86
author_rank: Contributor
timestamp: September 27, 2020, 10:04:45 pm
content: Hi Everyone!I'm make a project with STM8S003F3P6 on IAR. But, i don't know how protect my code.I always programmer microchip, in microcontrollers PIC i protect code in memory Flash with diretives on own code.// CONFIG1#pragma config GCP = ONWith STM8S003F3P6 using IAR, how i can set FUSE for protect my code in flash memory?. Can i use a diretive in my own code?Thanks!
Arduino using ethernet for 3D printer Micro SD card - Page 1
Forum section: electronics / general

author: Stealthrt
author_rank: Regular Contributor
timestamp: September 24, 2020, 05:22:32 pm
content: So I have a 3D printer that relies on me to place the sliced images onto a micro SD card on my computer and then transfer it onto the micro SD card and place it back into my 3D printer in order for me top call it up to print.Me being a geek, I would like to know if there is any way I can use the Arduino to transmit the spliced image that would be on the micro SD card using ethernet? Something like Micro SD to ethernet.I know that the Arduino itself can READ micro SD cards by purchasing a micro SDhttps://images-na.ssl-images-amazon.com/images/I/61CM7AI-HoL._AC_SX522_.jpgshield but that's just for reading. And I also know the Arduino itself can be controlled over the network via a ethernet shieldhttps://youpilab.com/components/wp-content/uploads/2020/08/w5500-500x500.v2.jpg.So the question remains - Is it possible to use the Arduino in order for me to send my sliced file over my network to the micro SD card inside the 3D printer? Perhaps just soldered the micro SD connections themselves inside the 3D printer?

author: MarkF
author_rank: Super Contributor
timestamp: September 24, 2020, 05:31:04 pm
content: I have not seen anything for Arduino.But, there is OctoPi / OctoPrint for Raspberry Pi.https://octoprint.org/

author: rstofer
author_rank: Super Contributor
timestamp: September 24, 2020, 07:43:44 pm
content: The Arduino code is expecting to read a file and the code is written to support it. It is NOT expecting to receive data over the Ethernet. If you're up to the task, modify the code to become a client requesting data from a TCP server. At least for Linux (and the Raspberry Pi) creating a TCP server is trivial.https://www.geeksforgeeks.org/tcp-server-client-implementation-in-c/The Arduino Ethernet Library provides a full spectrum of functions.You might search for 'tftp cllient arduino' or 'network file system arduino'. I didn't get anything worthwhile but I didn't try very hard.TCP will work once you determine how to start/restart reading of some file. Which file would probably be selected on the server end and the Arduino client just gets that file. Or you can get more sophisticated...

author: Flump
author_rank: Frequent Contributor
timestamp: September 24, 2020, 08:44:36 pm
content: I use Cura Slicer to remote control my Ender3 over USB.
SD card in SPI mode - "FS Information Sector"  - Page 1
Forum section: electronics / general

author: Maxxis
author_rank: Newbie
timestamp: September 23, 2020, 03:35:00 pm
content: Hello Everyone,I use STM32L4 MCU (not important) and SD card connected through SPI @4MHz. I use FAT32 "FatFs - Generic FAT Filesystem Module" fromhttp://www.elm-chan.org/.When I use empty SD card in my embedded device and save some logs to it, so everything is fine. Thre is no problemProblem:I save lets say 4GB film to a SD card from my PC (WIN10) and then insert SD card into my embedded device.Consequence: When there should be saved some data onto the SD card, so embedded device stucks for several minutes and then continue working. Then I switch off / switch on my embedded device and everything works fine again. There is no problem anymore (embedded device updated "FS Information Sector").Reason of problem:On every SD card is a "FS Information Sector" where SHOULD BE written number of last free sector, which might be used for write operation. Problem is that when I save the film (or any big file) onto the SD card, so my PC DOES NOT update "FS Information Sector". So when I switch on my embedded device and want to save something onto SD card (which was just used by my PC), so my embedded device must firstly find first free cluster (done over attached code from FatFs). And it takes too long..Question:Any idea how to fasten usage of SD card, if "FS Information Sector" is not correct?