hybridfree/eevblog-posts huggingface dataset:
serial data transfer code (program) - Page 1
Forum section: electronics / general

author: yalect
author_rank: Regular Contributor
timestamp: March 13, 2018, 10:43:33 am
content: Hello,I would like to ask you that I used this two follow program to send and recive DATA serially via port C where I use start_byte (8bit) to begin the DATA and parity byte (8bit) to check the DATA recieved is right ( maybe the parity byte is enought) where I get the parity byte right but the data recieved not correct , I won't chang my code but if there is small modifucations?thank youTransmitter :void main() {void init();int info=0b10010110, byte_start = 0b10110010, compare = 0b00000001, count, Parity=0b11001000, DATA=0b0, byte_end=0b11010010;/* Configure the port C as output */DDRC = 0xff;while (DATA!=byte_end)/*!= byte_start)*/{for (count = 0; count < 8; count++){DATA = (byte_start >> count); // output = number shifted right * countif(DATA & compare){PORTC = (1<< PINC0);}else{PORTC&= ~(1<< PINC0);}Delay_ms(1);}DATA=0;for (count = 0; count < 8; count++){DATA = (info >> count); // output = number shifted right * countif(DATA & compare){PORTC = (1<< PINC0);}else{PORTC&= ~(1<< PINC0);}Delay_ms(1);}for (count = 0; count < 8; count++){DATA = (Parity >> count); // output = number shifted right * count/*PORTC = DATA; */if(DATA & compare){PORTC = (1<< PINC0);}else{PORTC&= ~(1<< PINC0);}Delay_ms(1);}DDRC=0x00;for (count = 0; count < 8; count++)/*; count++)*/{if(PINC & (1<<PINC0)){PORTD= (1<< PIND3);DATA|=(1<<count);}else{DATA &= ~(1<<count);}Delay_ms(1);}}}**************************************************************************************************************************Recievervoid main() {void init();int info=0b10010110, byte_start = 0b10110010, count=0x00, Parity=0b11001000, DATA=0b0, byte_end=0b11010010;DDRC = 0x00;DDRA = 0xff;while(DATA!=byte_start){for (count = 0; count < 8; count++)/*; count++)*/{if(PINC & (1<<PINC0)){DATA|=(1<<count);}else{DATA &= ~(1<<count);}Delay_us(500);}}while (DATA!=Parity){for (count = 0; count < 8; count++)/*; count++)*/{if(PINC & (1<<PINC0)){DATA|=(1<<count);}else{DATA &= ~(1<<count);}Delay_us(500);}PORTA=DATA;for (count = 0; count < 8; count++)/*; count++)*/{if(PINC & (1<<PINC0)){DATA|=(1<<count);}else{DATA &= ~(1<<count);}Delay_us(500);}}DDRC = 0xff;for (count = 0; count < 8; count++){DATA = (byte_end >> count); // output = number shifted right * countif(DATA & 1){PORTC = (1<< PINC0);}else{PORTC&= ~(1<< PINC0);}Delay_ms(1);}}

author: Buriedcode
author_rank: Super Contributor
timestamp: March 14, 2018, 10:25:45 pm
content: Please use the code tagsCode:as this keeps the formatting of indentations and makes it much more readable.

author: Nusa
author_rank: Super Contributor
timestamp: March 14, 2018, 11:12:03 pm
content: The receive process, once synchronized by a start BIT, must receive at the SAME rate as the transmitter is sending. You are not doing this.https://en.wikipedia.org/wiki/Asynchronous_serial_communicationHere's a tutorial on how to implement software serial:https://www.arduino.cc/en/Tutorial/SoftwareSerial
Proteus 8.6 saves files in temp folder - Page 1
Forum section: electronics / general

author: panoss
author_rank: Frequent Contributor
timestamp: March 14, 2018, 05:25:23 pm
content: When I create a project in Proteus, I save it in, e.g a folder like: F:\Files\ProteusProjects\Test.BUT the files of the project, source files like main.c are being saved in a temp folder!Like: C:\Users\PANAGI~1\AppData\Local\Temp\aea8c683602c4e309857b9e94231c720\PIC16F876A_And when I reboot, let's say, my pc (or even without rebooting) they get deleted!Because they 're in the temp folder!And when I open (or just rebuild) the project in Proteus I get an error like 'file C:\Users\PANAGI~1\AppData\Local\Temp\aea8c683602c4e309857b9e94231c720\PIC16F876A_\main.c' not found!!!And in the project explorer appears a question mark by the name of the file....Result is I have lost quite a few projects.How can I fix this?
Proteus simulation with MPLab XC8 compiler and  Nokia 3310 LCD - Page 1
Forum section: electronics / general

author: panoss
author_rank: Frequent Contributor
timestamp: March 13, 2018, 11:21:27 am
content: I 'm trying to test the Nokia 3310 LCD screen in a Proteus project, with MPLab 's XC8 as compiler.The project is in the zipped attachment. I followed the instructions fromhere.It' s made with Proteus 8.6.I 'm trying to display a simple "Hello World!" in the LCD, but when I run the simulation the screen just goes white and displays nothing.In the simulation log there is no error, only one of the messages says ' Could not load source file 'C:\Users\PANAGI~1\AppData\Local\Temp\df04bf04ed354ff8a43fcdaea54aefd1\PIC16F877A\Debug\Debug.as'. '.What am I doing wrong?

author: VEGETA
author_rank: Super Contributor
timestamp: March 13, 2018, 12:51:46 pm
content: From my experience, you should avoid proteus. That simulation is not reliable and you must use the real circuit to find out what happens.

author: roland_tmm
author_rank: Newbie
timestamp: March 14, 2018, 02:00:44 pm
content: Hi,Roland here, the one who wrote the blog post you linked to. The example on that page used Proteus 8.1. I haven't tried using 8.6 so maybe its a version problem.Just to confirm: did you install theNokia 3310 library files for Proteus? Also can you give the code you used to write "Hello World"?

author: panoss
author_rank: Frequent Contributor
timestamp: March 14, 2018, 05:16:28 pm
content: Hi Roland.Yes. I did download these files (and put them respectively on the folders Model and Library).Any way I solved it in another way but now I'm having other problems with Proteus, for which I 'll open a new topic.
STM32F030F4P6 ADC usage - Page 1
Forum section: electronics / general

author: CM800
author_rank: Frequent Contributor
timestamp: March 12, 2018, 10:48:11 pm
content: Hi All,Does anyone have any good information / sample code with the STM32F030F4P6 chip's ADCs?ADC's are one specific area I'm somewhat weak on. I could really do with something / reference to help guide me through setting one up. (e.g. to read a potentiometer)I'm a bit lost as where to start using the HAL, what needs to be configured and so on....

author: archnemesis
author_rank: Contributor
timestamp: March 12, 2018, 11:46:17 pm
content: Pretty good little tutorial here:https://visualgdb.com/tutorials/arm/stm32/adc/Not the most detailed but enough to at least get you going.

author: MT
author_rank: Super Contributor
timestamp: March 13, 2018, 12:21:22 am
content: Quote from: CM800 on March 12, 2018, 10:48:11 pmRemeber F4 series ADC are incredible noisy.

author: emeb
author_rank: Newbie
timestamp: March 13, 2018, 06:03:39 am
content: STM32F4030F4 doesn't correlate to any existing part. Is it an STM32F4xx or an STM32F0xx?In general, HAL examples are a good place to start - grab the library zipfile for the series part you're using and look in the Projects/<board>/Examples/ADC directory - you'll find some basic examples that show how to set it up. CubeMX may be helpful too.

author: CM800
author_rank: Frequent Contributor
timestamp: March 13, 2018, 08:14:31 am
content: Quote from: emeb on March 13, 2018, 06:03:39 amThat's what I get from doing it from memorySTM32F030F4P6

author: llkiwi2006
author_rank: Regular Contributor
timestamp: March 13, 2018, 09:05:59 am
content: Also read thereference manual's section on ADC.
Is there a gui type programmer for Raspberrypt for arduino type stuff? - Page 1
Forum section: electronics / general

author: Beamin
author_rank: Super Contributor
timestamp: March 12, 2018, 11:30:01 am
content: I have an Arduino made it do things. I got it to work mainly copy and pasting code.I bought a raspberry pi thinking it would be easier to use it I/o since it is a computer after all. I'm trying to avoid learning python not so much laziness but if I am going to spend the time I think the Arduino and C is much more useful.Is there a way to use the pi's I/o in a gui type fashion like GNU radio? All the pi programs I found are like little kid stuff which you would think would be even easier to learn but it makes the pi a pretty useless toy.I don't have a specific task in mind but a start would be:if/else input/outputs- If pinX goes high turn on pinY or timer functions to turn on relays.Or more complex things like if pinX goes high send a text message through the internet. I saw a project where an Arduino can send a text to your phone if a door opens. Its a really cool project but it is at the limits of my abilities (not the electronics but the software and libraries)A great project would be taking the pie and connecting it up to multiple sensors to monitor your house through an app on your phone. Monitor doors door bell and have one audio and video camera. I know this has been done but is there a way to do this where you don't have to be a programmer? Seems like the pi should be the ultimate Arduino> I bought both thinking the Arduino would be too hard and too limited, I was wrong, but now I own about five. I have two pi's but all they seem to be good for is cheap stand alone internet browsers.Another project that someone already thought of (but never got to work from what I read) would be to plug a SDR dongle into it and put the pi up in a tree directly connected to the antenna or somewhere you couldn't run a big length a coax to. Then control HD sdr or some program remotely, kind of like how the indian scammers control your computer in those youtube videos. Preferably do this with the internet to listen to SDR remotely when not home or without the internet just over wifi or some other means.

author: nfmax
author_rank: Super Contributor
timestamp: March 12, 2018, 11:43:20 am
content: Node-RED should do exactly what you want. It's included in the Raspbian distribution, though the version is bit old.
FASTUSBasp - another AVR programmer (cheapest?) - Page 1
Forum section: electronics / general

author: ami
author_rank: Newbie
timestamp: March 11, 2018, 02:26:56 am
content: Hello,This is my first post on eevblog. Glad to join this forum.I wanted to create an AVR programmer but with real USB hardware to avoid connection issues which I had with USBasp before.This uses cheap blue pill (stm32f103c8t6) board.Page:https://amitesh-singh.github.io/FASTUSBasp/Github page:https://github.com/amitesh-singh/FASTUSBaspIt exposes usb to serial interface (USB-CDC) as well which could be useful to debug AVR microcontrollers.
Queries on JTAG interface for a CPLD based system - Page 1
Forum section: electronics / general

author: garvind25
author_rank: Regular Contributor
timestamp: March 10, 2018, 05:26:38 pm
content: Hi,I am trying to build a CPLD system which I plan to program using a JTAG parallel 3 cable. In the CPLD board design what should I connect for JTAG cable VCC supply? Since my board has 3.3v and 5.0v, I can use either. But the documentationhttps://www.xilinx.com/support/documentation/user_guides/xtp029.pdf] https://www.xilinx.com/support/documentation/user_guides/xtp029.pdf(page 4) says :“ The VCC supply level must match the I/O voltage level of the FPGA slave-serial configuration pins for best signal integrity.”Since my VCCIO of the CPLD is fixed to 3.3v for both banks, should I choose 3.3v. I am asking this because I have been using my JTAG parallel 3 cable with an FPGA system (Spartan 3 based) which provides 5 v supply to the cable.Also, should I connect the pins of male JTAG port of the CPLD board directly to the respective pins or should I insert some resistance in-between the pins of the connector and IC? As per sheet 2 of linkhttps://reference.digilentinc.com/_media/coolrunner-ii:coolrunner-ii_sch.pdf, they have inserted 200 ohms in each signal line and have also given pull up resistors for TMS and TDI. Why so, and how are these resistances being calculated pls?Thanks and Regards,Arvind Gupta

author: rstofer
author_rank: Super Contributor
timestamp: March 10, 2018, 05:55:38 pm
content: The 200 ohm resistors are used to provide short circuit protection (and they slow down the edges). The 10k resistors are chosen to provide adequate pull-up (which almost any value will do), not present much of a load to the programmer and not provide much of a voltage divider to the JTAG signals. 10k is just a common value.If I couldn't figure out whether to use 3.3V or 5V for the JTAG programmer, I would put a voltage selector jumper near the JTAG connector. Problem deferred...

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: March 10, 2018, 06:53:24 pm
content: The supply voltage to the cable is a supply for powering the cable, it's to tell the cable what voltage levels to use to talk to the device, so should match the I/O bank voltage
FPGA/VHDL based job profiles  - Page 1
Forum section: electronics / general

author: garvind25
author_rank: Regular Contributor
timestamp: March 07, 2018, 05:32:01 pm
content: Hi,I wanted to know the following:I have basic knowledge of Xilinx FPGA and VHDL language. I wanted to know what are the various job options available for new candidates in these domains. I searched job sites but all I could come up with is FPGA design engineer /STA/DFT. Can anyone list any other job profiles pls. Which one will be the easiest domain for a starter pls? Also, can people who have knowledge in VHDL only work in STA domain? Or do I have to learn Verilog also?Thanks and Regards,Arvind Gupta

author: kfnight
author_rank: Regular Contributor
timestamp: March 07, 2018, 05:35:02 pm
content: Look up embedded systems and embedded hardware.
Cheapest sim with SystemVerilog assertions/formal verification in 2018? - Page 1
Forum section: electronics / general

author: jeremy
author_rank: Super Contributor
timestamp: March 07, 2018, 07:41:42 am
content: Hi all,I’m looking for a “low cost” tool which can simulate Verilog 2005 designs, but also which can support SystemVerilog assertions. Are these tools still >$10k? Non-commercial is fine.

author: kfnight
author_rank: Regular Contributor
timestamp: March 07, 2018, 02:32:37 pm
content: Do you need this for commercial development or for learning how to use assertions? If it's for learning you can use EDA Playground. If it's for commercial development then there are no cheap solutions. Although I would imagine out of Mentor, Cadence, Synopsys, and Aldec, Aldec would be the cheapest. Also, Xilinx Vivado does not even have SV assertions on its future roadmap.

author: jeremy
author_rank: Super Contributor
timestamp: March 08, 2018, 10:16:10 am
content: Thanks for your reply. Just learning, I was hoping to use something a bit more sustainable than EDA playground (I want to make some moderately sized designs like a CPU). How do people learn how to use these techniques if the tools are so expensive? Is it just expected that an employer will have to train you?

author: kfnight
author_rank: Regular Contributor
timestamp: March 08, 2018, 03:40:30 pm
content: Yeah you learn / use it through your company and corporate training, and through academia. The EDA companies offer full-featured tools to colleges for a few thousand dollars a year.Electronics engineers are totally not into making their own free and open-source EDA software. It could be that they'd rather work on actual hardware projects then maintain millions of lines of simulator code.
Microchip to buy Microsemi ... - Page 1
Forum section: electronics / general

author: Bassman59
author_rank: Super Contributor
timestamp: February 27, 2018, 04:15:03 pm
content: In case you haven't heard.Seems like there's little overlap in the product lines. One wonders whether Microchip will keep the Microsemi space-qualified and radiation-tolerant FPGA devices.

author: technix
author_rank: Super Contributor
timestamp: March 01, 2018, 04:41:38 pm
content: Quote from: Bassman59 on February 27, 2018, 04:15:03 pmI have the feeling that Microchip would keep the Microsemi FPGA lines while killing their own ATF1500 which was bought from Atmel.

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: March 01, 2018, 05:53:24 pm
content: Quote from: Bassman59 on February 27, 2018, 04:15:03 pmYes, that's probably somthing they may well want to sell to a more specialist manufacturer.

author: chicken
author_rank: Frequent Contributor
timestamp: March 02, 2018, 04:05:25 am
content: Microchip buying Micrel, then Microsemi. What Micr is next? Micron is probably too big for them.

author: T3sl4co1l
author_rank: Super Contributor
timestamp: March 02, 2018, 09:36:59 am
content: Heck, maybe they'll improve them...Very little from Microsemi I've been interested in. Their power transistor offerings are just weird.Tim

author: who8877
author_rank: Newbie
timestamp: March 02, 2018, 09:52:37 am
content: Their PolarFire FPGAs are pretty neat and should be competitive with Xilinx Kintex parts. I'm guessing this is why Microchip wanted them.

author: Warhawk
author_rank: Frequent Contributor
timestamp: March 02, 2018, 11:06:47 am
content: Jesus, we will end up with big5 like in automotive industry..

author: krho
author_rank: Regular Contributor
timestamp: March 06, 2018, 06:26:55 pm
content: I'd say that oligopoly is no better than monopoly

author: coppice
author_rank: Super Contributor
timestamp: March 06, 2018, 06:42:28 pm
content: Quote from: cleaningOut on March 06, 2018, 02:35:42 amMergers are so famous for nurturing the best of the people and product lines.
Using BitData Types and Variables in PIC18F using Hi-tech Compiler 9.51(PICC-18) - Page 1
Forum section: electronics / general

author: tarun172
author_rank: Regular Contributor
timestamp: March 05, 2018, 10:09:31 pm
content: All,I was handed over an old code makes use of bit data types, registers and bit variables. This code base makes extensive use of bit variables. Recently, I came across a suspected bug in this code base. I traced this issue back to one of the bits in register. The bit sets (instead of clearing) upon power cycle causing this issue to occur. At-least, that what I am suspecting. It is pretty repeatable across other devices, old and new. I am using standard hi-tech compiler version 9.50. Reading through user manual, section 3.4.2 and 3.4.3, I am not able to find exact root cause. Why that particular bit? Why only in power up?Is there a particular way of handling these registers and bit during code compilation? Do you normally specify a memory location during compilation?Regards,Tarun S

author: Bruce Abbott
author_rank: Frequent Contributor
timestamp: March 06, 2018, 11:33:06 am
content: Quote from: tarun172 on March 05, 2018, 10:09:31 pmIn the thread title you say 9.51. Which is it?QuoteWhy do you suspect this?QuoteWhich bit? Can you show us the code that sets/clears it?QuoteThe hardware bits are defined in the header file of the selected MCU, so you should not have to specify their memory locations.
Panasonic chips - Page 1
Forum section: electronics / general

author: Saucesome
author_rank: Newbie
timestamp: March 04, 2018, 02:22:01 am
content: Hi guys, i'm just starting out in electronics and have by some chance come across a box of Micro controllers from Philips, specifically P89C51RD2HBP. The problem is that i have no clue what device i have to use to program them. Also, the data sheet i've found online says its part of the 80C51 family but i have no clue what that means. Thanks for the help!

author: @rt
author_rank: Super Contributor
timestamp: March 04, 2018, 03:30:51 am
content: a family of microcontrollers will have similar architecture, but differences regarding peripherals, clock speed, ports, memory, etc.so that if you became familiar with one, it wouldn’t be too much trouble using any of the family for another project that had some different requirements.

author: nctnico
author_rank: Super Contributor
timestamp: March 04, 2018, 01:18:48 pm
content: That is a 8051 based controller and is very much outdated. Better look at something with an ARM cpu inside like NXP's LPC series. These are not difficult to use, have good documentation and lots of online info.

author: Saucesome
author_rank: Newbie
timestamp: March 05, 2018, 12:40:43 pm
content: Noted, thanks, but out of curiosity, how do i program chips from brands other then ATMEL and Microchip?

author: nctnico
author_rank: Super Contributor
timestamp: March 05, 2018, 03:18:43 pm
content: Quote from: Saucesome on March 05, 2018, 12:40:43 pmUsually with a device specific programmer (even if the connection itself is a JTAG port). The LPC series from NXP can also be programmed using a serial port or through USB (if supported by the device).
How to drive Frangibolt? - Page 1
Forum section: electronics / general

author: muthukural001
author_rank: Regular Contributor
timestamp: March 06, 2018, 10:33:48 am
content: Hello All,I can see some Frangibolts with the operating voltage of 22-26V and operating current of 1A-4A. I want to know that How to build driver circuit for them. Is simple switching circuit that consist of MOSFET is enough? Please let me know.......Regards,Muthu

author: senso
author_rank: Frequent Contributor
timestamp: March 06, 2018, 01:49:22 pm
content: Ask manufacturer for the correct way to drive them?Aerospace and those kinda of questions is a bit scary..

author: ajb
author_rank: Super Contributor
timestamp: March 06, 2018, 07:10:32 pm
content: Seems like the trigger mechanism is just a heater, so yes, applying sufficient voltage should cause them to actuate. However, since it's a thermal mechanism, initial temperature will affect actuation time, so if that's important you may want to apply a lower power level to preheat the mechanism, or regulate the power input according to system temperature. That's a bit more complicated, especially if you want to ensure that a glitch will not result in premature triggering. . .
Looking for a Chips & technologies F8680 Programmer's Reference Manual  - Page 1
Forum section: electronics / general

author: harrimansat
author_rank: Regular Contributor
timestamp: March 04, 2018, 05:11:26 pm
content: Hello, I'm looking for and I can not find the programmer´s F8680A manual, can someone help me?Thanks!Regards

author: Rasz
author_rank: Super Contributor
timestamp: March 04, 2018, 11:11:44 pm
content: some memory controller programming info:http://bitsavers.informatik.uni-stuttgart.de/components/chipsAndTech/F8680_System_Design_Guide_1991.pdfsourcecode for some embedded application, includes PCMCIA/memory configurationhttp://nora.nerc.ac.uk/id/eprint/502870/1/mtd95_05.pdf
Experience with Richtek - Page 1
Forum section: electronics / general

author: ehughes
author_rank: Frequent Contributor
timestamp: March 04, 2018, 03:38:16 pm
content: Hello:Has anyone every had any experience with Richtek in a production environment?http://www.richtek.com/I am prototyping with one of their parts:RT9068GSPThe part meets my specifications but it is not a brand name that I have any history with. I usually stick with Linear or TI for power management solutions but this part had an attractive price.

author: josip
author_rank: Regular Contributor
timestamp: March 04, 2018, 04:18:05 pm
content: My experience with them is very limited, but for clearing some doubts about one part, I received so reach answer (from FAE EU manager) with full clear text, pictures, and application notes, like never ever from any other IC company. Check this out...http://www.richtek.com/Design%20Support/Technical%20Document/AN048

author: Kjelt
author_rank: Super Contributor
timestamp: March 04, 2018, 04:20:30 pm
content: It is a good brand, often sourced by big companies, my experiences with this brand are very positive.
LORA (OR) SIGFOX Which is the best choice in terms of cost and developement time - Page 1
Forum section: electronics / general

author: sangar
author_rank: Regular Contributor
timestamp: September 25, 2017, 11:43:18 am
content: Hello All,Can anyone tell the difference between Sigfox and LORA technology ?Thanks,Sangar

author: dozimas
author_rank: Newbie
timestamp: March 03, 2018, 06:25:33 am
content: They are both low power LPWAN radio technologies but there are differences:1) Sigfox has to have radio coverage where your end device is located to receive messages to its back end using Internet but Lora can form private networks without mobile or internet connectivity.2) Only one company - Semtech - produces Lora modules but there are multiple module manufacturers for Sigfox which brings down Sigfox module prices lower (<5$ a module).Have a look at this link for full comparison:https://www.link-labs.com/blog/nb-iot-vs-lora-vs-sigfox

author: aldi
author_rank: Contributor
timestamp: March 03, 2018, 09:58:39 am
content: If your country has NB-IOT coverage i would choose NB-IOT, the coverage is generally better (they claim that it's better than GSM). It uses a licensed frequency band, instead of an unlicensed band in case of LoRa/Sigfox.
Zybo Z7-10/20 Out of Box Demo - Page 1
Forum section: electronics / general

author: rhb
author_rank: Super Contributor
timestamp: February 25, 2018, 03:33:26 am
content: I am in the process of trying to learn to program FPGAs. The Zynq is used in my Instek DSOs, so I decided to get a dev board for that device. After a bunch of research I settled on a Zybo Z7-20 from Digilent.I only have a 3 Mb/S connection so downloading the Vivado software is somewhat painful. The full package is 20 GB. I downloaded the subset of 2017.4 needed for the Zynq 7000 SoC while I waited for my board to arrive.After spedndng a couple of hours reading posts on the Digilent forum, I just unpacked the files for the demo installed on the board and read the README.txt file. I thought I should share it in case anyone in this forum is interested in these new boards from Digilent. You might want to do a bit more research than I did before you make a purchase decision. When the boards started shipping, Digilent had not even made the demo source code available to customers who bought the board. They only did that after someone asked in their forum for it.rhb@Debian-9:~/wrk/polled_dma/Zybo_Z7_BIST$ more README.txtZybo Z7 Out-of-Box Demo Source==================================This is source code for the out-of-box demo that comes preloaded on the Zybo Z7-10 and Zybo Z7-20. It is provided as-is for reference purposes, and will not be maintained to newer versions of Vivado.Prerequisites=======================*Vivado 2016.4 (no other version of Vivado will work)*Digilent boards files installed, as described herehttps://reference.digilentinc.com/learn/software/tutorials/vivado-board-files/start

author: JayNi
author_rank: Newbie
timestamp: March 02, 2018, 05:29:37 pm
content: I cut my teeth on a Zed board at a NASA Internship then bought a Zybo. Its a darling little board and I love it. Its simple to use yet powerful. I also fix Antminers with the Z7-10 as a controller .

author: rhb
author_rank: Super Contributor
timestamp: March 02, 2018, 05:50:51 pm
content: I've got a MicroZed on the way. I like the Zybo, but for someone with no FPGA experience it's a bit disappointing. Mostly though I don't like the attitude displayed in the README. From time to time I had to work with people like that. I didn't like their "I'm too important to update my code." attitude then and still don't.Avnet keeps everything updated to Vivado for their boards. So no need to download an old version of Vivado. I value my time highly enough to make buying the MicroZed a good deal.I'm mounting a BeagelBoard X15, Zybo Z7-20 and MIcroZed 7010 in an old low profile PC case along with a gigabit switch and USB hubs all powered by the PC PSU. That should give me a very convenient development environment for both the PS and PL sides of the Zynq once everything gets here.
STM32WB, dual Core and 2.4ghz RF SOC - Page 1
Forum section: electronics / general

author: MT
author_rank: Super Contributor
timestamp: February 22, 2018, 09:52:14 pm
content: http://www.st.com/content/st_com/en/about/media-center/press-item.html/p4013.htmlhttp://www.st.com/en/microcontrollers/stm32wb-series.html?icmp=tt6577_gl_pron_feb2018&querycriteria=productId=SS1961QuoteQuote

author: mark03
author_rank: Frequent Contributor
timestamp: February 23, 2018, 08:14:25 pm
content: If the quality and documentation of the radio part is anything like their "blue nrg" parts, watch out! We had to develop a product with one of these at my last job and I vowed to stick with Nordic in the future if I have any say in the matter.I'm also curious if the radio registers are documented at the lowest level, allowing a creative hacker to do anything that the radio hardware is physically capable of, or if it is just like everyone else's wireless SoC where the radio-control core is off-limits to developers and the only access is through a corporate-provided API. This is the only thing which would tempt me to give these a closer look. For example, I think it would be neat if someone developed an open-source LoRa modem for non-Semtech silicon. That way the SoC maker is off the hook for the IP violation because all they did was provide the radio and a nice register interface.

author: theatrus
author_rank: Frequent Contributor
timestamp: February 24, 2018, 06:13:46 am
content: Quote from: mark03 on February 23, 2018, 08:14:25 pmAlso remember the STM32W? Also a terrible part that has been scrubbed from mentions on their website.

author: technix
author_rank: Super Contributor
timestamp: March 01, 2018, 04:44:55 pm
content: Quote from: mark03 on February 23, 2018, 08:14:25 pmLet's just hope they didn't scrub all mentions to the actual way of use of the chips and shove everyone down the Cube/HAL pipeline.The chip itself seem to me like a low power RF frontend, a STM32L0 and a STM23L4+ being glued together to me. It would be interesting to see how ST implements cross-core IPC.
[Solved] Identifying/replacing R8015A1SB - Page 1
Forum section: electronics / general

author: Strider27
author_rank: Newbie
timestamp: February 28, 2018, 09:39:03 pm
content: Hello Gentlemen,Would appreciate any help in locating the datasheet or where to buy the component/or a compatible replacement in the attached image (ideally in EU or china (ebay, aliexpress etc).I believe it reads (6S7133 RB015A1SB). I have checked most of datasheet websites as well as farnell and digikey for any sensible combination/abreviation of the above numbers with no success.It is a component on MSI B150M Mortar Motherboard located near the rear audio output, was most likely blown out by arching between the C13 power plug and the PSU. Currently is shorted, gets hot and prevents the motherboard from booting (have not had the chance to remove the component and boot without it or test the motherboard with a POSTcard yet)Full issue is posted in another post here (https://www.eevblog.com/forum/repair/what-would-cause-failure-of-4-motherboards-in-different-pc's-within-a-few-months/)

author: amyk
author_rank: Super Contributor
timestamp: March 01, 2018, 03:11:44 am
content: That's a batch/lot code. It's a GS7133, as pictures from sellers of that part will agree.I have posted a more detailed reply about your problem in that other thread.

author: Strider27
author_rank: Newbie
timestamp: March 01, 2018, 02:24:06 pm
content: Quote from: amyk on March 01, 2018, 03:11:44 amThanks, I must be blind.
JESD204B Resources and pitfalls? - Page 1
Forum section: electronics / general

author: Kontakr
author_rank: Contributor
timestamp: February 27, 2018, 01:40:30 am
content: A project at work is probably going to be moving towards using JESD204B, rather than a parallel LVDS bus due to sampling rates. I was wondering if anyone had experience with this apparently very painful protocol or resources that might be helpful to get a solid grip on it. The current plan is to buy the Xilinx IP core, but that only simplifies so much. If there are other solid cores available, I haven't found them yet.

author: KE5FX
author_rank: Super Contributor
timestamp: February 27, 2018, 03:07:22 am
content: When I last looked into this, a year or two ago, you either had to roll your own core or license Xilinx's for beaucoup bucks.Nowadays, Ibelievethat Analog Devices may be supplying their own homebrew core. Have a surf through their Github repository and see what you can find. It would sure be nice if this is the case. Even if it's not licensed for use with non-AD parts, it would still provide a lot of useful clues for writing your own.

author: Jay_Diddy_B
author_rank: Super Contributor
timestamp: February 27, 2018, 03:25:09 am
content: Hi,Following on from KE5FX's comments ...Here is are some useful links to ADI website:https://wiki.analog.com/resources/fpga/peripherals/jesd204andhttp://www.analog.com/en/applications/landing-pages/001/jesd204-serial-interface-jedec-standard-data-converters.htmlThis should get you started in the right direction.Regards,Jay_Diddy_B

author: Kontakr
author_rank: Contributor
timestamp: February 27, 2018, 05:38:24 am
content: Xilinx wants ~$7k for a site license, which is pricey but not too bad. Looks like the AD core is $5k, and there appears to be an Intel/Altera core too. More options than I knew about before.Thank you for the links, I'll read over those.

author: Jay_Diddy_B
author_rank: Super Contributor
timestamp: February 27, 2018, 07:59:04 pm
content: Quote from: Kontakr on February 27, 2018, 05:38:24 amI understand that there are two licenses for the AD core:Source:http://www.analog.com/en/design-center/evaluation-hardware-and-software/jesd204-interface-framework.htmlYou might be able to do some useful work without spending any money.Jay_Diddy_B

author: Kontakr
author_rank: Contributor
timestamp: March 01, 2018, 02:33:56 am
content: The GPL-2 version would be very useful for learning and evaluation prior to buying the commercial license for the actual product.That's a pretty clever way to drive sales: give out a free version to tinker with, then sell them the commercial license just because of familiarity.
Debugging a TMS320 - Page 1
Forum section: electronics / general

author: don.r
author_rank: Frequent Contributor
timestamp: March 01, 2018, 12:18:08 am
content: I have an HP MSO that has an intermittent failing trace issue. Since both the digital and analog channels fail at the same time and since it passes all RAM/ROM tests and is otherwise operational, I am beginning to suspect the TMS320C50 DSP. I can't find a CLIP or schematic for this scope so I am assuming the DSP is the common signal point before the CPU.Is there a standard approach to debugging these besides obvious stuff like monitor clock pins, supply pins, etc? Unfortunately the scope is my only logic analyzer so monitoring 4 data lines on my Tek 2245 is my maximum capability.EDIT: Nevermind. TMS320 appears operational. Problem is with trigger circuit... probably trigger ASIC.
ESP32 ADC non-blocking library - Page 1
Forum section: electronics / general

author: Bootalito
author_rank: Unknown
timestamp: February 27, 2018, 04:42:50 am
content: I created an easy library for the ESP32 arduino toolchain to read the ADC, average up to 1,000,000 samples, linearize it (because the integral non-linearity is horrible), all with non-blocking code. The pieces to make a fully functional non-blocking analogRead were already a part of the ESP32 arduino toolchain, I just put the puzzle together, added averaging, and a means to calibrate it (linearize), and packaged it.The code arbitrates the ADC in a round-robin or token fashion, so you can instantiate the library for however many GPIO pins you need as ADCs, and a Global token takes care of who gets to use the ADChttps://github.com/terryjmyers/analogReadNonBlocking

author: thm_w
author_rank: Super Contributor
timestamp: February 27, 2018, 09:05:47 pm
content: Your code doesn't prevent taking more than 1,000,000 averages and overflowing the average summing variableNice work.

author: Geoff_S
author_rank: Regular Contributor
timestamp: February 28, 2018, 11:09:39 am
content: Isn't there a possibility of a race condition ? I've only briefly looked at your code, but it looks like it:1. checks to see if a token is available,2. if it is, it starts an ADC conversion3. AND THEN increments the token counter.What's to stop another instance also starting during step 2 ??
FreeRTOS v10, now part of Amazon? - Page 1
Forum section: electronics / general

author: rounin
author_rank: Regular Contributor
timestamp: November 29, 2017, 10:25:05 pm
content: So, Amazon just bought out Real Time Engineers, and are running it under the AWS brand... WHIS is still running openrtos/safertos.https://aws.amazon.com/blogs/opensource/announcing-freertos-kernel-v10/https://aws.amazon.com/freertos/Some new inter thread communication primitives in v10, looks interesting. Still wierd.

author: andersm
author_rank: Super Contributor
timestamp: November 29, 2017, 10:32:05 pm
content: Amazon would probably like it very much if IoT gadgets used their cloud hosting services. For similar reasons, Amazon bought agame enginethat they're now offering for free.Another change of note is the switch from GPLv2+linking exception to an MIT license.

author: rounin
author_rank: Regular Contributor
timestamp: November 29, 2017, 10:33:57 pm
content: Hmm I wonder if they bundle a network stack, it will only connect to AWS

author: ehughes
author_rank: Frequent Contributor
timestamp: November 30, 2017, 03:47:34 am
content: I used the FreeRTOS TCP stack and it is very nice. From what I understand, you will still always get what you have always could get. There will be additional code to support SSL, MQTT, etc.The change to an MIT license is a nice change.

author: YTvW95
author_rank: Newbie
timestamp: February 26, 2018, 03:15:14 pm
content: the change to MIT licencse is very nice since it removes the "you shall not compare freertos against the other RTOSes because we don't like them being better"

author: KE5FX
author_rank: Super Contributor
timestamp: February 27, 2018, 03:05:39 am
content: Quote from: YTvW95 on February 26, 2018, 03:15:14 pmYeah, that was just... bizarre.

author: helius
author_rank: Super Contributor
timestamp: February 27, 2018, 03:38:14 am
content: Fair Use isn't the issue (it's a defense in certain circumstances, but not a right). If you legally enter a binding contract, its provisions apply to you and limit your freedom of action. If you take some positive action in relation to a software license, you may be judged to have agreed to it and therefore it applies to what you can do (although there are limits to what it can require). Fair Use won't save you there.Oracle is well-known to prohibit independent benchmarks in its contracts.
High Level Synthesis on Lattice FPGAs - Page 1
Forum section: electronics / general

author: who8877
author_rank: Newbie
timestamp: March 02, 2018, 02:28:06 am
content: Vivado HLS has been great provided you use it sparingly and are aware of its limitations. However I want to port my design to Lattice devices and the HLS is proving to be an issue. Does anyone know if there are HLS packages available supporting the ecp5 that are free or cost in the low thousands of dollars?

author: Bassman59
author_rank: Super Contributor
timestamp: March 02, 2018, 02:37:33 am
content: Quote from: who8877 on March 02, 2018, 02:28:06 amA quick web search turned upthis. I had not heard of them before looking, so I cannot vouch for anything they say. They do claim “vendor-agnostic HLS” and say that they support Intel, Lattice, Xilinx, Microsemi and Achronix devices (which is to say, all of them).

author: who8877
author_rank: Newbie
timestamp: March 02, 2018, 09:32:23 am
content: It looks like they are trying to run a cloud platform - not provide something that spits out synthesized RTL. Synopsys has the Synphony C Compiler - but when the website doesn't even have a "how to buy" section my assumption is I can't afford it.

author: who8877
author_rank: Newbie
timestamp: March 02, 2018, 10:03:16 am
content: Looking again I think I was wrong about the leg up guys - their ad copy is just geared more towards software guys. I'll give it a try.

author: Bassman59
author_rank: Super Contributor
timestamp: March 02, 2018, 07:13:31 pm
content: Quote from: who8877 on March 02, 2018, 09:32:23 amIf it’s like their version of Symplify Pro that supports high-reliability design (TMR and Hamming coding in synthesis, the latter of which doesn’t work), then your assumption would be correct.
snap on 3.3V to 5V shied/wing/adapter for Feathers or Teensys - Page 1
Forum section: electronics / general

author: dentaku
author_rank: Frequent Contributor
timestamp: February 23, 2018, 02:33:29 am
content: I can't find any simple adapters that snap onto a modern 3.3V microcontroller that have a level shifter built in.Most new/interesting microcontroller boards are 3.3V with some of the having a few 5V tolerant input pins. There are lots of little level shifter boards out there, some are bi-directional, some are only one way and others are suitable for I2C.Question...Adafruit seems to have settled on a reasonable form factor with their feathers/wings and the Teensy has a nice simple row of headers that are breadboard friendly but I can't see any boards that you can snap into their headers (wings, shields etc.) with lever shifters on them.They all seems to be the ubiquitous tiny board with the shifter chip on itor a bunch of fetsthat you just wire in between the MCU board and you circuit in a messy way.I pretty much want it so I can more easily control old logic chips with modern microcontrollers, so 3.3V to 5V and not the other way around. Even if many of those chips work fine with VIHat 3.3V it's still easier not to have to think about it.A larger board that you clip the Feather/Teensy/whatever into or one that snaps on top of the board that then breaks out the IO pins after having been level shifted would be much neater.Does such a thing exist that anyone can recomend?I guess I could make my own with the FeatherWing Doubler - Prototyping Add-onhttps://www.adafruit.com/product/2890ORFeatherwing Protohttps://www.adafruit.com/product/2884or of course since it just hole per 0.1inch I can make my own board with the standard protoboard I already own but it's weird that I can't find anything already manufactured.
Alternative to GTKwave? - Page 1
Forum section: electronics / general

author: mac.6
author_rank: Regular Contributor
timestamp: February 22, 2018, 11:25:59 am
content: Hi all,I am playing with HDL, on fpga and simulation and I wanted to know if someone knows of a (opensource?) alternative to gtkwave?I do not mean gtkwave is not ok (except some minor UI control issues) because I find it rather powerfull, but it lacks plugin support for decoding protocol and such, ala sigrok.Sigrok on the other side is unable to process efficiently huge traces (meaning GB long traces)...

author: SiliconWizard
author_rank: Super Contributor
timestamp: February 22, 2018, 03:03:28 pm
content: I don't know of any decent open-source alternative to GTKWave.It doesn't have any decoding or analysis modules built-in or any plug-in support that I know of indeed. As you implied, it can handle huge traces pretty well and I also like its ability to display numeric signals as analog waveforms, that can be handy.For decoding purposes (as well as debugging and verification on a more general level), I just implement decoders in my test benches, in HDL.Implementing simple SPI, I2C or UART decoders for simulation purposes is pretty easy and has the added benefit to allow adding higher-level automated verification tests in your test benches.
Pic24fj128gb206 ADC pin staying at logic high - Page 1
Forum section: electronics / general

author: muthukural001
author_rank: Regular Contributor
timestamp: February 16, 2018, 05:54:36 pm
content: Hello All,Till yesterday, I was able to measure thermistor over PIC24 ADC's AN2(RB2) pin. Today, I had read Thermistor and surprisingly I got ADC input voltage which is very near to full-scale voltage of 3.3V but the Thermistor is giving 1.6V only . Hence I disconnected the Thermistor from ADC pin and check, ADC pin was showing 3.3V. Even after I switched on and off,it was showing 3.3V in the Thermistor not connected State. please suggest..Regards,Muthu

author: Gibson486
author_rank: Frequent Contributor
timestamp: February 16, 2018, 06:29:53 pm
content: It could be anything....from you changing your code, to esd damaging a pin, to an accidental short...I mean, the possibilities are endless.

author: NorthGuy
author_rank: Super Contributor
timestamp: February 17, 2018, 01:48:44 am
content: Most likely you have configured it as a digital output, possibly when you were trying to configure other pins or PPS.

author: muthukural001
author_rank: Regular Contributor
timestamp: February 17, 2018, 06:00:09 am
content: No it is the same program which was working fine previously. I don't know where to debug ......

author: Buriedcode
author_rank: Super Contributor
timestamp: February 17, 2018, 03:41:55 pm
content: You should check for a blown IO pin. Check for low resistance between the pin and VDD - also as each IO has diode protection you should see ~0.65V between IO and VDD, and GND and IO (anode to cathode)

author: NorthGuy
author_rank: Super Contributor
timestamp: February 17, 2018, 07:10:14 pm
content: Quote from: muthukural001 on February 17, 2018, 06:00:09 amTry anorther chip. This way you will see if this is a chip malfunction or your program.

author: Kalvin
author_rank: Super Contributor
timestamp: February 17, 2018, 07:13:17 pm
content: Or, use another I/O-pin if you don't have another chip yet.

author: muthukural001
author_rank: Regular Contributor
timestamp: February 22, 2018, 10:51:49 am
content: Sorry for delay.Yaah It was working when I shifted ADC function to another ADC pin.It looks like I damaged the pin..Regards,Muthu

author: SiliconWizard
author_rank: Super Contributor
timestamp: February 22, 2018, 03:38:49 pm
content: Either the pin is damaged indeed, or this is merely a configuration issue.You may want to check the configuration in the AD1PCFG register. If you already did and everything seems fine, then it's probably a physical damage.
Ipod 7 Nano driven from Lattice MachXO2 - Page 1
Forum section: electronics / general

author: twatorowski
author_rank: Newbie
timestamp: February 21, 2018, 09:40:23 am
content: As many of you probably know Mike from mikeselectricstuff did some great things in the realm of reverse engineering ipod 6th gen displays. Thanks to that I was able to push the topic a little bit further into the world of ipod 7th gen displays.I've figured out the pinout and did an implementation of MIPI DPHY on cheap-o MachXO2 board from Lattice. All of my work is available here:http://mightydevices.com/?p=681and the source code is herehttps://github.com/MightyDevices/DSITx

author: Rigby
author_rank: Super Contributor
timestamp: February 21, 2018, 01:04:17 pm
content: Nicely done.