hybridfree/eevblog-posts huggingface dataset:
what does always@(*) do - Page 1
Forum section: electronics / general

author: gauravmp
author_rank: Regular Contributor
timestamp: June 08, 2016, 04:19:23 pm
content: Hi,Could someone tell me what always@(*) do? Is the always block executed everytime there is a change in any of the variables?THanks

author: kfnight
author_rank: Regular Contributor
timestamp: June 08, 2016, 04:31:13 pm
content: Pretty much. Once upon a time Verilog required a sensitivity list. When any of the signals in the sensitivity list changed value then the simulator would descend into the always block.Code:reg a;always @(b, c)beginif (b)a = 1'b1;else if (c)a = 1'b0;elsea = 1'b0;endEngineers found this annoying since the simulator or synthesis tool should be able to infer the sensitivity list by analyzing the signals in the always block during compilation. So the always @(*) construct was introduced, saving engineers a few keystrokes, and saving a lot of hours debugging the design due to a missing signal in the sensitivity list.Code:reg a;always @(*)beginif (b)a = 1'b1;else if (c)a = 1'b0;elsea = 1'b0;end

author: photon
author_rank: Frequent Contributor
timestamp: June 08, 2016, 05:39:04 pm
content: An issue caused by the old style sensitivity list was that the synthesizer would make a latch for any missing signal from the sensitivity list. Since an always block without a clock is intended for combinational logic, this added latch would be a bug. The new syntax always @(*) prevents this.

author: gauravmp
author_rank: Regular Contributor
timestamp: June 10, 2016, 03:28:16 pm
content: Thanks guys!
LVDS interface between ADC and FPGA - Page 1
Forum section: electronics / general

author: gauravmp
author_rank: Regular Contributor
timestamp: June 06, 2016, 05:39:23 pm
content: Hi,I'm wondering if anyone can provide with a design example for an LVDS interface between an FPGA and an ADC. Specifically, I'm using a MAX 10 FPGA and an LTC2311 ADC.Also, could someone give me a way to implement the interface by just using shift registers.Any help would be appreciated.Thanks.

author: Scrts
author_rank: Frequent Contributor
timestamp: June 06, 2016, 08:24:05 pm
content: For 5Msps you can easily use single-ended IO. On the other hand, you can accommodate two LVDS pairs: one for transmitting (look for LVDS TX) and one for receiving (LVDS RX). Most of the LVDS pairs are capable of receiving.You need to provide LVDS levels and exact MAX10 part number for more information.
arduino uno pin issue  - Page 1
Forum section: electronics / general

author: justarider
author_rank: Newbie
timestamp: June 06, 2016, 01:36:40 am
content: hello, new here.working on a project.testing it as i go, so I'm just starting the code.I have 2 LED's to test my outputs. when the signal is low they shut off like they are supposed to, but when they're off, they pulse about once a second, very dim hard to see, but still a problem. I tried it on multiple pins and it still does it.do these need a pulldown resister? any suggestions?here is my sketch so far, again I'm just starting it so it might not make sense cause its not done#define echoPin 8 // Echo Pin#define trigPin 9 // Trigger Pin#define M1F 7#define M1R 11#define M2F 12#define M2R 10int maximumRange = 200; // Maximum range neededint minimumRange = 0; // Minimum range neededlong duration, distance; // Duration used to calculate distancevoid setup() {Serial.begin (9600);pinMode(trigPin, OUTPUT);pinMode(echoPin, INPUT);pinMode(M1F,OUTPUT);pinMode(M1R,OUTPUT);pinMode(M2F,OUTPUT);pinMode(M2R,OUTPUT);}void loop() {/* The following trigPin/echoPin cycle is used to determine thedistance of the nearest object by bouncing soundwaves off of it. */digitalWrite(trigPin, LOW);delayMicroseconds(2);digitalWrite(trigPin, HIGH);delayMicroseconds(10);digitalWrite(trigPin, LOW);duration = pulseIn(echoPin, HIGH);/*motor code*/digitalWrite(M1F, HIGH);digitalWrite(M2F,HIGH);if (distance < 50 ){digitalWrite(M1F,LOW);digitalWrite(M2F,LOW);delay(1000);}//Calculate the distance (in cm) based on the speed of sound.distance = duration/58.2;if (distance >= maximumRange || distance <= minimumRange){/* Send a negative number to computer and Turn LED ONto indicate "out of range" */Serial.println("-1");}else {/* Send the distance to the computer using Serial protocol, andturn LED OFF to indicate successful reading. */Serial.println(distance);}//Delay 50ms before next reading.delay(50);}

author: botcrusher
author_rank: Regular Contributor
timestamp: June 06, 2016, 02:24:44 am
content: Quote from: justarider on June 06, 2016, 01:36:40 amHere, the problem is that you turn the output on before evaluating the distance. Check the distance first, then output it if you need to.

author: justarider
author_rank: Newbie
timestamp: June 06, 2016, 01:32:51 pm
content: Oh duh lol THANK YOU! 😊
DDR input clock on Cyclone IV E - Page 1
Forum section: electronics / general

author: Boscoe
author_rank: Frequent Contributor
timestamp: June 11, 2016, 06:33:45 pm
content: I have a DDR input clock from an image sensor going into my FPGA. Do the cyclone 4 E series have the hardware or IP to deal with DDR inputs? I can't find a lot of information that suggests this so I was thinking I could create a clock based on the DDR clock and double the frequency then get it in phase with the data - or will this drift too much over time?Thanks

author: uncle_bob
author_rank: Unknown
timestamp: June 11, 2016, 07:34:51 pm
content: Quote from: Boscoe on June 11, 2016, 06:33:45 pmHiIf you dig into the timing analysis training for Quartus II, they have a lot of information on properly setting up (and constraining) a double rate clock. It's mostly in the "advanced" section of the training. The constraint and design process will work with a Cyclone IV. The examples are Cyclone V oriented.Bob

author: Scrts
author_rank: Frequent Contributor
timestamp: June 13, 2016, 03:16:50 pm
content: For input clock you don't need any primitive. Clock itself is not "DDR". If you have DDR data inputs, then you need ALTDDIO_IN:https://www.altera.com/en_US/pdfs/literature/ug/ug_altddio.pdf
Trigger an FPGA on rising edge of high frequncy signal - Page 1
Forum section: electronics / general

author: msngupta
author_rank: Contributor
timestamp: June 01, 2016, 01:05:11 pm
content: Hi,I have an FPGA evaluation board with Xilinx Spartan-6 XC6SLX9 and a 100MHz oscillator for clock. I need to trigger my FPGA with one of the rising egdes of a a square wave which is around 250MHz. Can I directly input the signal (since the signal has higher frequency than the clock itself) and use it as a trigger or do I need to use some frequency division before sending it to the FPGA?The datasheet (http://www.xilinx.com/support/documentation/data_sheets/ds162.pdf) lists many frequencies, not sure which parameter I need to look for.Any clue regarding this will be really helpful.I don't have the 250 MHz signal currently otherwise I could have directly checked if it works.Thanks,Sainath.

author: nctnico
author_rank: Super Contributor
timestamp: June 01, 2016, 01:17:09 pm
content: You can use an internal PLL to make a higher frequency signal and use that to sample the incoming signal. Maybe you can even use the IOSERDES block to sample at several hundred MHz.

author: Marco
author_rank: Super Contributor
timestamp: June 01, 2016, 02:19:44 pm
content: What is supposed to happen if you get 2 triggers within 1 clock cycle?

author: exmadscientist
author_rank: Frequent Contributor
timestamp: June 01, 2016, 04:33:08 pm
content: The relevant tables in DS162 are 29, 35, 37, and to a lesser extent 40.I do not think you will have much trouble getting a 250MHz signal into a Spartan-6. As others have said, the issue will be what you do with it and the timing relationships between your this signal and your 100MHz clock. What is the edge frequency of the fast signal? What's supposed to happen when two edges occur in quick succession, or is this not possible?Two external solutions are a '123 retriggerable monostable, which can create a longer pulse on edge detection, or a '74 configured as a RS flip-flop (set on pulse, reset by FPGA on processing). Both have their advantages and disadvantages.It really all boils down to what you need to do with the fast pulse signal.

author: John_ITIC
author_rank: Frequent Contributor
timestamp: June 01, 2016, 07:51:34 pm
content: If you just want to find out whether the external signal has gone high then it is easy. Just put two synchronizer registers on an input pin and clock it into your 100 MHz clock domain.https://www.google.com/?gws_rd=ssl#q=fpga+synchronizer

author: msngupta
author_rank: Contributor
timestamp: June 03, 2016, 02:54:11 pm
content: The signal I was talking about is a 250 MHz clock signal provided by some other IC in the circuit. I want my FPGA to change the state of one of its output on rising edge of this signal (please check the image attached).

author: nctnico
author_rank: Super Contributor
timestamp: June 03, 2016, 03:28:43 pm
content: In that case you'll need to clock (part) of the FPGA from that 250MHz clock and possibly also some logic inside the FPGA. Xilinx has several application notes on how to make sure the internal clock has a defined phase relation with the external clock.
TCL console on Quartus II Web edition or Prime - Page 1
Forum section: electronics / general

author: gauravmp
author_rank: Regular Contributor
timestamp: May 31, 2016, 03:38:24 pm
content: Hi,I'm using the Quartus Prime 16.0 lite from Altera and the TCL console doesn't show up for the free version. Does anyone know if it showed up for earlier lite versions and if anyone knows how to bring it up for the 16.0 without purchasing it. I'm a student and spending $3k is just unreasonable for me.Thanks.

author: AndyC_772
author_rank: Super Contributor
timestamp: May 31, 2016, 03:48:08 pm
content: I'm currently using 13.1.0, and I can open Tools > System Console OK.Is that what you're looking for?

author: gauravmp
author_rank: Regular Contributor
timestamp: June 01, 2016, 02:38:33 am
content: Thanks man! that was what I was looking for. I just downloaded 15.0 and the TCL console works just fine!
5v tolerant FPGA Development Board  - Page 1
Forum section: electronics / general

author: ROBOT
author_rank: Contributor
timestamp: May 30, 2016, 07:55:28 pm
content: I am looking for a cheap devboard that has 5v tolerant Input (input and output is preferred) that can basically act as a DAQ for a few simultaneous differential rs422 signals ( I think I can interface this directly to lvds?) then send the data with like a time stamp to a PC for analysis of the signals. (similar how a scope exports to CSV files)It needs to store about 2-3 seconds of data for all the signals.The signals digital signals would be:3 differential signals at upto 7Mhz3 differential signals at upto 5MhzAbout 10 signals at upto 500Khz(faster would be nice)An on board 2 or 3 channel differential 10-14 bit ADC would also be nice.USB interface would be nice.( How fast could I get the raw data out via USB? Do they support usb 3.0 transfer?)On board 3v3 and 5v output would also be nice.

author: Scrts
author_rank: Frequent Contributor
timestamp: May 31, 2016, 07:33:11 pm
content: Why don't you want to do it properly using RS422 transceivers?
chip vs PCB antenna with SAMR21 - Page 1
Forum section: electronics / general

author: gussabina
author_rank: Newbie
timestamp: May 31, 2016, 03:31:17 pm
content: Hello All:I have a design based on RAMEN 1.3 reference design (SAMR21), which uses PCB antenna. I need to re-spin the design and I'm wondering if it would be better to use a chip antenna instead. The component cost is not much and it would save space in the board, but I'm not sure if it would improve the range or not, which would be great...I would appreciate any comment or help on this.Regards;Gus

author: ataradov
author_rank: Super Contributor
timestamp: May 31, 2016, 05:20:42 pm
content: Good chip antenna will have similar performance to that PCB antenna. The only benefit here is board area. And if you don't have the tools and equipment to characterize and tune the antenna, then you will likely get even worse results.Chip antennas may have somewhat better radiation pattern, but that depends on a type.
Accidentally overridden vendor/product IDs on ftdi chip - Page 1
Forum section: electronics / general

author: wbooth.clearscene
author_rank: Contributor
timestamp: May 30, 2016, 07:13:29 am
content: TL/DR:I've done something rather silly and have bricked the USB programming ability of my new development board, by inadvertantly overwriting the vendor/product IDs of the on-board ftdi chip. Can anyone point me at something that will help me reset the vendor/product IDs?I have a Numato Waxwing Spartan 6 FPGA development board. I was trying to work out how to flash the board using xc3sprog, but was unable to get the JTAG tool-chain. Something leadhttps://docs.numato.com/doc/waxwing-spartan-6-fpga-development-board/#installing-on-windows-6me to try and installing the FTDI libraries from their website. In this download was some utilities to read/write to the EEPROM. Without reading the code for the write utility, I ran it and it overwrite a bunch of settings. Most notably the product id. From 0403:6010 -> 0403:6001.Snip of the code:Code:FT_STATUS ftStatus;FT_HANDLE ftHandle0;int iport;FT_PROGRAM_DATA Data;if(argc > 1) {sscanf(argv, "%d", &iport);}else {iport = 0;}printf("opening port %d\n", iport);FT_SetVIDPID(0x0403, 0x6011); // Odly this reconfigures a 4030:6010 chip ????ftStatus = FT_Open(iport, &ftHandle0);if(ftStatus != FT_OK) {printf("FT_Open(%d) failed\n", iport);return 1;}Data.Signature1 = 0x00000000;Data.Signature2 = 0xffffffff;Data.VendorId = 0x0403;Data.ProductId = 0x6001;Data.Manufacturer = "FTDI";Data.ManufacturerId = "FT";Data.Description = "USB <-> Serial";Data.SerialNumber = "FT000001";..........If I try and change the code to update these values back, and open with the device Id using the 'incorrect ids', I just get a "cannot open device" error. Which is where I'm stuck. I can't see why I can't open the device when specifying the IDs as the OS sees them.* Any ideas on how to change the IDs back?* Does anyone have the full output of lsusb -v -d 0304:0601* Anyone have experience of programming a Waxwing using xc3sprog (low priority)btw. The board has a JTAG programmer, I'm not sure if I can use that to reprogram the FTDI chip, I've never used a JTAG programmer directly. (just putting it out there incase it help come to a solution)Many many thanks.

author: rs20
author_rank: Super Contributor
timestamp: May 30, 2016, 07:15:24 am
content: After recent controversies, there's plenty of instructions on the internet on how to un-brick FTDI devices that have been deliberately bricked by FTDI's window drivers (by zeroing out the VID and PID). Have you tried following those instructions?

author: Jeroen3
author_rank: Super Contributor
timestamp: May 30, 2016, 08:50:23 am
content: http://www.ftdichip.com/Support/Utilities.htm#FT_INFThen use FT_PROG I guess.

author: wbooth.clearscene
author_rank: Contributor
timestamp: May 30, 2016, 04:47:37 pm
content: Cheers. I've managed to re-programming the chip back to the correct vendor: product IDs.Thanks for the pointers.
Irevium HDMI FMC Card - Page 1
Forum section: electronics / general

author: electosleepy
author_rank: Contributor
timestamp: May 29, 2016, 01:43:08 pm
content: Hi, after looking at the functional block diagram contained in figure 4 of the following link, I have noticed that there is a clock buffer on the HDMI sink. Will the clock buffer introduce significant delays/is this something to consider when length matching the TMDS data pairs?http://solutions.inrevium.com/products/pdf/TB_FMCH_HDMI4K_HWUserManual_2.03e.pdf

author: Scrts
author_rank: Frequent Contributor
timestamp: May 31, 2016, 07:34:44 pm
content: You will have to configure to run in synchronous mode to input clock and there should be no issues at all. It seems like it's doing clock conditioning.
STM attracts Linux users - Page 1
Forum section: electronics / general

author: Karel
author_rank: Super Contributor
timestamp: May 28, 2016, 11:35:16 am
content: The STM32CubeMX configurator and initialization tool and the System Workbench® for STM32, an Integrated Development Environment (IDE) created by Ac6 Tools, supported by the openSTM32.org community, and available atwww.st.com/sw4stm32, are now both available to run on Linux OS.http://www.st.com/content/st_com/en/about/media-center/press-item.html/p3781.htmlLike Microchip, Altera, Xilinx, now also STM has seen the "light".The only stubborn one was Atmel and we know how they ended...

author: dannyf
author_rank: Super Contributor
timestamp: May 28, 2016, 01:50:02 pm
content: Quotethat may just be the light to dump Microchip and STM.

author: janoc
author_rank: Super Contributor
timestamp: May 28, 2016, 01:58:35 pm
content: Well, the SW4STM32 is just repackaged Eclipse and GCC with a proprietary plugin.It is good that they made it work in Linux too, but hardly something I would go gaga over.

author: Palmitoxico
author_rank: Regular Contributor
timestamp: May 29, 2016, 01:31:45 pm
content: Well I could run the STM32CubeMX on linux even before the official support as it is a pure java application.I don't use the STM32CubeMX for generating code (it depends on the HAL library), but I find it very useful for organizing how and what peripherals you will use.Anyway, I appreciate this move from STM.
Strange UART issues with STM32F446 - Page 1
Forum section: electronics / general

author: Boscoe
author_rank: Frequent Contributor
timestamp: May 28, 2016, 10:06:10 am
content: This is a strange one for me - never had any issues with this setup before.I've got an STM32F446 on a board attached directly to an FT230X com port. I loaded some previously tested code to loop back the UART data one byte at a time however it didn't work. I can program via the bootloader 100% successfully so I know the hardware is okay. The problem is i only get data back on the com port console when the micro baud is set at 9600 and the console to 115200 and then only some characters are correct!I was thinking this could be a hardware issue but it isn't, I have physical pull ups and I've tried taking them out and just using the internal pull ups - nothing. Looking at the signals on the scope they look fine with the same frequency oddly. 'y' works and sends back the correct 'y' however most other characters return a white block the signal on the scope isn't correct either.I think this could be a internal clock issue but I've gone over it and can't find any errors. I've used STM32CubeMX to generate the base code.Any suggestions would be appreciated.

author: newbrain
author_rank: Super Contributor
timestamp: May 28, 2016, 10:29:32 am
content: First of all, check the USB-UART adapter in loop back, just to better isolate the problem.I don't know if there are fake FT230 around, might that be the case (knowing past history of "picky" FTDI drivers)?There should be no need for pull-ups, if I read correctly theFT230 blurb(just regular inputs and outputs), but I don't think they cause any harm (at slow baud rates, at least).Are you using interrupts, DMA or plain blocking calls?Are you are using the HAL, or just the init code from CubeMX?Is the MCU correctly clocked? Try toggling a pin at, say, 1kHz (using a timer or Systick) and check it on the scope for the correct frequency.Is the MCU receiving correctly? You could try toggling a LED/pin when a specific character sequence is received.Is the MCU sending correctly? You could try repeatedly sending a string to the PC.Without seeing the code (and maybe the HW) there's not much more that can be said.

author: Boscoe
author_rank: Frequent Contributor
timestamp: May 28, 2016, 04:05:45 pm
content: Hi thanks for your reply!I've worked out what it is to the extent of internal clocks. The MCU was transmitting at nearly 3MHz for 115200 baud which was why it wasn't being received and 9600 baud kind of worked. For a bodge in the mean time I've set the MCU and to 5236 which corresponds to an actual baud of 115200. At the moment I just need to get some quick results out of this to get something else working - I may look into it more if I have time later. I did have a quick look at the clock setup and it looks correct.
Microchip acquired Atmel - Page 1
Forum section: electronics / general

author: Michael Lloyd
author_rank: Contributor
timestamp: May 25, 2016, 01:02:56 am
content: Microchip acquired Atmel...http://www.microchip.com/docs/default-source/announcements-documents/atmel-customer-letter-april-2016.pdf?utm_campaign=May_2016_eNewsletter_A&utm_medium=email&utm_source=EloquaSo what's next? PICMega? ATPIC? Hopefully Microchip doesn't screw Atmel up...

author: Wilksey
author_rank: Super Contributor
timestamp: May 25, 2016, 01:41:43 am
content: Old news!https://www.eevblog.com/forum/microcontrollers/atmel-is-now-microchip/

author: Michael Lloyd
author_rank: Contributor
timestamp: May 25, 2016, 01:50:33 am
content: Figures.. I may as well live on Mars no quicker than I get info

author: Wilksey
author_rank: Super Contributor
timestamp: May 25, 2016, 09:21:09 am
content: Haha, it's not easy to keep up with the industry these days, most announcements are on here, if you check the "unread posts since last visit" link at the top, daily, it should keep you well learned on the industrial takeovers!
How to use Serial LVDS to interface ADC with FPGA - Page 1
Forum section: electronics / general

author: gauravmp
author_rank: Regular Contributor
timestamp: May 24, 2016, 03:54:06 am
content: Hi,I'm working on sampling at 5MSPS from an ADC - LTC2311 which outputs data by serial LVDS and I want to use an FPGA for this. Could someone give me a start on this? I'm looking for any kind of documentation that could help me with this.....I'd appreciate any help.Thanks.

author: Boscoe
author_rank: Frequent Contributor
timestamp: May 24, 2016, 12:05:16 pm
content: Some vague indication of FPGA family would help

author: Rasz
author_rank: Super Contributor
timestamp: May 24, 2016, 07:01:24 pm
content: LTC2311 datasheet has all you need
ST-Link v2-1: uart over USB - Page 1
Forum section: electronics / general

author: dannyf
author_rank: Super Contributor
timestamp: May 01, 2016, 07:14:06 pm
content: Rainy day out there so I decided to write a post about establishing uart connections over USB for STM32 / ST-Link v2-1:https://dannyelectronics.wordpress.com/2016/05/01/uart-debugging-over-st-link-v2-1/The experiment was done over a STM32L152RE Nucleo board - for its onboard ST-Link v2-1 debugger. With a piece of virtual comm port utility from ST, we wrote a piece of code so that the STM32 chip can communicate with the PC -> this example is only one directional but the code is set-up for duplex communications.This approach can be taken to other applications, like data logging, or a low-speed J-Scope clone at no extra costs.Enjoy.

author: dannyf
author_rank: Super Contributor
timestamp: May 20, 2016, 10:41:48 am
content: A great execution, along the same line, is Segger's SystemView:https://www.segger.com/systemview.htmlIt is built on RTT (itself a great debugging and communications tool). UART over JLink/ST-Link is a crude clone of RTT.If you ever need a reason to get a JLink, SystemView is one,

author: dannyf
author_rank: Super Contributor
timestamp: May 20, 2016, 10:45:45 am
content: Segger has been quite aggressive lately to expand its offerings. Before V8, they kind of sit on their effective "monopoly" until the clones knocked them out.I think the clones really got Segger going in a more sustainable direction: constant innovation so your customers have a reason to buy your products rather than the clones.Good for Segger and their customers.

author: dannyf
author_rank: Super Contributor
timestamp: May 22, 2016, 09:36:58 pm
content: Another UART over USB example, this time implemented on TI's LM4F120 launchpad:https://dannyelectronics.wordpress.com/2016/05/22/virtual-comm-port-on-lm4f120-launchpad/
STM32F3,F4,F7 +5V tolerant GPIO pins? - Page 1
Forum section: electronics / general

author: MT
author_rank: Super Contributor
timestamp: May 18, 2016, 03:16:20 pm
content: What is the reason STM32F756/746, F446 and some F303 series all the GPIO pins are 5V tolerant even the ADC pins,while some devices in same family (F3/F4) have very few +5V tolerant pins? Process/design dependencies?

author: macgeorge
author_rank: Newbie
timestamp: May 18, 2016, 05:40:33 pm
content: Though I do not the reason older MCUs have a smaller number of 5V tolerant GPIO pins, I have observed that the recent ones in several families (i.e. L1, F4 and F7) all have 5V tolerant pins except for the pins where the DAC peripheral is connected.

author: Jeroen3
author_rank: Super Contributor
timestamp: May 18, 2016, 07:13:30 pm
content: There is enough input impedance to not smoke out the clamping diodes.As soon as you put the GPIO pad in output or ADC mode, with 5V being applied, they're smoked.Note that oscillator and clock-out or Vbat domain pins are often excluded from being FT.

author: MT
author_rank: Super Contributor
timestamp: May 19, 2016, 01:16:16 am
content: Quote from: Jeroen3 on May 18, 2016, 07:13:30 pmYou didn't read my question, but if you need to apply raw +5V directly to a GPIO pin, use a current limiting R at least.Anyho back to initial question, ADC (post clamp diodes) switch Rds seams to be 6kohm max according to data sheet,this does not answer why some devices have GPIO pin mapped on ADC that are FT while other devices with the same ADC is not.BOOT0 pin are +9V tolerant, a surprise.But i wonder if it's just the regular ST sloppy documentation work again...?!

author: Jeroen3
author_rank: Super Contributor
timestamp: May 20, 2016, 08:33:59 pm
content: The ADC and the GPIO both go to a multiplexer. It is before this multiplexer the actual FT and ESD protection is located. Directly after the bondwire.If somehow there is no room for an FT clamping circuit. Then there is no room, analog pins are less likely to be used FT. So you'll skip the FT feature.
getting started on msp432/ccs - Page 1
Forum section: electronics / general

author: dannyf
author_rank: Super Contributor
timestamp: May 20, 2016, 06:12:29 pm
content: I finally got some time to play with my msp432 launchpad + CCS6. Took me a while to get it going: I guess some issues with running CCS6 on Windows XP machines.But once it got going, pretty good.https://dannyelectronics.wordpress.com/2016/05/20/getting-started-on-msp432ccs/side note: running floating point math on that chip is every bit as fast as running integer math.
bitcloud 3.3 compile error - Page 1
Forum section: electronics / general

author: Amir-Afshar
author_rank: Newbie
timestamp: May 16, 2016, 08:21:30 am
content: Hi friendsI downloaded BitCloud3.3 and atmel studio7.0 from the Atmel.com to finish my project, and some problems has puzzled me several days. I want to know if someone meet the same problem and solved.1. The HADevcie application(without any change) can not build. i always get about 156 errors.Also i test other clusters, Other applications like ZLL, WSN,... downloaded from the Atmel.com have the same behavior, and the example projects download with Atmel Studio 7 are complied ok.i tried to chagne the path of SDK, removing any space on path, decreasing the path length and so but nothing changed.could you please help me to start by bitcloud ?

author: sandeep.b2
author_rank: Contributor
timestamp: May 16, 2016, 08:52:44 am
content: hi,have u added makefile path in project properties. See image attached.

author: Amir-Afshar
author_rank: Newbie
timestamp: May 16, 2016, 09:14:48 am
content: hiyes i attached it.when i remove the check box of "use external make file" the errors decrease to 10, but when it checked the errors increase to 156.

author: ataradov
author_rank: Super Contributor
timestamp: May 16, 2016, 04:06:50 pm
content: Please post full build output log as a text file, not screenshot.You have to use external Makefile.

author: Amir-Afshar
author_rank: Newbie
timestamp: May 17, 2016, 06:20:09 am
content: Dear Friendsi decide to reinstall the windows.i refreshed the windows.1) i don't know where i must install the Atmel Studio?is the C:\Program Files (x86)\Atmel\Studio\ ok?or i must install it on C:\Atmel ??2) in the bitcloud 3.3 i read that the recommended SDK is Atmel Studio 6.2, the question is that is there any trouble with Atmel Studio 7?i must install which one? 7.0 or 6.2

author: ataradov
author_rank: Super Contributor
timestamp: May 17, 2016, 06:22:31 am
content: Quote from: Amir-Afshar on May 17, 2016, 06:20:09 amDefault location (Program Files) will be fine.Quote from: Amir-Afshar on May 17, 2016, 06:20:09 amI would use AS 6.2 for BitCloud.AS7 and AS 6.2 coexist without any problems, so you can install both.

author: Amir-Afshar
author_rank: Newbie
timestamp: May 17, 2016, 08:58:27 am
content: Dear Friendsi finally find the way to solve the trouble.the bitcloud 3.3 must be compiled with AS 6.2, i have not any error with it.when i build the solution with AS 7.0 i get about 165 errors.thanks for your support

author: ataradov
author_rank: Super Contributor
timestamp: May 17, 2016, 04:18:12 pm
content: It is possible that something got broken with studio updates. I have Atmel Studio 7 (Version: 7.0.634) and sample project compile just fine.It looks like in your case it decided that all object files are already build and all is left to do is linking. I have no idea why this may happen.

author: sandeep.b2
author_rank: Contributor
timestamp: May 19, 2016, 06:53:57 pm
content: i also had same problem. I have windows 10. So i tried it on windows 7 and it works fine.
Made an fpga module for school, want it to see the light of day. - Page 1
Forum section: electronics / general

author: cirthix
author_rank: Contributor
timestamp: March 18, 2016, 02:26:19 pm
content: It is pretty awesome, basically a low/midrange zynq with all of the peripherals on one board. It was designed with a mix of personal time, for-credit course time, and paid research lab time, and I have permission to make+sell the modules.Now the bummer is that my old research lab (I've since left) does not want to continue down the path of development that we started with, so I've got this design but nothing to do with it. Making a prototype to test version2 would be out-of-pocket money and while I'd like to have the module for personal use, I can't justify the cost for hobby use.Anyone have ideas on what to do with the design? I've put a ton of time into it and want to see it get good use.To see the board+specs, go to zisworks.com, then click zis7020.

author: legacy
author_rank: Super Contributor
timestamp: March 19, 2016, 11:42:45 pm
content: bad story, sorry to hear that

author: KE5FX
author_rank: Super Contributor
timestamp: March 20, 2016, 12:25:16 am
content: That does look nice. What sort of backplane was it originally meant to plug into?

author: cirthix
author_rank: Contributor
timestamp: March 22, 2016, 08:22:40 pm
content: Quote from: KE5FX on March 20, 2016, 12:25:16 amIt was made originally for a reactive visual system. The backplane connector breaks out 200 fpga i/o (four banks, 100% of the fpga-side of the I/Os on the zynq7020), two reference voltage inputs, and 7-16v dc power input. All of the onboard peripherals are on the processor-side I/O.Connector used:http://www.digikey.com/product-detail/en/jae-electronics/MM70-314-310B1-1-R300/670-2431-1-ND/2183605

author: cirthix
author_rank: Contributor
timestamp: May 18, 2016, 03:58:01 pm
content: Here is a video describing the board.Updated picture:https://picasaweb.google.com/112908198380555779242/6285815440158536033?authkey=Gv1sRgCMjM0rqTuaXACw#6285821804044758050
Guidance in learning fpga programming and some ideas - Page 1
Forum section: electronics / general

author: ishmeet1995
author_rank: Newbie
timestamp: May 17, 2016, 03:56:26 am
content: As title says i am trying to learn how to use FPGA.Currently i am a college student and do some projects in embedded systems(small projects on atmega chips )Currently I am learning verilog and i have a mimas v2 fpga kit which has spartan 6(its fairly cheap when compared to other kits)I need some guidance how should i proceed and some referral links or books would be appreciatedSent from my ONE E1003 using Tapatalk

author: rstofer
author_rank: Super Contributor
timestamp: May 17, 2016, 03:36:04 pm
content: That looks like a pretty nice board and the price is attractive.I would start with the tutorials at the manufacturer's web site:http://numato.com/mimas-v2-spartan-6-fpga-development-board-with-ddr-sdram/You need to download and install ISE WebPack 14.7 (the last revision there will ever be since Xilinx has moved on to Vivado) and start working through the examples at the site.The tutorial is excellent, it provides a discussion of every single step required to get a design implemented on the board.There are tutorials all over the Internet, pick some and go! You can also subscribe to OpenCores.org where you will find many projects covering a wide range of topics.Not surprisingly, sequential circuits will make up the bulk of your work. Finite State Machines are easy to create, a lot easier than back in the day where state tables were analyzed endlessly trying to eliminate a flop or two.There are some Verilog and VHDL books and I have several (still packed as I just moved). I don't know that I would recommend spending the money just to read about implementing a MUX. OTOH, you can use the View RTL Schematic view to see what was synthesized. It is probably useful to do that with some small circuits just to see how various designs look when implemented.Start with the tutorial. It gets as far as implementing a CPU with DDR RAM. Unfortunately, it requires a registered copy of the Xilinx EDK and a locked version costs nearly $500. When you get this far, consider buying an Artix 7 and using Vivado because you can license the required IP for free. Read the description carefully, particularly the bit about licensing Vivado:http://store.digilentinc.com/arty-board-artix-7-fpga-development-board-for-makers-and-hobbyists/There is a ton of BlockRAM inside these FPGAs. You may be able to design smaller softcores that don't require an interface to DDR or you might find a suitable driver at OpenCores.Have fun!ETA: The EDK kit is not required for the early tutorials, just the CPU and DDR projects.
ISO7816 SCR 243 SCM mCard - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: May 24, 2016, 03:40:26 pm
content: so, I'd like to put a PCMCIA SCR adapter in my laptop in order to read ISO 7816 cards for a few interesting apps. I just wonder if there is a writer/programmer around, with documentation, since I have to code the whole application in C under linux. As far as I understood, those PCMCIA adapter are handles like a serial port with a protocol over the uart.tips? tricks? thanks

author: legacy
author_rank: Super Contributor
timestamp: May 24, 2016, 09:15:06 pm
content: aninterestinglecture from Microchip.
STM32 Nucleo-144  - Page 1
Forum section: electronics / general

author: MT
author_rank: Super Contributor
timestamp: May 16, 2016, 11:40:40 pm
content: Yet another format addition , Disco style combined with Nucleo 64= Nucleo 144! Unfortunately price went up x2!

author: asgard20032
author_rank: Regular Contributor
timestamp: May 17, 2016, 12:50:02 am
content: This is not new, considering it has been available since few month. But thanks to you, I just realized that those new 144 board got more silk screen to identify peripheral and also got usb and Ethernet. (depending on the model). On those nucleo 44, even if the micro-controller had usb, there was no connector. Now I just need to decide myself between the F2, F4 or F7 (I want one with ethernet).

author: chickenHeadKnob
author_rank: Super Contributor
timestamp: May 17, 2016, 02:10:22 am
content: The best deal as in bang for buck is always the highest performing chip in that package, ie. for the 'R' package original nucleos the top of the line is the 'f446. For the 144 pin nucleos its' the f746 at around 23$ is not much more expensive than the bare chip in single quantity. I love these 144 'Z' package boards.

author: westfw
author_rank: Super Contributor
timestamp: May 17, 2016, 02:47:05 am
content: Less than $25 is still pretty good for a board with Ethernet. Close competitor to the TI TM4C1294 Launchpads.(Makes an Arduino Ethernet setup look very overpriced (which it is.))

author: asgard20032
author_rank: Regular Contributor
timestamp: May 17, 2016, 03:26:57 am
content: There is also the Freedom board with ethernet at around 48$ (CAD). So now Freescale, TI and STM32 got affordable board with ethernet. (Well, the Freedom board push a little bit the limit for the affordable mention, but it is still 50$ and less.) What other around 50$ and less board are there out there with advanced peripheral like ethernet? Does NXP has something to offer? (I know, Freescale is now part of NXP, but their LPC and kinetis are still two distinct mcu line sharing the same ARM core.)

author: richardman
author_rank: Frequent Contributor
timestamp: May 17, 2016, 08:20:13 am
content: How good is the ethernet library included in the ST CubeMX? Production quality or?
program/flash a bios chip '32M-BIT SERIAL FLASH MEMORY WITH DUAL AND QUAD SPI' - Page 1
Forum section: electronics / general

author: jipaionutcatalin
author_rank: Newbie
timestamp: May 16, 2016, 08:18:30 am
content: Hy all,I have this old laptop hp pro book 5320m,got it from a carboot sale for 3 quids,and it doesn't turn on.After some research on the web fund out that this laptop have a common fault:the bios chip.So I need to put a new chip with la latest version of bios.The problem is I can't find out a programmer for my 25Q32BVSIG-32M-BIT SERIAL FLASH MEMORY WITH DUAL AND QUAD SPI chip.Any ideas will be much appreciate.Thanks.

author: andersm
author_rank: Super Contributor
timestamp: May 16, 2016, 01:12:07 pm
content: Search for W25Q32BV. It's a common flash type, and should be supported by most programmers (eg.Flashromwith a Bus Pirate).

author: jipaionutcatalin
author_rank: Newbie
timestamp: May 17, 2016, 06:21:58 am
content: Thank you
Holtek HR46R48 - Page 1
Forum section: electronics / general

author: whale408
author_rank: Newbie
timestamp: May 08, 2016, 02:12:41 pm
content: Hello friends of the forum! I wonder if anyone knows the Holtek HT46R48 microcontroller and if there is any device that makes the reading of it. Thanks!

author: PA0PBZ
author_rank: Super Contributor
timestamp: May 08, 2016, 07:20:04 pm
content: This CPU has read protection, if you need the contents you have to go to guys like:http://www.break-ic.com/microcontroller_read/Holtek_decrypting_memory_dump_recover_encrypted_code.htm

author: Bruce Abbott
author_rank: Frequent Contributor
timestamp: May 10, 2016, 05:46:08 pm
content: Why do you want to read it?

author: SeanB
author_rank: Super Contributor
timestamp: May 10, 2016, 07:13:23 pm
content: He wants to copy a Keeloq remote transmitter........Hint, there is another way to do that, if it still works.

author: whale408
author_rank: Newbie
timestamp: May 16, 2016, 12:33:00 pm
content: This MCU is the last thing missing to test in a rework station, is a YaXun station (yes, these things give money in Brazil). I need that reading to try to rewrite other with problem. And thank you for the answers!
Programming H8S/2638 - Page 1
Forum section: electronics / general

author: EEVaditya
author_rank: Regular Contributor
timestamp: May 15, 2016, 05:31:12 am
content: I have a Elnec BEEPROG+ universal programmer and want to progam IC part no:64F2638F20V from H8S/2638 family by Renesas ,is it possible to do so,if yes then can anyone provide the circuit diagram or relevant documentation link.

author: andersm
author_rank: Super Contributor
timestamp: May 15, 2016, 07:00:00 am
content: Looking at thedevice support listfor the programmer would be a good first step. In this case, it looks like your partis supported.
Need source code for cyrillic 5*7 font to build a character generator - Page 1
Forum section: electronics / general

author: AndersJ
author_rank: Frequent Contributor
timestamp: May 13, 2016, 05:53:44 pm
content: I need the bitmap for a cyrillic 5x7 font according to ISO 8859-5.Preferably in C, PLM or other language source code I can convert and compile.I can do it myself if needed,but it's a lot of work, and I hope it is available somewhere.Any ideas anyone?Anders J

author: MarkF
author_rank: Super Contributor
timestamp: May 13, 2016, 08:03:40 pm
content: I don't have a cyrillic font to give you. But here is a start with just the first 128 characters based on a Verdana font. You can expand it for the cyrillic characters.And here is some source code to draw it:Code:#include "OLEDfont.h"void drawTxt(int x0, int y0, bp_t color, char *str){uint8_t x,y,cc,ptr;ptr=0;while (str != 0) {for (x=0;x<5&&str>32;x++) {cc=font[(str-32)*5+x];for (y=0;y<8;y++) {if (cc&1) {oledPixel(x0+x,y0+y,color);}cc >>= 1;}}ptr++;x0+=6;if (x0>128-6) {x0=0; y0+=9;}}}

author: AndyC_772
author_rank: Super Contributor
timestamp: May 13, 2016, 08:31:38 pm
content: http://www.eran.io/the-dot-factory-an-lcd-font-and-image-generator/

author: mav_iqdirect
author_rank: Contributor
timestamp: May 14, 2016, 06:02:31 pm
content: You may try u8glib project on the net. It has converter for any type of font and charset.

author: AndersJ
author_rank: Frequent Contributor
timestamp: May 14, 2016, 08:18:24 pm
content: Thanks MarkF!OLEDfont.h has the exact bitmap format I need.Now I just need to fill in the cyrillic dots, but I do not look forward to all the work.I wish I could find the cyrillic version of OLEDfont.h.

author: MarkF
author_rank: Super Contributor
timestamp: May 14, 2016, 08:52:33 pm
content: Quote from: AndersJ on May 14, 2016, 08:18:24 pmI originally created the OLEDfont.h header by creating a grid for each character with Photoshop and saving a bmp file. Then it's easy to read the bmp file to process each character and format the data for the OLEDfont.h header. A quick Google search will get you the format for reading a bmp file.

author: Kalvin
author_rank: Super Contributor
timestamp: May 14, 2016, 09:43:12 pm
content: Have you tried searching the internetUsing the following magic keywords might help you to find what you are looking for: unicode fixed font 5x7The font files are pretty easy to parse and generate the source code for the character bit pattern lookup table.
Vivado IP Catalog - Page 1
Forum section: electronics / general

author: electosleepy
author_rank: Contributor
timestamp: May 14, 2016, 10:43:53 am
content: I'm using the Vivado WebPack and in the Vivado IP catalog what is difference between a core and an interface? I'm also wondering if the license is included is it free to use? Are there any limitations?
Arduino ona SAM D20G - Page 1
Forum section: electronics / general

author: 97hilfel
author_rank: Regular Contributor
timestamp: May 06, 2016, 12:12:55 pm
content: Hello everybody,since Arduino or Genuino as you have to call them outside the US,has released the Zero with a SAM D21E (32 pin Variant of the D21) on board Im wondering if its also possible to programm my SAM D20G on a Atmel XPLAINED PRO SAMD20 board with the Arduino IDE.Does somebody know how to burn the boodloader or how to upload the code to my board?Felix

author: Signal32
author_rank: Frequent Contributor
timestamp: May 06, 2016, 06:55:19 pm
content: The chips seems very similar & based on the same core.You'll need an Atmel-ICE.First thing to try is to just hook up the Atmel-ICE to the SWD pins on the SAMD20 board.Now use the Arduino IDE to flash the bootloader.If the IDE complains that the chip ID is different then you'll have to use Atmel's tools to flash the bootloader.If you can't figure out the bootloader biary, read it from a Zero using the ICE via SWD.After that use the USB to flash sketches.

author: 97hilfel
author_rank: Regular Contributor
timestamp: May 06, 2016, 08:33:46 pm
content: The point is, the D20 on the D20 XPLAINED PRO is bound to the onboard Atmel EDBG programmer and so I dont know where to attatch the ICE... althou I have an Atmel ICE. I will try it as soon as possible.

author: Signal32
author_rank: Frequent Contributor
timestamp: May 06, 2016, 09:21:59 pm
content: http://www.atmel.com/webdoc/samd20xplainedpro/ch04s03s04.htmlQuoteUsing this you can detach the EDBG from the SWD and hook your ICE to the chip. If the pins aren't broken out you'll have to do some soldering though.

author: 97hilfel
author_rank: Regular Contributor
timestamp: May 06, 2016, 09:29:12 pm
content: Well so I will try this out tomorrow... my only fear is that I could have problems because Arduino is using a D21E and I am using a D20G (the letter gives the pincount)

author: westfw
author_rank: Super Contributor
timestamp: May 09, 2016, 06:51:16 am
content: You should be able to flash the bootloader using the EDBG chip instead of a real ICE. If there IS a bootloader. The "Zero" has an mEDBG chip - doesn't the arduino IDE end up using that for programming the board through the "debug" port? (using openocd?) (I guess it would use a bootloader on the native USB port.)It won't "just work." At the minimum you'll have to implement (or find) a "board" definition that will set the compiler flags for the D20 instead of the D21, and the needed changes to the upload commands to look for the right chip and programmer. It shouldn't be "hard", but it's probably pretty far from trivial if you haven't done it before. It's not a good sign that I don't see any pre-made packages or tutorials on how to do this :-(

author: 97hilfel
author_rank: Regular Contributor
timestamp: May 14, 2016, 10:22:50 am
content: Quote from: westfw on May 09, 2016, 06:51:16 amWell, on the schematics of the Arduino Zero they hava the EDBG Degubber...Quote from: westfw on May 09, 2016, 06:51:16 amWell currently I don't have the time nor the knowledge to do that... So I guess we have to live without that for wa while.
Atmel Lightweight Mesh wireless stack. - Page 1
Forum section: electronics / general

author: sandeep.b2
author_rank: Contributor
timestamp: May 13, 2016, 09:04:59 am
content: hi ,I have three zigbit xplained pro extention board which is having Atmega256rfr2. I want to send data wirelessly so i choose Atmel's light weight protocol. In first board, i downloaded peer@peer application code came with LWM stack with with APP_ADDR = 0 and in another with APP_ADDR=1.All remaining things kept same.But when i powered up nothing is received at APP_ADDR=1 node. Do i need to connect some antenna to extention boards.Link for extention board:http://www.atmel.com/Images/Atmel-42186-ZigBit%20Extension-User-Guide.pdf

author: ataradov
author_rank: Super Contributor
timestamp: May 13, 2016, 04:52:02 pm
content: Please don't cross-post and create multiple topics for the same thing. Also use meaningful titles.
Memory simulation in lattice - Page 1
Forum section: electronics / general

author: Ola_Akerbladh
author_rank: Newbie
timestamp: May 24, 2016, 06:04:56 pm
content: Howdy!I'm trying to simulate a True DP ram memory generated in Lattice Diamond 3.6 with Active-HDL.I think I've done everything correct but the databus shows "????" in the simulation. My assumption is that I need some simulation model of the memory, but I migh have forgotten something else.I've attached a screenshot of the write and read sequence.I'm grateful for any type of help

author: andre_teprom
author_rank: Regular Contributor
timestamp: May 24, 2016, 07:34:26 pm
content: Can you add the HDL code here ?

author: Ola_Akerbladh
author_rank: Newbie
timestamp: May 25, 2016, 06:10:25 am
content: Sure,I was not allowed to attach the .vhd files so here is a zip file of the source and the test bench.Thank you for your time!

author: Ola_Akerbladh
author_rank: Newbie
timestamp: May 25, 2016, 06:12:38 am
content: Just to clarify, the memory is a- true dual port ram for a lattice Machxo2- 16 bit word length- 512 words- set in write through mode

author: Ola_Akerbladh
author_rank: Newbie
timestamp: May 25, 2016, 07:23:24 am
content: Fixed it!I was beeing stupid as usual!