hybridfree/eevblog-posts huggingface dataset:
STM323F4Discovery board - UART4 strange behaviour - errors in transmission - Page 1
Forum section: electronics / general

author: Dawid
author_rank: Contributor
timestamp: November 29, 2016, 11:22:09 pm
content: Hi,I'm going through some really strange behaviour of UART4 in STM43F407VGT. I use three UARTs: USART2 (in asynchronous mode), UART4 and UART5.My configuration for each:Code:USART2->BRR = 16000000/57600USART2->CR1 = USART_CR1_UE | USART_CR1_RXNEIE | USART_CR1_TE | USART_CR1_RE;UART4->BRR = 16000000/19200;UART4->CR1 = USART_CR1_UE | USART_CR1_RXNEIE | USART_CR1_TE | USART_CR1_RE;UART5->BRR = 16000000/57600;UART5->CR1 = USART_CR1_UE | USART_CR1_RXNEIE | USART_CR1_TE | USART_CR1_RE;Clock for peripherlas, NVIC, pin configuration are on and set up.USART2 and UART5 work completely fine (I use them at baud rate 57600). I can run them even at higher speeds. But UART4 works only up to 19200 and above that I get errors. Sometimes at 19200 or lower baud rate I also get errors (I cannot read the message at all or some characters are just slightly changed).I checked the soldering, cleaned the board, tried adapters with PL2303 and FT232 chips, different cable length. I have two boards, both work like that.Any solutions?

author: thm_w
author_rank: Super Contributor
timestamp: November 30, 2016, 01:03:27 am
content: Can you post your pin configuration? Is it the right port and what GPIO speed have you selected.What is your clock source?Did you check discovery schematic to see if anything else is connected to that Tx pin? I had some issues with UART when using a different discovery board but went away after moving to a prototype board.

author: Jeroen3
author_rank: Super Contributor
timestamp: November 30, 2016, 07:04:01 am
content: Misbehaving UART are 99% of the time caused by the clock that is setup wrong.What F4 has 160 Mhz on APB1 clock? The 407 for example only has 84 for timers only, and 42 for periphs.This also means you can overwrite the data registers.You also can't simply write numbers to BRR of 407. It has a fractional prescaler. I'm assuming here all F4's share UART IP's.USART_BRR:DIV_Mantissa[11:0]DIV_Fraction[3:0]

author: AndyC_772
author_rank: Super Contributor
timestamp: November 30, 2016, 07:26:44 am
content: What do you see on the wire when you scope it?Is the problem in the Tx or Rx direction?

author: Dawid
author_rank: Contributor
timestamp: November 30, 2016, 11:30:05 pm
content: Sorted. TX and RX were swapped...(I am surprised it works)Thank you for suggestions.
Free Modbus Library for Small Microcontrollers: Petit Modbus - Page 1
Forum section: electronics / general

author: FxDev
author_rank: Regular Contributor
timestamp: November 30, 2016, 11:50:29 am
content: This is my Modbus RTU library for small microcontrollers. It supports 3-6 and 16 messages. Easy to use, easy to port!Language is Turkish but you can also use github (English) for this library.Blog for Petit Modbus (Turkish):http://www.firatdeveci.com/petit-modbus-kucuk-ama-dev/Github Link (English):http://github.com/FxDev/PetitModbus

author: coppice
author_rank: Super Contributor
timestamp: November 30, 2016, 11:52:01 am
content: What does your library offer compared to existing free Modbus libraries?

author: FxDev
author_rank: Regular Contributor
timestamp: November 30, 2016, 12:22:35 pm
content: Quote from: coppice on November 30, 2016, 11:52:01 amDid you see my codes? I think it is very easy to port to your project.I used some modbus libraries 5-6 years ago and they are very big and not easy to use. After that I wrote my own Modbus Library.By the way, this is not complete modbus library, be careful about that. It only support 3-6 and 16 command set.But you know, modbus libraries has to support all functions about registers and cells.I use my own modbus libraries for 4-5 years and then I realized, I commonly use 3-6-16 functions. After that, I though about to delete other cells and registers functions into my libraries. At the end of this job, Petit Modbus appeared.I use this library into STM8/STM32/Atmega Series/PIC/dsPIC/LPCxx/NEC/RENESAS/ST7/MSP430/MSP432 series without problem.
How to get the most up-to-date silicon revision? - Page 1
Forum section: electronics / general

author: igendel
author_rank: Frequent Contributor
timestamp: November 29, 2016, 12:06:42 pm
content: Hi,Let's assume there's a brand new chip out there which I really like, but its errata is too scary, so I'm waiting with my order for a better revision.When that appears, how can I be sure (at Digikey, Mouser, whatever) that I'll get the new revision, and not the old one?Let's also assume I'm a small buyer (tens or hundreds of units), so I probably can't make special requests from the manufacturer.Thanks,

author: AndyC_772
author_rank: Super Contributor
timestamp: November 29, 2016, 12:44:01 pm
content: This is a question best directed straight at whichever distributor you're looking to buy from.Give them a specific part number and revision, and they may be able to identify whether or not the stock they have is that revision or not.You may have better luck with the 'grown-up' distributors like Arrow and Future than with the catalogue companies.
Picoscope 5000 USB - Page 1
Forum section: electronics / general

author: linux-dude
author_rank: Newbie
timestamp: November 25, 2016, 01:28:53 pm
content: Hi,just curious if anyone who have a Picoscope 5000 USB could look upload some pictures of the fpga/adc clocking circuit. What chips are used?Thanks in advance!

author: Andreas
author_rank: Super Contributor
timestamp: November 25, 2016, 07:06:14 pm
content: Teardown from Dave is here:https://www.eevblog.com/forum/blog/eevblog-521-picoscope-5000-usb-oscilloscope-teardown/

author: linux-dude
author_rank: Newbie
timestamp: November 28, 2016, 06:03:05 pm
content: Thanks Andreas,i did not find anything about the clocking there. Or am i blind
Qualcom aquires NXP - Page 1
Forum section: electronics / general

author: jnz
author_rank: Frequent Contributor
timestamp: December 02, 2016, 06:50:00 pm
content: Right after NXP buys Freescale.http://media.nxp.com/phoenix.zhtml?c=254228&p=irol-newsArticle&ID=2216426&tid=FSHBNR_20161027Oh boy, I sure do love mega-corporations putting all the competing designs under one roof :\

author: krho
author_rank: Regular Contributor
timestamp: December 03, 2016, 06:29:19 am
content: This has been reported here for the 3rd time.
Introduction to Embedded Systems - New book, course, web site, YT   - Page 1
Forum section: electronics / general

author: ez24
author_rank: Super Contributor
timestamp: November 27, 2016, 06:06:20 am
content: This is the first time I have come across a book (edit: a lot of books), an university course, a web page and Youtube videos on an MCU by the same authorBook (new) :https://www.amazon.com/Introduction-Embedded-Systems-Jonathan-Valvano/dp/1537105728/ref=sr_1_15?s=books&ie=UTF8&qid=1480220588&sr=1-15&keywords=microcontroller+programmingCourses ( Univ of Texas at Austin ):https://www.edx.org/course/embedded-systems-shape-world-utaustinx-ut-6-03xWeb site (related to books):http://users.ece.utexas.edu/~valvano/Youtube:https://www.youtube.com/user/JonathanWValvanoEdit: changed book to books
Atmel MKII programmer gone (not listed) - Page 1
Forum section: electronics / general

author: GreggD
author_rank: Regular Contributor
timestamp: December 14, 2016, 02:14:12 pm
content: I just finished assembling 35 boards to send off for assembly into a final product and needed to test them. I programmed 12 two days ago, all ok. Today I went to program the rest and Atmel Studio 6.2 listed no MKII programmer. Windows 10 device manager shows the MKII just fine. Between when it worked and did not my pc had not been rebooted and Windows update has been disabled. This seams to be a well known problem with no fix. Even a complete removal/re-install won't fix it. I went to a backup disk with Win-7 and got the job done. I think Atmel says the fix is to use Studio 7.x which breaks compatibility with older software.

author: Heszu
author_rank: Contributor
timestamp: December 14, 2016, 03:57:50 pm
content: Quote from: GreggD on December 14, 2016, 02:14:12 pmHi. Was it Jungo or libusb device manager showed ?Did You eventually connect MKII to another usb port ?Here is also one approach :https://www.olimex.com/forum/index.php?topic=4065.0WBRH

author: GreggD
author_rank: Regular Contributor
timestamp: December 14, 2016, 05:34:37 pm
content: Heszu, I was using Jungo. The fix you pointed me to works perfect. Now listed as libusb.The MKII needs to be plugged in.I did not use the .exe but ("Device Manager" Run as administrator) and update driver method.A friend of mine has the same problem. I am sure this will fix it for him.Thanks !
ESP8266 - PCA9685 - 16Channel 12-bit PWM I²C bus LED controller Driver - Page 1
Forum section: electronics / general

author: TJ232
author_rank: Frequent Contributor
timestamp: November 25, 2016, 10:50:24 am
content: Hello everybody,I have designed a very simple 16 Channel PWM Extension Board based on the PCA9685 16Channel 12-bit PWM I²C bus LED controller Driver:Part 1:PCA9685 General Description and simple NodeMCU LUA Driver example
how to reduce conjestion in a perticular clb - Page 1
Forum section: electronics / general

author: franderu
author_rank: Newbie
timestamp: November 25, 2016, 06:24:34 am
content: Is there a way to reduce congestion in a perticular CLB. If I have a report that says the top ten most congested CLBs are CLE_M_X74Y125 and CLEL_RX74Y125 ?what can I do with this information to reduce congestion in the design ?

author: hamster_nz
author_rank: Super Contributor
timestamp: November 25, 2016, 07:07:53 am
content: Congestion is a symptom.If I was to ask about the busiest roads in your town it doesn't tell me why they are busy, or even if you have traffic problems.You might be aiming for too high a clock speed, which forces everything to be close to reduce routing delays.Ypu might be trying to stuff too much onto a too-small part, so everything needs to be tightly packed, causing inefficient routing.You might have a design that due to it's nature requires high fan-ins or fan-outs tothe logic (e.g. lots of wide muxes).It might be that those are the busy streets in a quiet town, and not a problem at all.
As it is correct to write down the new microcontroller 78K0/Kx1 + (78F0123H) ? - Page 1
Forum section: electronics / general

author: Lachin012
author_rank: Regular Contributor
timestamp: November 23, 2016, 05:15:00 pm
content: Hi, I bought new pure microcontrollers, as well as than I can write down the new pure microcontroller 78K0/Kx1 + (78F0123H)? what it is necessary for me for this purpose? what program I need to use? and what I need to collect the scheme? it is desirable a way, not expensive to me, for example whether I can program it through COM-Maxx232? whether there are some features at record of the new pure microcontroller?

author: Scrts
author_rank: Frequent Contributor
timestamp: November 23, 2016, 05:56:02 pm
content: Unfortunately, google translate did not do a good job. Can you try to improve your question?

author: Lachin012
author_rank: Regular Contributor
timestamp: November 23, 2016, 06:39:43 pm
content: Sorry, for my English, I think now clear?

author: rstofer
author_rank: Super Contributor
timestamp: November 23, 2016, 09:42:58 pm
content: I looked briefly at the User's Manual and it looks like you need a speciallized programmer. I didn't read the entire document.Start around page 391http://www.tautec-electronics.de/Datenblaetter/Schaltkreise/UPD78F0124H.pdfConsidering all the chips on the market, this isn't one I would bother with.

author: pelule
author_rank: Frequent Contributor
timestamp: November 23, 2016, 10:15:58 pm
content: Programs can be created in ASM or C (google for IAR Kickstarter versions)The 78F0123H device can be programmed with a flash programmer (just need a serail interface you may build your own, if you like).The 78F0123H does not support on-chip debugging.For on-chip debugging you need a special "D" version, the ?PD78F0124HD. This can be debugged with NEC/RENESAS on-chip debugger like the NEC MINI-CUBE.

author: Lachin012
author_rank: Regular Contributor
timestamp: November 24, 2016, 11:46:45 am
content: Hi pelule, you a little not correctly understood me, I am engaged in repair of washing machines, and so I bought new microcontrollers 78F0123H from China, I tried today on to try for to program the pure microcontroller, and so at attempt to erase or write down the microcontroller there is it messages that on the new microcontroller there is a protection against deleting how it can be? the microcontroller is absolutely new, really sold me not good microcontrollers? Thanks.

author: Bruce Abbott
author_rank: Frequent Contributor
timestamp: November 24, 2016, 06:04:30 pm
content: QuoteThey are probably surplus stock left over from a production run, 'new' but pre-programmed. Most of the cheap IC's you can get on eBay etc. are either not new or fakes.
Arduino frameless laser harp - Page 1
Forum section: electronics / general

author: stoppi
author_rank: Newbie
timestamp: November 19, 2016, 06:57:46 pm
content: Hi!My name is Christoph and I live in Austria (europe). I've built a frameless laser harp using a stepper Motor and arduino. For the Sound I use either an audio-socket or midi-signals, which are sent to the Computer via midi-usb-Adapter. I hope you like it.My YouTube-channel:https://www.youtube.com/user/stopperl16/videos

author: Cervisia
author_rank: Regular Contributor
timestamp: November 23, 2016, 11:52:48 am
content: I don't care if your harp burns holes into the player … but you're missing one of the 220 ohm resistors in the MIDI output circuit, which might overload the MIDI receiver.
gcc and flash for intel quark board - Page 1
Forum section: electronics / general

author: farsi
author_rank: Regular Contributor
timestamp: November 22, 2016, 08:20:06 pm
content: hello,i got this dev kit with a quark mcu from intel.anyone has pointers of using open source tools to flash and compile for this ?main reference so far ishttp://www.gregorykelleher.com/blog/quark_issm- but it does not really show how to flash and/or compile

author: andersm
author_rank: Super Contributor
timestamp: November 23, 2016, 07:44:11 am
content: Which Quark? For the ones using the Pentium ISA (X1000, SE C1000, D2000), GCC should work. The D1000 uses a unique instruction set that AFAIK is only supported by Intel's own compiler so far.
arduino atmega 328 dip28 future? - Page 1
Forum section: electronics / general

author: linux-works
author_rank: Super Contributor
timestamp: November 22, 2016, 07:41:52 pm
content: anyone have any clue as to how long the 'classic' arduino atmega 328 skinnydip thruhole chip will be current and buyable?I am thinking it won't go away anytime soon, but curious if anyone heard otherwise?

author: Ian.M
author_rank: Super Contributor
timestamp: November 22, 2016, 08:04:47 pm
content: Now Microchip own Atmel, I would expect they'll be available for a very long time. Microchip still sell the PIC16C54 which was released in 1989, and over 25 years later there's still 5000+ qty pricebreaks, and reasonable stock levels at MicrochipDirect. Microchip prefer not to retire anything that's not fatally flawed as long as they have still got a line that can handle the process. They do however tend to charge boutique pricing for the less popular legacy parts.Edit: corrected PIC

author: linux-works
author_rank: Super Contributor
timestamp: November 22, 2016, 09:05:57 pm
content: thanks. I'm hoping they keep the skinnydip version going for a long time to come. I have a board designed for the smd version of the 328 but since its a DIY oriented kit, I am strongly thinking of converting over to the easier to solder version, the .1 spaced thruhole part. takes up more room on the board but less hassles in soldering it.plus, I can bootloader it in a standard socket and not have to hassle with the smd part and the 6pin isp connector.

author: AlxDroidDev
author_rank: Frequent Contributor
timestamp: November 22, 2016, 09:13:13 pm
content: I believe it will still last for some years. Atmel/Microchip is still making quite some profit from it, so there's no need to stop manufacturing them.

author: Ian.M
author_rank: Super Contributor
timestamp: November 22, 2016, 10:14:16 pm
content: There should be *just* enough room to put a footprint for the 28-MLF package part, skewed 45 deg to make routing easier within the SPDIP package footprint. Supply the kit with the SPDIP part and a turned pin socket, but if you ever have supply problems, you've got an alternative - even if you have to reflow it onto the board before shipping.N.B. if you extend the pads and put a large PTH hole in the centre ground pad, it can be hand-soldered by anyone who really wants to
beaglebone black industrial spec at element 14 is half price... - Page 1
Forum section: electronics / general

author: julianhigginson
author_rank: Frequent Contributor
timestamp: November 17, 2016, 09:57:41 am
content: http://au.element14.com/element14/bbone-black-ind-4g/beaglebone-black-industrial/dp/249308801So now the industrial temp range is 1/3 cheaper than the normal version of the BBB rev C.anyway, I thought it was a good enough deal to snap one up.. keen to see it show up tomorrow. I've been meaning to get my hands on one to try out those programmable RTUs for a while now.

author: CJay
author_rank: Super Contributor
timestamp: November 17, 2016, 03:51:36 pm
content: At that price it's probably worth having someone in Aus buy me one and post it to the UK, Farnell UK want almost $92Aus for one and then there's 20% VAT to add on top of that...

author: Harvs
author_rank: Super Contributor
timestamp: November 20, 2016, 05:14:08 am
content: This always confuses me about e14. If I search for Beaglebone I get the same product twice, one with twice the price of the other but clearly the same stock...

author: julianhigginson
author_rank: Frequent Contributor
timestamp: November 21, 2016, 01:39:17 am
content: Quote from: Harvs on November 20, 2016, 05:14:08 amYeah... I've seen this with the FRDM-k64F earlier this year, too. looks like this is how they do specials, they make a duplicate item with the new price.... and keep the old one around too, but it seems that once a special is over the duplicate part gets re-priced to something like the normal price and then just hangs about forever.Funnily enough the two identical K64F products in their system still differ in price by a couple of dollars, even though their proper 35%-ish sale on that was at the start of this year is well and truly over!Pretty messy, I think. I'm sure there's some very good reason related to some absolute horror feature of whatever software system they use to run the business.Moral of the story - if you ever decide to buy something from E14, search for the thing from their home page, and check if there's more than one entry for it, and that you have the cheaper version!

author: thm_w
author_rank: Super Contributor
timestamp: November 21, 2016, 08:42:16 pm
content: I can see why they would create a new part number, any company doing recurring orders would not catch the sale price.Why they wouldn't delete the sale item though is not clear.
Verilog - elegant way of reading/writing into an array of registers? - Page 1
Forum section: electronics / general

author: daqq
author_rank: Super Contributor
timestamp: November 15, 2016, 08:12:02 am
content: Hi guys,I've been trying to implement a simple configuration memory kind of module - basically you'd have N registers (8 in this case), you'd select them by the appropriate RWAddress and if you wished to write in the selected one you would assert RegisterWriteDataValid. The register array should be the output as well, in order to directly be able to connect the things that are to be configured by the registers.I know that this could be done by means of a bunch of case statements, but I was hoping for something more elegant and easier to expand. The code below does not compile, giving the errors even further down.Is there any simple way of doing this, or will I have to use case?Code:module ConfigurationRegisterManager(input Clock,//Main input clockinput NReset,//Global negative resetinput [2:0] RWAddress,//7 = 1write, 0 read, 6:0 = addressinput [15:0] NewValue,output [15:0] Registers[0:3],input RegisterWriteDataValid);reg [15:0] RegisterCurrentValue = 0;reg [15:0] rRegisters[0:3];assign Registers = rRegisters;always @(posedge Clock) beginif(RegisterWriteDataValid == 1) beginRegisterCurrentValue[15:0] <= rRegisters[15:0];endendendmoduleCode:[HDLCompiler 1335] Port Registers must not be declared to be an array ["xxxxConfigurationRegisterManager.v":9][HDLCompiler 255] Cannot assign to memory Registers directly ["xxxxConfigurationRegisterManager.v":16][HDLCompiler 251] Cannot access memory rRegisters directly ["xxxxConfigurationRegisterManager.v":16][HDLCompiler 747] Range is not allowed in a prefix ["xxxxConfigurationRegisterManager.v":19][HDLCompiler 252] Cannot assign an unpacked type to a packed type ["xxxxConfigurationRegisterManager.v":19][HDLCompiler 598] Module <ConfigurationRegisterManager> ignored due to previous errors. ["xxxx/ConfigurationRegisterManager.v":3]Thanks,David

author: ale500
author_rank: Frequent Contributor
timestamp: November 15, 2016, 06:17:00 pm
content: You are using all bits of RegisterCurrentValue and rRegisters, thus you don't need to specify them:Code:RegisterCurrentValue <= rRegisters;would be right.If you only want to assign bit 3 to 0, then you need an extra wire:Code:wire [15:0] extraWire;extraWire<= rRegisters;RegisterCurrentValue[3:0] <= extraWire[3:0];
MachXO2 External SPI Flash device - Page 1
Forum section: electronics / general

author: ale500
author_rank: Frequent Contributor
timestamp: November 12, 2016, 04:57:58 pm
content: Hei,I'd like to use an external SPI flash memory with a MachXO2 FPGA, but not for the configuration but for custom data that has to be pre-programmed. I see that one can program such a flash memory to contain configuration data using the built-in programmer. I'm looking for ways to in-circuit pre-program such a memory. Could one use the built-in programmer for such a task (let's suppose that the flash device is connected to the "reserved" pins for SPI flash) ?Does someone has any experience ?

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: November 12, 2016, 05:39:54 pm
content: If by built-in programmer you mean the normal JTAG programmer, the way this typically works is that the programmer software soft-loads a trivial bitmap which links the JTAG pins to the SPI device to allow programming using SPI protocol over the JTAG pins.Should be possible to make it program a device that contains data other than a programming bitmap.You can also buy Microchip SPI flash devices preprogrammed from Microchip Direct, though their devices ( ex SST) are rather more expensive than some of the competition from ISSI or Spansion.

author: ale500
author_rank: Frequent Contributor
timestamp: November 18, 2016, 05:28:05 pm
content: I think I'd program the device before I solder it, and then just make some small core that can receive a new image, if needed., thanks for the suggestion. I'm going to do 2 boards, so programming the chips beforehand seems convenient.
Help me about 24-bit binary multiplier  - Page 1
Forum section: electronics / general

author: Nhan95
author_rank: Contributor
timestamp: November 13, 2016, 03:02:10 pm
content: I am designing a multiplier circuit using Modified Booth Algorithm, I examine group of 3 bit to generate a partial product, so I have total 13 partial product. The product will be 48 bits. I'm stuck at the sum circuit. My idea is to use 48bit Carry Lookahead adder to sum al partial product but It seem to be waste. Is there any other way to sum all 13 partial products effectively. Thanks

author: ale500
author_rank: Frequent Contributor
timestamp: November 14, 2016, 04:27:42 pm
content: How are you doing your multiplier ? in logic ? in verilog/hdl ? in C ?

author: Nhan95
author_rank: Contributor
timestamp: November 15, 2016, 03:21:17 pm
content: Quote from: ale500 on November 14, 2016, 04:27:42 pmI design the logic circuit and then writing verilog

author: ale500
author_rank: Frequent Contributor
timestamp: November 15, 2016, 06:11:52 pm
content: If you want to use carry look-ahead logic, then you may also use a discreet full adder.Why don't you try first with a behavioral description ? or is it a requirement ?
What kind of cable do I need for a PC to FPGA RS232 uart comm? - Page 1
Forum section: electronics / general

author: zdelarosa00
author_rank: Regular Contributor
timestamp: November 11, 2016, 02:48:02 am
content: This is the doubt, I need to implement a simple UART communication chain between my computer and my FPGA, the fpga its a chinese development board with a Cyclone I, and according to the datasheet (see attachement), the DB9 port that it has goes to a MAX232, wich to my understanding levels serial voltages to TTL. Then, my laptop doesn't have any serial ports (as does any from 8 years behind), so I'm thinking I need to buy a cable, but I dont know exactly wich of my options are, I've seen a couple (attachement), and I'm wondering, don't all these have a RS232 chip integrated? (or otherwise why would we need a driver cd right?), because some of them seem to not have the chip inside (white one on the attachement)..... Wich leads me to the main question, do I need to fabricate a usb to db9 breakout with no chips?, or the cable with the rs232 goes to the db9 on the board and then again to a rs232...?This video illustrates it:

author: hamster_nz
author_rank: Super Contributor
timestamp: November 11, 2016, 06:21:06 am
content: By an RS232 to 3.3V TTL cable from decent supplier and you should be fine. E.g.https://www.sparkfun.com/products/9873The least fuss is usually those with and FTDI chip as Windows already has a driver.I prefer not to have a 5V/3.3V switch, because one day I will put 5V thorugh something that I didnt want to.

author: AndyC_772
author_rank: Super Contributor
timestamp: November 11, 2016, 08:54:51 am
content: If it's got a MAX232 on board, then the cable needs to use real RS232 levels, not low level logic.Google throws up many, many results for "USB RS232 cable". Pick one you can get locally.

author: zdelarosa00
author_rank: Regular Contributor
timestamp: November 15, 2016, 01:35:01 am
content: Quote from: AndyC_772 on November 11, 2016, 08:54:51 amSo the usb to DB9 like thishttp://articulo.mercadolibre.com.mx/MLM-560978653-cable-adaptador-serial-macho-a-usb-20-macho-rs232-db9-_JMis the choice right?, today a professor at my college told me that RS232 its a protocol, so if Im receiving trought a 232 the signal needs to came already as 232 protocol.

author: zdelarosa00
author_rank: Regular Contributor
timestamp: November 15, 2016, 03:45:47 am
content: The price is MXN thats why, it costs like 2 US dollars really.I always get somehow confused at those serial protocols, good thing to know that about the Profilic driver!, I did have some trouble some months ago with a USB to TTL that I couldnt make work at plugnplay, but I will have to manage?, I think getting picky with that cheap cable chipsets its gonna be more pain than the stores can handle
Plain and Simple HDL: PSHDL - Page 1
Forum section: electronics / general

author: obiwanjacobi
author_rank: Super Contributor
timestamp: November 14, 2016, 06:49:41 am
content: Ran into this:pshdl.org. Have not played with it yet but I saw a presentation (from 2013) on YouTube where it suffered from some bugs - hope they are solved by now.As a beginner in VHDLthislooks heavenly.Does anyone have experience with this?Is the project still alive?Thoughts?

author: ataradov
author_rank: Super Contributor
timestamp: November 14, 2016, 07:30:39 am
content: This looks super sketchy. Strong redirect to on-line tool, command line one seems to be checking in with on-line and there does not seem to be a source code available despite the claims of being GPL3 licensed.I don't want to start a holy war, but what you are looking for is SystemVerilog. It is supported (in parts) by most modern tools from actual FPGA vendors and improves quite a bit on Verilog, but still maintains simple and readable syntax.

author: obiwanjacobi
author_rank: Super Contributor
timestamp: November 14, 2016, 01:48:58 pm
content: Hee SystemVerilog doesn't look bad either. Thanx!
nokia 5110 lcd + PS2 keyboard help - Page 1
Forum section: electronics / general

author: Mugiwara303
author_rank: Contributor
timestamp: November 11, 2016, 03:57:10 pm
content: Hello guys, i am a newbie into C++ programming and i have a problem making this to work,the point is when i type a character it should be displayed on the 5110 lcd, but i see only weird Japanese charactersso i have no idea what to do i added dtostrf() function but now i gives me ascii caracters 97 for 'a'... can someone help me with this, thanks in advancei am using LCD5110_Graph library :http://www.rinkydinkelectronics.com/library.php?id=47Code:#include <PS2Keyboard.h>#include <Wire.h>#include <LCD5110_Graph.h>LCD5110 lcd(8, 9, 10, 12, 11);extern unsigned char SmallFont[];const int DataPin = 4;const int IRQpin = 3;int x;int y;char c;PS2Keyboard keyboard;void setup() {delay(1000);keyboard.begin(DataPin, IRQpin);Serial.begin(9600);Serial.println("Keyboard Test:");lcd.InitLCD();lcd.setFont(SmallFont);lcd.print("Keyboard Test:" , CENTER , 10);lcd.update();delay(1000);lcd.clrScr();}void loop() {if (keyboard.available()) {// read the next keyc = keyboard.read();Serial.print(c);char hu;dtostrf(c, 5, 0, hu);lcd.setFont(SmallFont);lcd.print(hu , CENTER , 15);lcd.update();delay(1000);lcd.clrScr();}}

author: MickM
author_rank: Regular Contributor
timestamp: November 13, 2016, 11:58:30 pm
content: Put in some "printf()" statements.At least for "c" and "hu" in loop().I am not familiar with keyboard.read().You may be reading the wrong char, using the wrong font, or going too fast for the lcd display.Also the raw keyboard data is not ascii.Mick M.
Lattice Mach 213SP Programming - Page 1
Forum section: electronics / general

author: derek
author_rank: Contributor
timestamp: November 13, 2016, 07:54:27 pm
content: Hi,I need to programmd some Lattice Mach 213SP CPLD, which has a JTAG imterface. Can I use a Lattice HW-USBN-2A JTAG download cable to perform the programming.Regards,Derek
Lattice Being Acquired - Page 1
Forum section: electronics / general

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: November 11, 2016, 04:56:18 pm
content: Lattice is being bought for $1.3 billion by a private investment group and taken private.http://ir.latticesemi.com/phoenix.zhtml?c=117422&p=irol-newsArticle&ID=2219107

author: Gyro
author_rank: Super Contributor
timestamp: November 11, 2016, 08:51:12 pm
content: It's only 18 months since Lattice bought Silicon Image. The new owners will have HDMI (and MHL).
Genesis Microchip? (old flat panel LCD SOC w/ 8051 - in search of info) - Page 1
Forum section: electronics / general

author: clay_cowgill
author_rank: Contributor
timestamp: October 28, 2016, 07:35:54 pm
content: Might any of you have technical information from back in the day for the early Genesis Microchip SOCs (for TFT monitors) that used the 8051 core?ST Microelectronics purchased Genesis back in 2008 and continued with the later x86 based display processors, but finding information on the old 8051 based stuff is tough. If anyone has any original docs for the gm2110/2121/3110/5110/5115 I would love to get a copy. In particular I'm really after:(Genesis document numbers, description)C5115-DSL-01 gm5115 Register ListingC5115-APB-01 gm5115 Product Family On-chip Microcontroller (OCM) Firmware ConfigurationsB0108-GUD-01 5110RD1 Reference Design Users GuideB0092-SUG-01 gm5115 Product Family Firmware User Guide for Full-Custom"Holy Grail" type things would be the old 8051/Keil C based source tree and/or any of the GProbe Register Database stuff. (The GProbe stuff would likely be something like "gm5115.Chip.GProbe" and/or "gm5115.chm" files.)Anyway, if any of you happened to work with this stuff back in the day and kept copies or had any ideas/leads for more info, please let me know! Being from around ~2002 I think a lot of it was "too late for databooks" and "too early for online preservation". The deeper technical stuff was probably on an as-needed basis and there's really nothing by high-level datasheets and product briefs from old archive.org crawls of the Genesis website.I already have a request in with ST (that I'm not holding out much hope for) and I mined the Chinese file-pirate dens as thoroughly as I could (mostly newer x86 based stuff).Thanks!-Clay

author: clay_cowgill
author_rank: Contributor
timestamp: November 05, 2016, 05:08:05 am
content: *crickets*Nobody, eh? ;-)ST Microelectronics sent me a predictable "this part is obsolete and as such no information is available on it" reply, but I pushed back a little with a "was this a boiler-plate response or did you actually check to see if anything was archived?" question, but I don't hold out much hope. Looks like it's time to fire up yea' olde MCS51 disassembler!-Clay

author: JPortici
author_rank: Super Contributor
timestamp: November 05, 2016, 05:20:34 am
content: Quote from: clay_cowgill on November 05, 2016, 05:08:05 am"... Please refer to the forum"and in the forumthis part is obsolete but feel free to drop a line

author: Rasz
author_rank: Super Contributor
timestamp: November 12, 2016, 08:07:42 am
content: 8051 based realtek RTD2660 is the closest you can get to firmware lcd controllerhttp://openrtd2662.ru/but its russian and there is nothing open about itthey dont share their code, just boast about having itedit: apparently this is the codebase they used to start the project:http://www.codelooker.com/id/92/1074876.htmlyou might also try your luck onwww.pudn.com, its a popular side for chinese shanzhai enthusiasts, tons of proprietary nda code and docs on there
ESP8266 - PCF8591 - 8bit ADC/DAC driver example - PART 2 - Page 1
Forum section: electronics / general

author: TJ232
author_rank: Frequent Contributor
timestamp: November 11, 2016, 02:12:44 pm
content: Please find below a ESP Basic driver example for the PCF8591 I2c compatible 8 bit ADC/DAC IC:Original Article about:Mailbag - PCF8591 I2c compatible 8 bit ADC/DACPart 2 will follow soon.Happy breadboarding,TJ.

author: TJ232
author_rank: Frequent Contributor
timestamp: November 14, 2016, 08:11:57 am
content: Part 2 of the new ESP Basic series related with the PCF8591 - 8-bit A/D and D/A converter.This time we will talk about ADC side of the IC and we will implement a simple ADC driver:Original Article with code, etc
STM32H7 a low power 400MHz M7 with 1MB RAM and 2MB flash on a 40nm process! - Page 1
Forum section: electronics / general

author: Boscoe
author_rank: Frequent Contributor
timestamp: November 09, 2016, 10:28:53 pm
content: http://www.st.com/en/microcontrollers/stm32h7-series.html?querycriteria=productId=SS1951Looks very interesting to me as I do like ST parts and fast embedded MCUs! Not sure if I have much use for it however it is cool. Not out until Q2 2017 though and I'm quite intrigued when it comes to pricing.

author: ataradov
author_rank: Super Contributor
timestamp: November 09, 2016, 10:34:59 pm
content: https://www.eevblog.com/forum/microcontrollers/h7-anyone/msg1057065/#msg1057065
Lattice XO2 Timing Analysis - Page 1
Forum section: electronics / general

author: Gizmo
author_rank: Regular Contributor
timestamp: November 08, 2016, 10:37:37 pm
content: I'm fairly new to FPGA's from a theoretical angle, I've always just taken the approach of iterating the design until it works. Although I've generally only done pretty simple stuff like SPI interfaces etc...Currently I'm trying to get an SDRAM interface working on a Mach XO2. I have some verilog code from Hamsterworks which I have incorporated into my design and can simulate it just fine. I now want to correctly assign the setup and hold parameters for timing analysis so I can see how fast I can clock this (ideally I'd like to reach at least 133mhz).I have a number of values from the datasheet such as address / RAS / CAS / etc... setup and hold times. I've tried setting CLOCK_TO_OUT with the setup and hold times (1.5 / 0.8 ns) but then get setup violations. Fine, so I set the clock offset to 0.5x (I'm forwarding the clock 180 degrees out of phase to clock out), but now I'm getting hold violations. It should be holding for 1 clock afaik as it's all registered on the positive clock edge, so I must have something setup wrong.Any clues on setting up timing constraints like this correctly would be much appreciated as I've not been able to make much sense of any tutorials I've found with regard to this exact issue.

author: Cerebus
author_rank: Super Contributor
timestamp: November 09, 2016, 12:09:01 am
content: Just to clarify - what is it that you're looking for help with, the logic design issues of the timing, or getting them into constraint files to suit your tools?

author: Gizmo
author_rank: Regular Contributor
timestamp: November 09, 2016, 10:25:54 am
content: Quote from: Cerebus on November 09, 2016, 12:09:01 amIts understanding how to setup the output constraints correctly in Lattice Diamond. I'm happy with the idea of pipelining to meet setup time at the expense of latency, but I dont understand why hold time isnt being met when the signals are latched at the posedge of the clock, so they will have a hold of half a clock cycle which is well in excess of the 0.8ns hold required. The clock skew of 180 degrees should solve both issues.

author: Gizmo
author_rank: Regular Contributor
timestamp: November 09, 2016, 01:21:59 pm
content: These are the timing constraints I want to enforce:For my case for current testing, tCK=10ns (100MHz)I'm specifically looking at the address lines at the moment as a starting point, so tAS=min 1.5ns, tAH=min 0.8nsI'm outputting CLK at 180 degrees out of phase from my PLL derived 100MHz clock (from 13.3MHz source x7.5). So from my launch clock edge to posedge of the output CLK I should have 5ns in hand.I want to know how I represent this in a CLOCK_TO_OUT constraint correctly.
Webcast on the new 8-bit PIC Curiosity High Pin-Count Development Board - Page 1
Forum section: electronics / general

author: ez24
author_rank: Super Contributor
timestamp: November 06, 2016, 06:51:04 pm
content: Date: Monday, November 14thTime: 2:00 PM ET | 11:00 AM PTbyMarc McComb, Technical Marketing EngineerMicrochip Technology Inc.http://www.microchip.com/Developmenttools/ProductDetails.aspx?PartNO=DM164136Heavy registrationhttps://event.on24.com/eventRegistration/EventLobbyServlet?target=registration.jsp&eventid=1290533&sessionid=1&key=9B35227EB1CABD76F6B3DD01AFB5216E&partnerref=ED1.1_1114&utm_rid=CPG05000004824874&utm_campaign=8373&utm_medium=email&elq2=0fb8324054924da7a0b86cf0a5cd80e8&sourcepage=register
Microarchitecture at Coursera - Page 1
Forum section: electronics / general

author: obiwanjacobi
author_rank: Super Contributor
timestamp: November 01, 2016, 04:27:54 pm
content: For those who wish to know what is inside a modern CPU:https://www.coursera.org/learn/comparch/home/welcome

author: legacy
author_rank: Super Contributor
timestamp: November 01, 2016, 07:44:09 pm
content: interesting

author: legacy
author_rank: Super Contributor
timestamp: November 01, 2016, 07:45:16 pm
content: including VLIW =P

author: obiwanjacobi
author_rank: Super Contributor
timestamp: November 05, 2016, 07:38:18 am
content: I made a YouTube playlist for CPU architecture - think I found all the course videos as well...https://www.youtube.com/playlist?list=PLSJAmtVQiOk9uYQQByxMrO3eKN4LYeWEGAlso contains the Mil architecture videos as well as another course...Enjoy.I am thinking about doing a simple softcore, so I am researching this to get ideas and learn the pitfalls etc.
ninja-ide, an interesting IDE (especially for python) - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: November 04, 2016, 11:31:00 am
content: currently I am using geany for C stuffa person with whom I work has suggestedninja-idefor pythonand I am emerging it just right nowCode:exp ~ # myemerge-log dev-util/ninja-ide -vThese are the packages that would be merged, in order:[ebuild N ] dev-qt/qtcore-4.8.6-r2 USE="exceptions glib iconv ssl (-aqua) -debug -icu -pch -qt3support"[ebuild N ] dev-qt/qttranslations-4.8.6-r1[ebuild N ] dev-qt/qtxmlpatterns-4.8.6-r1 USE="(-aqua) -debug -pch"[ebuild N ] dev-qt/qtscript-4.8.6-r2 USE="exceptions jit (-aqua) -debug -pch"[ebuild N ] dev-qt/qtsql-4.8.6-r1 USE="exceptions sqlite (-aqua) -debug -freetds -mysql -oci8 -odbc -pch -postgres -qt3support"[ebuild N ] dev-qt/qtgui-4.8.6-r4 USE="accessibility exceptions glib xv (-aqua) -cups -debug -egl -gtkstyle -mng -nas -nis -pch -qt3support -tiff -trace -xinerama"[ebuild N ] dev-qt/qtwebkit-4.8.6-r1 USE="exceptions gstreamer jit (-aqua) -debug -icu -pch"[ebuild N ] dev-qt/qtsvg-4.8.6-r1 USE="accessibility exceptions (-aqua) -debug -pch"[ebuild N ] dev-qt/qtopengl-4.8.6-r1 USE="exceptions (-aqua) -debug -egl -pch -qt3support"[ebuild N ] dev-qt/qtdeclarative-4.8.6-r1 USE="accessibility exceptions (-aqua) -debug -pch -qt3support -webkit"[ebuild N ] dev-python/PyQt4-4.11.4-r1 USE="X declarative webkit -compat -dbus -debug -designer -doc -examples -help -kde -multimedia -opengl -phonon -script -scripttools -sql -svg -testlib -xmlpatterns" PYTHON_TARGETS="python2_7 python3_4 (-python3_5)"[ebuild N ] dev-util/ninja-ide-2.3 PYTHON_TARGETS="python2_7"emerging ...a lot of dev-qt dependencies, not a problemreported here for those who are looking for a python-IDE

author: Dielectric
author_rank: Regular Contributor
timestamp: November 04, 2016, 08:18:17 pm
content: I had looked at that around June, but when I saw it was pinned to Python 2 and Qt4 I gave it a pass. Looked like it had stalled for a year or more although in the forum it looks like there are signs of life.I'm pretty happy with PyCharm. I was a Python beginner when I started IDE shopping, and PyCharm had a lot of built-in help that was helpful to me. I wasn't doing anything strenuous but Python was totally the right tool for the job, so I just had to do enough to make that work. I did get a new appreciation for Python though, coming from a C background the power is impressive.
MOTOROLA DSP56000ADS DSP, anyone experienced?  - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: November 04, 2016, 05:52:02 pm
content: just curious, it's '90s DSPDSP56000ADS is a boarddeveloped by Motorola

author: Kalvin
author_rank: Super Contributor
timestamp: November 04, 2016, 06:00:48 pm
content: The DSP56000 was their first generation DSP core. I would go for the DSP56300-series as it has enhanced instruction set, improved architecture, more on-chip memory and higher clock rate. The chip is very pleasant for the assembly programming. There is also a freely available simulator which can be used for testing algorithms and/or getting to know the architecture. The simulator supports single stepping, break points, register views, memory views and even memory graphing etc. The same simulator can be used with the actual hardware and Motorola EVM cards, too. Very handy tool.

author: legacy
author_rank: Super Contributor
timestamp: November 04, 2016, 06:02:51 pm
content: thanks
License question on TI CCS - Page 1
Forum section: electronics / general

author: ez24
author_rank: Super Contributor
timestamp: November 04, 2016, 01:15:01 am
content: From Wiki:QuoteDoes this mean that when you use a development board from TI like this one: MSP-EXP432P401Rthere are no size limits? ie the size limit applies only to boards the user makes?QuoteI have no feeling what this means. About how many lines of codes would this be? What kind of projects would be over 16k ?thanks

author: julianhigginson
author_rank: Frequent Contributor
timestamp: November 04, 2016, 01:35:36 am
content: Quote from: ez24 on November 04, 2016, 01:15:01 amThere's another thread in here where they have linked a bunch of current deals from TI where you can buy an eval board and get a free nodelocked license.If you buy the current deal where the MSP-EXP432P401R board comes with a full node locked license, then yes you'll have the full license. AFAIK, if you don't have the full license you just use CCS in demo mode (30 day full power) and then code limited.That said - if you are happy to use GCC for compiling to MSP432, I think the code limit doesn't apply? AFAIK it's just for the TI MSP432 compiler... (I THINK. It's all a bit complex given the different processors and toolchains supported by CCS)Quote16k will let you do some simple things and have some fun trying stuff out, but once you want to make something a bit complex and add in some large libraries (ethernet stack, maybe?) for supporting advanced features you'll have a problem. At the end of the day 16k is a very small program size for a cortex M4. I'm not sure it's possible to buy any cortex M4 from any vendor with flash that small.

author: ez24
author_rank: Super Contributor
timestamp: November 04, 2016, 04:02:11 am
content: Quote from: wilfred on November 04, 2016, 02:10:31 amActually I am going to get all three (once I figure out what a MAC address is) because I do not know which one to gethttps://store.ti.com/Search.aspx?k=ccs-promo&pt=-1So I will have 3 licenses but considering my past life, I expect someday to loose all three so I was wondering where I will be then. I am really curious what 16k of code means in lines of code. I expect I will never have 16k but I still would like to know.I will get the 3 boards once I figure out which Booster Packs to get (not easy to do). I want to get their stepper board and senshubhttp://www.ti.com/tool/boostxl-uln2003http://www.ti.com/tool/boostxl-senshubAll boards by 43oh.com are out of stock and they have some interesting ones. Any Booster Pack suggestion:http://www.ti.com/lsds/ti/tools-software/launchpads/boosterpacks/select/select.pagethanks