hybridfree/eevblog-posts huggingface dataset:
STN LCD, power ON/OFF timing sequence - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: October 22, 2014, 12:13:02 am
content: i do not really understandnote1, what should i really care about power ON/OFF timing sequence ?

author: nctnico
author_rank: Super Contributor
timestamp: October 22, 2014, 01:24:21 am
content: Why? Well latch-up or drivers which aren't shut down with the power off.

author: legacy
author_rank: Super Contributor
timestamp: October 22, 2014, 10:33:19 am
content: it says that the wrong sequence could damage the LCD, i do not understand what it means.Also, what is problematic ?it seams to me that the main importance things is that /DOFF should be asserted 50msec later the Vdddo you confirm ?

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: October 22, 2014, 10:49:32 am
content: It is mostly about not creating ugly visual artifacts on powerup, also avoiding DC bias on the LCD.Unless you're turning on & off a lot, can usually be ignored

author: bktemp
author_rank: Super Contributor
timestamp: October 22, 2014, 11:16:59 am
content: Most important: Do not apply Vee when VDD is off. Vee without VDD causes latch-up and this will burn the driver ics.To avoid remaining charges on the LCD, Vee should be turned off before stopping the driving signals. But this is often hard to do when power is switched off externally and is ignored in most designs. Modern LCDs are quite robust.The easiest solution: Generate Vee out of VDD and do not use excessive capacitance at Vee, then it should be ok.

author: legacy
author_rank: Super Contributor
timestamp: October 22, 2014, 12:55:19 pm
content: thank you!yes, it's a pretty old LCD made and sold around 2008 ages
pic based clock & tempature mater - Page 1
Forum section: electronics / general

author: ritesh
author_rank: Newbie
timestamp: October 17, 2014, 03:55:01 am
content: hi all ,i want to make pic based clock and tempature meter sencer lm35help me thankyou all

author: marshallh
author_rank: Unknown
timestamp: October 17, 2014, 04:06:07 am
content: Ok. So how are you going to start?

author: SL4P
author_rank: Super Contributor
timestamp: October 17, 2014, 08:40:02 am
content: As you have chosen PIC already - that's a good start.Probably something entry level with internal oscillator - 16F628A or ...Easiest to start with MPLAB as your IDE/compiler (free).Next is the type of sensor - I2C, or one-wire ? Direct reading analog (thermocouple)?Then choose the display medium (LCD, LED, meter etc)Once you have these - you will have learned a lot from the research into each option.There are hundreds of code examples fr complete clock / thermo projectsYou need to 'skin your knuckles' a bit - trying - and failing - then you'll know what questions to ask here next!Get your core components together - blink a LED to make sure your tools are all in order. If it all seems too hard, perhaps try Arduino. There are a lot more entry level beginners to share code samples.Good luck.
Driving LED matrix displays with an FPGA - Page 1
Forum section: electronics / general

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: May 04, 2014, 10:20:51 pm
content: Using a Lattice XO2 FPGA to directly drive a LED matrix, and also driving colour video-wall LED tiles.

author: veryevil
author_rank: Unknown
timestamp: May 04, 2014, 11:42:49 pm
content: Really interesting. Which lattice dev board are you using, got a link? Also would you put up the code you were going through as it seems like it would be a very useful starting point to play with.Thanks

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: May 04, 2014, 11:56:51 pm
content: http://uk.mouser.com/ProductDetail/Lattice/LCMXO2-7000HE-B-EVN/?qs=sGAEpiMZZMv7pcWEpiAU7FDdlvoLahNk

author: firewalker
author_rank: Super Contributor
timestamp: May 05, 2014, 08:23:10 am
content: Nice! Could you paste the FPGA coe, just for reference.Do you use Lattice official tools?Alexander.

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: May 05, 2014, 08:57:46 am
content: Quote from: firewalker on May 05, 2014, 08:23:10 amWill at some point, want to tidy up, test with multiple panels and add a standalone test pattern mode first

author: cmartin
author_rank: Newbie
timestamp: May 14, 2014, 02:26:38 am
content: Hi Mike. Love your channel. I'm new to FPGAs and VHDL and have been using a LED matrix project as my learning project and would really love to review your code to learn from. Thanks in advance and keep it up.

author: Rigby
author_rank: Super Contributor
timestamp: October 13, 2014, 04:20:44 pm
content: Any update on the code publishing?Maybe one of us can learn from it or help you tidy it up.
[Zero Gecko] I2C read data without repeated start - Page 1
Forum section: electronics / general

author: DanioIO
author_rank: Contributor
timestamp: October 11, 2014, 03:08:08 pm
content: Hi,Im working on a simple LiPol projects and im using LTC2942 Fuel gauge ic. I want to read data from that ic using zero gecko microcontroller, but the problem is that its default library emlib doesnt support read command without repeated start which my fuel gauge requires (its using SMBus). Does anyone know how to fixed it?I tried simple write to register and than read but because of the stop condition after each command this approach doesnt work.LTC2942 datasheet (http://cds.linear.com/docs/en/datasheet/2942fa.pdf)Aplication note on using SMBus as an I2C device (http://www.ti.com/lit/an/sloa132/sloa132.pdf)

author: mikerj
author_rank: Super Contributor
timestamp: October 13, 2014, 04:13:11 pm
content: Theemlib library documentationsuggests that using an I2C_FLAG_WRITE_READ sequence with the I2C_TransferInit() function will cause a repeated start to be used.
ARM LPC 311 vs 401 vs 501, what does it mean? - Page 1
Forum section: electronics / general

author: zapta
author_rank: Super Contributor
timestamp: October 11, 2014, 07:38:02 pm
content: I am looking at page 3 of the datasheet here :http://www.nxp.com/documents/data_sheet/LPC11U3X.pdfThe same product has suffixes like 311, 401, 501, and when setting a project in the lpcxpresso it asks for the exact suffix.What do these number mean? Are they NXP specific or more general for ARMs? Does the compiler generate different code based on the suffix?

author: ElektroQuark
author_rank: Unknown
timestamp: October 11, 2014, 07:50:19 pm
content: Not same product. See Table 2. Different amount of FLASH, RAM, etc...

author: Jeroen3
author_rank: Super Contributor
timestamp: October 11, 2014, 10:59:57 pm
content: Microcontrollers begin withLPC, then add the base family LPC11.Follow with a application specification (such as usb, or low power) LPC11U, then the two numbers will tell you something about the peripherals inside, but they should all be binary and pin-compatible. You get LPC11U37.The appended letters specify the package (including tempature for some families), and the pincount.After the slash is the revision identifier, or al least that is what it looks like. The LPC11xx's have a lot of those.(not to confuse with the revision designator you find on the package and errate sheets)But, on the LPC17's these numbers are missing.Company's often use the strangest numbering scheme. Possibly due to the many continents they're based at.
Apple's New Processor Boards - Page 1
Forum section: electronics / general

author: ToeJam
author_rank: Contributor
timestamp: July 13, 2014, 10:54:22 am
content: Hi all;This just popped up in my news feedsarstechnica.com/apple/2014/07/wsj-tsmc-is-shipping-its-first-apple-processors-replacing-samsung/Those discrete components are real tiny - almost like grains of sand some of them.The gold strips at the top; are those connectors for other boards? Is the plastic surround an anchor for the connector? There's a similar plastic surround on the connector at the bottom right.The large metal square looks most like a microSD slot but could be a SIM card slot. Just noticed the six contacts and cutouts - more likely a SIM card slot.Also there are small metallic spots on the edge of the board. I was thinking this could be RF shielding, but it's not continuous.It could be for connecting to other boards, but why not do that with a similar connector as above?Still a think of beauty. 100's of years of technological progress brings us to this.CheersToeJam O0

author: andersm
author_rank: Super Contributor
timestamp: July 13, 2014, 11:16:21 am
content: That picture is of the iPhone 5S board. You can find more pictures, with good closeups, in eg.iFixit's teardown.

author: rs20
author_rank: Super Contributor
timestamp: July 13, 2014, 11:17:27 am
content: It's a shame such a beautiful piece of hardware engineering will end paired with a straitjacket of restrictive, standards-noncompliant, monopolistic crapware.<ducks>

author: ToeJam
author_rank: Contributor
timestamp: October 10, 2014, 09:08:00 pm
content: rs20;Agree, but then is that not a challenge to the hacker that made them a hacker?

author: Wilksey
author_rank: Super Contributor
timestamp: October 10, 2014, 10:47:49 pm
content: I bet that's grated at them for a long time Samsung making their chips! lol.Most memory is Samsung also.I guess that no matter who makes the silicon, Samsung, Taiwan Semi or <insert another fab company here> it is still some kind of ARM based core?
Bad day on wall street! - Page 1
Forum section: electronics / general

author: westfw
author_rank: Super Contributor
timestamp: October 10, 2014, 03:05:36 pm
content: Microchip's fault...http://news.yahoo.com/warnings-chipmakers-point-wider-economic-slowdown-130636469--finance.htmlAnd... Ouch!

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: October 10, 2014, 06:18:11 pm
content: Wall Street types are reactionary worrywart pussies.

author: Bassman59
author_rank: Super Contributor
timestamp: October 10, 2014, 07:15:36 pm
content: Quote from: Sal Ammoniac on October 10, 2014, 06:18:11 pmExactly.

author: mrflibble
author_rank: Super Contributor
timestamp: October 11, 2014, 02:42:37 pm
content: Quote from: Sal Ammoniac on October 10, 2014, 06:18:11 pmNot to mention reactionary worrywart pussies that manipulate the flow of information forfunprofit and profit.
PIC18F BTFSS, BTFSC - Page 1
Forum section: electronics / general

author: davorin
author_rank: Unknown
timestamp: October 08, 2014, 02:33:10 pm
content: It is a while though since I last did some PIC assembly....but this one is driving me nuts the whole afternoon (o;After reset I poll an input for a time pulse from an external device....so a combination of btfss/btfsc is the solution:Code:Pulse_1:BTFSC PORTA, 4GOTO Pulse_1CALL Wait_0Pulse_2:BTFSS PORTA, 4GOTO Pulse_2CALL Wait_1Pulse_3:BTFSC PORTA, 4GOTO Pulse_3So this one works...but not always...sometimes hangs before "Pulse_3"...When I try the other way around:Code:Pulse_1:BTFSS PORTA, 4GOTO Pulse_1CALL Wait_0Pulse_2:BTFSC PORTA, 4GOTO Pulse_2CALL Wait_1Pulse_3:BTFSS PORTA, 4GOTO Pulse_3..it always hangs before "Pulse_3"....the "CALL Wait_1" and "CALL Wait_2" are just subroutines displaying LED debugging information...Is there something special about the PIC18F4550?Think I have configured the PORTA correctly...Code:MOVLW 0FhMOVWF ADCON1MOVLW 7MOVWF CMCONMOVLW h'ff'MOVWF TRISA

author: davorin
author_rank: Unknown
timestamp: October 08, 2014, 06:11:45 pm
content: Stupid me (o;Of course btfsc/btfss continues with an external 1Hz pulse (o;Just realized that the GPS module already sends data to the UART, causing to overrun....therefore a new character received was never detected...so it just hanged...Seem clearing bit CREN in RXSTA seems to solve the problem....
a $25 computer - Page 1
Forum section: electronics / general

author: dannyf
author_rank: Super Contributor
timestamp: October 01, 2014, 10:13:56 am
content: In case anyone missed it:http://wrtnode.com/jtag + gpio fully routed out.All for $25.

author: Artlav
author_rank: Frequent Contributor
timestamp: October 01, 2014, 12:28:33 pm
content: On a first glance:Nice idea (cheap small generic computer board).Not the best implementation (flash instead of microsd card, neither breadboard-friendly, nor node-friendly).Terrible site (bad "scroll pages" idea turned into unreadable "turn scrollwheel a couple times to switch page" implementation).Verdict:I'll likely buy a couple to try out.

author: nowlan
author_rank: Frequent Contributor
timestamp: October 01, 2014, 01:30:21 pm
content: Sounds pretty interesting. 128mb flash.I see no memory card slot. It did say usb 2.0 however.

author: mhwlng
author_rank: Contributor
timestamp: October 01, 2014, 01:37:38 pm
content: Similar low cost devices with openwrt and MIPS processor:GL.INETArduino YunCarambola 2DraginoTP-Link TL-WR703NDPT Board

author: legacy
author_rank: Super Contributor
timestamp: October 01, 2014, 01:58:50 pm
content: Quote from: mhwlng on October 01, 2014, 01:37:38 pmabout this device, we (my friend and I) have been toying since the first time TP-LINK published the news of their cheap tiny router device. We payed just 10 USD for each a router, we bought 3 units, one for him, one for me, and one to do hard experiments (unsoldering things, etc). Unfortunately this device needs a lot of hacks in order to be really ready to play fun (the same happens to Yun, its firmware is very ugly and blocked, in case Dragino is a few light years ahead). One year ago we openedthispage to show our results about the hacked firmware. Since then we did a lot of hacks (1), the ewiki has been never updated, it may be it will, sooner or later(1) also, there is a guy around who is trying to port XINU to WR703N, see OpenWRT forum

author: suicidaleggroll
author_rank: Super Contributor
timestamp: October 02, 2014, 09:24:56 pm
content: Quote from: nowlan on October 01, 2014, 01:30:21 pm128 Mbit. AKA: 16 MB...it has 512 Mbit(64 MB) of RAM too. Since nobody ever specifies storage or RAM for computers in bits, it screams "spec inflation" to me.
IAR Help error Failed to setup call to 'FlashInit'" - Page 1
Forum section: electronics / general

author: diyaudio
author_rank: Frequent Contributor
timestamp: August 22, 2014, 11:51:54 am
content: Hi Guys.I'm trying out a stm32f103c8t6 mini dev board with an ST-Link/V2 programmer.http://www.ebay.com/itm/ARM-Development-Board-Cortex-M3-STM32F103C8T6-STM32-Module-8Mhz-USB-JTAG-ISP-USA-/161213419355I'm having trouble using IAR 6.5 when debugging. I get this error "Failed to setup call to 'FlashInit' " when the use flash loader is checked.Fri Aug 22, 2014 13:41:47: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 6.5\arm\config\flashloader\ST\FlashSTM32F10xxx.macFri Aug 22, 2014 13:41:47: Selecting SWD as current target interface.Fri Aug 22, 2014 13:41:47: Hardware reset with strategy 0 was performedFri Aug 22, 2014 13:41:47: Initial reset was performedFri Aug 22, 2014 13:41:47: -I- execUserFlashInit!Fri Aug 22, 2014 13:41:47: 456 bytes downloaded (5.71 Kbytes/sec)Fri Aug 22, 2014 13:41:47: Loaded debugee: C:\Program Files (x86)\IAR Systems\Embedded Workbench 6.5\arm\config\flashloader\ST\FlashSTM32F10xxxRAM32K.outFri Aug 22, 2014 13:41:47: Target resetFri Aug 22, 2014 13:41:47: Flash loader: Failed to setup call to 'FlashInit'"Can some point me in the right direction please.

author: zarta
author_rank: Newbie
timestamp: October 10, 2014, 08:48:17 am
content: i think you must change the settings in below picture.start with debug interface. switch it to JTAG from SWD.and try other reset options like connect during reset.these changes worked for me before.

author: dannyf
author_rank: Super Contributor
timestamp: October 10, 2014, 11:01:23 am
content: The usual stuff: check the wiring, power supply, boot setup, etc. Start with the ones that you are sure to be correct and work your way down.

author: diyaudio
author_rank: Frequent Contributor
timestamp: October 10, 2014, 11:19:15 am
content: Quote from: zarta on October 10, 2014, 08:48:17 amI resolved this problem some time ago, as im new to the STM / IAR world, I used the recommended approach by using the IAR templates and slowly breaking up the project into logical fragments I now have a fully working project using the templates and another one built from scratch as a learning exercise, that error has since vanished.

author: dannyf
author_rank: Super Contributor
timestamp: October 10, 2014, 11:30:17 am
content: I use templates too. I would have one for each chip family, loaded with most of the middlewares that I need. To create a new project, I just need to copy the whole template and rename it and I am in business.Setting up a fresh project in Keil / MDK can be fairly repeatitive -> that's where CoIDE is nice. Keil5 is taking a similar approach as well.The downside is disk size - my templates range from 30MB/project to 70MB/project,. And the initial compilation takes some time too.
Help me choose a programmer! - Page 1
Forum section: electronics / general

author: yoko911
author_rank: Newbie
timestamp: September 30, 2014, 12:22:15 am
content: Hello, im stuck in a project, i need to save a firmware on a flash memory, the firmware file is in .raw format and the flash memory to be programmed to is the M28W320FCB70ZB6E chip, but i cant find any programmers compatible (well at least on the device list it does not appear this chip),Any suggestions? as always i would prefer the cheapest one but as i want a durable one maybe we can find one stuck in between.Thank you in advance.
Pic MCU - Calculating Timer0 Overflow Rate - Page 1
Forum section: electronics / general

author: kolbep
author_rank: Frequent Contributor
timestamp: September 27, 2014, 08:29:48 am
content: Good Day.I know there is a really simple answer to this one. But the flu has hit me to an extent where my brain does not want to do much.What I am trying to do is work out how many times in 1 second Timer0 will generate an overflow interrupt, if the Osc is running at 16Mhz.My intent is to make a phase angle dimmer, and I would like to calculate the time to fire the triac using timer interrupts. But I am stumped.What is the correct formula using:Osc Frequency, Prescaler, Counter Bits (8/16), to work out the overlflows per second.Here is how far I got, until I got stumped :Thanks.P

author: Unknown
author_rank: Unknown
timestamp: September 27, 2014, 09:35:01 am
content: I think with most pics you need to divide the crystal clock by 4 to get the internal clock; so - 16Mhz gives you an internal 4 Mhz "fosc/4" clock; also I think the counter overflow occurs on the next clock cycle so in an 8 bit counter example it would appear to delay for 256 cycles, and then jump to your ISR.

author: jc101
author_rank: Frequent Contributor
timestamp: September 27, 2014, 09:35:55 am
content: Pop over to MikroE and download their free tool...http://www.mikroe.com/timer-calculator/...very handy.

author: kolbep
author_rank: Frequent Contributor
timestamp: September 27, 2014, 09:52:40 am
content: thnksthe calculator is exactly what i needed

author: miguelvp
author_rank: Super Contributor
timestamp: September 27, 2014, 06:00:42 pm
content: I know you have the calculator now, but for overflow you should use 256 instead of 255 and 65536 instead of 65535, since those are the number of values your counter will have until the next iteration.

author: dannyf
author_rank: Super Contributor
timestamp: September 28, 2014, 11:17:00 am
content: QuoteAnother way to think of it is to calculate the intervals between interrupts. 16Mhz crystal means 4Mhz cpu frequency on the pic. each tick is 0.25us. At 1:2 prescaler and 8-bit counter (assuming no reloading), that's 0.25us * 2 * 256 = 128us. or 1000000us / 128us ~= 8000 times per second.I don't know what your application is trying to do but as you can see, sometimes it yields fractional counts -> an impossibility. And over time, such fractional counts can lead to timing inaccuracy.There are ways around that, if long-term timing accuracy is an issue for your application.
HC705J1A bootloader programming cct needed - Page 1
Forum section: electronics / general

author: Circlotron
author_rank: Super Contributor
timestamp: September 28, 2014, 10:53:41 am
content: Hi all. Doing an upgrade for a good customer to some boards I made for him way back in the late 90's using HC705J1A OTP micros. Luckily I still have a few of them. I remember that there is a method of programming them where you could put your code in a small eprom, strap it to the micro, power it up and the code would be copied over and away you go. Obviously not the way you would do it in a production environment but quite okay for doing just a few.Does anyone still have a circuit for this, and any necessary instructions?I don't want any PC connected setup, just a micro, eprom and a handful of connections between the two.
Touchpad modules - Page 1
Forum section: electronics / general

author: Bud
author_rank: Super Contributor
timestamp: September 27, 2014, 02:52:52 am
content: TFT display modules have become a commodity, it is easy to find one with the interface and/or graphics controller you are familiar with or information for which is available. So I was somewhat surprised to find very little when tried to search for a touchpad module. Despite touchpads been used everywhere in laptops these days, my search for a readily available touchpad module for integration with microcontroller projects failed miserably. Does anyone know of a supplier selling a vanilla touchpad modules, i.e. not just aftermarket replacements for specific laptop models but rather a generic module that can be used with hobby projects. I know Microchip recently came up with a kit but I would like to understand what else is available.

author: paulie
author_rank: Frequent Contributor
timestamp: September 27, 2014, 01:16:52 pm
content: It's not obvious what use a touch panel alone would be but probably your best bet are the touch+lcd and throw away the display part. Like this:http://www.ebay.com/itm/New-1PCS-2-4-TFT-LCD-Touch-Panel-TF-Reader-For-Arduino-UNO-R2-R3-A137-UNO-R2-/111385996082?pt=LH_DefaultDomain_0&hash=item19ef1f6b32Sometimes as low as 3-4 bucks shipped more than one on Aliexpress. The touch screen is just attached with double side tape and easy to separate. I have seen stand alone touch screen modules there too but the cost was about five times more than the combo lcd with touch. Display and touch controllers are closely linked for technical reasons so rare to find touch alone.
Book for ARM Microcontroller & Peripherals - Page 1
Forum section: electronics / general

author: EEVaditya
author_rank: Regular Contributor
timestamp: September 22, 2014, 12:11:03 pm
content: Hello,Please suggest books regarding the conceptual information of ARM Microcontroller with ADC(single mode, burst mode, DMA mode...etc) UART (polling,interrupt, DMA...etc)Please suggest books those have illustrated the concepts.

author: nctnico
author_rank: Super Contributor
timestamp: September 22, 2014, 12:29:34 pm
content: I suggest to read the user manual of an ARM controller. NXP has nice user manuals which explain most of the peripherals in depth.

author: dannyf
author_rank: Super Contributor
timestamp: September 22, 2014, 04:25:17 pm
content: Assuming that you program those chips in C - you would be crazy to program them in assembly, the core is largely transparent to you and you don't need to read a book about it.The peripherals differ from vendor ro vendor and even chip to chip. The best book on that is the datasheet for the particular device you are trying to program.

author: paulie
author_rank: Frequent Contributor
timestamp: September 22, 2014, 05:01:58 pm
content: Quote from: dannyf on September 22, 2014, 04:25:17 pm"Those who can... do. Those who can't... preach."LOLAnyway, search is your friend:http://en.wikipedia.org/wiki/ARM_Cortex-Mps. Here's the book that got me hooked:http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CCAQFjAA&url=http%3A%2F%2Fwww.cs.indiana.edu%2F~geobrown%2Fbook.pdf&ei=XlcgVJD3DIunyAT98YLIBA&usg=AFQjCNF2AcXa7hprsYq9bd7DlMepiSw0zg&bvm=bv.75775273,d.aWw

author: zapta
author_rank: Super Contributor
timestamp: September 22, 2014, 05:11:48 pm
content: Quote from: paulie on September 22, 2014, 05:01:58 pmIs this is why you preach Assembly in the other thread? ;-)Anyway, anybody knows a good paper book that deal with NXP's processors and peripherals? (my current interest is M0).

author: paulie
author_rank: Frequent Contributor
timestamp: September 22, 2014, 05:22:47 pm
content: Haha... apparently. I'm certainly not the one "doing" the most in that thread but am complemented (offline anyway) by my ability to "teach". Admittedly not everyone is able to "learn".In my defense I will take credit being the first person to ever post a working asm LED program. Here or anywhere else on the net AFAIK. Also the first to provide an actual toolset, not just links that may or may not still be alive and C fragments that may or may not run. Don't forget breaking the 60 second record too.And I owe it all to YOU! Thanks again my friend.

author: EEVaditya
author_rank: Regular Contributor
timestamp: September 26, 2014, 07:31:32 am
content: Can I get anywhere the free download of Embedded series books on ARM by Jonathan Valvano.
Anyone know a direct link to ISE Impact? - Page 1
Forum section: electronics / general

author: nctnico
author_rank: Super Contributor
timestamp: September 23, 2014, 01:18:34 pm
content: I'm in a bit of a pickle. I need ISE Impact ASAP but downloads from Xilinx' website are not working. Even if it is working it is 1GB to downloadHow did they F*** this up so bad?

author: Precipice
author_rank: Frequent Contributor
timestamp: September 23, 2014, 01:35:53 pm
content: http://www.xilinx.com/support/answers/57840.html?Edit: That won't fix the fact that it's a massive download, but at least the java downloader crap won't get in the way.Edit2: If that's not the solution, then I have stashed copies here, but I suspect my upload speed means you won't get it for a day or two...Edit3: I can confirm that it starts to download OK for me - how does it break for you?

author: mrflibble
author_rank: Super Contributor
timestamp: September 23, 2014, 02:50:17 pm
content: Yup, xilinx download section generates vacuum on a specific region on genus Equus africanus asinus. I always end up doing the login dance, clicking the download, and then grabbing the 302 redirect. Then download that url using wget with reget. Because less vacuum.And yeah, to get just Impact you still have to grab a whopping 1 Gb download. Silly people.Anyways, if this is still a problem send a PM for a direct link.

author: nctnico
author_rank: Super Contributor
timestamp: September 23, 2014, 03:07:13 pm
content: In the end I managed to get the file to download from my Linux machine so I'm OK for now.

author: Precipice
author_rank: Frequent Contributor
timestamp: September 23, 2014, 03:54:39 pm
content: And you've stashed it somewhere safe, along with a full ISE download and a suitable license.dat file for next time?It took me a few panic-stricken goes to realise that Xilinx had installed a deadline-sensitive download 'accelerator'...Still, at least you can still get the good stuff, rather than being forced onto whateverthehellistcallednow.
Faulty 32LQFP - Page 1
Forum section: electronics / general

author: jesuscf
author_rank: Frequent Contributor
timestamp: September 16, 2014, 02:31:09 am
content: Today I received a tray of 250 micro-controllers. One of them was not like the others: pins 25 to 32 were not bent properly (see picture, the one to the left). It is the first time I see something like that. Anybody has seen it before? Any idea of how common this problem may be?

author: zapta
author_rank: Super Contributor
timestamp: September 16, 2014, 03:11:53 am
content: It's a collector item.

author: dannyf
author_rank: Super Contributor
timestamp: September 16, 2014, 09:49:08 am
content: It is a highly automated process so if it happens it must be extremely rare - I would suspect if the chips come from a legit source.

author: Precipice
author_rank: Frequent Contributor
timestamp: September 17, 2014, 11:38:42 am
content: This is what happens when you shut a tray on a chip that's not centred. I suspect the chip started out fine...

author: Psi
author_rank: Super Contributor
timestamp: September 17, 2014, 11:41:33 am
content: Quote from: Precipice on September 17, 2014, 11:38:42 amyeah, thats my conclusion as well.

author: Jeroen3
author_rank: Super Contributor
timestamp: September 18, 2014, 04:21:57 pm
content: Quote from: Precipice on September 17, 2014, 11:38:42 amSeems most likely. But do not forget that packaging the die is the part of the process with the highest failure rate.

author: true
author_rank: Frequent Contributor
timestamp: September 20, 2014, 05:19:58 am
content: I've had this happen on some orders, QFPs between 32 and 64 pins, from Mouser. I've also had only half of the pins on an edge bent like this, the other half completely fine, no transition period...weird stuff.I would say about 1/200 QFPs I get have failures like this out of the box/tray/bag/packaging.
Pickit3 VDD and VSS line short - Page 1
Forum section: electronics / general

author: dreaquil
author_rank: Regular Contributor
timestamp: September 19, 2014, 10:13:53 am
content: A few months ago I bought a pickit 3 in order to start learning about micro-controllers. I plugged it into my windows 8.1 machine, loaded up a basic Blinker program and tried to program. It gave me a " connection failed" error, opened up a ticket with microchip but they had nothing useful to say to help me solve it. After i plugged my pickit into my friends windows 7 PC the firmware got updates and it started working fine on my windows 8.1 PC. So since then I've been working on a small 4 digit led 7 segment voltmeter project to get started and that has been going fine until I decided I needed to format my PC cause it was getting slow. So I did that, re-installed my software and wanted to get back to the voltmeter. Loaded it up and tried to program and got the connection failed error again. After messing around with settings i got it to say Programming/Verify complete, but my pic18f45k50 did nothing. I started probing around and found out there was a short between the VDD and VSS lines. After some more probing I found it to be internal to the pickit3. I now have reopened a ticket with microchip. I am hoping they'll get back to me soon but in the meantime I was wondering if anyone on here has gone through this and if maybe there's a solution ( the pickit power, active and status lights are still on so its not completely dead)EDIT: There's definitely a smell that tells me the pickit3 might have let out some magic smoke.EDIT 2: Here a photos of back and front of the board. Anyone know what the MCC 18B part is? Looks like a diode to me. Some of them are shorted and one of them is at 0.625 volts both polarities (possible a zener?) The surface mount fuses are still okay. I did notice that on the back of the board theres a 91ohm resistor between Vdd and Vss.

author: dannyf
author_rank: Super Contributor
timestamp: September 19, 2014, 10:59:49 am
content: You can find the schematics for pickit3. It is probably schottky diode.

author: dreaquil
author_rank: Regular Contributor
timestamp: September 19, 2014, 11:21:44 am
content: Thanks for that. I found the part 3SMAJ5918B-TP . All the ones on the board are shorted out i think as its supposed to be a 5v zener and two are shorted and the other is showing 0.625V

author: dannyf
author_rank: Super Contributor
timestamp: September 19, 2014, 12:10:14 pm
content: The schematic showed 3 5.0v zeners on the icsp pins, consistent with your picture.
is it possible to use the fpga's built-in jtag tap for custom purposes ? - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: September 15, 2014, 11:34:34 pm
content: hi guysi am dealing with Xilinx Spartan3 and Spartan6 fpga, i am implementing a soft core and i need a jtag machine to be connected to the soft core's registers in order to do debugit seems i have two choicesa) implementing a jtag tap machine by myself, wiring it to FTDI2232 (e.g. DangerousProject BusBlaster v2/v3) throughout a few fpga headers pinb) try to use the same jtag tap machine from where the fpga loads its bitstream, in this case i have to deal with Xilinx-USB-cableis b) really possible ? also, i need to "expand" the tap machine in order to access to the soft core register (which looks like a 32bitx36lines memory)

author: legacy
author_rank: Super Contributor
timestamp: September 16, 2014, 09:25:05 am
content: i have found the following, which provides Xilinx BSCAN_* virtual JTAG interface (1) allowing a user to connect to the advanced debug unit through the main FPGA JTAG connection.QuoteAn other good source of information fromXilinx Spartan2 BSCANAN.edit:(1) it seems the Xilinx equivalent of the Altera sld_virtual_jtag interface

author: legacy
author_rank: Super Contributor
timestamp: September 18, 2014, 05:42:28 am
content: Has anyone managed to get the xilinx BSCAN primitives for interfacingwith the USERx jtag registers?

author: legacy
author_rank: Super Contributor
timestamp: September 18, 2014, 05:00:12 pm
content: about using BSCAN_SPARTAN3, it seems fromthisdiscussion that the best example can be found inurjtag-extra-fjmemdocumentation
Which Profinet protocol stack? - Page 1
Forum section: electronics / general

author: nctnico
author_rank: Super Contributor
timestamp: September 28, 2014, 09:28:19 pm
content: For an upcoming project I may want to interface with Profinet (that is a PLC communication protocol over ethernet) implemented on a microcontroller.I have been looking into how to interface with Profinet. There are three options:- Roll my own Profinet implementation- Buy a protocol stack- Buy an interface module.The option of writing my own Profinet protocol stack doesn't appeal to me because it always takes more time than expected. The advantage of using a readily available protocol stack is that I can also add stuff like a webserver to read the status using a webbrowser and upload new firmware remotely. There are several protocol stacks out there and I'm wondering if anyone has experience with one or more of those.
Universal programmer - versaloon - Page 1
Forum section: electronics / general

author: dannyf
author_rank: Super Contributor
timestamp: September 14, 2014, 02:00:55 pm
content: Someone asked a while back about programmers that can program multiple chips / simulate multiple programmers.One such example is lpclink2 - which can take different firmware.I mentioned a project that started very promising but has been abandoned now - versaloon.You can still find firmware, drivers and schematics of it online. It can program many of the popular chips and function like an openocd device. The simplest implementation requires a STM32 + 1 resistor, and can be easily made into a usb thumb-drive case.You will find lots of similarities between versaloon, st link v2 and jlink v9.
Efficiently splitting arrays on SAM4 - Page 1
Forum section: electronics / general

author: poorchava
author_rank: Super Contributor
timestamp: September 15, 2014, 06:42:11 am
content: Hi,I have a project which uses Cortex-M4 uC (SAM4S8C) to sample 3 channels of data and then to some DSP VooDo with it. Unfortunately the DMS in this uC is made in such a way, that it will interleave samples in output buffer (x0,y0,z0,x1,y1,z1,.....). I need those samples to be in 3 separate tables in x0,x1,x2 order.Is there a fast way to do this (that is: other than copying all the stuff sample by sample)?

author: Jeroen3
author_rank: Super Contributor
timestamp: September 15, 2014, 08:10:16 am
content: Yes, with pointers.Code:sample* p = x0;p+3;Your peripheral dma doesn't seem to support 3 byte pointer increments. That is unfortunate.You can try to insert an extra dummy sample and jump a word with an initial offset.In all cases, having your 3 byte data 4 byte aligned might be better instead of walking across the 4 byte boundary.No you have:x0,y0,z0,x1y1,z1,x2,y2,z2,x3,y3,z3Much better to have:x0,y0,z0,padx1,y1,z1,padAssuming you're using bytes, which might not be the case.

author: dannyf
author_rank: Super Contributor
timestamp: September 15, 2014, 09:52:53 am
content: QuoteIt is a pretty standard output form scanning adc.The best approach is to change your algorithm to fit this pattern.Alternatively, run DMA on the ADC (with increments 3).Or run DMA memory to memory transfer after the sampling is over. Again, it assumes that the DMA supports increments of 3.
HELP! Atmel 328p Burning question - Page 1
Forum section: electronics / general

author: blaklite
author_rank: Newbie
timestamp: September 06, 2014, 10:44:51 am
content: When I ordered an Arduino I was waiting so long for the package to arrive fro China that I ended up ordering another. As it was they both ended up appearing on the same day. That is a long winded way to say that I now have a spare 328p IC, and I was looking to put it straight on a breadboard to play around with.Not having any other way, I loaded the ArduinoISP sketch, wanting to use that to "burn" the chip. I hooked it all up and sort of got things working, however...When I ran the "Burn Bootloader" in the Arduino IDE, I could write to the chip ok, then if I switched directly to Atmel studio, I could then load in a program without issue, but if I disconnected the power and tried to do the same again, I would get "verification error, first mismatch at byte 0x000000xx" errors.Thinking that the problem was due to the clunky setup I had of using an Arduino as a programmer, I got myself a el cheapo USBAsp device, hoping that would fix the issue. Nope, I still get errors when I try and program the IC directly, but if I use the "Burn Bootloader", and then write my program onto the IC, it works like a charm.I am thinking that I have a problem with the RESET line, but nothing I do seems to make a difference. I have tried putting 1K, 10K, 47K resistors to both +5V and Ground, with no noticeable difference. When I use the IDE to "Burn Bootloader" first, it works every time.Please can some clever person help ?

author: blaklite
author_rank: Newbie
timestamp: September 06, 2014, 01:40:23 pm
content: Ok so problem solved... but can anyone tell me why ?I noticed that I could use the Arduino IDE to use the USBAsp to upload a sketch without issue (I had thought that the IDE could only use the "normal" usb connection for sketches, but then spotted the "Upload with Programmer, under the file menu)So in Atmel Studio, I specified that same .conf file under the Arduino directory.Also trying to use the arvdude.exe under Arduino results in errors about the entry point in the dll, so I am using my own build of avrdude, from the latest sources, and the Arduino config file, which usually results in other errors. Go figure.Why on earth should this make a difference?

author: Rigby
author_rank: Super Contributor
timestamp: September 12, 2014, 12:23:19 pm
content: You want this book.http://shop.oreilly.com/product/0636920028161.doIt has all the information you're asking about and a hell of a lot more. This book is amazing.
Microcontroller ESD protection - Page 1
Forum section: electronics / general

author: rocky79
author_rank: Contributor
timestamp: September 10, 2014, 06:07:07 pm
content: I have been looking for a level 4 ESD pin protection on microcontroller pin( pic16f1503).The micro digital input pin is used to measure pulses between 50us to 200us.Do you think a circuit like this would work?R=500 ohms andC=0.01uFVESD=V0=15kv ( Level 4)Vc=V0(1-e^(-t/RC))Ic=(V0/R)*e^(-t/RC)the RC filter will take 1.67uS to charge to 5v however the deadly spikes only last 10’s of nano-seconds.The initial spike current at t=0 is V0/R=(15kv/500)=30 amps.In order to conduct this damaging current away from the protected component I added a TVS diode in parallel with the RC.What do you think about this TVS from littlefuse part# SD05C it has 5v reverse working voltage and clamp at 14.5v 10amps?Any other suggestions will be appreciated.

author: thm_w
author_rank: Super Contributor
timestamp: September 11, 2014, 12:28:02 am
content: The R needs to be in series with the i/o pin, from what you've drawn thats not correct.Also I would prefer to use unidirectional TVS. Others may recommend schottky.http://www.onsemi.com/pub_link/Collateral/AND8424-D.PDF

author: rocky79
author_rank: Contributor
timestamp: September 11, 2014, 04:47:05 pm
content: Quote from: thm_w on September 11, 2014, 12:28:02 amYes, you're right. I have updated the schematic. Also good point about using a uni-directional TVS. Thank you for the advice!
how does jtag tap machine work in details ? - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: September 13, 2014, 02:32:06 pm
content: hi guysi have been studyingthistutorial that shows a few details about the jtag tap.I have understood- how to determine the IR register length- how to read the IDcode (manufacture, revision, etc etc)- hot to determine how many devices are in the jtag chaini can't understand how to read a DR register without corrupting it!the jtag tap seems to read/write at the same time, so if you go into Caputure-DR you make the TAP machine to copy a pointed (1) register content into "scan register", so you can read it with Shift-DR through TDI, but … every time you issue a Shift-DR you also write into scan register content, so when you go into Update-DR you are copying the register content back to the pointed register contentand here we go, getting a corruptiondo i miss something in the TAP behavior ? who can clarify with an example ?thanks(1) you can point registers with IR instructions, for example if IR is equal to b1110 then you are pointing the IDCode register (read only)

author: abyrvalg
author_rank: Frequent Contributor
timestamp: September 13, 2014, 08:05:38 pm
content: That depends on an instruction you are issuing. Some instructions like IDCODE ignores Update-DR, some have a paired instruction to read data for future updates (SAMPLE can be used to get some default value for future INTEST/EXTEST). Or in the most general case you can shift in the same values you are shifting out: in Shift-DR state you see the first bit value on TDO before shifting in something on TDI - so just set TDI=TDO and clock out the next bit.

author: legacy
author_rank: Super Contributor
timestamp: September 13, 2014, 11:53:04 pm
content: imagine you have anAdvance Debug Interface(aka ADI) connected to your jtag TAP machine, how could you ran the desk with its registers ?does the tap need a pair of instructions (read, write) for each the ADI's registers ?each read instruction will ignore the write-back phase in the update-Dr stateeach write instruction will take the write-back phase in the update-Dr stateis it correct ?examplethe ADI unit has 4 registers {ADI.r0, ADI.r1, ADI.r2, ADI.r3}does the jtag TAP machine need to have thesecustom instructions{{rd_ADI.r0, wr_ADI.r0}, {rd_ADI.r1, wr_ADI.r1}, {rd_ADI.r2, wr_ADI.r2}, rd_ADI.r3, wr_ADI.r3}} ?

author: abyrvalg
author_rank: Frequent Contributor
timestamp: September 14, 2014, 07:36:08 am
content: Why not? It should work.But there are other ways also: for example, ARM debug unit (ICEBreaker) registers are accessed with a single IR instruction, but DR has address, r/w, data fields
Atmel SAM D20 - Page 1
Forum section: electronics / general

author: tszaboo
author_rank: Super Contributor
timestamp: September 17, 2014, 07:47:35 am
content: Hello,I'm planning to use one of the Atmel SAM D20/D21 MCU in an upcoming project. I dont have any experience with Atmel's ARM products, nor with the M0+. It is considered because the communication interfaces, there should be a lot of separate SPI, DMA between them, and this is the cheapest with lot of SPI.Did anyone use them before? What is the experience with them? Am I missing something, or it doestn have a ROM bootloader so you need ISP to program them after manufacturing? Is the Atmel studio a good software environment? The last time I worked with Atmel, it was a 8 bit AVR six years ago... Thanks for taking your time to reply!

author: Spikee
author_rank: Frequent Contributor
timestamp: September 17, 2014, 04:15:28 pm
content: The new unreleased Arduino Zero is using the Atmel SAM D21 zo it should be a pretty good chip.I have used AVR studio quite a lot and I must say that it is a pretty good IDE for programming. No major issues with it tbh.You can put a bootloader on the chip to program it via usb or whatever. But ISP also works.

author: tszaboo
author_rank: Super Contributor
timestamp: September 17, 2014, 04:59:24 pm
content: I usually prefer ROM UART bootloaders, because that makes production programming much easier. With a "bed of nails tester" when you have to integrate a third party production programmer for the ISP, it becomes a mess.

author: Spikee
author_rank: Frequent Contributor
timestamp: September 17, 2014, 05:06:22 pm
content: Quote from: NANDBlog on September 17, 2014, 04:59:24 pmIt should all be possible
Very simple program doesn't work - Page 1
Forum section: electronics / general

author: Tricka90
author_rank: Regular Contributor
timestamp: September 07, 2014, 08:47:47 am
content: Hello everybody.I just bought the PicKit2 44 PIN Demo Board (https://www.google.it/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CCMQFjAA&url=http%3A%2F%2Fww1.microchip.com%2Fdownloads%2Fen%2FDeviceDoc%2F41296B.pdf&ei=Sw4LVIbGO4j_OZCngIAG&usg=AFQjCNFmZjaRhRjo1-N-1YA8G9RD0s-pFw&sig2=KBUtjPtvLT_F--s9p8DVgQ&bvm=bv.74649129,d.ZWU) which has the PIC18F45K20 (http://ww1.microchip.com/downloads/en/DeviceDoc/41303G.pdf).Using sofware MikroC I made this very simple program which should light up the 8 LEDs on the Demo Board:Code:void main(void){TRISD = 0;PORTD = 1;while(1){}}When I try to program the PIC using PicKit2 it doesn't work. I have another .hex file, made by a friend of mine which does work, so the writing process is correct and the Demo Board works. That means there must be some mistake in the code or the MikroC settings. I tried changing Oscillator settings but it doesn't work.What do you think about it?Thank you in advance

author: eurofox
author_rank: Unknown
timestamp: September 07, 2014, 09:03:09 am
content: Quote from: Tricka90 on September 07, 2014, 08:47:47 amCheck your #FUSES

author: David_AVD
author_rank: Super Contributor
timestamp: September 07, 2014, 09:08:08 am
content: Also,Code:PORTD = 1;will set the LSB of PORTD high and the rest low.

author: Cside
author_rank: Regular Contributor
timestamp: September 07, 2014, 09:11:19 am
content: Quote from: Tricka90 on September 07, 2014, 08:47:47 amtry PORTD = 0xFF;
Writing to EEPROM w/ Arduino - Page 1
Forum section: electronics / general

author: electron_misfire
author_rank: Contributor
timestamp: September 06, 2014, 12:52:28 pm
content: Hi all,I'm currently experimenting with arduino. My current project is a stopwatch that saves times to EEPROM. With all the examples I've looked at every time the arduino restarts the write address is the same. Wouldn't that overwrite the existing information? If so, how would I write the code so that I don't overwrite existing bytes.Thank you.

author: Psi
author_rank: Super Contributor
timestamp: September 06, 2014, 12:57:25 pm
content: Store the active eeprom address in eeprom itself.Then you can keep track of it and write to the next available address.You may also want to change the EESAVE fuse bit so that reprogramming the arduino doesnt clear the eeprom.