hybridfree/eevblog-posts huggingface dataset:
Ulta low power DACs - Page 1
Forum section: electronics / general

author: t22456
author_rank: Newbie
timestamp: October 13, 2017, 01:24:23 am
content: As usual I have been put to task finding an ultra low power precision DAC. Product power budget is set at 500mW total. There are a zillion DACS out there so just asking if someone here has dealt with finding such a part. It has to be 16 bits, SPI input, and I think separate power supply for the analog output would be best but not necessary. Thank you in advance!

author: NiHaoMike
author_rank: Super Contributor
timestamp: October 13, 2017, 05:45:41 am
content: You didn't mention what sample rate (SPI suggests an upper limit of a few Msps at most) but 500mW is not typically "low power". Did you mean 500uW?

author: t22456
author_rank: Newbie
timestamp: October 13, 2017, 12:53:12 pm
content: The 500mW is the total system power budget including 2 ADC's, FPGA, uP, and 5 DAC channels. So single digit mW's or lower is needed. I may have to utilize shutdown mode to realize that kind of average power.

author: ale500
author_rank: Frequent Contributor
timestamp: October 18, 2017, 02:18:27 pm
content: An FPGA too ? in 500 mW ? Which one, can I ask ?

author: RES
author_rank: Regular Contributor
timestamp: October 27, 2017, 07:47:47 pm
content: DAC8830 (voltage DAC)Very Low Power: 15 uW for 3 V PowerHigh Accuracy, INL: 1 LSBhttp://www.ti.com/lit/ds/symlink/dac8830.pdf?
Usb device not recognized error while trying to program AT89C5130 thru USB FLIP - Page 1
Forum section: electronics / general

author: sangar
author_rank: Regular Contributor
timestamp: October 26, 2017, 10:16:21 am
content: Hello all,Since last two days, I am trying to program My Atmel AT89C5130 through USB using Atmel Flip programmer software. And I have installed Usbautolaunch.exe (from Atmel) as per installation guide to detect USB device. Though, continuously getting "USB not recognized" error from windows and "Usb device descriptor failed " error in windows Device manager is stopping me to program the microcontroller. Please suggest solution.Regards,Sangar

author: hans
author_rank: Super Contributor
timestamp: October 27, 2017, 07:21:43 am
content: Same question?https://www.eevblog.com/forum/microcontrollers/how-to-program-at89c5130-microcontroller-through-atmel-'flip-3-4-7-'/Is this by chance a homework assignment from some university? If so, maybe they have experience programming these obsolete boards.
Help finding a replacement for a discontinued SBC please - Page 1
Forum section: electronics / general

author: Delta
author_rank: Super Contributor
timestamp: October 28, 2017, 04:11:55 am
content: I am looking for a replacement for theiBASE IB886 SBC, which is used in an industrial touchscreen HMI I am attempting to repair. As the IB886 is now discontinued, I am looking for a suitable replacement. I will try to give as much info about this application:It is a 3.5" disk size, and the replacement needs to be the same to mount in the chassis.All external ports protrude through cutouts in the chassis (a bit of metalworking may be possible here though)The HMI runs from a single 12v internal supply.The screen is connected to both LVDS sockets.Touch input is via RS-232It runs Windows XP from a CF card.The CF card is connected to an external (to the SBC) reader, connected to the IDE header on the SBC.Only one LAN connection is used.In an ideal world, I would be able to find a drop-in replacement, that will immediately run from the original CF card, but I know that is a lot to ask!If IDE is not available, are there CF card readers that will connect to a SATA port? Can you boot from a CF card in a USB reader? Any other ways?I have emailed iBASE to see what they suggest, but I will go with another manufacturer if it fits the bill.I hope I haven't been to vague here, but any help is greatly appreciated.

author: RES
author_rank: Regular Contributor
timestamp: October 28, 2017, 04:17:46 pm
content: Here a list of 3.5" embedded little boards.http://www.attro.com/html/embedded-2.htm
Any Ideas about price of PSoC 6 - Page 1
Forum section: electronics / general

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: October 24, 2017, 02:25:02 pm
content: Hi,I have seen them on cypress, they look promising, a dual core Cortex M, like LPC43XX or LPC54XX from NXP with the added BLE or Wifi connectivity, more ram and flash and CPU clock than Nordic parts, the question for now is how they are priced? and what tools and library do they support for the RF parts, and the Possibility to work directly in Keil is a must for success. Do they support Mesh networks? it's a big question for them.

author: rstofer
author_rank: Super Contributor
timestamp: October 24, 2017, 08:12:41 pm
content: You can use the Product Selection guide at cypress.com to find that only 1 variant has a price and it is $6.55 qty 1000.The other devices aren't priced yet and the one that is happens to come in a BGA package which makes it useless for my hobby applications. Other packages will be available - sooner or later.

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: October 25, 2017, 06:15:01 am
content: 6.55$ is insane and make them useless, since the next best thing is NRF52832 and it has a more capable radio, and it's about 2.5 USD in Quantities under 5K, they should mark them something near 2.5-3USD for 10K units

author: danadak
author_rank: Super Contributor
timestamp: October 25, 2017, 11:09:03 am
content: I don't think a direct comparison between the Nordic and PSOC 6 isuseful. Look at overall capabilities of both. PSOC 6 is not just a radioand a core. That's way oversimplification.Here is roadmap for PSOC, and less expensive solutions for BLE.http://www.cypress.com/file/151476/downloadRegards, Dana.
HOW TO PROGRAM AT89C5130 MICROCONTROLLER THROUGH ATMEL "FLIP 3.4.7 " - Page 1
Forum section: electronics / general

author: siva E
author_rank: Newbie
timestamp: October 25, 2017, 09:14:51 am
content: DEAR SIR, I AM USING,1. AT89C5130 MICROCONTROLLER KIT,2. WINDOWS10 OS 64 BIT,3. FLIP3.4.7 PROGRAM SOFTWARE TOOL,4. USB 2.0 CABLE (CONNECT PC TO AT89C5130 MICROCONTROLLER KIT),5.KEIL COMPILLER,MY PROBLEM,I HAD INSTALLED FLIP3.4.7 SOFTWARE & USB AUTOLAUNCH SOFTWARE EXTENSION SUCCESS FULLY. FIRST TIME (ONLY ONE TIME) PROGRAM SUCCESSFULLY LOAD TO AT89C5130 IC KIT BUT NEXT TIME CONNECT KIT TO PC, SHOWS ERROR MESSAGE "USB DEVICE NOT RECOGNIZED".THEN OPEN "DEVICE MANAGER" RIGHT CLICK "UNKNOWN USB DEVICE", UPDATE DRIVER,BUT SHOWS MESSAGE "THE BEST DRIVER SOFTWARE FOR YOUR DEVICE IS ALREADY INSTALLED" "WINDOWS HAS DETERMINED THE DRIVER FOR YOUR DEVICE IS UP TO DATE", "UNKNOWN USB DEVICE (DEVEICE DESCRIPTOR REQUEST FAILED)"PLEASE HELP SOLVE TO THIS PROPLEM SIR.THANKS & REGARDS BY,SIVA - 9003030824Mail_Id : sivaeshwaran@gmail.com
Interfacing FPGA and Microcontroller - Page 1
Forum section: electronics / general

author: samakit95
author_rank: Newbie
timestamp: October 24, 2017, 09:36:10 am
content: Hello,I want to send my data from FPGA to micro-controller. Data is 32 bit and I want to use the 8-bit microcontroller. Can I use UART as I do not have SPI interface in my microcontroller?Thanks.

author: daqq
author_rank: Super Contributor
timestamp: October 24, 2017, 09:43:12 am
content: You can use any interface you want to communicate between an MCU and an FPGA.

author: spudboy488
author_rank: Regular Contributor
timestamp: October 24, 2017, 11:27:06 am
content: If you have the pins on the micro, you can use an 8-bit port (most should have one). If not, serial would be another option. Since you're designing, you can do whatever is the easiest and most efficient.

author: hans
author_rank: Super Contributor
timestamp: October 24, 2017, 12:49:12 pm
content: Without further specifying what you will send (size, frequency, latency requirements) you will get a wide range of answers.In FPGA you can pretty much write an implementation for SPI, UART, parallel, etc. given that you're proficient enough with the protocol. You may want to choose to have the microcontroller firmware the easiest, i.e. make that a SPI master, or use an UART.But really it requires much more detail to give any non-generalized advice.

author: asmi
author_rank: Super Contributor
timestamp: October 24, 2017, 02:25:59 pm
content: It might be easier to just get rid of discrete MCU altogether and instead implement a softcore inside FPGA. Given that MCU is 8-bit, there should be no problems with performance.

author: NiHaoMike
author_rank: Super Contributor
timestamp: October 24, 2017, 02:43:12 pm
content: Does the UART support synchronous mode? That would make things a lot simpler since it would then basically be SPI.
ATMEGA328 running code but with excessive power usage - Page 1
Forum section: electronics / general

author: xani
author_rank: Frequent Contributor
timestamp: October 22, 2017, 01:18:31 am
content: So I might've or might've not put 12V on input pit of atmega for few seconds, and now chip itself is taking around 70mA (i've buzzed all IO pins to ground and power lines so it doesn't seem to be just a short) while having basically nothing connected to output pins.But otherwise it is running normally, code is executing and outputs send the correct data (it was a controller board for my ARM cluster). I assume chip is busted (as even with correct output it would probably cook itself in few minutes but I'm curious what exactly could fail inside the chip to cause that partial failure ?

author: ataradov
author_rank: Super Contributor
timestamp: October 22, 2017, 02:06:32 am
content: Most likely ESD diodes, or something else in I/O ring.

author: danadak
author_rank: Super Contributor
timestamp: October 22, 2017, 07:50:22 pm
content: QuoteRegards, Dana.
Configuration bits for low-end PSoC 4000S devices - Page 1
Forum section: electronics / general

author: funkathustra
author_rank: Regular Contributor
timestamp: October 21, 2017, 04:27:44 am
content: I'm still working on my$1 MCU review, and I wanted to make sure I get the facts right.With respect to low-end PSoC devices like the 4000S, there's essentially no PSoC reconfigurable "magic" — it's essentially a straight-up ARM microcontroller, with fixed function blocks. At least, that's what it looks like to me. Is this true?These *appear* to be configured entirely through normal peripheral registers, not by the PSoC configuration bitstream. Is this true?If so, do these devices support programming directly from outside of the PSoC environment, since they don't have any proprietary bitstream stuff?Device header files seem like they're auto-generated based on the peripheral selection. Is this true? Is there a standard header file that has all the definitions for all the peripherals, which would allow, say, GCC to target the device directly?I'm interested in learning more about how the configuration bitstream works, what's *actually* in it, and what's not — I'm struggling to find documentation on this stuff, but I think I'm just being dumb and not searching for the right terminology.I totally get how this works on higher-end PSoC devices that have reconfigurable digital logic / analog (or at least, I can imagine how it would work --- similarly to an FPGA or CPLD, right?)I know there's a few PSoC die-hard developers here, so if anyone could walk me through this stuff, I'd really appreciate it!Thanks everyone! Looking forward to learning more.

author: danadak
author_rank: Super Contributor
timestamp: October 22, 2017, 07:40:26 pm
content: Look at the PSOC 4 Register Reference Manual, Architecture Reference Manual, and theprogramming manual.http://www.cypress.com/documentation/technical-reference-manuals/psoc-4000-family-psoc-4-architecture-technical-referencehttp://www.cypress.com/documentation/technical-reference-manuals/psoc-4000-family-psoc-4-registers-technical-referencehttp://www.cypress.com/file/126826/downloadBasically registers are used to configure HW resources, they are mapped into FLASH, and written at programming time.Regards, Dana.
zynq RFSOC - Page 1
Forum section: electronics / general

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: October 09, 2017, 03:26:31 pm
content: Hi,They have released these beasts! do you have any price info? I wonder if they could be used on what gears!? maybe we could see them in modern scopes tooThe question for me and most others would be when they will become available in china or taobao? so we can buy them at 1/5th of the original price

author: CM800
author_rank: Frequent Contributor
timestamp: October 09, 2017, 03:30:28 pm
content: I have a slight suspicion these could be crazy expensive / hard to get ahold of.heck, it wouldn't even surprise me if they came out as ITAR or some equivalent.

author: borjam
author_rank: Unknown
timestamp: October 09, 2017, 03:32:14 pm
content: Quote from: ali_asadzadeh on October 09, 2017, 03:26:31 pmNo offense intended, but I guess you actually mean "so we can buy them at all" because I think some of these are painted green

author: ataradov
author_rank: Super Contributor
timestamp: October 09, 2017, 04:40:48 pm
content: Just given their parameters, they are going to be ITAR restricted.I've heard some pricing around $5000 for starting models. Their whole marked seems to be for next gen wireless base stations, which can easily tolerate prices like this.

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: October 10, 2017, 06:38:52 am
content: Interesting...But we all know the rules we can find anything in china! so if starting price in US is 5000$ I guess about next year we could find them about 1000-2000$ in china, where there is the land off no ITAR bulshit!They claim their main market would be wireless and radar, but I wonder what other nice creative jobs can be done with them

author: asmi
author_rank: Super Contributor
timestamp: October 18, 2017, 08:29:03 pm
content: Get ready to sell your car for one of these. If you can get them at all, that is.

author: borjam
author_rank: Unknown
timestamp: October 19, 2017, 09:22:12 am
content: So last week I visited one of the modern Spanish frigates with that "Aegis" system. The most visible feature, four large hex shaped phased array antennas.Guess they have several of those or similar inside! Unfortunately, of course, most of the chambers inside the ship were labelled "Level this only, special authorization" and the doors were kept closed.

author: borjam
author_rank: Unknown
timestamp: October 20, 2017, 05:54:55 am
content: Quote from: cleaningOut on October 20, 2017, 12:05:27 amYeah, silly comment, it's much older!
PIC18F2585 A/D CONVERTER is not working - Page 1
Forum section: electronics / general

author: federdalla
author_rank: Newbie
timestamp: October 20, 2017, 09:07:18 am
content: Hi guys,I'm having some trouble with the PIC in object.My A/D converter seems to work correctly, but only on the demo board PICDEM2, and on my project's PCB won't work, also even if I use the same oscillator and A/D configuration.I made sure that the signals to make the conversions on arrive correctly on the pins, so I really don't know what is the problem.I'm attaching the code that works on the demo board using the pot on RA0 . You can see that it works correctly if you see the serial output with Termite (https://www.compuphase.com/software_termite.htm).The PIC that is not working simply returns ADRESH and ADRESL both zero for every conversion made. Be aware that the serial output is not the result register, but it's an average of it, done multiple times.Here's a photo of my project's PCB, the PIC involved is the one on the lefthttps://drive.google.com/file/d/0B2bVwWJ4fvRVYkh3Z0JIeDF4MkU/view?usp=sharingThank you very much in advance!

author: jaromir
author_rank: Unknown
timestamp: October 20, 2017, 10:06:27 am
content: It may help if you post minimal, cut-down code that isolates and demonstrates the problem. Just simple polled code, no interrupts and other stuff. It will help people to concentrate on the issue and not on the all other code; in the process of cutting-down the code you may also rectify the problem on your own.

author: federdalla
author_rank: Newbie
timestamp: October 20, 2017, 10:20:19 am
content: thanks for the suggestion.Initialization of a/d c:Code:void adc_config(void) {TRISAbits.RA0=1;//input chan 1TRISAbits.RA1=1;//input chan 2TRISAbits.RA2=1;//low voltage referenceTRISAbits.RA3=1;//hi voltage reference, but not usedTRISBbits.RB1=0;//for debugADCON0=0;ADCON0bits.ADON=1;//set adc onADCON1=0B00101011;//18f2585ADCON2=0B10110101;//18f2585}I'm using this function to operate the conversion on the selected channel. In the case of the demo board it is always RA0 because the pot is on that pin. The delay is commented because it is implemented in hardware. (ADCON2 register). Once the function have ran, i can access the data in ADRESH and ADRESL . But in my case the registers are both zero!Code:void ad_chan_conversion(unsigned char c) {if (c==1) ADCON0bits.CHS0=0;//18f2585if (c==2) ADCON0bits.CHS0=0;//ADCON0bits.CHS0=1;//__delay_us(ACQ_PAUSE);PORTBbits.RB1=1;ADCON0bits.GO=1;while(ADCON0bits.GO==1);PORTBbits.RB1=0;}The strangest thing is that i can ensure you that on the PICDEM2 board this code works perfectly!

author: StillTrying
author_rank: Super Contributor
timestamp: October 20, 2017, 10:31:51 am
content: ADCON1=0B00101011;//18f2585Assuming the code is working, have you checked that the voltage on the ADC input AN0 is actually higher than the -Ve ADC REF on AN2.

author: federdalla
author_rank: Newbie
timestamp: October 20, 2017, 10:34:34 am
content: I guess this was a trap for young players.thank you
VHDL: How to send a sequence via SPI? - Page 1
Forum section: electronics / general

author: ivonenand
author_rank: Contributor
timestamp: October 19, 2017, 05:43:43 pm
content: Hi Guys,I've written a fairly simple 8-bit SPI master controller in VHDL. It's nothing special, it has a read and write port, a strobe signal and a status flag. Easy. Now I need to use this peripheral to send a sequence of bytes. This is where I need help.Let's say I need to send 10 bytes to initialize an external ADC that's connected to this SPI. What's the easiest way of doing this? One way is to write a FSM, but it seems I need three states, just to send one byte:1. Put byte on write port2. Set strobe signal to 13. Wait for status flag...So if I program the FSM this way, I need 30 states just to send 10 bytes. Is there an easier way of doing this?Thanks,Ivo

author: hamster_nz
author_rank: Super Contributor
timestamp: October 19, 2017, 06:38:14 pm
content: Add a counter, and hold your values in an array indexed by the counter. That way you only need a few states.Without the counter you don't really need 30 states.... You could most likely get away with 11.- waiting to send value 1- waiting to send value 2- waiting to send value 3.....- all values sent.The setting of the value and the strobe is what you do when you transition between states when you see that 'busy' isn't asserted (unless your SPI core lags in setting the 'busy' output, in which case it is a little bit broken)Oh, here is another idea:Code:if rising_edge(clk) thenif count = max_count then-- All values sentstrobe = '0';elsif strobe = '1' then-- dead cycle while waiting for SPI core to react to registered outputsstrobe = '0';elsif spi_busy = '0' then-- Send new value to SPI core, next cycle (as "strobe" and "data" are registered)strobe <= '1';data <= values(to_integer(count));count <= count + 1;else-- spi core is busystrobe <= '0';end if;end if;
Code map in MPLAB X IDE - being thick - Page 1
Forum section: electronics / general

author: fcb
author_rank: Super Contributor
timestamp: October 15, 2017, 01:29:52 pm
content: I'm writing some fairly complex assembler (my preferred language) and I'm being thick.How do I see the listing of the actual code vs. memory location? I'm sure this was trivial on MPLAB 8.92.

author: cv007
author_rank: Frequent Contributor
timestamp: October 15, 2017, 02:58:23 pm
content: Go into your project folder- then under dist/default/production you will find a .lst file among others (at least that's where to find them for 8bit pics).edit- it appears I'm the thick one, I missed that you were coding in assembler (mpasm I presume). Disregard.

author: NorthGuy
author_rank: Super Contributor
timestamp: October 15, 2017, 06:13:30 pm
content: Window->Debugging->Output->Disassembly Listing File

author: fcb
author_rank: Super Contributor
timestamp: October 16, 2017, 08:57:16 am
content: Quote from: NorthGuy on October 15, 2017, 06:13:30 pmBrilliant! Exactly what I was looking for. Thank you.
QSPI unused pins - Page 1
Forum section: electronics / general

author: blueskull
author_rank: Unknown
timestamp: October 15, 2017, 07:07:13 am
content: I'm working on a product which DSPI flash is chosen as boot rom, and WP/HOLD are hard (no resistors) terminated to VCC.Now, Arrow has sold out that particular part and replacement parts would be way more expensive.So I'm thinking, can I replace the DSPI flash rom with a QSPI one? There's a QSPI one that's 8x the density and only 10 cents more.However, if QSPI mode is enabled for whatever reason, the IO2 and IO3 on WP and HOLD pins will be hard short to VCC, and that can create a destructive latch up.So, assuming my code never puts the chip into QSPI mode, what's the chance it goes into QSPI mode on its own (pre-reset noise, background cosmetic radiation, etc.)?In other words, is it a good idea to short WP and HOLD to VCC on a QSPI chip that is guaranteed never intentionally put into QSPI mode?
PIC18 overloading ADC input.  Dangerous? - Page 1
Forum section: electronics / general

author: scuff
author_rank: Newbie
timestamp: October 13, 2017, 09:06:40 am
content: Hi all,I'm using a PIC18F45K40, which has an adjustable Vref+ for the ADC module. Is there any danger in presenting a input voltage that exceeds Vref+ without violating the electrical specifications, i.e. Vref+ < Vpin < VDD ? I can't find a clear answer in the data sheet. Will it just safely max out the ADC reading, or damage the ADC module?Regards,Scuff

author: JPortici
author_rank: Super Contributor
timestamp: October 13, 2017, 09:20:42 am
content: Hi, in case Vref < Vdd, when Vref < Vin < Vdd the result will always be 0xFF / 0x3FF / 0xFFF (depending on the ADC resolution)Remember that this is a SAR ADC, so it's perfectly safe: The voltage input is compared against a value derivated from VrefAlso, if you look at the Analog Input Model in the datasheet, you'll see that the analog pins still have the protection diodes referred to Vdd and Vss (and not Vref+ and Vref-)

author: scuff
author_rank: Newbie
timestamp: October 13, 2017, 10:20:34 am
content: Thanks. I presumed it would be okay, but I'm happy to have confirmation.
Query Reg. the External Flash support considerations for an MCU. - Page 1
Forum section: electronics / general

author: madhu.wesly01
author_rank: Regular Contributor
timestamp: October 13, 2017, 06:40:20 am
content: Hi,I am trying to add an external SPI Flash memory as a data logger on my PCB to save GPS data. Could you please suggest me the major considerations to be followed while selecting the SPI flash memory? Will there be a constraint like a MCU(ATSAMD21G18A) can support up-to a specific size of flash memory and so? In my case, it is not given that how much external flash memory this ATSAMD21G18A can support.Will the MCU(ATSAMD21G18A) support 16MB, 32MB, and 64MB Flash memories?Could anyone please share knowledge in this regard.Awaiting your reply.Thanks & regards,Madhuwesly.

author: ealex
author_rank: Frequent Contributor
timestamp: October 13, 2017, 07:12:55 am
content: there is no inherent limit on the external SPI flash size.your code will be the only limit - the SPI peripheral and the memory will just do what it's told to.you'll have to carefully read the memory datasheet and write your "driver" accordinglyjust be careful on some specific implementation: minimum erase page size and some specific behavior.for example you can have different behavior when you write several bytes at once an you're not aligned to a page boundary.some devices will wrap at the start of a 256 bytes page and destroy previous data, other might move to the next 256 bytes page or ignore data that's over the page boundary until the next write command
PIC EEPROM Memory Retention  - Page 1
Forum section: electronics / general

author: tarun172
author_rank: Regular Contributor
timestamp: October 12, 2017, 09:14:01 pm
content: All,I noticed some unusual behavior PIC processor EEPROM. In my program, once user completes steps 1-10 (for example), the values get stores in EEPROM and the flag/status bit is set to high indicating that step 1 -10 write to EEPROM is complete. If user makes a mistake he obviously would have to hit "reset" before trying again. Problem I am facing is, I notice is EEPROM write to a particular memory location has very small finite write cycles. After erasing say 20-25 times, the EEPROM memory location is unable hold a value. I read a zero value at the memory location as soon as write operation is complete and status flag is set high. If I change memory location, it seems to work fine.Above behavior has got me baffled. I looked through the datasheet and nothing seems to stand out for this behavior. Can somebody assist?- tarun172

author: wraper
author_rank: Unknown
timestamp: October 12, 2017, 09:17:54 pm
content: Sounds like a bug in the code. Worst EEPROMs survive 10s of thousands write cycles. Average ones survive 100s of thousands.

author: tarun172
author_rank: Regular Contributor
timestamp: October 12, 2017, 09:25:40 pm
content: If this is indeed the case, I should see this problem right away every time and not after 20-25 write cycles. Changing to new memory location seems to temporarily fix this issue. If I use just a variable and restrict the access to it, then I do not see this problem.

author: wraper
author_rank: Unknown
timestamp: October 12, 2017, 09:32:52 pm
content: Does this problem persist on the cell if you reprogram the MCU? If it does. the only thing I can imagine is that you bombard single cell with thousands of writes because of some bug in the code. Or MCU works on too low voltage which is out of spec for EEPROM operations. I don't know about PIC, and you did not say particular model, but for some AVR MCUs EEPROM is not functional at lowest voltages on which MCU can operate.

author: KL27x
author_rank: Super Contributor
timestamp: October 12, 2017, 09:34:37 pm
content: Perhaps at some point in code dev, u unwittingly ran a program that wrote to that location repeatedly without any break/wait for user input. And used up your 100K cycles.

author: NivagSwerdna
author_rank: Super Contributor
timestamp: October 12, 2017, 09:59:22 pm
content: You should get many thousands of cycles.You MUST check the errata for the chip you are using and if using a compiler also check the bug list for that... EEPROM errors are not unknown but normally work around-able.
ESP32  - which board ? - Page 1
Forum section: electronics / general

author: picandmix
author_rank: Frequent Contributor
timestamp: October 11, 2017, 10:05:52 am
content: Hi,Was looking at the ESP32 boards , seems there are a couple of variants available locally using the WROOM based ESP32 38 pin DevKitC and the 30 pin DoIthttp://www.ebay.co.uk/itm/322715105223http://www.ebay.co.uk/itm/322484359954Apart from the extra I/O pins are there any major differences between the two ?Though these boards are dearer they are next day delivery, but apart from the lower cost is there any reasons/ key differences to look at some of the similar ESP32 boards from the far east ?
Regarding connections in a CPLD schematic - Page 1
Forum section: electronics / general

author: garvind25
author_rank: Regular Contributor
timestamp: October 10, 2017, 05:36:28 am
content: Hi,I was planning to make a CPLD based hardware (for the first time) and was going through the schematic of a Digilent board here:https://reference.digilentinc.com/_media/coolrunner-ii:coolrunner-ii_sch.pdfI have the following queries pls:The global output enable pins (2,3,5,6) are connected as general I/O pins in connector JI. So if I wanted to enable/disable all I/O pins of the IC, how could I do so? Just guessing but if I connect 3.3 v or GND to these pins, will it not enable/disable all I/Os (and the pins wont function as general I/Os)?Global Set/Reset pin no. 143 is connected to VCC3v3/GND using an SPST (net label BTN0). But when the SPST is closed for GND connection, will it also not provide a direct path between VCC3v3 and GND (through a 4K7 resistor)? Is it not better to use a SPDT with a 10K resistor in series with central pin and VCC3v3 on one side and GND on other side of the SPDT? Also, what is this BTN1 (connected to pin no. 94)?Clock divide reset (pin no. 35) is connected to port C of Atmel 90USB162 IC. Suppose I don’t want USB interface. Can I put a manual switch instead (for eg. a SPDT switch to connect the pin to either VCC/GND for enabling/ disabling the function)? If not, what are the work arounds?Similarly, for what purpose is pin 124 (net label SW1) connected to an SPDT (to toggle between VCC3v3/GND—if so, the reason thereof)? Similarly why is pin 125 (net name MEM1) connected to 1 kB EEPROM (maybe for some kind of security purpose). If I don’t want to use it, ie. I don’t want any security feature, I hope, the I/O pin is free for general usage. And finally where is pin 95 connected to (net name REG_RST)?The unused I/O pins have been kept floating (the ones like pin no. 131, 132 etc). Is it the standard policy? Someone told me it contributes to power wastage in I/O blocks (internally). Is it true?Finally, what are functional blocks and I/O banks. Where can I know about them and what things should I keep in mind while making the PCB for the CPLD.Looking forward to your kind help.Thanking You,Arvind Gupta.
PIC Programmer - Page 1
Forum section: electronics / general

author: rahandford
author_rank: Regular Contributor
timestamp: October 08, 2017, 07:22:14 am
content: Deos anyone have a spare or second hand PIC programmer that I can get/borrow? Designing a project for a local community group, and want to use a PIC but don't have a programmer :-(

author: Ian.M
author_rank: Super Contributor
timestamp: October 08, 2017, 08:28:14 am
content: Location?You could get your own PICkit 3 clone cheaper than privately shipping a used one halfway round the world. Also what PIC do you want to program? Not all programmers handle all PICs.

author: eugenenine
author_rank: Frequent Contributor
timestamp: October 08, 2017, 02:34:34 pm
content: I don't see where you are in your profile, that might help, maybe someone close to you has one so you don't have to do shipping.

author: JanJansen
author_rank: Frequent Contributor
timestamp: October 08, 2017, 02:53:00 pm
content: US $11.85 free shipping for the clone on ebay, is it good ?, they also have a nice cable with it wich the original dont has.
reading digital caliper data port, interrupts and millis()? - Page 1
Forum section: electronics / general

author: dentaku
author_rank: Frequent Contributor
timestamp: October 08, 2017, 12:39:01 am
content: I added a connector to my cheap Chinese Mastercraft calipers. The data looks good when I view it on my scope and I can understand it just fine. There's a Ground, Clock, Data and 1.5V pin.It sends out data 4 bits at a time with a small gap between each 4 bit chunk (nibble) 6 times so it sends out 24 bits then a long 120ms gap then another 24 bits, all LSB first. bit 21 defines whether it's a negative number or not.Lots of people have written about this and this site has images that match what mine sends out.http://nut-bolt.nl/2012/reading-digital-calipers-with-an-arduino/I like that the code on this site uses interrupts because it seems logical for this type of application. I've never used interrupts before and this looked like a good way to learn about the topic.I built a simple circuit with two NPNs to shift the 1.5V signal closer to 5V so an Arduino can read it but then realized that this code looks like it was written for a signal that's NOT inverted, unlike what I've seen from other websites. I simply used a 40106 to invert the already level shifted Clock and Data and now it looks exactly like the screenshots on that website.QUESTIONS:The code on the site doesn't declare any variables so it's up to you to decide where to put them (thescope), whichtypesare appropriate, which ones need to bevolatileand which should beglobal.Can anyone give me advice on this?millis() is supposedly an unsigned long so it seems thatlastInterruptandnowshould also be?Also... on arduino.cc it saysNoteInside the attached function, delay() won't work and the value returned by millis() will not increment. Serial data received while in the function may be lost. You should declare as volatile any variables that you modify within the attached function.This code DOES use milis(),isn't that a problem?I've tried different stuff after declaring all the variables as best as I could figure out just so it compiles and see that the arduino is reading the data off the data pin correctly. By doing a Serial.print (data); the ones and zeros in Serial Monitor match what's on my scope but the rest of the code isn't doing what it should because I'm getting weird results for finalValue.I've tried it on a Leonardo with the interrupt set to 1 instead of 0 because the values for 0 and 1 are backwards on a 32U4 compared to a regular UNO/328 arduino and all I get is stuff like -9718 0 -1 -2 -1 -4 -2 -4 -1 -2 -64 -1 -8 -1 -32 -16 -1 -2 -1 -2 -1On an Uno with the same code (but the interrupt set back to 0) I get strange numbers like4832 0 3 24832 4 24832 2 24832 2 -12798 206 24832 0Here's a screenshot of the data a clock displaying 0.02mmIf you read the bits on the falling edge of the clock you always get an extra 1 at the start but the code seems to take care of that.
Pickit3 working on Vista but not on windows 10 - Page 1
Forum section: electronics / general

author: Dule
author_rank: Newbie
timestamp: September 25, 2017, 07:30:42 pm
content: Hi there,I can't get flipppin pickit3 to work on my main computer. I keep on getting connection failed message.On my old laptop, it works, I was able to program PIC using MPLAB IPE.Main computer is windows 10 and laptop is windows vista. Are there any compatibility issues with win 10 and pickit?I tried to search on Internet and there are many cases where people had issues with pickit 3 but I could not find any fix that works for me.Thanks

author: KL27x
author_rank: Super Contributor
timestamp: September 25, 2017, 07:36:38 pm
content: This sounds like USB driver issue. Someone posted about this a couple months ago. They resolved it by loading a different USB driver.

author: wraper
author_rank: Unknown
timestamp: September 25, 2017, 07:42:26 pm
content: Quote from: Dule on September 25, 2017, 07:30:42 pmIf it was used with programming application, it may be stuck in wrong mode.

author: stj
author_rank: Super Contributor
timestamp: September 25, 2017, 09:30:15 pm
content: did you try the Microchip forum?http://www.microchip.com/forums/btw, serves you right for running 10, the devil's o.s.did you know that "666" in binary is "10"??i bet you didnt!

author: marshallh
author_rank: Unknown
timestamp: October 06, 2017, 12:10:11 am
content: Working fine here on Win10 with legimate pickit3. I have no idea if the clones will work properly on Win10.

author: stj
author_rank: Super Contributor
timestamp: October 06, 2017, 04:39:32 am
content: the clones are exact copies.

author: JPortici
author_rank: Super Contributor
timestamp: October 06, 2017, 05:30:06 am
content: i don't know if current clones work. old clones usually don't.all my legit pickit 3 work across every version of osx and every version of windows supported by mplabxif i can find my old clone i will try
ILI9341 LCD controller, does it have transparency ? - Page 1
Forum section: electronics / general

author: snoopy
author_rank: Frequent Contributor
timestamp: October 01, 2017, 09:14:15 am
content: The Solomon Systech SSD1289 LCD controller has a transparency option using a compare register so that when you write a pixel to the controller that matches the compare register it doesn't actually get written to the display RAM. This facilitates transparency which is useful for drawing fonts and sprites on different colored backgrounds etc.Now it looks like all of the LCD display makers have switched from the SSD1289 to the ILI9341 for which I cannot find any way of facilitating transparency. Nor do I want to render the image in local RAM by the MCU and then write it out to the display memory because that is just going to consume lots of bandwidth even using DMA.Has anyone had any experience with this LCD controller ?cheers

author: dmills
author_rank: Super Contributor
timestamp: October 01, 2017, 02:04:56 pm
content: I do not believe the 9341 does transparency, and I have crawled all over that datasheet (Warning, in parallel Hs/Vs mode, you cannot get it to do landscape mode scan, which is a PITA for video).Regards, Dan.

author: snoopy
author_rank: Frequent Contributor
timestamp: October 02, 2017, 01:18:30 am
content: Quote from: dmills on October 01, 2017, 02:04:56 pmWhat a PITA. I rewrote the code to handle both controllers and realised there was no transparency mode on the ILI9341 so it behaves differently to the SSD1289cheersdavid

author: dmills
author_rank: Super Contributor
timestamp: October 03, 2017, 11:47:20 pm
content: One thing I have learned about displays is to always assume the screen chip on glass will do the bare minimum (And that often in an insane way), that way when you have to change the screen because of component obsolescence (And you probably will have to), it is easy to fix.Hopefully you were not relying on DMA to do your blit operation, and have some ram left for an overlay mask?regards, Dan.
Assembly for NEC V25+' (70325L), similar to 80196 - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: September 27, 2017, 09:04:58 am
content: Any chance someone knows where to find an assembly compiler for NEC V25+?It's similar to intel 80196

author: coppice
author_rank: Super Contributor
timestamp: September 27, 2017, 09:08:38 am
content: Quote from: legacy on September 27, 2017, 09:04:58 amI think its similar to the 80186, not 80196.

author: martinayotte
author_rank: Regular Contributor
timestamp: September 27, 2017, 12:11:17 pm
content: I've used some of those CPUs from the same family, V30, V40 and V53, more than 20 years ago.Yes, they are all x86 but have built-in peripherals.

author: chickenHeadKnob
author_rank: Super Contributor
timestamp: September 28, 2017, 12:18:15 am
content: Yes standard 8086/8088 compilers and assemblers work fine for this. I also wrote for these back in the day, they were quite good processors actually.

author: legacy
author_rank: Super Contributor
timestamp: September 28, 2017, 10:13:59 am
content: Ok, thanks guy, my mistake
BeagleBone boot pins - Page 1
Forum section: electronics / general

author: mike_mike
author_rank: Super Contributor
timestamp: September 27, 2017, 09:06:59 am
content: Hello. I have to connect a 5V telay to one boot pin of the Beagle Bone Black. The pin that i need to use is lcd_data0.How can I connect a relay to this pin ?Thanks in advance.Mike

author: hermit
author_rank: Frequent Contributor
timestamp: September 27, 2017, 06:10:11 pm
content: I have a Beagle Bone Black. The voltages and currents allowed are quite low as to compared to the Arduino stuff. Just make sure you know the currents and voltages for your board and the allowed currents. Most stuff is probably best driven through a logic level mosfet to be safe.

author: rsjsouza
author_rank: Super Contributor
timestamp: September 27, 2017, 09:29:00 pm
content: If I got the pins correct, page 91/92 of the]AM3358 device datasheetmentions this pin is characterized for an output current of 6mA under the conditions mentioned there. In this case, this is more than enough for a transistor or an IC driver to drive a relay.
Connecting a 2 line character LCD to a coolrunner CPLD - Page 1
Forum section: electronics / general

author: garvind25
author_rank: Regular Contributor
timestamp: September 27, 2017, 05:45:09 pm
content: Hi,If I want to interface a CRII CPLD with a 2 line 1602 character LCD, how can I do so. I meant, what resistance/capacitance values do I have to use? Any reference schematics for the same pls?Thanks and Regards,Arvind Gupta

author: Scrts
author_rank: Frequent Contributor
timestamp: September 27, 2017, 05:56:29 pm
content: http://www.pyroelectro.com/tutorials/fpga_lcd_interface/http://www.xess.com/static/media/projects/LCD_HD44780.pdfor google: "FPGA CPLD HD44780"
Where to buy cheap CPLD ICs from - Page 1
Forum section: electronics / general

author: garvind25
author_rank: Regular Contributor
timestamp: September 26, 2017, 05:50:38 am
content: Hi,I wanted to know where to buy cheap Xilinx ICs from (in this case XC2C128 -- Quad flat package; 100 I/Os). Digikey etc have high shipping cost to India; aliexpress does not (at least presently) have what I require.Thanks,Arvind Gupta

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: September 26, 2017, 06:29:58 am
content: Try china! Taobao

author: technix
author_rank: Super Contributor
timestamp: September 26, 2017, 05:40:26 pm
content: Does it have to be Xilinx? I have bought some fairly cheap Intel MAX II’s.

author: xaxaxa
author_rank: Regular Contributor
timestamp: September 26, 2017, 10:18:27 pm
content: If an FPGA is fine too, the xc6slx9 in a tqfp package sells for about $5 usd on aliexpress. The only additional part you need is an spi flash chip ($0.5) to make the bitstream persistent.

author: garvind25
author_rank: Regular Contributor
timestamp: September 27, 2017, 03:14:17 am
content: Thanks for your replies. I was trying to start off making new hardware using CPLDs. Hence was looking for that IC. I know only Xilinx software hence Xilinx IC.Regards,Arvind Gupta

author: edavid
author_rank: Super Contributor
timestamp: September 27, 2017, 03:32:33 am
content: utsource seems to have a good selection:https://www.utsource.net/sch/XC2C128

author: legacy
author_rank: Super Contributor
timestamp: September 27, 2017, 08:25:54 am
content: Still have problems getting Xilinx XC95108 (old 5V version), or XL (new 5V tolerant version)Still don't trust dudes on eBay because ... bad experiences happenedAny good source to buy these CPLD chips?I need 4-6 chips in PLCC package

author: edavid
author_rank: Super Contributor
timestamp: September 27, 2017, 03:13:52 pm
content: Quote from: legacy on September 27, 2017, 08:25:54 amI feel like I'm repeating myself, but:https://www.utsource.net/sch/XC95108

author: legacy
author_rank: Super Contributor
timestamp: September 27, 2017, 03:17:14 pm
content: Quote from: edavid on September 27, 2017, 03:13:52 pmMeant alternatives "sources" (in Europe), if available

author: Bruce Abbott
author_rank: Frequent Contributor
timestamp: September 27, 2017, 04:56:07 pm
content: Quote from: legacy on September 27, 2017, 03:17:14 pmeBay, but seller in Germany with 99.9% reputation:-XC95108-15PC84C Xilinx CPLD 108Macro 69I/O 15ns PLCC84 NEWXilinx 5V CPLDs have been out of production for many years, and even the XL versions are now hard to get (Element14 dropped them a few months ago). Atmel appears to be the only manufacturer still making 5V tolerant CPLDs.
OLED with SSD1306 debug issue - Page 1
Forum section: electronics / general

author: mmarin
author_rank: Newbie
timestamp: September 27, 2017, 01:53:09 pm
content: Hi,I'm looking at a problem I am having with the interface of a microcontroller to an SSD1306 based 128 x 64 OLED from Winstar. This OLED works on my previous board but don't seem to understand why it's not displaying correctly with the new custom board ?!? A little at a loss to why the Iref pin shows < 1V when I know it should be closer to 6,8V as on my previous board. Actually data sheet talks about (Vcc - 2,5)/Iref = R which works out to about 520K for 12,5uA and Vcc=about 9V. The Iref pin (and the VCOMH pin) is way below that voltage expected for the resistor. I'm baffled as this voltage is generated internally by the SSD1306 chip ...The main difference between this new custom board and the older one is the new one uses an external Vcc set at 12V (but I'm using 9V instead for the moment). The older board used the internal charge-pump which generated about 6 - 7 volts. The Iref resistor was set at 390K and this worked no problems. With external Vcc I get no Iref voltage and this would make the brightness too low - the reason I'm not getting any display as usual.Anyone had this problem before and what could be the reason for it ? Any thoughts on this would be greatly appreciated. Attached schematic for reference.Cheers, Mike

author: mmarin
author_rank: Newbie
timestamp: September 27, 2017, 03:02:07 pm
content: Nevermind, it would appear it's working now !!
[SOLVED] ATTINY13A works randomly  - Page 1
Forum section: electronics / general

author: m.m.m
author_rank: Regular Contributor
timestamp: September 27, 2017, 09:48:14 am
content: Hi, I've just made a attiny13a controlled 3v coincell powered 433MHz transmitter, which just sends first a turn on signal when it's turned on and after some cycles of that it sends a turn off signal (turned on by a single switch button).The first issue was that when I tried to do a 1ms delay via_delay_msfunction the delay time was wrong, which was not a big deal, I just found the ratio of that error and applied it in the#define F_CPUline, the chip itself was meant to be clocked by the internal calibrated oscillator rated at 9.6MHz, and I defined the cpu freq at1.12MHzinstead and the delays now work just fine.The next issue is that it sometimes sends the same wrong code to the transmitter module.The right code:The wrong code:board layout is shown in the attachments.code is as in below:Code:#include <avr/io.h>#define F_CPU 1120000UL#include <util/delay.h>void sendcode (char inputCode[],char leng) {for (int i=0; i<leng; i++) {switch (inputCode) {case 0:PORTB=0x00;_delay_us(640);break;case 1:PORTB=0xFF;_delay_ms(1.4);break;case 2:PORTB=0xFF;_delay_us(737);break;case 3:PORTB=0xFF;_delay_us(684);break;case 4:PORTB=0x00;_delay_us(1307);break;}}}int main(void){DDRB=0xff;char time_for_off=7;char rep_on=11;char rep_off=16;char code_for_turn_on[]={3,4,2,0,1,4,2,4,2};char turn_on_code_continue[]={4,2,0,1,0,1,0,1,4,3};char code_for_turn_off[]={3,4,2,0,1,4,2,4,2};char comm[]={0,1};while (time_for_off){PORTB=0x00;sendcode(code_for_turn_on,9);while(rep_on){sendcode(comm,2);rep_on--;}sendcode(turn_on_code_continue,10);PORTB=0x00;_delay_ms(80);time_for_off--;}while (1){PORTB=0x00;sendcode(code_for_turn_off,9);while(rep_off){sendcode(comm,2);rep_off--;}PORTB=0x00;_delay_ms(80);}}UPDATE:SOLUTON:It was all about a stupid capacitor at the transmitter module which was holding a relatively large charge which held the MCU in a error state (maybe triggered the BOD) and after soldering a 1k resistor at Vcc and GND pins of the transmitter the problem is solved!

author: andersm
author_rank: Super Contributor
timestamp: September 27, 2017, 10:14:04 am
content: Quote from: m.m.m on September 27, 2017, 09:48:14 amMany/most/all? AVRs will by default divide the input clock by 8. The divider can be disabled either by programming the config bits, or at runtime.

author: m.m.m
author_rank: Regular Contributor
timestamp: September 27, 2017, 10:18:50 am
content: Quote from: andersm on September 27, 2017, 10:14:04 amoh it took a lot of time for me to figure out that ratio LOL!thanks for that.