hybridfree/eevblog-posts huggingface dataset:
STM32L5, Cortex M33 is out! - Page 1
Forum section: electronics / general

author: JPortici
author_rank: Super Contributor
timestamp: October 16, 2018, 03:02:25 pm
content: https://www.st.com/content/st_com/en/about/media-center/press-item.html/p4087.htmlThanks facebook STM32 Group i guess, because they keep sending newsletters about IOT and other useless BS insteadQuotecool

author: andersm
author_rank: Super Contributor
timestamp: October 16, 2018, 03:14:20 pm
content: Quote"Out" may be stretching it a bit.

author: krho
author_rank: Regular Contributor
timestamp: October 16, 2018, 03:30:25 pm
content: They are also not as low power as L4.. They are saying 60uA/MHz vs 36uA/MHz for L4

author: mark03
author_rank: Frequent Contributor
timestamp: October 16, 2018, 05:12:24 pm
content: Quote from: krho on October 16, 2018, 03:30:25 pmIf we compare current w/o the switcher ("LDO current"),STM32L4R5 (up to 120 MHz) 110 uA/MHzSTM32L4 (up to 80 MHz) 100 uA/MHzSTM32L5 (up to 110 MHz?) 96 uA/MHzI notice they give the "with SMPS" number using a 3V supply for STM32L5 whereas for the older chips it was specified at 3.3V. No idea why they would change that. In any case, I think it's a wash. I don't see that the new core is going to do anything for me; I'd be more interested in the new or updated peripheral set, but I'm guessing it's pretty much the same too.

author: technix
author_rank: Super Contributor
timestamp: October 16, 2018, 05:34:15 pm
content: I need to know more details. I have a few samples of ATSAML11 that implements Cortex-M23 + TrustZone and has created a dev kit for it (SushiBits Micro M23 Pro) but there is little time for me to actually play around with it.

author: SiliconWizard
author_rank: Super Contributor
timestamp: October 17, 2018, 12:13:08 am
content: Yeah, guess you'll have to wait for about a year.The following says more about practical use "low-powerness" than raw current figures: "achieving 402 ULPMark-CP in the EEMBC ULPBench, "It appears to be *very significantly* better than the L4 series. This benchmark has always proved useful to me in real-life applications.

author: richardman
author_rank: Frequent Contributor
timestamp: October 17, 2018, 04:11:05 am
content: "Production" time isn't that important as you can play with the samples prior.

author: bson
author_rank: Unknown
timestamp: October 17, 2018, 09:26:10 am
content: Not clear if the USB is anything beyond USB FS with USB-3 power support. No mention of ULPI, and I assume there's no integrated HS/SS PHY - that by itself would be headline news.

author: JPortici
author_rank: Super Contributor
timestamp: October 17, 2018, 09:37:16 am
content: Seems there's only the controller, external phyfromhttps://www.st.com/resource/en/data_brief/stm32l562ze.pdfQuote
Atmel.com DNS / site down? - Page 1
Forum section: electronics / general

author: richardman
author_rank: Frequent Contributor
timestamp: October 15, 2018, 11:45:51 pm
content: Did Microchip forget to update the DNS or forget to keep the server turned on? ;-)

author: ejeffrey
author_rank: Super Contributor
timestamp: October 16, 2018, 04:23:05 am
content: DNS is fine. As shown from your screenshot atmel.com resolves to 192.199.1.43.The site does seem to be down. No response on port 80 or 443 or a ping response. Many sites disable ping responses for "security" so the ping timeouts alone don't tell you much.

author: Mechatrommer
author_rank: Super Contributor
timestamp: October 16, 2018, 05:59:38 am
content: Quote from: ejeffrey on October 16, 2018, 04:23:05 amnot an internet guru but microchip.com (where atmel.com got directed to on the web) does accept ping...

author: jaromir
author_rank: Unknown
timestamp: October 16, 2018, 07:28:54 am
content: atmel.com is redirected to microchip.com, as usual in last months.
"PIC16F18856-E/ML" is 28 pin or 40 pin? - Page 1
Forum section: electronics / general

author: ocset
author_rank: Super Contributor
timestamp: October 15, 2018, 04:47:18 pm
content: HelloWe are looking to find the part number for the 28 pin QFN (6x6mm) version of the PIC16F18856 microcontroller.Page 680 of the datasheet says that both 40 and 28 pin versions both have the "ML" suffix.Surely this cant be right?PIC16F18856 datasheet:http://ww1.microchip.com/downloads/en/DeviceDoc/PIC16LF18856-76-Data-Sheet-40001824D.pdf

author: JPortici
author_rank: Super Contributor
timestamp: October 15, 2018, 04:53:20 pm
content: page 670 but yes, it's strange, as they usually use different suffixes for different pin variants of the same package in the same datasheetin the table from page 3 you can clearly see that the '56 is the 28 pin variant. (by the number of IOs)

author: NorthGuy
author_rank: Super Contributor
timestamp: October 15, 2018, 05:17:49 pm
content: The part number is printed in the middle of each pinout diagram. You cannot miss it.

author: KL27x
author_rank: Super Contributor
timestamp: October 15, 2018, 06:50:10 pm
content: i don't know what you guys are thinking.The suffix on Microchip micros has always described the type of package, nothing more.Both of these devices come in an ML package. This basically means QFN. The 44 pin ML package is 8x8mm. The 28 pin ML package is 6x6mm./ML = QFN (6x6mm up to 28 pin, 8x8mm for the 44 pin)/MV = uQFN (4x4mm up to 28 pin, 5x5mm for the 44 pin)/SO = SOIC/SS = SSOP/IL = DIP/PT = QFP (they seem to have stopped making new micros in QFP around 10 years ago, at least in the 8 bit families)Some of these packages are not available in all pin counts. But all of the first 5 are typically available for both 28 and 40 pin micros.Sometime you might see a "-T" after the suffix. This means the part comes on tape/reel. There are other suffix modifiers, but the package part "/XX" has been consistent for as long as I would know.
How to Configure WinAVR make.exe in PN2? - Page 1
Forum section: electronics / general

author: Mechatrommer
author_rank: Super Contributor
timestamp: October 14, 2018, 12:07:22 pm
content: after exhaustive attempt, to some extend, i managed to compile a Makefile in Programmer's Notepad 2. the problem is, i still dont know how to output *.o *.hex in separate folder. *.o and *.hex now generated in the same folder as Makefile and source codes *.c *.h now this is a mess, i need them to be on separate folder ie <project file>\default like how AVR Studio did it, whats the setting? attached is my current setting i dont know what keyword %d\default failed to compile. help.

author: ataradov
author_rank: Super Contributor
timestamp: October 14, 2018, 05:45:26 pm
content: You need to run from the destination folder and run the make as this "make -f ../Makefile". This will execute the Makefile located one level up from the destination folder, but all the output will go into the build folder.

author: Mechatrommer
author_rank: Super Contributor
timestamp: October 15, 2018, 07:14:07 pm
content: thanks alex but it didnt work, see attached...

author: andersm
author_rank: Super Contributor
timestamp: October 15, 2018, 07:29:27 pm
content: The Makefile must be written with this scenario in mind, or it won't work. In your case, make expects that the source file is found in the same place you're building, and when it can't find it tries to see if it can generate it, which is why it fails with a missing rule error.

author: ataradov
author_rank: Super Contributor
timestamp: October 15, 2018, 07:32:06 pm
content: Have a look at any of the Makefiles herehttps://github.com/ataradov/mcu-starter-projectsThey all produce the output in a separate directory.But yes, you will have to rewrite the makefiles.
Wifi switch with Amazon Dash button - Page 1
Forum section: electronics / general

author: jdev99
author_rank: Regular Contributor
timestamp: October 13, 2018, 03:03:10 pm
content: I got some "Amazon Dash" buttons which I want to use as a WiFi remote switch, together with an ESP8266, directly, not via the Internet - if it is possible.I found the code for a "Wifi Sniffer" which detects all wifi signals in my area (the MAC address and SSID), it also detects the Dash button when I press it.I now need some advice on how to "capture" the MAC address in order to use it for my switch function.The idea is to match the MAC address of the wifi codes captured to that of the Dash button and then set an output on the ESP8266 high or low.Attached is the code of the sniffer I found.Thank you for any advice.https://www.hackster.io/rayburne/esp8266-mini-sniff-f6b93a

author: jdev99
author_rank: Regular Contributor
timestamp: October 14, 2018, 05:46:31 pm
content: Never mind, I figured it out, by using the hacked version of the above."ESP8266 enhanced sniffer by Kosmehttps://github.com/kosme"For those who want to do the same, find attached 2 options.I just added a little bit to the original versions, and I am a total beginner so please excuse any wrong programming structures.Take note, that there are things to change in the "functions.h" and "structures.h" files to make it work for your Dash buttons.It works.
Install lattice mico system under ubuntu - Page 1
Forum section: electronics / general

author: GastonMelo
author_rank: Newbie
timestamp: October 14, 2018, 04:19:05 pm
content: Anybody install lattice mico system under ubuntu 18.04? tried to follow this guide to install mico system but no luck.http://legup.eecg.utoronto.ca/wiki/doku.php?id=install_lattice_diamond_on_ubuntu
ARM Tech-Con SJ CA, USA Oct 17-18 - who's up for pizza & a bee...verage? - Page 1
Forum section: electronics / general

author: bson
author_rank: Unknown
timestamp: September 13, 2018, 09:25:43 pm
content: Anyone else attending the ARM Tech-Con in San Jose, CA, USA on October 17-18? Expo registration isfree, so go register and pencil it into your calendar right now. How about getting together for pizza*and a beverage of choice, and maybe bring a project, for show and tell? Or just to put faces to names and chat. Or just have pizza and beer - you still have to eat you know. My suggestion would be a little after the expo closing time on the 17th, which is a Wednesday.*Of the large murickan variety because that's how we roll here!

author: andyturk
author_rank: Frequent Contributor
timestamp: September 13, 2018, 11:21:38 pm
content: registered. in for the 17th.

author: andyturk
author_rank: Frequent Contributor
timestamp: October 15, 2018, 05:14:49 pm
content: care to pick a designated meeting spot?
Quartus II - Multiple schematic (.bdf) files in a single project? - Page 1
Forum section: electronics / general

author: kizmit99
author_rank: Regular Contributor
timestamp: October 12, 2018, 09:11:06 pm
content: Hi All - I have what I assume is a simple question, that I can't seem to find an answer for...Is it possible to have multiple "schematic" files (.bdf) in a single project in Quartus II? I'm using an older version (13.0.1) in order to get Cyclone II devide support, but I suspect that wouldn't matter...I'm using VHDL to describe my design subcomponents, then using a top-level .bdf schematic to "wire" the subcomponents together. But my top-level diagram is becoming too cluttered and I would like to split the design into a couple of separate "sub-schematics" that are then themselves "wired" together in the top-level diagram (I'd prefer to not wire these subcomponents in VHDL). I've found a few references leading me to believe this is possible. But with google links to alteraforums.com returning only "Not Found" responses from the Intel website I can't find anything definitive.Any hints, greatly appreciated.

author: kizmit99
author_rank: Regular Contributor
timestamp: October 12, 2018, 10:19:46 pm
content: Replying to my own question - but I think I've got it figured out...It seems that there are several non-intuitive things in how Quartus works in play here:1) Symbol files for .bdf components/design-units are not automatically created.2) .bdf components/design-units are apparently a 'special case' in the Project Navigator, as there is no context menu entry for creating a symbol for them (as there are for .vhdl based components).3) You can create a symbol (.bds file) for the .bdf component using the system menu.4) .bds symbol files are handled differently in the Symbol chooser. They do not show up automatically under the Project symbols, but they can be selected with browser to the right of the "Name" entry area.5) Once placed on the top-level .bdf schematic, the symbol cannot be updated with the "Update Symbol or Block" action from the context menu, instead you have to go back to the original .bdf and re-create the symbol to update it, then "Update..." it on the parent page to get the new symbol.6) Pins placed on the sub-component .bdf appear as symbol pins on the component symbol, but are not "promoted" to device pins (they do not show up in the pin-planner tool) unless you connect them to Pins on the top-level .bdf.At least it does appear to work, and I can live with the quirks...If anyone with experience trying to do something like this with Quartus notices anything I might be missing, please let me know.Thanks!
Lattice ispLSI1016 woes - Page 1
Forum section: electronics / general

author: Rob_C
author_rank: Newbie
timestamp: October 05, 2018, 03:37:03 pm
content: I have a couple of Lattice ispLSI1016 devices which I need to copy the code of to new devices. Unfortunately I could only get 1016E devices which require a bigger fuse map although they are hardware compatible. And herein lie the problems.1. All of these are obsolete so Lattice don't want to know.2. The lowest level of software available is ispLEVER which will deal with both devices but can't import the LIF/LDF format files used in the design which was done on the pDS tool (v2.71): win 3.1 / 95 vintage.3. pDS can export EDIF files which on the face of it ispLEVER can import but, it won't. This is probably because EDIF is one of those fine standards which aren't; although I might be forgiven for expecting two Lattice products to be able to talk?Does anyone have any suggestions? I'm rapidly reaching the stage of hair pulling out here.Thanks for your help

author: PCB.Wiz
author_rank: Super Contributor
timestamp: October 06, 2018, 08:29:29 am
content: Did you try buying the correct parts from web sources ?eBay shows a few ispLSI1016 (non E) for sale ...That avoids the code migrate issue entirely

author: EEVblog
author_rank: Unknown
timestamp: October 06, 2018, 10:39:50 am
content: I had the same problem trying to import some old isp2016 and 2032 code.I came to the conclusion I needed the original disks to do it, none of the new stuff was backward compatible with the old project files. Never did get it solved, good luck.

author: Rob_C
author_rank: Newbie
timestamp: October 12, 2018, 02:23:07 pm
content: We managed to find enough of the 1016s to solve the problem. Although not online: this is an automotive project and so we needed industrial temp range which are even harder to find.I have come to the conclusion that the only solution is going to be copying the logic equations from the old Lattice tool to the new Lattice tool. Fortunately it's not that big a device so this is feasible. You will notice I mention the fine supplier of these parts twice above. This is because I'm still pi**ed off that this supplier is so contemptuous of its customers that it doesn't offer any upgrade path. Doesn't offer much hope for all users of their current devices.Anyway rant mode off.Thanks to all who replied.
Versal - Page 1
Forum section: electronics / general

author: NorthGuy
author_rank: Super Contributor
timestamp: October 12, 2018, 07:25:04 pm
content: https://www.xilinx.com/support/documentation/white_papers/wp505-versal-acap.pdfhttps://www.xilinx.com/support/documentation/white_papers/wp506-ai-engine.pdfhttps://www.xilinx.com/support/documentation/data_sheets/ds950-versal-overview.pdf

author: scatha
author_rank: Regular Contributor
timestamp: October 12, 2018, 11:04:12 pm
content: Wow, they certainly threw everything into that family. Separate real-time and non-real time ARM cores, beefed-up DSP slices, integrated DAC/ADC, lots of transceivers, and a couple of hundred SIMD processors which look like they'd be pretty useful for general-purpose DSP. Just what you need for your 5G CNN-based cognitive radio application! (I'm sure I missed out some buzz-words there).

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: October 13, 2018, 06:50:59 am
content: Fuck, the learning curves are fucking us!It's amazing and scary at the same time
I2C LCD connected to a PIC16F micro - Page 1
Forum section: electronics / general

author: Alexandros81
author_rank: Regular Contributor
timestamp: October 10, 2018, 05:17:31 pm
content: Hi!I have recently purchased an LCD Display from here:https://www.ebay.co.uk/itm/LCD-Display-Module-LCM-blue-blacklight-Character-1602-16x2-HD44780-3-3V-5V-UK/152214576387?ssPageName=STRK%3AMEBIDX%3AIT&var=451404694759&_trksid=p2057872.m2749.l2649I also got the interface board that lets you use the display via I2C.Do you know if thereis a user guide for the interface board?What is the I2C Interface protocol for the interface board?I am connecting the LCD with a PIC16F15345.Thanks

author: mariush
author_rank: Super Contributor
timestamp: October 10, 2018, 05:44:06 pm
content: As the ebay sale says, that's a HD44780 based lcd, so you use those commands.You can see the name on the chip, PCF8574.... here's datasheet:http://www.ti.com/lit/ds/symlink/pcf8574.pdfThat's a basic I2C port expander, it creates 8 i/o pins which are most likely connected to your LCD's RS , RW, EN and probably 4 i/o pins.So you send the i2c commands to the chip to set some i/o pins as input, some i/o pins as output , then set the pins to some values... the same commands you'd send if you connected the lcd display directly to a bunch of i/o pins on your micro, you will send them through i2c formatted as the chip wants.If you don't have documentation, you can use a multimeter to figure out which i/o pins from the io expander IC go to which pins of your lcd display.you also have on the board pads labeled A0 , A1 and A2 .... those allow you to configure unique i2c address for your board, probably some default address is set if those 3 pins are floating (and if you put a blob of solder on one of those pairs of pads you basically set one bit of the 8 bit i2c ID to 1 or something like that)

author: Alexandros81
author_rank: Regular Contributor
timestamp: October 10, 2018, 06:09:36 pm
content: @mariushThanks. Just a few minutes ago I discovered it was the chip PCF8574T by looking at the picture.I'll give it a go then!

author: JustMeHere
author_rank: Frequent Contributor
timestamp: October 12, 2018, 02:39:44 am
content: For about $5 USD, you should be able to find an LCD display that speaks I2C directly. The actual protocol seems to be "shared" so finding a driver might not be that hard.
SBAS GPS in Aus/NZ - Page 1
Forum section: electronics / general

author: hamster_nz
author_rank: Super Contributor
timestamp: October 11, 2018, 10:40:34 pm
content: (posting in Micro section as most low-level GPS users are using them with micros)Just found this about a SBAS trial in Aus (& NZ),http://www.ga.gov.au/scientific-topics/positioning-navigation/positioning-for-the-future/satellite-based-augmentation-systemIn the "Can I use it" FAQ:QuoteandQuoteHas anybody noticed this being active at the moment?Coverage looks to be:
(FPGA) can a 32x32 multiply be done with three 16x16 multiplies? - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: October 11, 2018, 01:02:55 pm
content: Quoteyesterday I asked this and got the above reply. Has anyone ever implemented it?

author: NorthGuy
author_rank: Super Contributor
timestamp: October 11, 2018, 02:42:47 pm
content: I used it when I implemented SSL a long time ago, not on FPGA through. I had a regular version, an MMX version, and the super modern SSE2 version (although SSE2 didn't add much). For every one of these cases, I compared Karatsuba to simpler algorithms (diagonal or school-boy). It was slower for shorter multiplications. It only got better for longer multiplications, starting from 512x512. Its performance was even worse for squaring - the smallest size where it outperformed others was 1536x1536. The results were consistently the same for each of the 3 hardware versions.I think it's the same in FPGA. If you use DSP blocks, an extra multiplication is less of a problem than multiple additions.

author: SiliconWizard
author_rank: Super Contributor
timestamp: October 11, 2018, 03:17:02 pm
content: Yes I have, but only in software.If you're willing to rely on DSP blocks anyway, is there a reason you don't want to use an IP generator? Xilinx's core generator can make multipliers for you up to 64x64.I'm pretty sure most other FPGA vendors have a similar tool.Granted it gives you no control over what's generated but it will get you there much faster.

author: legacy
author_rank: Super Contributor
timestamp: October 11, 2018, 04:18:25 pm
content: Quote from: SiliconWizard on October 11, 2018, 03:17:02 pmof course, I have reasons. Too long story. Basically, I don't want to depend on the IP generator, and I prefer to work the simulator (edit: not the one provided by Xilinx) for which I have to model every logic involved in the projects.

author: SiliconWizard
author_rank: Super Contributor
timestamp: October 11, 2018, 04:29:44 pm
content: Makes sense but you're still depending on the DSP tiles for the block multipliers if I got it right... so... how are you modeling those?

author: legacy
author_rank: Super Contributor
timestamp: October 11, 2018, 06:32:01 pm
content: Quote from: SiliconWizard on October 11, 2018, 04:29:44 pmBy a library of modules written in VHDL with constants to expresse features and I can express a module for a certain technology, e.g. Spartan6, or Spartan7.

author: SiliconWizard
author_rank: Super Contributor
timestamp: October 11, 2018, 07:10:02 pm
content: I see.You may find some ideas here:https://www.researchgate.net/publication/266678906_FPGA_Based_Modified_Karatsuba_Multiplier

author: legacy
author_rank: Super Contributor
timestamp: October 11, 2018, 08:12:48 pm
content: thanks, so kind
STM32 with dual supply low power - Page 1
Forum section: electronics / general

author: sgt_johnny
author_rank: Contributor
timestamp: October 11, 2018, 01:01:44 pm
content: I want to redesign a current product to make it better and more efficient.The device is battery powered with a lithium battery (2,7 to 4.2V). A NFC reader in the circuit needs 3.3V to operate its transmitter at an optimate performance.A STM32 will be used at 8Mhz to control the device. Since a motor, which is directly connected to the battery, will pull the battery way down, a buck-boost converter is used to created 3.3V for MCU and the rest. These Buck-Boost regulators have terrible efficiency at low power (like 50uA consumtion to put out 1uA for Sleep) i would like to avoid to power the mcu only by the buck boost.I would like to shut down the regulator when entering sleep, and only power the STM32 at a LDO at 1.8V in sleep mode.How can i create a dual supply concept for the STM32?

author: technix
author_rank: Super Contributor
timestamp: October 11, 2018, 02:28:47 pm
content: BAT54C to VCC

author: SiliconWizard
author_rank: Super Contributor
timestamp: October 11, 2018, 03:33:27 pm
content: Don't know the max current your circuit requires.If 300 mA max is OK, you could also consider using an LTC3106 which has very low quiescent current in burst mode. Additionally it has a secondary input for a backup supply.

author: Mr. Scram
author_rank: Super Contributor
timestamp: October 11, 2018, 03:42:15 pm
content: Quote from: technix on October 11, 2018, 02:28:47 pmI'm not sure I understand your suggestion.

author: technix
author_rank: Super Contributor
timestamp: October 11, 2018, 05:08:01 pm
content: Quote from: Mr. Scram on October 11, 2018, 03:42:15 pmBAT54C is a common cathode dual Schottky diode. By connecting two power sources to the two anodes and draw power from the common cathode you create what is known as a power OR circuitry. Now the voltage at the common cathode would be 0.3V below whichever power source that has a higher voltage.BAT54C has a 300mA current limit. If your chip can draw more current under all circumstances you might want to use some more powerful diodes for a similar setup.

author: Mr. Scram
author_rank: Super Contributor
timestamp: October 11, 2018, 05:39:12 pm
content: There are ICs with a boost converter and a linear regulator for when the voltage is above the desired voltage for exactly this reason. Maybe that's an option? I know Maxim has some, but I wouldn't recommend using Maxim if you can help it.A more intelligent power controller might be another option.
Can interrupt firing corrupt a SPI Transfer? - Page 1
Forum section: electronics / general

author: Pack34
author_rank: Frequent Contributor
timestamp: October 08, 2018, 07:17:51 pm
content: I'm working with a PIC24 and a SPI transfer from an ADC seems to intermittently return incorrect data on a specific channel. The voltages applied to the input of the ADC have been proven to be steady using a series of external ADCs at a greater sampling rate but the ADC itself could respond with what would correspond to a drop of 8V on a 24V circuit.The SPI module is a dedicated module inside the PIC and an interrupt that pulls the PIC elsewhere shouldn't affect the data being read-in over the bus, correct?

author: mikerj
author_rank: Super Contributor
timestamp: October 08, 2018, 07:22:47 pm
content: Does the ADC error always correlate to the same bit in the SPI frame?

author: Pack34
author_rank: Frequent Contributor
timestamp: October 08, 2018, 09:30:56 pm
content: It's always the same channel. The LSB tends to look mostly intact but the MSB is complete garbage.

author: JustMeHere
author_rank: Frequent Contributor
timestamp: October 12, 2018, 01:37:35 am
content: Do you have a schematic and perhaps a board layout?Is your SPI being shared?

author: floobydust
author_rank: Super Contributor
timestamp: October 12, 2018, 01:47:50 am
content: Check with a scope for runts on the SPI clock. I've seen cascaded 8-bit transfer subroutines used for 16-bit transfers, where the last 8-bits (subroutine) leaves the clock low and then the clock is up right away for the next 8-bit transfer, so you get an extra clock pulse as a glitch.

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: October 12, 2018, 08:13:55 am
content: Quote from: Pack34 on October 08, 2018, 07:17:51 pmScope the SPI, add some debug code to set a pin to trigger the scope on an obviously incorrect SPI value and see what the SPI is doing at the time.Check that you are clocking data in on the correct edge of the SPI clock

author: SiliconWizard
author_rank: Super Contributor
timestamp: October 12, 2018, 03:32:47 pm
content: Since we have no idea about your source code... nor any scope capture...Have you considered that it may not be an SPI transfer problem per se but rather the way you store the samples?Maybe it's a 16-bit ADC and you use an 8-bit mode SPI, and have some kind of issue with reading incomplete values due to the storage itself being interrupted while you read them?
ESP8266 Fanout To CMOS? - Page 1
Forum section: electronics / general

author: The Doktor
author_rank: Regular Contributor
timestamp: October 09, 2018, 09:01:17 am
content: How many 3.3V CMOS inputs can an ESP8266 drive? I've had no luck googling for this info. I'm hoping 12 is no problem.Ed

author: iMo
author_rank: Super Contributor
timestamp: October 09, 2018, 10:33:11 am
content: It is not only about the number of inputs it can drive, but total capacitance/inductance you add at the output pin (ie. the length of the tracks/wires)..

author: JustMeHere
author_rank: Frequent Contributor
timestamp: October 12, 2018, 12:57:19 am
content: ESP8266 doesn't have that many IO pins free. It's bigger brother might. Check out the ESP32.Pins are used for PWR, GND, RST, boot mode x2, tx/rx (debugging and flashing), Chip Enablr. Those pins across the bottom are mostly in use already. They talk to the onboard memory. The ADC pin might be available but not in all uses.
Microchip Pic18F45K50 and USB HID - Page 1
Forum section: electronics / general

author: engineer_in_shorts
author_rank: Regular Contributor
timestamp: October 03, 2018, 04:10:53 pm
content: Hi,I have received an existing design with Microchip Pic18F45K50, the micro is laid out with a USB socket intending to be a interface product with keys.I plan to write some new software so I visit the Microchip website, get the latest Mplab X, XC8. Once mplab X is installed I installed the MCC (code configurator) plugin.When I try to add USB to a PIC18F45K50 project I have looked for HID class, which is absent. Either CDC or Vendor (bulk I guess).So had a look at the MLA, however MLA does not have support for Pic18 and USB.Has anyone actually used a PIC18F for a HID product successfully without buying some third party USB libraries?

author: CJay
author_rank: Super Contributor
timestamp: October 03, 2018, 04:27:30 pm
content: Project, yes, product, no.Plenty of examples out there for USB HID on PIC, my 18F4550 code worked with the ancient and now largely obsolete (but still available and working) MCHPFSUSB framework.

author: JTR
author_rank: Regular Contributor
timestamp: October 05, 2018, 07:19:46 am
content: As far as the USB engine goes, there is no real difference between the 18F4550 and the 18F45K50. Porting the HID class from the legacy MCHPFSUSB framework would not be difficult. Offhand the only thing I can think off, Re: USB, is that the config words _may_ be different. You can always cut'n'paste these from the MPLAB X code configurator for the CDC class.
Using ST-Linkv2 of nucleo board to flash custom board. - Page 1
Forum section: electronics / general

author: knapik
author_rank: Regular Contributor
timestamp: October 14, 2018, 04:46:27 am
content: Currently for a student project which I'm doing (and is due quite soon unfortunately) I'm having difficulties in flashing my custom board with the STM32 microcontroller we're using.I've been using the GNU MCU plugins for eclipse and openOCD for development and flashing. I've had luck in flashing the microcontroller on the nucleo board itself, but when I take off the ST-Link / Nucleo jumpers (CN2) on the board and jump the header used for connecting an outside ST-Link (CN4) to the board I designed, it doesn't connect. I've been hearing that this is possible to do, but I definitely am having troubles in doing so. Both boards are using the STM32F091RC microcontroller. Would it be possible for anyone more knowledgeable to chime in and help here?This is the schematic sheet for the microcontroller on my board:This is the schematic sheet for the nucleo board:

author: ogden
author_rank: Super Contributor
timestamp: October 14, 2018, 09:31:10 am
content: Double/tripple-check for pinout or routing mistakes, also check for soldering shorts/opens. It could be as simple as SWD pins swappedYou shall pull-down boot pin, never leave it floating. Introduce reset pull-up and reset button so you can manually reset chip when needed w/o doubt about success. Try lowering SWD frequency, like 100KHz, try increasing timeouts (if any) as well. Try every reset option your debugger offers. Obviously manually reset or power cycle before each programming/debug attempt.

author: dgtl
author_rank: Regular Contributor
timestamp: October 14, 2018, 05:05:10 pm
content: First, check the power pin voltages.Then try connecting to the internal bootloader, ie via uart. Pull the boot0,1 pins to bootloader mode, connect uart to pc and launch the software. If it connects, the problem is in jtag side.The st-link is cheap enough, that you can get the real thing. Check the connections - for connecting up, you need SWDIO, SWCLK, VCC, GND. Usually you need RST too, but having RST not connected would not cause swd connection failures for empty chips (there may be issues when the fw has put the chip in sleep).
Project update: SushiBits Apocalia aka 80C88 retrocomputer - Page 1
Forum section: electronics / general

author: technix
author_rank: Super Contributor
timestamp: October 04, 2018, 09:01:29 am
content: This project has received some updates, and parts of its specs is being finalized.Apocalia is a modular retrocomputing platform based on an OKI M80C88 processor. It can be made DOS compatible but that is not yet finalized spec. Here are some finalized specs:* Overall form factor: a stack of PC104/64 boards. Rationale: PC104 physical size is within JLCPCB discounted rate size limit, and after removing 40-pin P2 the 64 remaining P1 pins corresponds to the XT bus.* Core Complex Module (Apocalia CCM) contains the CPU, FPU, bus interface, 15MHz main clock, 82C59 PIC and 82C37 DMA.* System Service Module (Apocalia SSM) contains 640kB SRAM, 64kB EEPROM, DS12C887 RTC, 82C53 PIT and PIC16F887A system controller and power supply converters. Special jumper exist between CCM and SSM.* Mass Storage Module (Apocalia MSM) is a hard card based on a mSATA SSD. It is implemented as a CPLD variant of XT-IDE chained directly to a IDE to SATA adapter.* Flexible Display Module (Apocalia FDM) is a graphics dual-board module based on FlexCGA, a variant of CGA with dual port RAM replacing the character ROM. Due to size limits, it relies heavily on dual-port SRAM and CPLD-condensed logic. Output are taken from the RGBI interface and fed through a post-renderer that emits parallel LCD as an intermediary format, then converted into HDMI. The post-renderer can both emit straight RGBI colors and emulate NTSC color artifacts. Audio is taken using a separate I2S jumper from the sound module.* FM Sound Module (Apocalia FSM, not finalized yet) is based on OPL3, but with a processor or FPGA replacing the floating point DAC to emit digital I2S without the analog gap for the FDM HDMI encoder. It is mostly AdLib-compatible.* Connectivity Module (Apocalia HCM, imcomplete) implements three separate functionalities: a 100Mbps Ethernet port based on DM9000A, and USB Full Speed OTG based on CH374, and a quad serial port interface. COM1 is exposed as a 9-pin RS232, COM2 is exposed as a USB serial port, COM3 and COM4 are TTL-level pin headers. USB OTG direction detection is implemented as a flow control pin on COM2.The BIOS (not finalized) is largely based on SeaBIOS, with the default boot sequence USB OTG on HCM -> SSD on MSM -> serial console on COM2.The minimal bootable system contains CCM, SSM and HCM. The full system can be made IBM compatible if the interface CPLDs are programmed to put devices in their correct addresses.
Question on PWM input mode - STM32  - Page 1
Forum section: electronics / general

author: XaviPacheco
author_rank: Regular Contributor
timestamp: October 03, 2018, 03:21:47 am
content: I want to use PWM input mode to measure inputs signals up to let's say 1 kHz. My question is about the selection of the prescaler and the counter period that supports the inputs frequencies. My timer clock is 2 MHz. So, if I say[Timer Frequency ] / [(Prescaler+1)*(Period+1)] <= 1KHzIs this the right way to choose the prescaler and counter period?I'm using Timer 2, which is 32 bit, so I expect a good resolution.

author: ajb
author_rank: Super Contributor
timestamp: October 03, 2018, 04:23:19 am
content: For maximum resolution, you would want to set your prescaler so that your maximum measurement period is as close as possible to, but not larger than your timer overflow period. If your timer is ticking at 2MHz, and you have a 32-bit timer, your timer will overflow in about 35 minutes, so you'll be perfectly fine (and will get maximum resolutions--500ns) with no prescaling (prescaler set to 1)

author: XaviPacheco
author_rank: Regular Contributor
timestamp: October 03, 2018, 04:38:10 am
content: I read that if I'm not sure about my input range frequencies, I can set the timer like this:[Timer Frequency ] / [(MaxPrescaler)*(MaxCounterPeriod)]But, in my case, I think I will measure frequencies under 1 kHz.Can I say for example [2 MHz ] / [(1+1)*(999+1)] = 1 kHz?
Embedded host for FTDI FT230X USB Slave - Page 1
Forum section: electronics / general

author: voltsandjolts
author_rank: Unknown
timestamp: September 17, 2018, 11:14:31 am
content: Looking to implement a USB Host on a PIC32 for an FT230X USB slave.Of course the FTDI doesn't implement CDC which makes ita pain in the assmore fun.Option 1:Use the Segger library for hosting FTDI - but it expensive and not yet ported to PIC32 (its STM32/Renesas)Option 2:http://www.hobbytronics.co.uk/usb-host-serialOption 3:Have a look at the linux ftdi driver and have go at implementing my own host stack by hopefully applying simple mods to a CDC stackOption 4:FTDI Viniculum FT90x stuff. Hmmm, not familiar with it...yet.Any other options?

author: andersm
author_rank: Super Contributor
timestamp: September 17, 2018, 12:02:21 pm
content: libFTDIis a user-space driver on top of libusb. If nothing else it documents the low-level protocol (note the license). However why use an USB converter instead of the MCUs own serial ports?

author: voltsandjolts
author_rank: Unknown
timestamp: September 17, 2018, 12:33:46 pm
content: An embedded device already exists which uses an FT230X, there are thousands of them out there.I want to communicate with them from another embedded system based on PIC32.

author: tsman
author_rank: Frequent Contributor
timestamp: September 17, 2018, 05:45:24 pm
content: Your best option is most likely to be to write the driver yourself.Quote from: voltsandjolts on September 17, 2018, 11:14:31 amI don't think you get source code for that. You just get a premade hex file to load into the PIC on their boards.Quote from: voltsandjolts on September 17, 2018, 11:14:31 amI would steer clear of any of the FTDI uCs. Both generations of the Vinculum chips were awful and have soured me to their uC designs. Support for the Vinculum chips was terrible. Tons of weird bugs in the toolchain that never got fixed. Examples didn't work. FTDI refused to document the internal architecture or peripherals and you had to access everything via buggy libraries they supplied. There are lots of complaints about these chips online if you search.That said, the FT90x does appear to be a newer design and isn't a Vinculum as it is now 32-bit instead of the 16-bit core in the Vinculum. It does appear to be documented better and the FT90x user manual lists register maps etc... FTDI spunoff a new company called Bridgetek to handle all of these chips.Up to you to decide but I wouldn't...

author: voltsandjolts
author_rank: Unknown
timestamp: September 28, 2018, 08:31:30 pm
content: I decided to go withOption 2:http://www.hobbytronics.co.uk/usb-host-serialI just buy the preprogrammed ICs and it has made the embedded code I need to develop (on a seperate uC) much simpler. So far its working well.For anyone else following this path and brave enough to dive into writing their own embedded driver for FTDI this pure python user space FTDI driver (for FT230X and others) may provide some hints:https://github.com/sgoadhouse/pyftdi
How good is OpenWatcom compiler? - Page 1
Forum section: electronics / general

author: technix
author_rank: Super Contributor
timestamp: October 04, 2018, 06:40:43 am
content: I was looking for a modern C compiler that targets the original i8086, for my 80C88-based retrocomputing project. Somehow I am led to Open Watcom which is actively maintained, implements at least C99, and can target the original i8086. Anyone has experience with that thing?This compiler is intended to be used as the system compiler: it will be building the bulk of the bootloader, the bulk of a relatively modern GUI OS, and the applications running on top of it.Target specs: 80C88 @5MHz, 640kB 1-cycle SRAM as system memory, 24kB 1-cycle dual-port SRAM for video (based on FlexCGA design,) USB OTG, Ethernet, 4 serial ports, 16GB mSATA over XT-SATA, 32kB boot EEPROM.

author: richardman
author_rank: Frequent Contributor
timestamp: October 04, 2018, 06:59:58 am
content: Don't know about OpenWatcom, but I relied on the original Watcom 10.0 (and maybe even 11.x?) for years. It was a competent compiler with no fuss.Of course I have now moved on to Visual Studio and CodeBlocks/GCC....

author: bson
author_rank: Unknown
timestamp: October 07, 2018, 10:46:55 pm
content: Find a copy of MSC 6. I still have one because 1) it's a good compiler that generates good code, 2) it can produce COM files that are easily shoved into EEPROM/flash, and 3) it supports the legacy 16-bit segmented architectures. All you need is a bit of startup code and disable all libraries, then a simple tool to convert COM files to Tek, ITH or something. (When I last used it 10? 15? not quite 20 years ago I rolled my own converter but don't think I have it still. I'd just create a new one, trivially in python.)

author: technix
author_rank: Super Contributor
timestamp: October 08, 2018, 04:15:11 am
content: Quote from: bson on October 07, 2018, 10:46:55 pmWhat is MSC 6? Can it run on some kind of UNIX? (OpenWacom has a Linux port, and if I throw away the GUI the command line compiler itself can be compiled under macOS.)

author: chickenHeadKnob
author_rank: Super Contributor
timestamp: October 08, 2018, 08:29:29 am
content: At one time around early-mid 80's the proprietary watcom compiler held the lead in speed of compiled code, and then there was time of pretty intense competition and others caught up. It was always considered to be reliable in terms of quality of output, with respect to bugs-speed-size qualifiers.I think Bson is referring to microsoft c.

author: bson
author_rank: Unknown
timestamp: October 08, 2018, 10:32:13 am
content: Quote from: technix on October 08, 2018, 04:15:11 amMicrosoft C 6. It sucks to have to run Windows in a VM, but it's really a good compiler.

author: technix
author_rank: Super Contributor
timestamp: October 08, 2018, 10:37:03 am
content: Quote from: chickenHeadKnob on October 08, 2018, 08:29:29 amThis is good news for me, since I would be sure that my compiler is emitting good quality 8086 code.Quote from: chickenHeadKnob on October 08, 2018, 08:29:29 amOld Microsoft C don't really mix with 64-bit Windows... Do I have to break out that Windows 98 SE (!) virtual machine...?
Keyboard unresponsive HP8568B Point me in the general direction please. - Page 1
Forum section: electronics / general

author: Simon Spiers
author_rank: Regular Contributor
timestamp: September 28, 2018, 04:26:13 pm
content: I am posting this message here despite it being test equipment related. My 8568b Spectrum analyzer has a fault that prevents the keyboard being operated. After power on it does its usual boot but then looks like it fails to totally load the defaults correctly. The front panel should have a row of led's light to show it has selected various automatic measuring options, but these never light. It Has had the ROMS and CPU board replaced along with keyboard controller. It definitely doe not have a stuck key, all the supplies are good.Has anyone got any more ideas?
Any Lattice MachXO2 (PLD/FPGA) Design Advice? - Page 1
Forum section: electronics / general

author: Sarcarean
author_rank: Contributor
timestamp: September 23, 2018, 10:51:53 am
content: Hi everyone! Thought I would ask this here before I send my design to production.I have a board that uses a MAX V (5M570Z) CPLD and because my application has become more memory dependent, I am migrating to the LCMXO2-4000HC in order to use the distributed RAM and/or embedded block ram, which should fix my performance issues.Is there anything out of the ordinary I should consider? I am new to using Lattice partsThe MAX V has two banks, the left bank I connected to the MCU and the right bank to the memory device. For the LCMXO2, which has 5 banks, I connected Bank 0 and 2 to the MCU (and same VCCIO), and BANK 1,3,5 to the memory device (and VCCIO).I have all hardened protocols connected: JTAG, SPI, I2C, and the dedicated programming pins (PRGMN, INITN, DONE) connected to the MCU.For clocking, I have 3 input sources: 2 of the MCU's PCK and a 40MHZ MEMS wired like this:40MHZ MEMS Oscillator = PCLKC0_1MCU_PCK0 = PCLKC2_0MCU_PCK1 = PCLKT2_1But the rest of the clock/pll pins are NC. To future proof my design, is there anything I should connect to them? They are:L_GPLLT_FB, L_GPLLC_FB, L_GPLLT_IN, L_GPLLC_IN, L_GPLLT_FB, L_GPLLC_FB, L_GPLLT_IN, L_GPLLC_INAny advice would be much appreciated!

author: SiliconWizard
author_rank: Super Contributor
timestamp: September 24, 2018, 02:11:40 pm
content: AFAIR, PCLKT* inputs are "true" clock inputs and PCLKC* are "complementary". Not 100% sure that it matters when dealing with single-ended clocks, but I would connect your 40 MHz oscillator's output (which I assume is single-ended) to a PCLKT* input instead of PCLKC0_1. This is what I've always done with single-ended clocks on those FPGAs. You may check in the datasheet if it really matters or not.

author: Sarcarean
author_rank: Contributor
timestamp: September 28, 2018, 05:49:46 am
content: Excellent suggestion! I read the "MachXO2 sysCLOCK PLL Design and Usage Guide" but it didn't register with me the 8 clock inputs were split into groups of 2 for clock diff. So I assume that you can only use one of the pins or both, but only for the same clock source (either a single clock or diff. clock pair).So I changed my clocks to this (all clock sources on the same bank scheme (0 and 2)):MEMS 40MHz to PCLKT0_1MCU_PCK1 to PCLKT2_0MCU_PCK0 to PCLKT2_1
ATSAM*70 USB stack experiences - Page 1
Forum section: electronics / general

author: hans
author_rank: Super Contributor
timestamp: September 25, 2018, 06:31:39 pm
content: I'm looking to use the ATSAM*70N series parts (probably S is all I need) for a future project, where I need a USB2.0 HS connection combined with a high clock peripheral system. I'll be building a streaming data application at 10MB/s tops, in particular the internal (or external) ADC could be of use. This MCU ticked those boxes.I've been bitten in the past by USB stacks supplied by vendors before, and I wonder if anyone else here has experiences with the supplied USB stack on these ATSAM parts. On the PC side I'll probably be using libusb. How stand-alone is the stack to use (apart from dependency on CMSIS)? For example I know that Microchip originally had Harmony for the PIC32 series, has this blessing or plague transcended down to Atmel parts so far?

author: ataradov
author_rank: Super Contributor
timestamp: September 25, 2018, 06:47:45 pm
content: You have a choice between Atmel Start and ASF. Neither stack is very standalone, they both will depend on a lot of stuff, and ripping them out of the framework is not easy.On a plus side, the hardware is not that hard to work with, so depending on your requirements you can just roll your own.

author: hans
author_rank: Super Contributor
timestamp: September 26, 2018, 02:20:59 pm
content: Thanks for the pointers Alex. I also saw yourreplies hereand took a short look at the Atmel Start and ASF.ASF was a huge download, and couldn't really find my way through it.Atmel Start looked surprisingly pretty bare bones in terms of the USBHS example, but need to take another look to see how much configuration options there are. In this case I download a USB HID example project.I haven't taken a look at the RTLs of many USB peripherals yet and similarities among other series. If you say they are quite simple , I might as well attempt to adapt my previously used (and slightly refactored..) USB device stack to the Atmel driver.Is there any "magic" needed to get the HS functionality working over FS?

author: ataradov
author_rank: Super Contributor
timestamp: September 26, 2018, 04:03:32 pm
content: Quote from: hans on September 26, 2018, 02:20:59 pmNope, just setting one bit in a configuration register. HS and FS only differ at the very begging of the enumeration stage, which is taken care of by the hardware. Well, HS stack also has to include some test code, which is used when you do the certification, if you ever want to do it.I had some test code for USB on SAM E70. It was pretty messy, but I will try to find it, clean it up a bit and publish it. I was getting good performance on capturing external 8-bit stream of data and sending that to PC.