hybridfree/eevblog-posts huggingface dataset:
Help to discover what MCU is used on USB Biometric Fingerprint Attendance Machin - Page 1
Forum section: electronics / general

author: acassis
author_rank: Newbie
timestamp: July 21, 2018, 02:05:31 pm
content: Hi Everybody,I bought a chinese USB Biometric Fingerprint Attendance Machine similar to this:KKmoon 2.8" TFT LCD Display USB Biometric Fingerprint Attendance Machine Password Time Recorder Clocking Employee Checking-in Readerhttps://www.amazon.com/KKmoon-Biometric-Fingerprint-Attendance-Checking/dp/B071NRN3S9I tear down the plastic cover and noticed that there is not label printed on microcontroller.Maybe based on the following info some smart people here could infer what the microcontroller is:Package: LQFP80Small LCD display connected between pins 26 and 37 (info in the LCD: BL-B40023A NX-2403A 2017/12/18)32KHz crystal on 42 and 4312MHz crystal on 56 and 57USB D+ 45USB D- 46Please see attached picture of the board for reference.BR,Alan

author: amyk
author_rank: Super Contributor
timestamp: July 22, 2018, 03:25:55 am
content: Unless you happen to find someone here who has used that exact MCU, everyone else can only do the same thing you can: Google for datasheets with things like "USB MCU QFP80" and compare pinouts.As far as I can tell with a bit of the above, it isnotany of the following- NXP KL21, KL22, or KL27 series- PIC32MX- PIC18- SAM D21(Sometimes I wish there was an easy "lookup by pinout" search engine... having done a similar thing many times before.)

author: abyrvalg
author_rank: Frequent Contributor
timestamp: July 22, 2018, 08:11:02 am
content: Reading out that 8-pin serial flash could help too.

author: lucazader
author_rank: Regular Contributor
timestamp: July 23, 2018, 03:32:15 am
content: My 2c:Almost definitely isnt an STM32 processor, they dont come in LQFP80's from what i know of.

author: Gribo
author_rank: Frequent Contributor
timestamp: July 23, 2018, 06:58:22 pm
content: It can be an MSP430F5xxHF, LF, USB, LQFP80.

author: amyk
author_rank: Super Contributor
timestamp: July 24, 2018, 03:49:52 am
content: Quote from: Gribo on July 23, 2018, 06:58:22 pmPinout doesn't match.

author: acassis
author_rank: Newbie
timestamp: July 28, 2018, 10:50:06 am
content: Thank you guys for all these suggestions.Yes, in fact I already search for USB MCU LQFP80, also when to Mouser and filtered for MCUs with LQFP80 pinout and analyzed their datasheet, but no luck.I suppose it is some Chinese MCU that we don't know about its existence yet.

author: carl0s
author_rank: Unknown
timestamp: July 29, 2018, 11:53:01 pm
content: Quote from: acassis on July 28, 2018, 10:50:06 amI appreciate the pinouts don't match, but do you think it could be an ASIC rather than a general purpose MCU ? Such as this:http://www.synochip.com/var/upload/file/20140506/13993377497584.pdfWouldn't fingerprint ID take a lot of power, unless that was built into the scanner part of it?

author: funkathustra
author_rank: Regular Contributor
timestamp: July 30, 2018, 03:25:08 am
content: What is the VID the device instantiates as? Many small shops just use the MCU manufacturer's VID.
A problem with STM Studio - Page 1
Forum section: electronics / general

author: VanitarNordic
author_rank: Frequent Contributor
timestamp: July 28, 2018, 07:56:59 pm
content: When I want to import variables from the.elffile (generated by the TrueStudio, inside the Debug folder) into the STM Studio software, I get the below error. When I press OK and bypass it, it shows a list of variables, but none of them gets imported.

author: lucazader
author_rank: Regular Contributor
timestamp: July 29, 2018, 06:14:55 am
content: Wehn you are compiling the elf file you are using with STM Studio, are you compiling with debugging information (eg -g flag with gcc)?

author: VanitarNordic
author_rank: Frequent Contributor
timestamp: July 29, 2018, 06:53:30 am
content: Quote from: lucazader on July 29, 2018, 06:14:55 amYes, even I have tested it with -g3, but the same results. I use TrueStudio
Altium Designer Nano Board 3000 - Page 1
Forum section: electronics / general

author: vijay babu k
author_rank: Newbie
timestamp: July 31, 2018, 02:11:43 pm
content: Dear All,Nanoboard 3000 is not programming through host usb. Any help to resolve it. Is it able to program other way. thanks in advance.Regards,vijay
[AVR] LIN bus on the ATmega 0 series - Page 1
Forum section: electronics / general

author: Simon
author_rank: Unknown
timestamp: July 27, 2018, 07:59:08 pm
content: I have a project where LIN bus may be desirable. I see the new ATmega4809 has UART hardware that can do LIN. Has anyone used this yet. I don't know much about LIN other than the basics of the protocol and this is more about future proofing. Will i need an interface chip like I would with CAN as the chip will obviously not take up to 18V on it's input.
ESP8266 .text won't fit in ram1_0_seg - Page 1
Forum section: electronics / general

author: MrAureliusR
author_rank: Unknown
timestamp: July 25, 2018, 04:34:53 pm
content: I've been playing around with using esp-open-sdk and the Feather HUZZAH ESP8266. The toolchain is actually fairly easy to compile and use, and it follows all the official documentation from Espressif (ie, the SDK documentation works for both the official SDK and the open one).I got a Blinky program to run with little hassle, and now I am trying to use PWM. To do this, I included "pwm.h" and also added -lpwm to the linker options. As soon as I do this, suddenly the iram1_0_seg is overflowing by a few hundred bytes. The size of libpwm.a seems to be about 3k, which seems crazy to me.Here's what the linker outputs:Code:make -kxtensa-lx106-elf-gcc -Teagle.app.v6.ld -s main.o -nostdlib -Wl,-Map=output.map -Wl,--start-group -lc -lhal -lm -lpp -llwip -lphy -lnet80211 -lwpa -lmain -lpwm -Wl,--end-group -lgcc -o main/home/amr/workspace/ESP8266/esp-open-sdk/xtensa-lx106-elf/lib/gcc/xtensa-lx106-elf/4.8.5/../../../../xtensa-lx106-elf/bin/ld: main section `.text' will not fit in region `iram1_0_seg'/home/amr/workspace/ESP8266/esp-open-sdk/xtensa-lx106-elf/lib/gcc/xtensa-lx106-elf/4.8.5/../../../../xtensa-lx106-elf/bin/ld: region `iram1_0_seg' overflowed by 360 bytescollect2: error: ld returned 1 exit status<builtin>: recipe for target 'main' failedmake: ***  Error 1make: Target 'main-0x00000.bin' not remade because of errorsI'm assuming others must have run into this problem. I have a .c file with two functions and about 55 lines of code -- it's absurd that this can't fit into 32k of RAM. Looking at the .map file, it seems a lot of this is debug symbols for the PWM library? Tried adding the -s flag to the linker options but that had no effect.All my functions are declared with the ICACHE_FLASH_ATTR decorator. My variables are tiny, maybe 50 bytes in total.Any help is greatly appreciated -- if using PWM fills RAM, then I can't do much else until I get this solved.Here is my makefile:Code:P=mainCC=xtensa-lx106-elf-gccLDLIBS=-nostdlib -Wl,-Map=output.map -Wl,--start-group -lc -lhal -lm -lpp -llwip -lphy -lnet80211 -lwpa -lmain -lpwm -Wl,--end-group -lgccCFLAGS= -I. -mlongcalls -OsLDFLAGS=-Teagle.app.v6.ld$(P)-0x00000.bin: $(P)esptool.py elf2image $^$(P): $(P).o$(P).o: $(P).cflash: $(P)-0x00000.binesptool.py write_flash 0 $(P)-0x00000.bin 0x10000 $(P)-0x10000.binclean:rm -f $(P) $(P).o $(P)-0x00000.bin $(P)-0x10000.bin
Writing 12 bits to dac psoc - Page 1
Forum section: electronics / general

author: Kalin
author_rank: Regular Contributor
timestamp: July 25, 2018, 12:06:53 pm
content: I am using a psoc 5lp to try and understand how to use an i2c DAC (mcp4716). But the the i2c writebuf and the i2c writebyte both specify using 1 or more bytes of data. Is it possible to mask of the back nibble of one byte and use 1.5 bytes of data?Sent from my SM-G930W8 using Tapatalk

author: oPossum
author_rank: Super Contributor
timestamp: July 25, 2018, 12:19:28 pm
content: You have to write at least 3 bytes to update the DAC as shown on page 50.

author: Kalin
author_rank: Regular Contributor
timestamp: July 25, 2018, 02:05:56 pm
content: I see now. Use the same structure as if it was 16bits but the 2 LSB are not used. ThanksSent from my SM-G930W8 using Tapatalk
STM32F401 SD CARD - Page 1
Forum section: electronics / general

author: alizare368
author_rank: Regular Contributor
timestamp: July 24, 2018, 02:54:21 pm
content: hiI designed a board that includes cs4344 and sd card and mcu stm32f401.to get started with sd card ,I need help.why the F_mount() dose not execute?My connection SD card :PC8 :D0PC9 :D1PC10 :D2PC11 :D3PC12:ckPD2:CMDFATFS FatFs;FIL fil;static FRESULT status;status=f_mount(&FatFs, "M:", 1);

author: @rt
author_rank: Super Contributor
timestamp: July 24, 2018, 03:14:30 pm
content: There’s no information there that could allow anyone to possibly help you.Not even the return value for status.
JTAG, power supply. - Page 1
Forum section: electronics / general

author: luiHS
author_rank: Frequent Contributor
timestamp: July 18, 2018, 02:03:05 pm
content: HelloWhat is correct, that a programmer by JTAG provides supply voltage for pins 1 and/or 2, or that it receives supply voltage for any of those pins?I have been connecting my RT1020 and RT1050 evaluation boards, with Jlink SEGGER and Multilink PE micro. The Jlink gives 3.3 volts for the pins 1 and 2 of JTAG, whereas the Multilink does not give voltage for any of those pins.The problem is that when I have connect the Jlink to the evaluation board RT1020, at first it worked, but when I have press the SW5 button on the board, which I think is to do a RESET, the board has stopped working, and now it has shorted the pin 2 (JTAG_PWR) with GND of the JTAG connector.According to the diagrams, of the 4 push buttons, SW4 is for user applications, SW2 (ONOFF) is for RESET directly to the microcontroller, and only the SW5 and SW3 buttons act by doing some type of reset, I do not understand why so many reset buttons.SW5 goes to an NTSX2102 chip, which is a bidirectional voltage converter, and SW3 goes to a UM805 chip, which is a voltage monitor with manual reset option.In the board that I have with the RT1050, I have not yet pressed any button, and I'm afraid to press any (SW3-SW5), using the programmers by JTAG, at least with the Jlink that is the one that gives 3.3v voltage for the pins 1 and 2 of JTAG.

author: luiHS
author_rank: Frequent Contributor
timestamp: July 20, 2018, 10:12:12 am
content: It seems that my (chinese) Jlink programmer is defective or damaged, because on the Segger website about the Jlink programmer, pin1 is input to the voltage reference and pin2 is not connected. Also from NXP they suggest that this is the problem.https://www.segger.com/products/debug-probes/j-link/technology/interface-description/1 VTref Input This is the target reference voltage.It is used to check if the target has power, to create the logic-level reference for the input comparators and to control the output logic levels to the target. It is normally fed from Vdd of the target board and must not have a series resistor.2 Not connected NC This pin is not connected in J-Link.It is reserved for compatibility with other equipment.Connect to Vdd or leave open in target system.When I use Jlink to program / Debug by SWD with Kinetis microcontrollers, it works fine, but I only use a 5-pin connector, with GND, SWDCLK, SWDIO and 3.3v external supply for the board. I never used the 20-pin JTAG connector, until now, with the RT1020 / 1050 evaluation boards, and this has burned the RT1020 board.I will use for now my programmer Multilinik PE, this works well, there is no power output in pins 1 and 2, and pin1 works as input because a led of the programmer is turned on when connecting it to the board and receiving power supply voltage that pin. I also have another Jlink, EDU version, but with limitations regarding the professional version.
MPLAB 5.00 released with beta support of PICKIT 4 AVR programming - Page 1
Forum section: electronics / general

author: IonizedGears
author_rank: Regular Contributor
timestamp: July 21, 2018, 06:00:50 pm
content: MPLAB 5.00 was released a few days ago and it seems that Microchip added beta support for some AVR and SAM parts with the PICKIT4 now. Looks like Microchip really does want to shift everything towards ICD4/PICKIT4.This looks to be the "official" adapter for boards with the ATMEL ICE ICSP connectors:https://www.digikey.com/product-detail/en/microchip-technology/AC102015/AC102015-ND/8638996
Rasp Pi for BLE development? - Page 1
Forum section: electronics / general

author: jnz
author_rank: Frequent Contributor
timestamp: July 18, 2018, 09:23:04 pm
content: I'm working on a BLE device and the need for a PC development environment I can control with Python. The idea is I'd like to be able to write, notify, read over GATT with python. I really don't care which device it uses or what software...But I've noticed a real lack here. There is PyGATT and BluePy I'm trying but setting the environments up on a RaspPi is proving quite difficult. (special versions of Python, paths not correct, import issues, no documentation, etc)Has anyone found a nice clean ecosystem to read and write over GATT using Python?

author: jnz
author_rank: Frequent Contributor
timestamp: July 19, 2018, 06:06:19 pm
content: I guess not.Well, making OK progress with BluePy (a python wrapper for BlueZ the Rasp Pi BT/BLE drivers), but doesn't seem well documented.

author: mark03
author_rank: Frequent Contributor
timestamp: July 19, 2018, 08:56:32 pm
content: Linux BT support was an utter and complete disaster for many years. Arguably it still is, because last I checked (a couple of years ago?) they had re-designed large parts of the bluez stack in the process of supporting BLE, yet there was still no documentation whatsoever. People would make plaintive requests to the bluez mailing list and either get ignored or told to "use the source"Whenever someone complains they get accused of being selfish because "it's free, right?". which is true but not particularly helpful.tl;dr Good luck!! and if you figure this out, post back here.

author: jnz
author_rank: Frequent Contributor
timestamp: July 19, 2018, 09:02:57 pm
content: So far, we're connecting, getting characteristics and handles, writing cccd/notifications, etc. Seems to be OK. I would NOT try it on anything but a RaspPi though!!! Currently using a Pi0-W but have a 3B+ coming in next week.Basically just needs a sandbox to test things out while the app is being developed.
PICkit3 and 16F1827 with MPLAB X programming naughtiness - Page 1
Forum section: electronics / general

author: PerranOak
author_rank: Frequent Contributor
timestamp: July 18, 2018, 05:42:32 pm
content: Previously, I have been programming the 16F1827 with a proprietary programmer and all was well.Now, I'm trying to do the same using the PICkit3 and MPLAB but I keep getting:Connecting to MPLAB PICkit 3...Currently loaded firmware on PICkit 3Firmware Suite Version.....01.51.08Firmware type..............Enhanced MidrangeProgrammer to target power is enabled - VDD = 5.000000 volts.Target Device ID (0x3fe0) is an Invalid Device ID. Please check your connections to the Target Device.Device Erased...Programming...The following memory area(s) will be programmed:program memory: start address = 0x0, end address = 0xcfconfiguration memoryprogram memoryAddress: 0 Expected Value: 2810 Received Value: 3fffFailed to program deviceI have programmed a 16F1829 with no problem (with PICkit3 and MPLAB) both C and assembler both in and out of a circuit. The "invalid device ID" happens when I programme the 16F1829 in assembly but not in C. Either way it still programmes and runs ok.I've lifted the 16F1827 out of the circuit into an empty breadboard, connected it up and the same happens.Could anyone give a few pointers as to what I can try next please?Cheers.

author: NorthGuy
author_rank: Super Contributor
timestamp: July 19, 2018, 01:21:33 am
content: Looks like you have a broken chip.

author: JPortici
author_rank: Super Contributor
timestamp: July 19, 2018, 07:36:24 am
content: sometimes i get 0x3FE0 and it's usually two things- the firmware in the PK3 is corrupted, or i'm using a very old version like when the PK3 was used by someone else with MPLAB and i have to use it with X/IPE so i have to force a new PK3 firmware download.- problems in connections, the PGC/PGD pins are shared with something else or are swapped or whatever

author: PerranOak
author_rank: Frequent Contributor
timestamp: July 19, 2018, 04:20:22 pm
content: Well!I started today with a view to finding the problem and hey presto! the programming of the chip went on with no errors at all.I tried a different USB port and kept everything away from the bench and it worked but then I tried it back exactly as yesterday and it still worked.I thought that the PICkit firmware might have updated automatically but it reports the same version?
MPLAB IDE simulator stimulus and FVR not "reading" correct voltage - Page 1
Forum section: electronics / general

author: PerranOak
author_rank: Frequent Contributor
timestamp: July 16, 2018, 02:41:19 pm
content: I noticed that when using the stimulus window to set AN0 to 234(mV) the figure read was in fact 47 not 234 as expected.This is odd because I had set it up to use the FVR at 1.024V so the reading should have been 234. The figure of 47 looks like it's using 5V as the reference.So, to cut a long story short, I found that the simulator was not setting bit 6 of FVRCON with themovwfcommand and even when I "went-to-town" and usedbsfto set the bit as well, it just left this bit at zero though it set the others as instructed.Can the simulator only use a 5V reference or should another register be setup differently somewhere?Thank you.(I'm using the 16F1827 and MPASM)

author: cv007
author_rank: Frequent Contributor
timestamp: July 16, 2018, 03:04:44 pm
content: QuoteThe datasheet shows bit6 is FVRRDY, which is read only. The datasheet describes how it acts.

author: PerranOak
author_rank: Frequent Contributor
timestamp: July 16, 2018, 05:46:03 pm
content: Yes but the datasheet says:FVRRDY is always '1' on devices with LDO (PIC16F1826/27)whereas the simulator reports it as zero and, in fact, is behaving as if it is zero, i.e. not enabled.

author: cv007
author_rank: Frequent Contributor
timestamp: July 16, 2018, 06:46:30 pm
content: Just pointing out that the bit is read-only, so don't expect it to change by writing to it.Whether the simulator can simulate that peripheral on that particular micro, I don't know. Would not be a big surprise if it cannot.When possible, use the debugger to see what's going on- with the advantage you get to see the real hardware in action.

author: PerranOak
author_rank: Frequent Contributor
timestamp: July 17, 2018, 11:42:21 am
content: OK thank you.
STM32F0 GPIO - BOOT0 as input - Page 1
Forum section: electronics / general

author: zzattack
author_rank: Regular Contributor
timestamp: July 16, 2018, 03:43:00 pm
content: Are there limitations to using the BOOT0 / PF11 on my device (STM32F042) as GPIO? In user app I seem to be able to use it as an output but when configured as input, it always reads low even with a solid 3.3v tied to it, which makes me wonder if there's a limitation or something I could be missing.

author: andersm
author_rank: Super Contributor
timestamp: July 16, 2018, 04:37:12 pm
content: Have you configured the BOOT_SEL option bit?

author: zzattack
author_rank: Regular Contributor
timestamp: July 16, 2018, 04:41:43 pm
content: I looked into that but ST-Link grays out that bit in the option bytes. Does that mean it's not user-definable?
STM32 GPIO to SRAM with DMA question - Page 1
Forum section: electronics / general

author: Boscoe
author_rank: Frequent Contributor
timestamp: July 16, 2018, 02:56:54 pm
content: Hi all,I'm looking to use an STM32F7 to receive data from an FPGA and write it to an SD card. The data words are 16bit wide, I'd like to use DMA for the speed. Ideally the data would be clocked into the MCU at about 50MHz which seems doable when I read a lot of resources on this topic but none bring up clocks. Just straight data to from GPIO regs. Does anyone have any info on generating an output clock to clock the data into the MCU? Preferably, the FPGA would generate the clock which would activate the timer inside the MCU to increment the DMA write position. I just find the info so far floats over a lot of the details.ThanksBoscoe
Do you have experience with new (AT)tinyAVR®  1-Series ? - Page 1
Forum section: electronics / general

author: Miyuki
author_rank: Frequent Contributor
timestamp: July 16, 2018, 07:07:04 pm
content: Hi folksI want to ask if you have experience with new ATtinys they produceThey have nice "new" featuresLike event system, DAC, more advanced timers and of course that programming interface (all from xmegas but in nice package and for 50c)With all those features and price it can nicely replace analog way SMPS controllers and many othersDid you try them in real life ?

author: ataradov
author_rank: Super Contributor
timestamp: July 16, 2018, 08:19:39 pm
content: Here is a big discussion thread on 0-serieshttps://www.eevblog.com/forum/microcontrollers/(avr)-the-new-8-bit-micro-to-rule-them-all/. A lot of the discussion will apply here.
Arduino Serial Interact - Page 1
Forum section: electronics / general

author: cosenmarco
author_rank: Regular Contributor
timestamp: July 16, 2018, 08:27:27 am
content: Hi, I want to make the community aware of this little library I wrote for Arduino:https://github.com/cosenmarco/arduino-serial-interactThe idea is to have an interface to send commands to Arduino either for scripted workflows or for direct interaction using the serial link.One can switch between human and machine mode using the specified command.Feedback is appreciated.

author: obiwanjacobi
author_rank: Super Contributor
timestamp: July 16, 2018, 10:38:53 am
content: Commands with parameters?Also you might want to read more chars on one cycle of the main loop.Something like?Code:void InteractionManager::loop(int count) {while (stream.available() && count--) {acceptChar(stream.read());}}
iMX6ULL cannot boot from uSDHC - Page 1
Forum section: electronics / general

author: blueskull
author_rank: Unknown
timestamp: July 14, 2018, 11:08:20 pm
content: A while I go I bought an iMX6ULL board, and it was designed to boot off uSDHC socket on its core module.To reduce my pain during firmware development, I modified its boot source bootstrapping resistors, and it was modified to boot off standard size SDHC.Well, I want to revert the modification, but it no longer boots from uSDHC, and it insists booting from standard SDHC, even after the bootstrapping has been reverted.Is there any reason why it does this?

author: nctnico
author_rank: Super Contributor
timestamp: July 15, 2018, 12:39:32 pm
content: If nothing works then you probably have set the eFuses. Cleaning a board usually doesn't do much good.

author: mikerj
author_rank: Super Contributor
timestamp: July 19, 2018, 09:06:56 am
content: Could it be related to thisclock tuning bug?
Connecting USB2UART converter to BF531 DSP - Page 1
Forum section: electronics / general

author: markus_jlrb
author_rank: Regular Contributor
timestamp: July 13, 2018, 06:47:11 pm
content: Hi friends,I have connected a USB2UART converter to a BF531 DSP in thehope to sniff the output during boot time.But have no success to do this till now.Question is If I need pullups and if 10k are sufficcient.Had tried many baud rates, but was not able establish a connection.Many thanks in advance for any help.Markus
Lattice CPLD on Custom PCB - Page 1
Forum section: electronics / general

author: JNajarian
author_rank: Newbie
timestamp: July 10, 2018, 04:36:32 pm
content: I would like to create my own PCB that integrates a CPLD from Lattice (LC4032V-25T44C). As I have never worked with a CPLD I tried to find resources on how to make the schematic for it to ensure I have the ability to program it, but I couldn't find a lot of good sources.Currently I have the TCK, TDI, TDO, TMS, along with the VCC and GND broken out to headers, along with the recommended pull up/down and termination documented here (https://www.xjtag.com/about-jtag/design-for-test-guidelines/).At a basic level is that all I would need? Would I be able to program the CPLD with a JTAG cable like thishttps://store.digilentinc.com/jtag-usb-cable/?Are there any other small things that I may miss as a first time user of a CPLD?Thank you.

author: SiliconWizard
author_rank: Super Contributor
timestamp: July 10, 2018, 06:28:14 pm
content: I was going to suggest looking at Lattice's reference designs and dev board schematics, but I can't seem to find them. A lot of the links on the ispMACH 4000V page link to nothing. Maybe the info never existed to begin with.http://www.latticesemi.com/en/Products/FPGAandCPLD/ispMACH4000VZDoesn't bode well. This device line is actually a bit old and you may want to consider newer stuff from Lattice? If you still need to work with this product line, I'd suggest contacting Lattice about the "broken" links. Or you may take a look at the 4000ZE page which seems to have more info and is probably similar to the V line in many ways:http://www.latticesemi.com/en/Products/DevelopmentBoardsAndKits/ispMACH4000ZEEvalBoard

author: JNajarian
author_rank: Newbie
timestamp: July 10, 2018, 07:04:48 pm
content: Thanks for the reply and information.The two primary reasons why I chose that particular chip was because of the really high fMax, and the fact that the logic I wish to implement is really simple and really only needs a handful I/O.Is there anything you would recommend? Everything else I have seen seems to be the exact opposite of what I need, they all have lots of I/O, and a much lower fMax.

author: David Chamberlain
author_rank: Frequent Contributor
timestamp: July 13, 2018, 12:00:53 am
content: Just wanted to point out the one you have selected is non-RTOS compliant and so marked as Obsolete on both Element and Mouser. The newer TN variant is active and otherwise the same.https://www.digikey.com.au/product-detail/en/lattice-semiconductor-corporation/LC4032V-25TN44C/220-1642-ND/2751454https://au.mouser.com/ProductDetail/Lattice/LC4032V-25TN44C?qs=sGAEpiMZZMuJNuO2s1hGZNSnuFPmC4sug4rnzwZNZWw%3d
Audio DAC board. - Page 1
Forum section: electronics / general

author: hamster_nz
author_rank: Super Contributor
timestamp: July 10, 2018, 09:47:20 pm
content: I'm going to build myself a a cheap with four CS4344 DACs (for 8 channels) on it, and a S/PDIF RX interface (coax and/or optical), for use with FPGA dev-board.I intend to use if for experimenting with digital crossovers - it is not supposed to be HiFi or anything, it is purely cheap and cheerful test jig.Currently I'm thinking of having a socket for a Digilent CMOD-A7, but maybe I might add PMOD connectors.I'm only going to be using one or two boards, but minimum quantity PCB is ten and parts are inexpensive. - would it be of interest to anybody else here? is there any features that might be of interest to you?

author: Dubbie
author_rank: Unknown
timestamp: July 10, 2018, 11:09:02 pm
content: I built something similar a while back. I used a Sabre ES9018 DAC. It's 8 channels in one chip and has a ton of features and is very high quality.Check it out if you haven't already!Also, when you can get the $2-$5-$10 deals from chinese board manufacturers, I don't know if you need to worry about what happens to the excess boards.

author: cncjerry
author_rank: Unknown
timestamp: July 10, 2018, 11:22:30 pm
content: Have you looked at the ADAU1701 DSP with DAC and ADC? Used with SigmaStudio you can create some pretty highly functional crossovers, filters, etc. They cost about $19 plus $19 for the ICSP interface. You can offload the filters and most audio processing to the ADAU1701 and keep the FPGA for other functions.https://www.ebay.com/itm/ADAU1701-Audio-Digital-Signal-Processor-APP-DIY-2in-3out-control-APM2-DSP-board/112267187788?hash=item1a23a5564c%3Am%3AmnE6o-VUEcUydq0x_mkVL-w&var=412684644821I used the crystal DAC boards for the end points of a digital audio distribution network. They seemed to be pretty cheap.Jerry

author: hamster_nz
author_rank: Super Contributor
timestamp: July 11, 2018, 02:05:01 am
content: Quote from: cncjerry on July 10, 2018, 11:22:30 pmI played around with a ADAU1761 four or five years so. The SigmaDSP are way overkill for what I want to be experiment with, and most the pleasure will be in the design/building of the board.
Automatic BT/WiFi pairing strategy - Page 1
Forum section: electronics / general

author: blueskull
author_rank: Unknown
timestamp: July 10, 2018, 07:53:38 pm
content: I'm working on a project based on ESP32, and I want hassle-free pairing between a smart device (Android, iOS) with my gadget.Here are the requirements:1. Can pair BT (A2DP-only) and WiFi (STA and AP), depending on smartphone app setting.2. Must be compatible with iOS and Android, no MFi needed.3. User should never need to enter password or manually setup network.4. Always-on with low standby current -- no buttons on device, no displays on device.-- This rules out WiFi SmartConfig.-- This rules out BT always discoverable.-- BLE beacon is possible, but security is a challenge.-- BLE is turned off after connection establishment as discussed later, which blocks future incoming connections.And here is my (tentative) solution that I need your opinion on:1. Use NFC to establish initial BLE connection.-- Can't use NFC to transmit data bidirectionally.-- Apple doesn't allow card emulation mode nor tag writer mode, only tag reader mode.-- Card emulator on device generates random BLE pairing TK, waiting for phone to read.2. Use BLE to bidirectionally transmit configuration (mode and keys).3. Switch to BT classic mode or WiFi mode-- ESP32 can't maintain enough speed for A2DP when BLE coexistence is enabled.-- BT/WiFi coexistence anyway impacts WiFi throughput.-- I want uncompressed 24/192k stereo over WiFi, or 16/44.1k AAC/SBC over BT4.2.Questions:1. Is the previously proposed mechanism feasible and optimal?2. Can you recommend an NFC chip that supports card emulation mode with variable NTAG information?-- The NFC chip should also support simultaneous card emulation an d host reader mode.-- I also need to read passive tags for enclosure identification.-- Simultaneous operation needed for NFC scannable while in an NFC tagged enclosure.-- Of course, the enclosure tag has anti-collision.-- The NFC chip should talk to MCU with SPI or I2C.-- The NFC chip should be in a tiny QFN or preferably WLCSP/DSBGA.-- No cost constraint unless ridiculously expensive.
MPLABX IDE assembly debug: Counting the days... - Page 1
Forum section: electronics / general

author: PerranOak
author_rank: Frequent Contributor
timestamp: July 10, 2018, 04:25:25 pm
content: I'm using MPLABX IDE assembly debug to run through my code and have a few quick questions:1. How do you display the programme steps, i.e. the total number for steps executed not the PC? My proprietary assembler shows this at all times.2. Can you change the memory location for a variable with the name you've given it - (e.g. var_1 equ 0x20) to show "var_1" not "0x20".3. This is a long shot: when using the ADC can you somehow "inject" test value into the debugger that will help in testing?Thank you.
DHT22 library - Page 1
Forum section: electronics / general

author: noname4me
author_rank: Regular Contributor
timestamp: July 06, 2018, 01:15:01 pm
content: Hi All,I am looking for a DHT22 library (AM2302 and DHT22 both use the same protocol) that works with STM32F103 - does anyone know of one that works?I have tried:https://petoknm.wordpress.com/2015/01/04/dht22-driver-for-stm32/https://github.com/LonelyWolf/stm32/tree/master/am2302I've also tried rolling my own, but got stuck trying to set up a timer to make my 1us delay timer (using interrupt on a falling edge and rising edge).Thanks

author: Naguissa
author_rank: Regular Contributor
timestamp: July 06, 2018, 02:27:50 pm
content: Can you use or port Arduino one?https://github.com/adafruit/DHT-sensor-library

author: HoracioDos
author_rank: Frequent Contributor
timestamp: July 06, 2018, 02:32:53 pm
content: How about this onehttps://github.com/jbagel2/stm32-f103-CortexM3-ESP8266-WeatherStation/tree/master/sensors

author: noname4me
author_rank: Regular Contributor
timestamp: July 06, 2018, 03:22:21 pm
content: OK, I'm trying the one from:https://github.com/jbagel2/stm32-f103-CortexM3-ESP8266-WeatherStation/tree/master/sensorsbut it needs converting to use the HAL libraries instead of the stuff that is already there...If anyone has already done this, please could I have a copy of your code? I've been stuck on this for 4 days now(I'm not a programmer).Thanks

author: noname4me
author_rank: Regular Contributor
timestamp: July 06, 2018, 10:57:31 pm
content: Thanks - managed to port this oneIf anyone wants to see my (very rough and dirty) port, please post below and I'll post it up.

author: noname4me
author_rank: Regular Contributor
timestamp: July 08, 2018, 03:43:24 pm
content: If anyone else finds the readings unreliable - it appears that the delay_ms(2) line in the dht22.c file may be too short.The datasheet says that the sensor requires 800us to prepare the sensor to take a reading - this was giving me a low period of sometimes less than 100us.Increased this to 10, and it seems to work reliably now.
SAM ASF clock generation for cpu - Page 1
Forum section: electronics / general

author: hsn93
author_rank: Regular Contributor
timestamp: July 05, 2018, 09:42:30 am
content: hello, i've a board that has SAMD21 MCU and i was trying to run it on 48MHz using ASF but i couldnt i researched for different projects they are using 8mhz even the rtc example is using 8mhz of cpu clock ..i found different people saying this post helped them but the url is broken:http://atmel.force.com/support/pkb_mobile#/articles/en_US/FAQ/How-to-configure-DFLL48M-oscillator-as-main-clock-in-ASF-project-for-SAMR21-SAMD21-SAMD20-SAMD10-SAMD11here is my ASF configurations:cpu clock source :after i upload my code the cpu doesnt work because i know when i set it back to 8mhz the led toggles.so i 've looked into fuses which are called (NVM user row mapping) didnt find any clock selection so i didnt program any fuses..

author: hsn93
author_rank: Regular Contributor
timestamp: July 05, 2018, 10:59:07 am
content: now the most wierd thing is this:i enable the 32 internal high accuracy oscand regenerate asf files and the code doesnt work.. i didnt change anything .. the internal osc is actually not used .. so i would say somewhere the MCU get stuck related to using different oscillator than 8MHz?

author: hsn93
author_rank: Regular Contributor
timestamp: July 05, 2018, 12:13:19 pm
content: the problem is related to NVM wait states, when i set it to "1" instead of default "0" the cpu doenst hang..i dont know how, why, how it works..but i just wanted to post this replyif anyone would like to comment that would help me thank you..

author: Lajon
author_rank: Contributor
timestamp: July 05, 2018, 01:08:35 pm
content: From the posted clock config pictures it does not look like you got any clock at 48 MHz but I guess you now have clock generator 0 at 48 MHz and then needed to add wait states? This is expected, check "NVM Characteristics" under "Electrical Characteristics" in the datasheet.USB host examples will have a clock generator at 48 MHz btw (even if it's not clock generator 0)./Lars

author: ataradov
author_rank: Super Contributor
timestamp: July 05, 2018, 04:45:24 pm
content: Quote from: hsn93 on July 05, 2018, 12:13:19 pmWell, flash can't work at 48 MHz. Wait states slow it down. See Table 37-40. Maximum Operating Frequency

author: hsn93
author_rank: Regular Contributor
timestamp: July 08, 2018, 05:29:42 am
content: thank you, its more clear now @ataradov , @lajonQuoteyeah but as much as i understand its only for peripheral of usb .. cpu is still at 8 MHz and that wait states is 0 in them.

author: Lajon
author_rank: Contributor
timestamp: July 08, 2018, 05:55:18 pm
content: Yes, it was only a suggestion for anyone in need of a start example that sets up a 48 MHz clock generator, moving it from generator n to 0 should be trivial./Lars
what's your experience with the nextion uart lcd/touch modules? - Page 1
Forum section: electronics / general

author: linux-works
author_rank: Super Contributor
timestamp: July 05, 2018, 03:52:16 pm
content: I have just noticed these, not sure how long they have been out, for:https://www.itead.cc/wiki/Nextion_HMI_Solutionamazon and the usual places have them for $20 and up.they seem to have internal engines to run gui code (seems to be windows-only on creation, sigh) and sends simple events (?) over serial to the cpu.seems a bit expensive but maybe it has some use. maybe getting a quick gui done is what its all about. then again, you have to run the win app and learn their system, and that's one more thing that can't be automated or integrated into a simple build system.curious what people think about this and if its worth looking into, or buggy or lack of support, or changing apis too often, etc?
Need to program a ST62T10 mcu, help finding a cheap programmer - Page 1
Forum section: electronics / general

author: alpher
author_rank: Frequent Contributor
timestamp: June 21, 2018, 01:07:28 am
content: What the topic says, chances are that the ST62T10 that I have is "protected" anyway but I think it's still worth a shoot. The actual board that uses it it's sort of obsolete and unobtanium.I have 2 good working samples and one dead, If I can somehow read the ROM from the good ones and program the new chips that I've ordered from Taiwan (hoping they're the real thing), I will be able to resurrect the dead board. These are the espresso machine touchpad controllers for what it matters.Anyway my programmer (Wellon VP480) doesn't support this chip, I really don't want to spendtoo much on a programmer that does it, let's say around $100 ~ $150 range, as this is going to be a one time job most likely and there is a high probability that the chips that I have are read protected anyway.So I'm looking to buy a prefferably used programmer that supports a ST62T10 series, USB Serial or Parallel doesn't matter, I can setup a DOS machine for the purpose.Any pointers?

author: amyk
author_rank: Super Contributor
timestamp: June 21, 2018, 02:26:44 am
content: First, the bad news: you may have to do some work if you don't want to pay $$$.Now, the good news:- this MCU is old enough that even if it's protected, according tohttps://www.cl.cam.ac.uk/~sps32/mcu_lock.htmlandhttp://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-630.pdf(very long document) it could be possible to crack it nondestructively with simple fault injection/power glitching- I managed to find the programming specification (attached), so if you want to write a programmer/reader you should be able to; also, even more good news, if it is really an older ST62T10Band notCrevision, there is basically no protection beyond a worthless, easily-cracked "agreement" that device programmers are "supposed" to follow (see page 33)If I were you I'd wire up an Arduino or similar to bitbang them in the described test mode and see whether you can read anything.

author: alpher
author_rank: Frequent Contributor
timestamp: June 21, 2018, 02:46:14 am
content: Thanks, actually device that I want to read from is a B series, ST62T10B6, what I want to write to (ordered from Taiwan) is ST62T10C6 . pm sent.

author: alpher
author_rank: Frequent Contributor
timestamp: July 03, 2018, 07:27:08 pm
content: Just a small update, I've managed to program the chip.Bought an used EEtools Topmax programmer, the old parallel port version.Together with an ancient Thinkpad 390X running the famous windows ME, managed to read the ST62T10 at first try.When I put ST62T10C it complained about needing to set security, anyway I proceeded staight to write the chip and voilla.The thing worked first time.
problem to connect the AD9643 and AD9684 to FPGA! - Page 1
Forum section: electronics / general

author: javad2040
author_rank: Contributor
timestamp: July 02, 2018, 02:50:56 pm
content: hello guys.I designed a data acquisition system with AD9643 and AD9684 ADC and ZYNQ-FPGA.The ZYNQ-FPGA has two type of banks: HP(High Performance : 1.0v to 1.8v) and HR(High Range : 1.0v to 3.3v).I have forced connect the AD9643 and AD9684 to HP bank, the interface of this ADCs is LVDS, the Vcm of both ADC is roughly 1.2v and FPGA has Vcm=1.2v for LVDS inputs.I set the HP banks voltage to 1.8v and my question is that this manner is correct or not?Can i connect the ADC to FPGA banks with 2.5 voltage?please help me to solve this problem.Regards,

author: NorthGuy
author_rank: Super Contributor
timestamp: July 03, 2018, 02:03:34 am
content: HP, LVDS, VCCO = 1.8VorHR, LVDS_25, VCCO = 2.5V
ATSAMD21G18A Power On Reset(POR) functinality - Page 1
Forum section: electronics / general

author: madhu.wesly01
author_rank: Regular Contributor
timestamp: June 29, 2018, 12:47:51 pm
content: Hi,I am using ATSAMD21G18A MCU on my dev board which is run on a single cell LiPo battery. My board isnot getting startedwhen battery charged and powering-up after the complete battery discharge.I am doubting that this might be the reason for occurring this kind of behavior:Given in the datasheet: At power up, RESET is driven low by a debugger. The on-chip regulator holds the system in a POR state until the input supply is above the POR threshold (refer to Powe-On Reset (POR) characteristics). The system continues to be held in this static state until the internally regulated supplies have reached a safe operating state.If this is the reason please suggest me a way to resolve this??Thanks in advance.

author: ataradov
author_rank: Super Contributor
timestamp: June 29, 2018, 04:38:35 pm
content: There are still requirements for minimal power supply rise time. If your power circuit doe not meet them (if battery was flat and you are slowly charging it, then those requirement will not be met, fir sure), then you need an external supervisor to hold chip in reset.

author: madhu.wesly01
author_rank: Regular Contributor
timestamp: June 29, 2018, 05:36:53 pm
content: Hi Alex,Thanks for the reply.Actually, I am using a Battery "protection circuit module(PCM)", still getting this issue frequently. Will it act as a supervisor??Can you suggest better Supervisor module?Thanks in advance.

author: ataradov
author_rank: Super Contributor
timestamp: June 29, 2018, 05:43:20 pm
content: Quote from: madhu.wesly01 on June 29, 2018, 05:36:53 pmI have no idea what exact part you are using, but based on the name, I would says it will not be helpful here.Quote from: madhu.wesly01 on June 29, 2018, 05:36:53 pmYou will have to do your own research. Here is just a random part from DigiKey that will workhttps://www.digikey.com/product-detail/en/on-semiconductor/NCP303LSN30T1G/NCP303LSN30T1GOSTR-ND/920063Search the whole "PMIC - Supervisors" section and pick what works for your application.But before any of this, you should look at your power supply with the scope and confirm that your rise slope is too long. You may have some other problem.
Suggest Brushless DC motor controller for Space application - Page 1
Forum section: electronics / general

author: muthukural001
author_rank: Regular Contributor
timestamp: July 02, 2018, 09:17:40 am
content: Hello all,I am designing a circuit to control Brushless DC motor. As this is the space application, I am not getting any Brushless DC motor driver which is rated to Space application.I need to control two motors and the motor controller chip should have interface to MCU. Please suggest....Regards,Muthu

author: Doctorandus_P
author_rank: Super Contributor
timestamp: July 03, 2018, 09:48:57 am
content: "space" as the space in a cupboard drawer, or "space" as of on the dark side of the moon???A lot of microcontroller manufacturers nowaday's have integrated hardware timers for generating 3-phase PWM for controlling BLDC motors.One such example is the STM32F103C8T6, which is used on the "blue pill" boards and is very affordable. The VESC project uses a somewhat bigger STM32F4xxSTM32 is a bit hard to get going the first time though."SimonK" (used to be / is) an "ESC" (electronic speed controller) based on an AVR. But the AVR used does not have a dedicated Motor timer.My advise is to make a list of uC's you are comfortable to develop with, and then look at the manufacturer site for hardware and software support. Some manufacturers have complete development kits with a uC board, motor controller, motor and example code.Or search github / gitlab / etc for "BLDC" and find a project you like.Your question is too general for more detailed adviceWhat is your budget? Power range? DIY (time consuming) or complete development kit?

author: mbless
author_rank: Regular Contributor
timestamp: July 03, 2018, 02:13:41 pm
content: I doubt you'll find one that was made to meet space applications, but it's not to hard to make your own. I made mine with a STM32F7 (overkill, but why not) and TI DRV8301 BLDC driver.One commercial driver I know of isodrive, which also uses the DRV8301.

author: tpowell1830
author_rank: Frequent Contributor
timestamp: July 03, 2018, 03:44:18 pm
content: Find a solid, 3 phase driver circuit that you have confidence in and in order to make space ready, we pot our boards in an epoxy to make it a brick like board. Potting will protect against pressure changes on the components.Hope this helps...EDIT: Potting also helps spread the heat of components, as well.
STM32 Nucleo GPIOs, 5V Tolerant? - Page 1
Forum section: electronics / general

author: XaviPacheco
author_rank: Regular Contributor
timestamp: June 29, 2018, 03:26:09 am
content: Hi,I will use the STM32L432KC nucleo board to perform some tasks. STM32 users know that this is 3.3V microcontroller. One of the tasks is to read a speed optical sensor which output a 5V square wave. I read in the datasheet that STM32L4 GPIO is 5V tolerant. But I just wonder if anyone here has worked with 5V signals on STM32.

author: Siwastaja
author_rank: Super Contributor
timestamp: June 29, 2018, 06:04:56 am
content: Someof the pins are 5V tolerant - you need to look at the pin map listing in the datasheet to verify which pins.With 5V tolerant pins, yes, they are 5V tolerant. No need to do anything special, just connect your 5V sensor. Of course, the switching threshold between '0' and '1' isn't nicely at 2.5V, but at around 1.65V, but usually this doesn't matter.

author: mbless
author_rank: Regular Contributor
timestamp: June 29, 2018, 11:42:08 am
content: Table 13 of the MCU data sheet lists the I/O structure (FT = 5V tolerant, TT = 3.6V tolerant) that are found in Table 14 (FT_a, FT_fa, TT_a).
Multiple sensors with NodeMCU ESP8266 - Page 1
Forum section: electronics / general

author: panoss
author_rank: Frequent Contributor
timestamp: June 25, 2018, 03:04:05 pm
content: I 've builtthis exampleand works fine.Now I want to have multiple sensors (I useNTC thermistorsas sensors) and so I 've builtthis, but I must modify the software.The difference between these 2 circuits is:In the first example, the thermistor is the bottom resistor of the voltage divider.In the second example, the thermistor is the top resistor of the voltage divider.The part of the code that I have to modify is:Code:float logR = log( 10000 * ( 1024 / readValue - 1 )); // Separate the calculation for simplicity and debuggingcelsiusTemperature = 1 / ( aConst + bConst * logR + cConst * pow(logR,3) ) - 273.15; // Calculate the temperature in CelsiusfahrenheitTemperature = celsiusTemperature * 9 / 5 + 32;Any help is welcome.

author: panoss
author_rank: Frequent Contributor
timestamp: June 28, 2018, 04:37:38 pm
content: I found that ESP8266 'sanalog input senses from 0 to 1 Volt.So if I have a voltage drop of 0.65Volts over the diode, then the reading from the ADC is very faulty!Is my thought correct?Question #2: the example (1st link) as I already said, works fine (I built it), even though the voltage divider outputs 0-3.3V (to ADC input). And the ADC can 'sense' voltage from 0-1V and not 0-3.3V...How is it possible to be working correctly? Shouldn't it malfunction?