hybridfree/eevblog-posts huggingface dataset:
Help with compiling git repository - Page 1
Forum section: electronics / general

author: ryano12
author_rank: Newbie
timestamp: December 04, 2021, 01:03:17 pm
content: Hi There, I've put together my own hardware based on the info in the github repositoryhttps://github.com/d-ronin/openlagerI've now assembled my PCB's and am trying to build the firmware/loader to flash to my STM32 based hardware.I am terrible at anything to do with code but I've tried several methods to build the firmware, but immediately with the error;Code:Makefile:6: *** **ERROR** ARM-SDK is not in tools/gcc-arm-none-eabi-5_2-2015q4. Stop."make -k all" terminated with exit code 2. Build might be incomplete.I've been through hours of youtube and platforms but all with the same result.. I've downloaded and installed the latest GNU gcc-arm toolchains (https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads). I've tried altering the makefile code to reflect the "gcc-arm-none-eabi-10.3-2021.10" toolchain that I've installed but cannot get anywhere with it.I've tried with VS-Code, STM32CubeIDE and been as far as installing a virtual linux system with XBUNTU and end up with the same result (lack of user knowledge/PEBKAC)Is there anyone that can help me build the .bin files for this bootloader to be flashed to my hardware?Pics of hardware, if it's of interest... It's the first PCB i've ever made, but the magic smoke remains inside and I can see the empty chip flash on the chip in the ST-Link utility.It's a 20x20mm board that is intended to be used as a logging peripheral for quadcopter blackbox logs. The flight-controller's onboard flash and logging is limited to 16mb which equates to about 4 minutes of flight time at 4khz sampling.. This device should be able to log for hours at much higher rates.(Learnt my lesson with ignoring JLCPCB's silk screen capabilities)

author: abyrvalg
author_rank: Frequent Contributor
timestamp: December 04, 2021, 01:46:11 pm
content: The project expects ARM GCC to be installed in a local dir ./tools/gcc-arm-none-eabi-5_2-2015q4/. You can do one of these things:1. To use "system-wide" (accessible via $PATH) arm-none-eabi-gcc just set theARM_SDK_PREFIXtoarm-none-eabi-and comment out the error check like this:Code:ARM_SDK_PREFIX := arm-none-eabi-#ifeq ("$(wildcard $(ARM_SDK_PREFIX)gcc*)","")# $(error **ERROR** ARM-SDK is not in $(ARM_SDK_DIR))#endif2. To use some specific ARM GCC installation (neither in $PATH nor in ./tools) specify afull(not $TOOLS_DIR-relative) path to it like this:Code:ARM_SDK_DIR := ~/electro/ARM/gcc-arm-none-eabi-10-2020-q4-major

author: ryano12
author_rank: Newbie
timestamp: December 05, 2021, 11:10:23 am
content: That worked! Really appreciate the help!!!
C Programming Syntax - Page 1
Forum section: electronics / general

author: Ground_Loop
author_rank: Frequent Contributor
timestamp: December 01, 2021, 06:53:25 pm
content: I ran across something similar to this and don't know how to interpret it. A = (B < C) D : E; Of course there were actual numbers and variables, but you get the idea. What is being assigned to A?

author: oPossum
author_rank: Super Contributor
timestamp: December 01, 2021, 06:57:28 pm
content: I think there is a question mark missing.Code:A = (B < C) ? D : E;That would be a ternary operator.Equivalent to..Code:if (B < C)A = D;elseA = E;

author: Ground_Loop
author_rank: Frequent Contributor
timestamp: December 01, 2021, 07:05:56 pm
content: I was thinking the same, but there is definitely not a question mark. I'll consider it a typo.

author: DavidAlfa
author_rank: Super Contributor
timestamp: December 02, 2021, 05:56:54 am
content: For sure, the "?" is missing, if you try that syntax it will cause a compiling error.
Reverse engineering OPEL2 transponder: PCF7991 library transponder needed - Page 1
Forum section: electronics / general

author: rvalente
author_rank: Frequent Contributor
timestamp: December 31, 2020, 03:53:07 pm
content: Hello mates,I'm reverse engineering the OPEL2 immobilizer transponder from Continental/Siemens VDO to use on my offroad vehicle.http://www.chavesgold.com.br/transponder/manuais/gm/GSR110070.pdfSome pictures from the reprogramming guide.Does any one would have and share a library for the PCF7991 transponder IC from NXP/Philips? My idead is to remove the TMS370 and use some other uC.Attached the schematic (still under corrections)

author: amyk
author_rank: Super Contributor
timestamp: January 01, 2021, 04:15:16 am
content: http://www.farnell.com/datasheets/2353677.pdf

author: rvalente
author_rank: Frequent Contributor
timestamp: January 04, 2021, 07:21:55 pm
content: Tks but I'm looking for a library. The datasheet is easy to find

author: Reverse8051
author_rank: Newbie
timestamp: December 02, 2021, 10:52:57 am
content: Hi @rvalente. Arek you stilo working with this TMS370 immobox?

author: DavidAlfa
author_rank: Super Contributor
timestamp: December 03, 2021, 10:43:31 am
content: Checking the datasheet, it seems the transponder is just a bridge, you send data or receive raw data, and is up to you what to do with it.The heavy stuff, protocol, key storage, and such is done my the mcus interfacing the transponders.Or that's what it looks like.
LCD interface direclty using SPI - Page 1
Forum section: electronics / general

author: Ravi Kumar S
author_rank: Newbie
timestamp: November 09, 2021, 07:15:07 am
content: Hi,I'm trying to interface monochrome LCD with microcontroller directly using SPI line. I saw this method used in a schematic, but i didn't understand how does it works. please help me with this problem. LCD pinout and controller pin mapping is attachedcontroller-pic24F

author: Ravi Kumar S
author_rank: Newbie
timestamp: November 09, 2021, 07:17:18 am
content: i'm sorry i missed LCD pin mapping image

author: IDEngineer
author_rank: Super Contributor
timestamp: November 09, 2021, 07:35:58 am
content: Many LCD controllers offer both parallel and SPI interfaces. When using SPI, one or more of the parallel data bits becomes MOSI, SCLK, etc. You need to consult the specific LCD controller spec sheet to learn how to put it into SPI mode.

author: SiliconWizard
author_rank: Super Contributor
timestamp: November 09, 2021, 05:08:55 pm
content: So giving us the reference of the LCD controller would have been more useful here to help you than giving us the pin map.

author: rpiloverbd
author_rank: Regular Contributor
timestamp: December 01, 2021, 09:46:17 am
content: Hello, Would you please mention which LCD controller you are using?

author: jpanhalt
author_rank: Super Contributor
timestamp: December 01, 2021, 12:08:28 pm
content: Yes, knowing the display controller is essential. I am currently using a Sitronics ST7567A GLCD, which takes SPI and is very quick.https://www.crystalfontz.com/controllers/Sitronix/ST7567A/The only problem is that with that interface you cannot read the display, e.g., the ready bit or anything else, so I use a buffer.

author: Ground_Loop
author_rank: Frequent Contributor
timestamp: December 01, 2021, 11:23:02 pm
content: My 4x20 lcds have a similar pin out. I use a 16 bit shift register to convert the serial data and command string to parallel. Of course this is optimally done with 16 bit SPI.
[Arduino]Trouble with eth shield & relay shield - Page 1
Forum section: electronics / general

author: gab_22
author_rank: Contributor
timestamp: November 29, 2021, 08:36:00 pm
content: Hi everyone!I'm working on a little project with :- Official Arduino Uno (https://store.arduino.cc/products/arduino-uno-rev3/)- Official Arduino Eth shield V2 (https://store.arduino.cc/collections/shields/products/arduino-ethernet-shield-2)- Relay Shield V3.0 from Seed Studio (https://wiki.seeedstudio.com/Relay_Shield_v3/)The goal of the project is to control the relays through HTTP web page.I tried each board separately with success (Uno + Eth Shield) and (Uno + Relay shield)But unfortunately, it's not working when all shields are stackedThe code on the Arduino is :https://www.arduino.cc/en/Tutorial/LibraryExamples/WebServer-When the relay shield is stacked on the eth shield I have this message on the serialCode:Ethernet shield was not found. Sorry, can't run without hardware. :(the LEDs on the Arduino and eth shield seems ok-When it's only the Uno + eth shield it works fine.I know there is a conflict with pin 4, it's both used by relay shield and eth shield for the SD card. But I don't have an SD card here.I tried with an external power supply (12V / 1A) but with the same result.Do you have any idea?Thank you

author: Foxxz
author_rank: Regular Contributor
timestamp: November 30, 2021, 03:55:34 am
content: You may not be using the SD card but pin 4 still controls its access to the SPI bus which the Ethernet is also trying to use. Try setting pin 4 high and see if you're able to use the Ethernet with the relay board also connected. This may mean you will not be able to use the relay controlled by pin 4.Alternatively once you have tested that it's indeed that pin causing you problem. You can clip that pin off on the Ethernet board and tie it high with a wire soldered to it

author: gab_22
author_rank: Contributor
timestamp: November 30, 2021, 07:21:45 pm
content: Hi, thank you for your message it was very helpfulIndeed pin 4 was in conflict in this setup. I reworked the relay shield PCB to swap pin 4 with another pin (unused by ETH shield) and it works fine now.
Better GSM Module Needed - Page 1
Forum section: electronics / general

author: Joseph1
author_rank: Contributor
timestamp: November 06, 2021, 02:14:55 am
content: I am looking for a reliable GSM module which suits for industrial environment.All the time I was doing Designs withSIM800Lmodules & it gave me lots of problems & gave off that module.I encountered problems like*Unfamiliar UART voltage levels*No support from manufacture (obsolete)*Interefere comes from nearby RF panels*Sensitive to PCB layout(I am not a pcb expert)*2A peak power requirement*Many modules does not work when buyingEtc...Can anybody help me to find a better module nowadays?

author: I wanted a rude username
author_rank: Frequent Contributor
timestamp: November 06, 2021, 03:05:10 am
content: Why would you use a GSM module in a new design?It was phased out in Australia in 2018, and most relevant markets have also done so or plan to soon.Even 3G only has maybe five years left in Australia. Especially for industrial, I would target 4G.Also, 1.8 V line level is standard for newer cellular modules, so you probably have to resign yourself to level shifting.If you want to avoid all these problems and are using an SBC such as a Raspberry Pi, it is much simpler to just use a 4G dongle.

author: Joseph1
author_rank: Contributor
timestamp: November 06, 2021, 05:21:56 pm
content: Thats a nice thing to consider (4g).But adding expensive RPI & Dongles cost more..!!!Actually I want a simple alarm.There are 2 modules, one is the transmitter & the other is the reciever.Transmitter has a push button.when it pressed the reciever should turn on the buzzer.Thats it.I was doing with SIM800L modules.Used the "call" function & the reciever detects the incoming number & turn on the buzzer.I need to omit this troublesome Sim800l modules.

author: rpiloverbd
author_rank: Regular Contributor
timestamp: November 29, 2021, 01:30:24 pm
content: What about SIM900A?

author: TomS_
author_rank: Frequent Contributor
timestamp: November 30, 2021, 08:15:35 am
content: How fast apart is the calling station from the called station? And what is the environment where they are installed (commercial, industrial, residential, etc)?Is there perhaps another wireless standard that you could use, or maybe even some combination of, like generic 433MHz, LoRa(WAN), or even standard WiFi?
Replace spi flash winbond 25q64cvfig by what? - Page 1
Forum section: electronics / general

author: Netweaver
author_rank: Newbie
timestamp: November 22, 2021, 01:59:56 am
content: Hi,I need to replace this (soic-16?) flash ship by a working one but I can't find the exact same *fig version on Ali. Can I replace with a generic w25q64cv soic-16 chip?Or replace with double size w25q128bvfg/*fvfg, since I cann't readily find sop-16 w25q64cv anymore?Thanks

author: SiliconWizard
author_rank: Super Contributor
timestamp: November 22, 2021, 02:07:38 am
content: From the datasheet the SOIC-16 300mil package can have two markings: 25Q64CVFIG and 25Q64CVFIP (industrial temperature) and 25Q64CVFAG and 25Q64CVFAP (automotive).So it's only related to the package type itself - and temperature range. For a replacement, make sure the package is a SOIC-16 *300mil*, all that matters here. (package width: 300mil = 7.62mm)

author: Netweaver
author_rank: Newbie
timestamp: November 22, 2021, 02:54:21 am
content: Thanks!

author: NorthGuy
author_rank: Super Contributor
timestamp: November 22, 2021, 05:24:24 am
content: Why on Ali? There are plenty of them everywhere:https://www.digikey.ca/en/products/detail/winbond-electronics/W25Q64JVSFIQ/5803990

author: Netweaver
author_rank: Newbie
timestamp: November 22, 2021, 05:42:35 am
content: My bad. But minimum ordering amount is 50€ for free transport. Otherwise it's for the chip 1.1€ + 18€ transport, that's a bit overkill. Of course I would have bought 10 or so, but still. I have just received a shipment from them. If I had some other stuff I needed extra now, I could have combined it, from digikey (or tme or other local distributor).Speed (and quality) & more expensive vs. Slower and potential less quality but cheaper...
High Speed 800x480 display suggestion  - Page 1
Forum section: electronics / general

author: v.stefa
author_rank: Newbie
timestamp: December 09, 2021, 05:28:56 pm
content: Hi,I wouls like a suggestion for a high speed display with 800x480 resolution.I would like to display a panadapter screen like in the picture below. The display should refresh the screen 10/15 times per second.I did a test with a Nextion Intelligent display but i found it very slow.At the moment I am using the ESP32s micro controller that has enough power to do calculation and communication stuffs. Maybe I have to use another hardware "platform" with dedicated options like displays but I don't know what is the right one.Thank you in advance for any helpBest regardsEnzo

author: fchk
author_rank: Frequent Contributor
timestamp: December 09, 2021, 08:01:39 pm
content: The easiest would be a Linux solution - something like this one:https://www.olimex.com/Products/SOM/STMP1/The STM32MP157 has OpenGLES Graphic Acceleration, the 151 and 153 only have simple framebuffers. You can use QT, wxWidgets, GTK,... for your application.The LCD screens are standard dumb LVDS displays without memory or anything else - just the driver chips for the glass. The GPU inside the processor does all the work. These displays are available in all sizes and resolutions up to full hd. Look in the processors manual what the maximum resolutions and pixel clocks are.These LCD scrrens are also available with touch support.Some folks will recommend Raspberry PIs. These boards have the huge disadvantage that they can't drive standard LVDS displays. You are limited to the DSI displays they offer.If you prefer microcontroller platforms - yes, there are some. But software development is more difficult on these platforms. Linux apps can be developed on a PC and ported to the embedded board later on.fchk

author: v.stefa
author_rank: Newbie
timestamp: December 13, 2021, 04:29:09 pm
content: Thank you very much for your hints.It is a completely new world for me but it is seems very exciting
STM32H7 - Page 1
Forum section: electronics / general

author: Ario
author_rank: Regular Contributor
timestamp: November 02, 2021, 06:52:38 am
content: Hi thereI am trying to configure SWO output on a Stm32H750VB microcontroller. It seams there is a addressing issue, or change on the stm32H7 series microcontroller. I regularly use the SWO printf(trace) on other stm32 microcontrollers, but it is not working on the H7. Does somebody please have some more information for me, or a similar experience.regards

author: SiliconWizard
author_rank: Super Contributor
timestamp: November 02, 2021, 06:18:48 pm
content: I guess you probably know, but AFAIK, the SWO output is not enabled by default, on any STM32.There are two ways to enable it: if you use a debugger, most often, the debugger will configure SWO through JTAG/SWD. If you want SWO to work "standalone" without a debugger, you need to configure it in software.So, can you tell us how you proceed here. Are you using a debugger, or are you configuring SWO in software? Can you give more details?

author: Siwastaja
author_rank: Super Contributor
timestamp: November 02, 2021, 07:19:58 pm
content: Reduce the code to the minimum example that just demonstrates this problem and nothing else.Then post the code for us to see.

author: Ario
author_rank: Regular Contributor
timestamp: November 03, 2021, 08:20:38 pm
content: Thanks for you replay. I alreay have a minimal sysytem. I an I an using a st_debuger

author: dmendesf
author_rank: Frequent Contributor
timestamp: November 05, 2021, 02:49:02 am
content: https://gist.github.com/mofosyne/178ad947fdff0f357eb0e03a42bcef5c

author: SiliconWizard
author_rank: Super Contributor
timestamp: November 05, 2021, 05:41:54 pm
content: Quote from: Ario on November 03, 2021, 08:20:38 pmSure, but uh, well, I think what we were asking is more detailed information about your setup so we can try and help. The above doesn't answer anything much, except that we can assume you're at least not trying to use SWO in a standalone setup. But we'd still need to have a look at the parts of your code that write stuff to SWO, and then the setup of your debugger.

author: Ario
author_rank: Regular Contributor
timestamp: November 20, 2021, 11:41:45 am
content: Thanks this was what I was looking for.
Help with Mini Pro TL866 II +  Fake or Real ? Bricked? - Page 1
Forum section: electronics / general

author: SpooktechUK
author_rank: Newbie
timestamp: November 16, 2021, 04:40:25 pm
content: Help with Mini Pro TL866 II + Fake or Real ? Bricked?Hi all...So about 2 years ago I buy this prommer from Amazon with the intentions of doing some PIC work as my old unit had died (willem). I never got round to using the thing until today and plugged it all in etc. Downloaded the latest software and it wanted to flash the firmware to the latest.I let it do whatever and I think the unit had version 4.0.0 firmware and it wanted to upgrade to 11.06 or thereabouts.Everything seemed ok.I ran a self test and it failed on write error at the end and I also tried programming a couple of 12c508s I had lying about and it would write to them.I noticed when I plug the unit in now it still says its firmware 4.0.0I then start looking up issues with these and then see all this business with clones and the company bricking units etc.The photographs ive seen dont seem to match mine and the unit I have is from 2018.So basically what Im asking is where do I start to see if this is fake and how do I get the bugger up and running again ...Any help/advice would be great.

author: Wiljan
author_rank: Regular Contributor
timestamp: November 18, 2021, 04:48:39 pm
content: Have look in this thread:https://www.eevblog.com/forum/blog/eevblog-411-minipro-tl866-universal-programmer-review/
Config word reading on PIC - Page 1
Forum section: electronics / general

author: PerranOak
author_rank: Frequent Contributor
timestamp: November 14, 2021, 05:10:35 pm
content: I wanted to display (just with some LEDs for a quick check) the actual value of some config word data in my PIC.I, naively, thought I could just attach LEDs to the relevant pins and run this:Code:PORTAbits.RA0 = FEXTOSC0;PORTAbits.RA1 = FEXTOSC1;PORTAbits.RA2 = FEXTOSC2;However, I get:error: use of undeclared identifier 'FEXTOSC0'Can config words be read directly like this? If not, how can I read them from the chip without going via MPLAB, etc.?Thank you.(using a PIC16F15376)

author: SiliconWizard
author_rank: Super Contributor
timestamp: November 14, 2021, 05:18:52 pm
content: The configuration words are stored in registers in the PIC16F and should be available as CONFIG1L, CONFIG1H, CONFIG2L, etc. See datasheet for how each codes which configuration bits.I don't know if those registers are defined in the header files (haven't used PIC16F MCUs in ages) and can directly be read from C. Check that out.In any case, you'll be reading the config data in a number of registers.

author: NorthGuy
author_rank: Super Contributor
timestamp: November 14, 2021, 05:30:40 pm
content: Read the "NVMREG Access" chapter in the datasheet.

author: PerranOak
author_rank: Frequent Contributor
timestamp: November 17, 2021, 02:08:11 pm
content: Brilliant, cheers.I'd never noticed NVMREG but it worked a treat, thanks.
black pill voltage instability fixed - Page 1
Forum section: electronics / general

author: bb1
author_rank: Regular Contributor
timestamp: November 15, 2021, 02:07:19 am
content: Recently I got WeAct Black Pill V3.0 Board with STM32F411CEU microcontroller.While testing microcontroller peripherals, I noticed that processor voltage was unstable.It was randomly switching between stable 3.30V down to approximately 3.1V. When near 3.1V, it was oscillating with small amplitude.The voltage switching from 3.30V to 3.1V and back was happening at random times, typically in tens of seconds.This processor voltage is supplied by tiny LDO linear regulator identified as 4B2K on the top of the case.LDO stability is known to be very sensitive to the ESR and capacitance of the capacitors at their output.The capacitors of the WeAct board look tiny. I assume that they are made of very temperature unstable ceramics.Decreased capacitance may cause LDO instability.In an attempt to fix the instability, I connected tantalum capacitor between 3.3V and G pins next to the LDO. The capacitor is Sprague Series 293D 4.7uF, 10V.The ESR of this capacitor was measured by DER DE-5000 to be 0.58 ohm at 100 kHz, while measured capacitance was 4.93uF.After the capacitor was connected, the LDO output voltage remains very stable at 3.30V.
STM8 halt mode power consumption - Page 1
Forum section: electronics / general

author: Godzilla
author_rank: Contributor
timestamp: November 10, 2021, 12:44:28 pm
content: Hello, im trying to develop firmware for an STM8AL31E88, and im trying to wake the chip from the halt mode with an RTC Wake up interrupt. The code seems to be working but the power consumption seems a bit too high, it is about 900 uA, when it should be around 1/2 uA according to the data sheet. So i thought about 2 options, first my measurament tool is not good enough, i used an oscilloscope with a shunt resistor, i tried both 10 ohm and 47 ohm, and i also used a multimeter with uA measurament, they both seems to give me the same measurament. The second option is that the uC doesnt enter halt mode for some reason so its probably code related? Does anyone have an idea?

author: orlan
author_rank: Newbie
timestamp: November 13, 2021, 02:32:19 am
content: Are you measuring the power consumption of just the STM8, or are there other components (e.g. a voltage regulator or pullups) that may be having an effect?
ESP32 Bluetooth Low Energy does not communicate any more - Page 1
Forum section: electronics / general

author: raff5184
author_rank: Regular Contributor
timestamp: November 12, 2021, 05:53:37 pm
content: Hi all,I've been using some ESP32 chips. I program them from Arduino IDE and I can use the BLE interface to send/receive data. I noticed that the BLE doesn't work any more on some of them and they have a similar issue. I can still see the devices sending beacons and advertising themselves, I can pair and connect but I can't receive/transmit actual data any more. I tried to reprogram the chips but it didn't work out.Anyone had a similar issue or can suggest resources I can look at?Thank you
INTERACTIVE FORTH STARTER KIT FOR STM32F103 BLUE PILL only 26.5 KB of Flash. - Page 1
Forum section: electronics / general

author: techman-001
author_rank: Frequent Contributor
timestamp: August 17, 2019, 09:53:09 pm
content: Hi All,The Blue Pill board is very popular due to the very low cost and new Forth users who are not familiar with the STM32F103 MCU used in this board soon find that it's a major task to even get a LED on the board to turn on/off.The STM MCU in the Blue Pill is quite old and lacks the capabilities of more modern STM chips, however it is still extremely complex and the new user will soon be researching a 1096 page Technical Reference PDF to understand how everything works.This Starter Kit contains files to upload into your Blue Pill to help make mastering the STM32F103 MCU in general, and the Blue Pill LED in particular a bit easier. It covers basic RCC and GPIO usage. Everything is freely available under Open Source Licenses.You only need a serial terminal and file editor on your PC, no GCC, no GDB, no Eclipse, no massive GigaByte software downloads.With Forth on a Blue Pill, a complete INTERACTIVE development system, including the Starter Kit files is built into the MCU using only 26.5 KB of Flash.A Memstat utility is included which shows the following stats in REAL TIME on the MCU.free (bytes)FLASH.. TOTAL REPORTED: 65536 USED: 26460 FREE: 39076RAM.... TOTAL PRESET: 20000 USED: 628 FREE: 19372https://mecrisp-stellaris-folkdoc.sourceforge.io/bluepill-starterkit.html#bluepill-starter

author: Picuino
author_rank: Super Contributor
timestamp: November 12, 2021, 04:40:15 pm
content: Thanks for sharing.
What does this 6809 assembly instruction do? - Page 1
Forum section: electronics / general

author: HwAoRrDk
author_rank: Super Contributor
timestamp: November 11, 2021, 02:14:08 pm
content: A question to those familiar with 6809 assembly language: what is the following 'com' instruction doing? I don't mean what the instruction itself does, but what the operand notation means.Code:foo fcb $00; ... other code ...com <foo,pcrObviously it's complementing the data byte at location 'foo', but what is the '<' operator doing, and what is 'pcr'? The program counter?Is this some kind of assembler-specific syntax that produces an offset relative to the current location?

author: abyrvalg
author_rank: Frequent Contributor
timestamp: November 11, 2021, 03:44:51 pm
content: Yes, that's PC-relative addressing. '<' means "encode the offset part as 8-bit" (while '>' would mean 16-bit offset). For a backward reference (your case) the assembler should be smart enough to choose 8-bit offset encoding even w/o '<'.

author: HwAoRrDk
author_rank: Super Contributor
timestamp: November 11, 2021, 05:24:25 pm
content: Ah, thank you.It wasn't stopping me understanding generally what this code does (a complement operation is a complement operation, after all), just made me curious.A difficulty in trying to look it up was that I don't know what assembler this code is intended to be assembled with. I think it might beasm6809. The documentation for that does mention a '<' modifier:QuoteBut no mention of 'pcr', though, so I don't know if this guess is correct.

author: bingo600
author_rank: Super Contributor
timestamp: November 11, 2021, 05:37:54 pm
content: Quote from: HwAoRrDk on November 11, 2021, 02:14:08 pmThis was my favourite book on 6809 assembler programminghttps://thezippsterzone.com/programming//bingo

author: Andy Watson
author_rank: Super Contributor
timestamp: November 11, 2021, 05:41:53 pm
content: Another vote for the Leventhal book - pages 65, 66 and 95.

author: bingo600
author_rank: Super Contributor
timestamp: November 11, 2021, 05:50:45 pm
content: Strange that the leventhal is in yellow some places , and the black/green in others.I still have the black/green paper book here.

author: Benta
author_rank: Super Contributor
timestamp: November 11, 2021, 07:04:11 pm
content: The term "pcr" is "program counter relative" and the instruction calculates the offset from the program counter.Here's a nice page:https://www.chibiakumas.com/6809/

author: HwAoRrDk
author_rank: Super Contributor
timestamp: November 11, 2021, 07:05:47 pm
content: Thanks for the link to the book. That explains it.
PIC16(L)F18446 PWRTS Config Bits Errata Clarification - Page 1
Forum section: electronics / general

author: Dabbot
author_rank: Regular Contributor
timestamp: November 09, 2021, 10:11:26 am
content: A clarification on the PIC16(L)F18446 PWRTS Config Bits errata found here:https://ww1.microchip.com/downloads/en/DeviceDoc/PIC16(L)F18426-46-Family-Silicon-Errata-and-Data-Sheet-Clarification-80000799C.pdfThe Power-up Timer Selection bits, PWRTS[1:0] in Config Word 2 @ 0x8008, allow you to select a power up delay before code execution begins:11 PWRT disabled10 PWRT set at 64 ms01 PWRT set at 16 ms00 PWRT set at 1 msErrata item 1.6.1 states:QuoteThe errata item states the following work around:QuoteBut what you actually encounter is Bit 2 is stuck set, which means you can only choose PWRTS = 10 (64 ms) or PWRTS = 11 (disabled). Functionally, I have tested the startup delay is correct for both settings.Additionally, if you choose PWRTS = 00 (1 ms) or PWRTS = 01 (16 ms), you get an error upon programming verification caused by Bit 2 being stuck set:Code:configuration memoryAddress: 8008 Expected Value: 3ee0 Received Value: 3ee4Failed to program deviceJust leaving this here in case anyone else encounters the problem.

author: amyk
author_rank: Super Contributor
timestamp: November 09, 2021, 02:35:26 pm
content: So the errata have errata? I'm not surprised, but still...

author: Dabbot
author_rank: Regular Contributor
timestamp: November 09, 2021, 09:14:33 pm
content: Quote from: amyk on November 09, 2021, 02:35:26 pmIt's as if the person writing the errata was told "Bit 2 in CONFIG2 register doesn't work," and they were left to figure out what that meant, but didn't test to properly characterize the issue.

author: jpanhalt
author_rank: Super Contributor
timestamp: November 09, 2021, 09:19:25 pm
content: In that person's defense, most non-functioning bits are read as 0. Nevertheless, anyone in my lab would have checked.
Atmega164 spi byte string - Page 1
Forum section: electronics / general

author: Pferd
author_rank: Contributor
timestamp: November 13, 2021, 07:41:44 pm
content: Hello Forum,I am again in need of some programming advice... I have six shift registers type 74HC595 in series on the spi interface of an Atmega164. I wrote a send function which takes 6 bytes of data and shifts them out, after all 6 bytes are through the MCU latches the registers. This all works perfectly. The problem here is that I have 6-bit and 4-bit circuits connected to the shift registers parallel outputs, but for the sake of programming ease I want every value to be stored in a normal uint8_t variable in software. So I somehow need to cut down those variables to the information I need and then combine them again to the 8-bit b<tes I am then giving the SPI send function. Is there a clever way of bitmasking this or is there a trick in existence?I´ll attach a sketch to hopefully give some additional help of what my circuit needs to achieve.Thanks a lot in advance!:)

author: Ian.M
author_rank: Super Contributor
timestamp: November 13, 2021, 08:41:02 pm
content: No, as ATmegas don't have a barrel shifter. Also that 4 bit chunk in the middle doesn't do you any favors if you want a neat solution like shift and mask in a loop.If the hardware design isn't set in stone, your best option would be to rewire so each 6 bit chunk uses the same bits of each '595, preferably LSB aligned, then you only need to split and mask in the two halves of the 4 bit chunk into the high bits of two of the bytes and mask in the five individual bits.

author: madires
author_rank: Super Contributor
timestamp: November 13, 2021, 08:52:09 pm
content: You could use an array of 6 bytes for the 595s and overlay a uint16_t and a uint32_t pointer based on the boundaries. If any of the bitfield bytes for driver/signal lines change then copy and shift the changed bitfield byte in a temporary variable, clear the corresponding bits in the overlay (AND ~bitmask) and copy the new bitfield by a simple OR. After that resend the array. Instead of changing single bitfield bytes in the overlay you could also build the complete 2 or 4 byte pack and copy it directly to the overlay.
Replacement of development environment for LPC2388  - Page 1
Forum section: electronics / general

author: perdrix
author_rank: Frequent Contributor
timestamp: November 07, 2021, 11:03:26 am
content: Consider a design based on the NXP LPC2388 ARM uP. A lifetime buy of those has been made, so there is no wish to change the hardware.The development environment being used now is the Keil MDK at a fairly eye-watering cost (need the TCP/IP, USB etc. stacks). Would like to stop using that.I'm interested to hear your recommendations for a development environment that will be reasonably pain free to migrate to and is ideally open source.Ease of migration is the key issue here.ThanksDavid

author: nctnico
author_rank: Super Contributor
timestamp: November 07, 2021, 09:41:50 pm
content: Any GCC based environment should be able to do the job and throw in FreeRTOS as well. Nowadays NXP has a system in place that lets you put together a board support package pretty quick. But I think you'll need to spend time porting the software you have to run on a different OS and protocol stacks.

author: cfbsoftware
author_rank: Regular Contributor
timestamp: November 08, 2021, 11:36:09 pm
content: I haven't used it myself but an alternative commercial GCC-based solution that may be worth investigating is Rowley Crossworks:https://www.rowley.co.uk/arm/index.htm

author: engineer_in_shorts
author_rank: Regular Contributor
timestamp: November 09, 2021, 07:13:23 am
content: So that we understand alternative suggestions, Why stop using Keil when development is already underway?... Assumes there is some licenses already purchased.
Car inverter problem - Page 1
Forum section: electronics / general

author: Zfrenchy
author_rank: Contributor
timestamp: November 06, 2021, 09:16:35 pm
content: Hello all,I have a problem with a car inverter, when the inverter start or stop when the 120v output is loaded, the output stage of the inverter burnout. I already burn one inverter, and don't want do againI am thinking to make a little relay timed board using an ATTINY to turn ON or OFF the 120V circuit after or before the inverter.My question: Could the ATTINY keep alive long enough (a couple of seconds) to delay the stop of the inverter when power is removed ?here is the schematic

author: james_s
author_rank: Super Contributor
timestamp: November 06, 2021, 09:22:44 pm
content: My suggestion is to get a good quality inverter. If it's failing under these conditions it is not properly designed.

author: snarkysparky
author_rank: Frequent Contributor
timestamp: November 07, 2021, 12:38:28 pm
content: should work. I would put more bulk capacitance in line before the regulator. Also add 1k resistors from base to ground on the two transistors. Keeps leakage current from turning them on.Use internal 128 khz oscillator.
STLINK-V3MINI VCP pins - Page 1
Forum section: electronics / general

author: David Chamberlain
author_rank: Frequent Contributor
timestamp: November 05, 2021, 10:30:54 pm
content: Before I get it backwards, and while I'm sure this is not a typo. (picture below)Can someone please just confirm T_VCP_RX is actually the STLINK TX line - by it's type as Output.?I really wish they would just do it from the device looking outwards then it would always be TX to RX and I'd never again have to check my sanity.Thanks
Record in Intel Hex file  - Page 1
Forum section: electronics / general

author: perdrix
author_rank: Frequent Contributor
timestamp: November 02, 2021, 09:19:03 am
content: I've just built a hex file for a PIC17C42A project that was last built in May 2000. I used MPLAB 8.92 Quickbuild to build the output hex file.The May 2000 .hex file and the new one are identical apart from the fact the new file has one additional record at the beginning:Code::020000040000FAAFAICT this specifies an "Extended Linear Start Address" with a value of 0x0000 (upper 16 bits of 32 bit address) and so I can safely treat it as if it's not there. Is that correct?ThanksDavid

author: JPortici
author_rank: Super Contributor
timestamp: November 02, 2021, 10:27:00 am
content: yes

author: MIS42N
author_rank: Frequent Contributor
timestamp: November 04, 2021, 10:21:23 pm
content: You are correct. It is an Extended Linear Start Address. I just wrote a PIC bootloader for PIC16F1455 and had to deal with it. I found this article very usefulhttps://www.kanda.com/blog/microcontrollers/pic-microcontrollers/pic-hex-file-format/.

author: Ian.M
author_rank: Super Contributor
timestamp: November 04, 2021, 11:39:46 pm
content: If in doubt, go to the horse's mouth: Intel'sHexadecimal Object File Format Specification.PIC specific details of how that specification is then used will be found in section1.7.5 Hex File Formatsof Microchip'sMPASM Assembler, MPLINK Object Linker & MPLIB Object Librarian User’s Guide(DS33014L).
TL866II+ universal programmer vs HxD reader for PICs - Page 1
Forum section: electronics / general

author: PerranOak
author_rank: Frequent Contributor
timestamp: November 03, 2021, 09:57:25 am
content: I'm just messing with the TL866 kit (using Xgpro v11.50 software) having just installed it for the first time.It works well for memory of all kinds (that I have) but there is a problem with PICs.I read a PIC into Xgpro, saved the file then read it using HxD - attached is a screen capture.I tried to make HxD display it in the same format but, as you see, the bytes are reversed! Also the memory address in Xgro seems to advance 8 bytes per row while HxD advances by 16 bytes when in both cases 16 bytes of data is displayed!Am I doing something stupid?

author: oPossum
author_rank: Super Contributor
timestamp: November 03, 2021, 11:39:02 am
content: Set byte order to big endian in HxD

author: abyrvalg
author_rank: Frequent Contributor
timestamp: November 03, 2021, 12:55:12 pm
content: > Also the memory address in Xgro seems to advance 8 bytes per row while HxD advances by 16 bytesPIC's "byte" (word) is 14 bits long actually. Xgpro knows that fact and shows word addresses, while HxD doesn't.

author: PerranOak
author_rank: Frequent Contributor
timestamp: November 04, 2021, 01:17:05 pm
content: Cheers both.
Logic probe cable for MPLAB ICE 2000 - Page 1
Forum section: electronics / general

author: perdrix
author_rank: Frequent Contributor
timestamp: November 03, 2021, 09:04:34 am
content: It's a 14 way socket with 0.8mm free sockets on each lead for attaching to grabbers.Does anyone have one in their stash or know the Google/Amazon foo to find something that will do the job?PS Also looking for the Power supply for the ICE 2000ThanksDavid
EEPROM equivant for PIC17C42A-33? - Page 1
Forum section: electronics / general

author: perdrix
author_rank: Frequent Contributor
timestamp: November 02, 2021, 10:46:38 am
content: Does anyone know if there was one? If so what was it?ThanksDavid

author: amyk
author_rank: Super Contributor
timestamp: November 02, 2021, 01:35:24 pm
content: I don't think they made any PIC17 in EEPROM versions.

author: oPossum
author_rank: Super Contributor
timestamp: November 02, 2021, 02:07:07 pm
content: They didn't make the 17C series in EEPROM or flash. I don't think there was a pin compatible 18F series either.
STM32CubeIDE in Chromebook - Page 1
Forum section: electronics / general

author: Golana
author_rank: Newbie
timestamp: November 01, 2021, 06:33:23 pm
content: Has anybody had any luck running STM32CubeIDE in a Linux VM on Chromebook? I'm stuck using Chromebook due to security polices at work and the CubeIDE has been pretty terrible so far with rendering and font issues.

author: DavidAlfa
author_rank: Super Contributor
timestamp: November 01, 2021, 10:25:27 pm
content: It's already heavy and slow in a native OS, adding a VM on top would make it even slower.Does Virtual Box work under Chrome OS? In that case, just try downloading an Ubuntu vdi and installing CubeMX on it.CubeIDE is Eclipse-based, there're some tutorials to install it on Chrome os.
brainchip AKD1000 - Page 1
Forum section: electronics / general

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: September 20, 2021, 06:56:13 am
content: Hi,I was searching keil packs, and the brainchip AKD1000 catch my attention, It seems we would get some Cortex M4 part with some accelerators for doing AI in IOT devices.But I could not find any datasheet or user manual yet,This is their website,https://brainchipinc.com/Do you know any info on this core or company?

author: iMo
author_rank: Super Contributor
timestamp: September 20, 2021, 09:21:05 am
content: QuoteHow all those neurons and synapses fit into that chip??

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: September 20, 2021, 06:59:48 pm
content: I don't know maybe a typo, Also they say it has USB3.0, PCIe etc...

author: uer166
author_rank: Super Contributor
timestamp: September 20, 2021, 09:00:08 pm
content: Quote from: imo on September 20, 2021, 09:21:05 amProbably not a single chip, butQuoteWith 64 chips that number might be vaguely achievable?

author: WatchfulEye
author_rank: Regular Contributor
timestamp: September 21, 2021, 12:13:04 am
content: Quote from: imo on September 20, 2021, 09:21:05 amThe individual components may be quite small. The technology appears to be a variant of spiking neural network, where instead of RAM/multiply-add units for storing data and performing the matrix multipications digitally, the technology is effectively analog - albeit using pulse frequency modulation (hence the "spiking" name) rather than a continuously varying voltage.The basic operation of a neuron can be modeled as the dot product (a∙b) of a array of pulse modulated inputs (a) and an array of pre-programmed memristors (b). The current delivered by each input is given by aibi, where aiis the pulse frequency of input i, and biis the programmed conductivity of memristor i. By connecting all inputs to a summing capacitor, the dot product operation is complete. So, you can have a neuron with 1k inputs consisting of a capacitor, sense amp/pulse frequency modulator and 1000 memristor cells which receive inputs from 1000 other neurons. The memristor cells can be manufactured on the scale of flash memory cells, and multilayer manufacturing (similar to 3D NAND flash) has also been demonstrated, so 10 G memristor cells on one chip doesn't seem completely unreasonable.

author: MadMayHam
author_rank: Newbie
timestamp: October 30, 2021, 12:33:40 pm
content: Hi all, you can actually buy the development kits with the actual production version of the Akida 1000 processor in silicon athttps://shop.brainchipinc.com/.

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: October 31, 2021, 07:22:13 am
content: MadMayHam are you working there?
SIM800L Firmware Needed - Page 1
Forum section: electronics / general

author: Joseph1
author_rank: Contributor
timestamp: October 28, 2021, 01:15:09 pm
content: It is a great help that someone can find me the below firmware for SIM800L?1418B05SIM800L24The SIMCOM website no longer available...Even google I cannot find the above firmware

author: Benta
author_rank: Super Contributor
timestamp: October 28, 2021, 05:58:16 pm
content: What do you mean the Simcom website is no longer available?https://www.simcom.com/

author: SL4P
author_rank: Super Contributor
timestamp: October 29, 2021, 09:33:27 am
content: Just curious… your flag puts you in Australia.What 2G network are you using ?

author: GromBeestje
author_rank: Frequent Contributor
timestamp: November 03, 2021, 11:37:29 am
content: I guess the author means, the 800L is no longer listed on the website.

author: Scrts
author_rank: Frequent Contributor
timestamp: November 03, 2021, 01:38:47 pm
content: I have a need for SIM7070G 1951B11SIM7070 firmware as well.Simcom SIM7070G websitedoesn't provide one. The support email doesn't respond.It is available here:https://techship.com/products/simcom-sim7070g-cat-m-nb2/#tab-firmware,however they require business registration and rejected my gmail.com email.At this point, I do not understand how come these modules are so popular... Are there any that work well and have a proper support? Maybe u-blox ones?

author: Scrts
author_rank: Frequent Contributor
timestamp: November 04, 2021, 01:17:45 pm
content: Quote from: Scrts on November 03, 2021, 01:38:47 pmUpdate: Simcom support finally replied with a FTP server address and files hosted there.However, my hologram.io SIM card still doesn't allow access to the internet
Toshiba z80 (t84c00am-6) pinout. - Page 1
Forum section: electronics / general

author: TinLethax
author_rank: Regular Contributor
timestamp: October 29, 2021, 06:22:24 am
content: First of all, greeting from Thailand! Recently I'm working on the TI-82 SRAM to FRAM upgrade project. and the brain of this thing is z80 compatible made by Toshiba back in 90s. It's t84c00am-6. Does any body can confirm that the pin out of the t84c00am-6 is exactly the same with original 40 pin DIP z80? BTW Here's the image of it and it has 40 pins.

author: darkspr1te
author_rank: Frequent Contributor
timestamp: October 29, 2021, 06:47:56 am
content: Here is the datasheet for similar chipdatasheetthat might help you compare between the twoand a quick comparison with this sitez80 history siteshows that yes they are same pinoutsdarkspr1te

author: TinLethax
author_rank: Regular Contributor
timestamp: October 29, 2021, 09:00:12 am
content: Oh thanks, I've been searching for months but haven't found yet. I should've use wider keyword

author: gslick
author_rank: Frequent Contributor
timestamp: October 29, 2021, 04:03:50 pm
content: You can also download the full 1100 page TOSHIBA 8-BIT MICROPROCESSOR TLCS-Z80, 85 1990 data book here, which includes the MPZ84C00AM-6 part:http://www.bitsavers.org/components/toshiba/_dataBook/1990_Toshiba_8-Bit_Microprocessor_TLCS-Z80_85.pdf