hybridfree/eevblog-posts huggingface dataset:
ATMega324PB AREF issue - Page 1
Forum section: electronics / general

author: Deni
author_rank: Regular Contributor
timestamp: January 09, 2018, 08:05:13 pm
content: Just got a few samples of ATMega324PB. I would like to use it instead of ATMega324P(A) in our current project. ATMega324PB should be backwards compatible with older flavors of ATMega324 but I got stucked with external AREF for ADC. To cut the long story short - I can't get it to work as supposed. When I select external AREF, ADC always reads 0x3FF on any channel I select - like AREF is not routed to the pin. On ATMega324PB it is shared with (new) PortE, but according to Microchip, if ADC is enabled and AREF set to external, pin should be automatically re-routed as an AREF input. On the other hand, if any other reference source is selected, it works as expected....Can anybody try it out and verify my findings, or point me in the right direction if I'm doing something wrong...?

author: sleemanj
author_rank: Super Contributor
timestamp: January 09, 2018, 08:59:37 pm
content: Well... silly question certainly, but sometimes people miss an obvious error so it bears asking, what voltage are you supplying to ARef and what input are you supplying to the selected mux - in other words, are you sure that 0x3ff is not actually the correct conversion for your inputs.

author: Deni
author_rank: Regular Contributor
timestamp: January 10, 2018, 07:02:59 am
content: OK, to clarify things further - I just soldered ATMega324PB on the same board we are currently producing with ATMega324P. So, yes - all signals are correct with correct levels, as well as AREF (5V - same as analog&digital supply voltage). After soldering old ATMega324P back (running the same firmware, same HEX file flashed) - everything works as supposed.And one more thing - I've opened a ticket on Microchip's site, got some initial response from their support staff and then complete silence.

author: sleemanj
author_rank: Super Contributor
timestamp: January 10, 2018, 07:54:23 am
content: QuoteIf it was me I would recompile targetted specifically to the PB (you'll have to have an up to date avr-gcc to get the appropriate definitions, assuming you are using avr-gcc), I know the PB issupposedto be able to run P compiled code, but...Then I would try another PB in case I had been unlucky and was trying a faulty one.And after all that, I would go over to avrfreaks and ask there, a more targetted audience

author: Deni
author_rank: Regular Contributor
timestamp: January 10, 2018, 11:06:48 am
content: Your last advice is a good one, I'll try there...

author: Deni
author_rank: Regular Contributor
timestamp: January 11, 2018, 12:59:40 pm
content: - UPDATE -Mistery solved - ATMega324PB has an error in datasheet regarding ADC. There's control bit in ADCSRB bit 7, that controls function of AREF pin.If it is set (and after reset it is by default), AREF pin is routed to GPIO port E pin4. If it is cleared, AREF pin functions as an ADC ref. pin (eitheras an input for external AREF voltage or bypass cap. output).
SPI a trap 4 young players - Page 1
Forum section: electronics / general

author: Lucifer
author_rank: Newbie
timestamp: January 10, 2018, 08:22:27 pm
content: I´m trying to manipulate some registers in a nrf24l01+, using a bus pirate, I had managed to read the registers using this symtax in the bus pirate terminalSPI>[0x06 r]/CS ENABLEDWRITE: 0x06READ: 0x0F/CS DISABLEDThe value 0x0F is equal to the datasheet, i had tried to manipulate the value, but however what i tries it stays the same, any clue to what I´m doing wrong, in this scenario I dont care what the value wil become, I just wont to see that I can manipulate the valueLucifer

author: ShowKemp
author_rank: Contributor
timestamp: January 10, 2018, 08:38:23 pm
content: The first byte the nRF24L01+ send to the SPI master (in this case the bus pirate) is the STATUS register, so most likely that 0x0F byte you are getting is the STATUS register.To write to a nRF24L01+ register you need to send 0b001A AAAA, where A AAAA is the register address and then the value you want to write into the register.Check the nRF24L01+ datasheet on page 51.

author: Lucifer
author_rank: Newbie
timestamp: January 10, 2018, 09:09:20 pm
content: As I wrote an anserw to complain that i not got it, i actualy got it :-)I may use the value 2 to writeand the the register ect 0x06add this to gether gives 0x26So the syntax i finaly manage to work is[0x26 0b00000100 r]It returned a register value of 4, finaly i can move on, Thx so mutch, to point me in the right direction :-)
MYD-C7Z015 board - pros and cons, any possible pitfalls? - Page 1
Forum section: electronics / general

author: Code_Monkey
author_rank: Newbie
timestamp: January 10, 2018, 01:14:00 am
content: http://www.myirtech.com/list.asp?id=553I'm new to FPGA and this board looks very attractive spec wise. However, I wonder if that company is reliable and if there are any pitfalls when using it?I'm mostly interested in using ARM cores and some FPGA logic (translating it from C or OpenCL code), Ethernet, DDR3, PCIe slot, HDMI. Are there any potential problems with this functionality, some hidden fees, etc?
Wich Programmer for MachXO2 FPGAs? - Page 1
Forum section: electronics / general

author: Hagrid
author_rank: Contributor
timestamp: January 07, 2018, 11:19:08 am
content: Hello everyone, I am looking for a JTAG programmer to flash the MachXO2 FPGAs from Lattice.Since I am quite new to FPGAs, I am not sure which programmer I will need.There are some clones of a Lattice programmer on Ebay.The description of these clones usually has listet the supported FPGAs.The MachXO is always listed, but the MachXO2 and the MachXO3 not.I wonder if these are supported too.Greetings, Hagrid

author: daveshah
author_rank: Unknown
timestamp: January 07, 2018, 11:38:15 am
content: I use the FTDI C232HM-DDHSL cable which is detected as an official programmer by Lattice's tools, and reasonably priced. However for some devices you may need a tiny bit of capacitance, around 18pF, added between the TCK pin and ground.

author: Hagrid
author_rank: Contributor
timestamp: January 07, 2018, 12:51:15 pm
content: Thanks for the hint! It is really a lot cheaper than the official programming tool.I am very unfamiliar with JTAG. Do I need to do some configurations to get the adapter working?I have read somewhere that all JTAG programmers do almost the same but need to be configured for different parts.

author: SiliconWizard
author_rank: Super Contributor
timestamp: January 09, 2018, 04:07:19 pm
content: Quote from: Hagrid on January 07, 2018, 12:51:15 pmLattice tools can be used with any FT2232H that's properly configured. MPSSE (needed for JTAG) is on channel A of the FT2232H. Look at the MachXO2 breakout board schematics to see how it's connected to the MachXO2. Attached is a configuration template for FT_PROG that works (in a zip file, the forum doesn't allow xml files apparently).
Simplify Verilog code (bus mux) - Page 1
Forum section: electronics / general

author: ataradov
author_rank: Super Contributor
timestamp: January 16, 2018, 07:14:46 am
content: I'm trying to figure out a good way to describe a parameterized bus multiplexer.The idea is to describe something like thisCode:wire [7:0] in [0:3];wire [7:0] out = ({8{sel}} & in) | ({8{sel}} & in) | ({8{sel}} & in) | ({8{sel}} & in);but for a variable number of inputs.I've got something like this:Code:genvar i;wire [7:0] part [N-1:0];generate for (i = 0; i < N; i = i + 1) begin: data_muxif (0 == i)assign part = {8{sel}} & in;elseassign part = part[i-1] | {8{sel}} & in;endendgenerateassign out = part[N - 1];This works, but does not look great.Any ideas how to simplify this?The final goal it to get a mux with one-hot select input, and 0 on the output if noting is selected. I need to stay with Verilog-2001, no SystemVerilog here.

author: Someone
author_rank: Super Contributor
timestamp: January 16, 2018, 07:33:06 am
content: Looks fine, I have seen plenty of this sort of mux in production code and its easy to read yet not awful implementation.
Omit Analog supply caps on MSP430? - Page 1
Forum section: electronics / general

author: DTJ
author_rank: Super Contributor
timestamp: January 09, 2018, 05:04:46 am
content: A silly question................I've got a design using an MSP430F5359.I'm not using the analog inputs at all.I'm tight on space & cost - can I safely omit the filtering caps on the AVCC pin?Should I still need to connect the 3V supply to the analog AVCC pin (I suspect yes..)Cheers.

author: ogden
author_rank: Super Contributor
timestamp: January 09, 2018, 06:35:11 am
content: Quote from: DTJ on January 09, 2018, 05:04:46 amYou can omit AVCC caps if you rely on DVCC caps. Just connect AVCC and DVCC together. Whatta product you have if you cannot afford extra 0.001$ for few SMD capacitors?QuoteYoumustsupply AVCC even if you (seemingly) don't use analog parts of uC. Excerpt from datasheet: "A maximum difference of 0.3 V between AVCC and DVCC can betolerated during power up and operation"

author: DTJ
author_rank: Super Contributor
timestamp: January 09, 2018, 11:37:26 am
content: Quote from: ogden on January 09, 2018, 06:35:11 amHahaha, cost is not an issue - space is a premium!Thank you for your assistance. I'll hook the AVCC + DVCC together and let them share some caps.
After Bifurcating 8X Slot into two SSD Hard drive not always at full speed?! - Page 1
Forum section: electronics / general

author: davidm71
author_rank: Newbie
timestamp: January 08, 2018, 07:28:02 pm
content: Hi,I have a MSI X99A Godlike Motherboard that I modded to allow bifurcating the last 8X pcie slot into two (Port 1 - IOU2 Controller). This particular slot shares bandwidth behind a switch that routes half the lanes to an onboard M.2 slot hosting a Samsung 950 Pro. Limitations being you loose the last pcie slot when the m.2 runs at pcie 4x mode through the cpu which is a 40 lane 6850k. However after modding the bios of my motherboard and enabling a certain register inside the IntelRCSetup module I could now operate the M.2 at 4X and a second Plextor Nvme pcie card off of the last Pcie slot with the use of a bifurcated 4x4x riser card. The problem I am experiencing however is when the pcie bus is bifurcated, doesn't matter if card is connected directly to slot or not, sometimes randomly my Plextor upon a reboot will be at 2.5 Gt/s operation as opposed to 8 gt/s mode. Not sure what could be cause of this except I have noticed that Lspci reports that only the first equalibration phases had completed successfully in that the 2nd and 3rd had failed. Most of the time it goes away after a reboot or driver reinstall. So I researched what could cause this and am exploring solutions such as setting the motherboards 'training latency timeout' timer from 1000 to 10000. Also turning on 'Extended Sync' mode on the IO controller for those ports and correcting mismatching L1 exit latency values all the way upstream and down. To accomplish this i'm using the RU utility to change these system register values. Not sure if its fixed as of yet though because this very random. In any case for the most part I'm able to operate two nvme drives off of the cpu pcie lanes where it was not meant to be by design but since i have a 40 lane cpu i didn't want the extra lanes go to waste. Should also mention using a Supermicro RSC-R2UU-2E4R bifurcated 8x to 4x4x adapter to get at the last 4 unused lanes but this speed issue occurs with or with out the adapter.So it happens very rarely and randomly, and I wonder is it the drive? Is it the IIO Controller not being able to sync two devices at once? Too much noise on the PCI-E bus? Much like overclocking do I have to increase voltages anywhere? Any other bios tweaks anyone could suggest?Any PCI-E engineers out there?! LolThanks
Cross-compilation environment-tips-recipe for Raspberry Pi from AMD64/Linux? - Page 1
Forum section: electronics / general

author: cdev
author_rank: Super Contributor
timestamp: January 05, 2018, 07:07:29 pm
content: What is a working current best-practices for compiling software and especially kernels for Raspberry Pi (current Raspbian on current or older HW) using Linux on AMD64 as the build platform, using gcc?I would like to be able to rebuild a minimal kernel without all the extras that also supports the use of a GPIO pulse for timing. On my older Pis building a kernel takes a really long time, it should only take a few minutes on my desktop.None of the instructions I have found online and tried have worked for me!

author: tyrel
author_rank: Contributor
timestamp: January 05, 2018, 07:25:47 pm
content: Have you tried the instructions from the official documentation (https://www.raspberrypi.org/documentation/linux/kernel/building.md)?What doesn't work exactly?

author: cdev
author_rank: Super Contributor
timestamp: January 06, 2018, 09:11:22 pm
content: This time around, newest everything, totally stock kernel, exactly as downloaded, it worked.
Support for oscillator calibration in LUFA-powered AVR-ISP MkII clones? - Page 1
Forum section: electronics / general

author: HwAoRrDk
author_rank: Super Contributor
timestamp: January 06, 2018, 09:46:37 am
content: Does anyone know whether or not any version (or fork) of theLUFAAVR-ISP MkII firmware - as used by the vast majority of MkII clone programmers, including one I have - supports target device oscillator calibration routines (as described in app note AVR053)?I was having a poke around in the LUFA GitHub repository, and I think I found the code that responds to programming protocol commands inV2Protocol.c, but it doesn't appear to handleCMD_OSCCAL, so I guess not?Am I going to need to acquire a genuine Atmel AVR-ISP MkII if I want to do oscillator calibration?(Yes, I am aware there are several ways of doing ghetto-ish calibration routines, but I was hoping for some method I could semi-automate for calibrating a whole bunch of chips.)
FTDI FT232RL - Page 1
Forum section: electronics / general

author: paki22g
author_rank: Newbie
timestamp: January 04, 2018, 09:26:31 pm
content: Hi guys,I need help, i must copy ftdi ft232rl chip and make clone one. I think the EEPROM inside of ft232rl chip is not programmable. But I ask you can I clone that soft and serial number inside? I need two ftdi ft232rl with the same serialThanks in advance

author: SiliconWizard
author_rank: Super Contributor
timestamp: January 05, 2018, 12:05:05 am
content: Well, yes it is programmable. You need the FT_PROG utility from FTDI (downloadable on their web site). Just read the config from the first and program the second with the same config.

author: paki22g
author_rank: Newbie
timestamp: January 05, 2018, 07:04:01 am
content: I've already tried with FT_Prog. Modify the software part but the serial number does not change. I need to copy the chip to be completely the same.

author: Jeroen3
author_rank: Super Contributor
timestamp: January 05, 2018, 07:09:13 am
content: You can change it here. (attachment)You can also tell the OS to ignore it.

author: paki22g
author_rank: Newbie
timestamp: January 05, 2018, 07:47:13 am
content: I tried this but always keep the chip ID unchanged. it is in the last two hex lines when I read from FT_prog.

author: mbless
author_rank: Regular Contributor
timestamp: January 05, 2018, 01:56:47 pm
content: Seehere.It sounds like the ID is used for the FTDI drivers, so if you change the ID the drivers won't work without modification.

author: SiliconWizard
author_rank: Super Contributor
timestamp: January 05, 2018, 02:24:39 pm
content: Must say your query is not quite clear. You talk about the serial number, then the chip ID...As we stated, both the serial number and the PID/VID can be freely programmed. (Changing the PID/VID will require that you also modify the drivers, the .inf file on Windows, but let's assume you got that covered since you want to "copy" what's inside another chip.)The "chip ID" is another beast entirely. See:http://www.ftdichip.com/Support/SoftwareExamples/FTDIChip-ID.htmAs you can see, this is read-only and can't be reprogrammed. Makes sense since it's basically usable as a safety feature.I may be paranoid but it may look like you're trying to clone some kind of licensing USB dongle, which is probably not very legal. *cough*

author: paki22g
author_rank: Newbie
timestamp: January 05, 2018, 07:04:24 pm
content: I have two china clone interface for my car. They are using the FTDI chip inside. The hardware are the same but one interface working with software and the other not. I think the problem is that chip ID. I'm sorry if my try is not legal. *cough*
Sam9n11 External Memory intilization - Page 1
Forum section: electronics / general

author: aisha
author_rank: Newbie
timestamp: January 03, 2018, 08:21:36 am
content: Hello Everyone ,so I'm using a custom made board that uses Atmel SAM9N11 with a LPDDR external memory, and I'm having a problem with this memory initialization, i tried to modify TCL files and Applets associated with it , but it still won't work and give an error message of "External Memory initialization failed". any one have an idea to solve this problem??!!
Suggest BLE SOC which supports OTA  - Page 1
Forum section: electronics / general

author: muthukural001
author_rank: Regular Contributor
timestamp: January 02, 2018, 09:19:07 am
content: Hello All,I am looking for BLE SOC which supports OTA. Can anyone suggest ....Regards,Muthu

author: gamalot
author_rank: Super Contributor
timestamp: January 02, 2018, 09:41:38 am
content: nrf52832

author: danadak
author_rank: Super Contributor
timestamp: January 02, 2018, 01:00:01 pm
content: PSOC -http://www.cypress.com/file/141171/downloadhttp://www.cypress.com/documentation/application-notes/an97060-psoc-4-ble-and-proc-ble-over-air-ota-device-firmware-upgradehttps://github.com/cypresssemiconductorco/PSoC-4-BLE/tree/master/100_Projects_in_100_Days/Project051_NOR_Flash_BootloaderRegards, Dana.
Cad Files for MIMXRT1052DVL6A  - Page 1
Forum section: electronics / general

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: January 02, 2018, 08:55:50 am
content: Hi,I have ordered some of these new babies, The problem is that there is no CAD data files like for altium to start with them, So before I start to build my own Schematic and footprint for this puppy, I want to know if someone has already done it!
What FPGA forums do you read? - Page 1
Forum section: electronics / general

author: daybyter
author_rank: Frequent Contributor
timestamp: December 28, 2017, 04:42:04 am
content: Hi!I'm looking for FPGA forums to read and learn from. So far I know this eevblog subforum and the altera forum.What forums do you check on a regular base? Or are there other interesting communities? Mailing lists, skype chat groups, or so?I'm interested in FPGAs for ethernet, trading, cryptocoins and such.TIA,Andy

author: daqq
author_rank: Super Contributor
timestamp: December 28, 2017, 06:18:15 am
content: Well, Xilinx has its own forum. Other than I only know of general purpose forums where you can also ask questions on FPGAs, such ashttps://forum.allaboutcircuits.com/forums/embedded-systems-and-microcontrollers.17/Also, stackoverflow has some pretty smart people.

author: Wiljan
author_rank: Regular Contributor
timestamp: December 28, 2017, 10:49:37 am
content: You should have a look on Edaboard they are pretty active on FPGAhttps://www.edaboard.com/forum.phphttps://www.edaboard.com/forumdisplay.php?f=30

author: pigtwo
author_rank: Regular Contributor
timestamp: December 28, 2017, 10:11:22 pm
content: I second EDAboard. I've been helped there many times. As long as your question is precise and you clearly tried it yourself first they're super helpful.

author: Scrts
author_rank: Frequent Contributor
timestamp: January 01, 2018, 10:34:05 pm
content: I've also used comp.arch.fpga and comp.lang.vhdl in usenet. My main source of quick help was IRC - Freenode ##fpga.
Multiple DS18B20 returning ZERO - Page 1
Forum section: electronics / general

author: PSR B1257
author_rank: Frequent Contributor
timestamp: December 24, 2017, 07:49:38 pm
content: Hy guys,my new Arduino-Clone is driving me nuts...I have been successfully running a temperature-logger with four DS18B20 sensors on a "Sainsmart UNO". Untilsomeidiotshortet the supply rail of the board...So I went ahead and got me a nother Arduino-Clone with a logging-shield (https://www.ebay.de/itm/Arduino-Uno-R3-mit-XD-204-Data-logging-shield/281460446703?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2057872.m2749.l2648), but lo and behold, the same code is no longer workingWith all four sensors connected, each sensor is replying 0.00. If I connect only one random sensor, everything is fine again. I get three errors and one correct temperatur-reading.Any ideas are welcome.P.S.: Merry Christmas

author: 2N3055
author_rank: Super Contributor
timestamp: December 24, 2017, 10:39:52 pm
content: Do you run 5V? Do you connect sensor with +VCC (3 wires ) or parasitically (2 wires)? What pull-up resistor do you use?Do you have access to scope to see waveforms?P.S. Thanks, Merry Christmas to you too!!

author: floobydust
author_rank: Super Contributor
timestamp: December 24, 2017, 11:35:52 pm
content: Maybe your new shield is fighting with the temperature sensors.The DS18B20's should be on a separate I/O pins - not shared with the SD card or RTC data lines?Merry Christmas! We got snow and -23C tonight, so a chilly white Christmas.

author: PSR B1257
author_rank: Frequent Contributor
timestamp: December 26, 2017, 09:58:21 am
content: The 5V supply and such is fine.Just for curiosity, I've added a 12k resistor in parallel to the existing 4k7 resistor (3-wire connected sensor) which causes the whole mess to work againAt least for now. A endurance test is running....

author: stj
author_rank: Super Contributor
timestamp: December 26, 2017, 07:56:22 pm
content: read the one-wire comms datasheets.the way you adress multiple devices without a clash is different to talking to a single one.

author: floobydust
author_rank: Super Contributor
timestamp: December 26, 2017, 10:52:18 pm
content: Watch long cable runs to the DS18B20's will need a lower (4k7 to 1k) pullup resistor and a 0.1uF decoupling cap across VDD and GND local at each temperature sensor for really good data.

author: PSR B1257
author_rank: Frequent Contributor
timestamp: December 29, 2017, 07:58:31 pm
content: QuoteYes, but this is not the problem, since I had a already working program on the destroyed Arduino.QuoteAs examined by my little experiment with the 12k resistor in parallel.A decoupling cap at the sensor however seems like a good idea, to prevent any unexpected issues.My endurance test went successfully so far. None of the sensors is replying "0.00" or even the error code "-127" since it was started.
Atmega Delay function problem - Page 1
Forum section: electronics / general

author: yalect
author_rank: Regular Contributor
timestamp: December 27, 2017, 10:47:50 am
content: Hi,I found problem with Delay function to delay the time that when I set the function for 3000 ms orDelay_ms(3000)it takes 30 second instead of 3 s with protuse simulation like it's shown attached picture I don't know maybe there is configuration for base time.2) like on the diagram on the picture what's the clock of oscillator? because there is no crystal connected the Atmega.thank you

author: IconicPCB
author_rank: Super Contributor
timestamp: December 27, 2017, 11:09:34 am
content: ATmega32 is probably running on internal 1 MHz clock.What have you told the compiler the clock frequency is?

author: yalect
author_rank: Regular Contributor
timestamp: December 27, 2017, 12:51:44 pm
content: Sorry, for internal clock frequency how we do?Thanks

author: HwAoRrDk
author_rank: Super Contributor
timestamp: December 27, 2017, 06:40:55 pm
content: AVR-libc assumes a clock speed of 10 MHz if you don't define F_CPU. Coupled with the CPU actually running at 1 MHz, that would explain why your delay is ten times as long as expected.

author: IconicPCB
author_rank: Super Contributor
timestamp: December 27, 2017, 08:05:12 pm
content: Use Your programer to check whihc fuses are set ( by default ATmega chips come with 1MHz internal clock enabled).You can on the other hand define clock frequency as 1MHz in your software so that the compiler gives You the correct delay time.

author: westfw
author_rank: Super Contributor
timestamp: December 28, 2017, 12:01:45 am
content: You should also be getting warnings out of the compiler if F_CPU is unspecified:avr-gcc -mmcu=atmega8 -c foo.cIn file included from foo.c:2:0:/usr/local/avr8-Atmel-3.6.0.487/avr/include/util/delay.h:92:3: warning: #warning "F_CPU not defined for <util/delay.h>" [-Wcpp]# warning "F_CPU not defined for <util/delay.h>"^/usr/local/avr8-Atmel-3.6.0.487/avr/include/util/delay.h:112:3: warning: #warning "Compiler optimizations disabled; functions from <util/delay.h> won't work as designed" [-Wcpp]# warning "Compiler optimizations disabled; functions from <util/delay.h> won't work as designed"^

author: IconicPCB
author_rank: Super Contributor
timestamp: December 28, 2017, 12:05:03 pm
content: Mikro C not GCC compiler is the compiler in questionBest option go to mikro C and see if they have a user discussion group
PIC16F18313 programming with PICKIT2 - Page 1
Forum section: electronics / general

author: bequest333
author_rank: Contributor
timestamp: December 27, 2017, 04:23:02 am
content: Hi,I was able to program PIC16F18313 with PICKIT2.Publish the information of the device file.It is necessary to create (modify) seven new scripts.best regards,Dan

author: bequest333
author_rank: Contributor
timestamp: December 27, 2017, 04:25:57 am
content: .
Duplicator Remote control rolling code - Page 1
Forum section: electronics / general

author: Aster
author_rank: Newbie
timestamp: December 21, 2017, 05:07:31 pm
content: I'm electronic product manufacturer in Iran.I want to know, Is there anyone who has done the duplicator remote control rolling code project?If anyone has done this, please email me.Remote.aster@gmail.com

author: phil from seattle
author_rank: Super Contributor
timestamp: December 24, 2017, 05:09:01 pm
content: The guy got to 2 whole posts before getting the boot.Too bad his email is still there for other miscreants to connect. Fortunately, the email address skimmers probably have it on the spam lists they sell by now.

author: Jeroen3
author_rank: Super Contributor
timestamp: December 24, 2017, 09:22:34 pm
content: Even if anyone had, export laws would inhibit sharing it.

author: sorin
author_rank: Frequent Contributor
timestamp: December 29, 2017, 12:17:04 am
content: Why is this guy Banned?
Wanna try Atmels AVR 3.6.1 avr-gcc compiler ? - Page 1
Forum section: electronics / general

author: bingo600
author_rank: Super Contributor
timestamp: December 26, 2017, 06:50:57 pm
content: Atmel released the source for their avr-gcc 3.6.1 buildhttp://distribute.atmel.no/tools/opensource/Atmel-AVR-GNU-Toolchain/3.6.1/But never released it as a binary.I have built it from source , and have uploaded a "tar.gz" of the binary directory here forx64, it's built on a Mint 17.3 (afaik same as a Ubuntu 14.4 LTS)Download:https://mega.nz/#!9mQG2QxR!qTBgLy0Uhf_3yctUUskE37R_Zv4JQqdaB9HHuxq6aM8MD5 Sum should be:9c8368bd7dca8e89f4cb047757604eeb atmel-3.6.1-x64.tar.gzThe build is mine, but the BUGS are AtmelsOnly real difference is that i have moved thehostlib directoryinside the compiler dir, as i wanted all inside same dirI have included avrdude & avarice in the bin-dir tooEdit: AFAIK the Atmel builds uses static linking, so it might work on most "recent" x64 linux'es/Bingo
[Solved] identify:  8-pin microcontroller - Page 1
Forum section: electronics / general

author: kenny
author_rank: Newbie
timestamp: December 26, 2017, 03:23:35 pm
content: So i bought some flashlights (led puck and led spot) that have different modes when you pull the trigger or press the on/off button. Both use an 8-pin chip to control those modes and they have been etched to remove the part number. But they seem to have an unusual (reversed?) power and ground scheme: pins 1 and 4 have + 4.5V and pin 8 is ground, pins 2,3,6 not used. pin 5 drives an N-fet in one case, and pin 7 drives a P-fet in the other.i'm hoping that is a clue for someone to help id the parts. They are likely OTP, but still would like to determine the programming aspects.

author: hexreader
author_rank: Frequent Contributor
timestamp: December 26, 2017, 03:59:13 pm
content: I think most (maybe all?) PIC12 series 8 pin PIC controllers fit your description.If you plan to replace with your own PIC, then almost any 8 pin PIC12 will do the job, I think. Check datasheet of chosen replacement PIC before using.Only way to determine original PIC number is to connect something like PIC2 using stand-alone app to the de-soldered PIC and hope it is a more modern PIC that has ID built in.The PIC (assuming that is what it is) will almost certainly be write protected, so reading contents is not likely to happenI will take a wild guess at PIC12C508(A) as the original PIC, and if I were to re-engineer the device, I would use PIC12F1822.Can you provide a clear photo of the original PIC? It might give better clues.

author: kenny
author_rank: Newbie
timestamp: December 26, 2017, 05:22:48 pm
content: Thank you for the help, after looking at the datasheet i think you nailed it. Here is the boardschematic.Pin 4 is slightly lower voltage than the supply and appears to be a used as a control line for that PIC.
SD 3.0 host controller core implementation (UHS-i mode)  - Page 1
Forum section: electronics / general

author: Saad
author_rank: Newbie
timestamp: December 31, 2017, 08:56:24 pm
content: Hello,I wish to develop a SD 3.0 host controller core in UHS-i mode using just the simplified spec delivered by SD Association (I don't know whether there is another better free resource), and :1-till now, I still can't confirm if just that simplified spec is enough to get this core up, i hope not to go through a dead end road..2- the reason beside attempting to develop this core from the bottom point is the high license cost of SD controller, thus will i need to cover those huge fees even if i take this approach (develop my own core using simplified spec for just research purpose). But if i do need to, there is some practical way to get ride of it? (i will appreciate if you can also share with me the references if possible).3- Knowing that i'm not very familiarised with FPGA design, how much time it would take to complete this work?I will appreciate any help,thanks,Saad.

author: Someone
author_rank: Super Contributor
timestamp: December 31, 2017, 10:48:04 pm
content: Quote from: Saad on December 31, 2017, 08:56:24 pmFirst you'll need to be come an expert in FPGA design, then it might only take a few months. This is very difficult to get right with a combination of complex state machines, varying vendor implementations, and all the hardware challenges of high speed physical links.

author: marshallh
author_rank: Unknown
timestamp: January 09, 2018, 06:34:50 am
content: You can get 23mbyte/second without UHS mode.If you want to implement UHS, you must also add all the lower functionality (25mhz, 50mhz, 4bit, etc).If you are an FPGA noob it will take several months of very hard work and learning.
BLE slave library - need to receive BLE data with NRF24L01+ - Page 1
Forum section: electronics / general

author: RoGeorge
author_rank: Super Contributor
timestamp: December 24, 2017, 11:24:09 am
content: Is it possible to receive data (without a mobile phone) from a Bluetooth LE sensor tag, the one from TI:http://www.ti.com/tool/CC2541DK-SENSOR, using a NRF24L01+ ?Google didn't returned anything useful. All I could find was Bluetooth LE master with nrf24l01, for transmitting data, but nothing BLE slave, for receiving.Only NRF24L01+ or ESP8266 are on stock, any other ideas or libraries to receive BLE data, please?
Project of Atmega - Page 1
Forum section: electronics / general

author: yalect
author_rank: Regular Contributor
timestamp: December 26, 2017, 06:37:07 pm
content: Hi,I want to ask you about this C program that make the Led connected to the output of Atmega fliflop but the problem is when I simulated this program on Protuse I observed that the Led still on not flashs2) which program or software is better to simulate Atmega?thank you**********************************************************************************************************int main(void){DDRC |= (1<<PINC0); //Nakes first pin of PORTC as Output// OR DDRC = 0x01;DDRD &= ~(1<<PIND0);//Makes firs pin of PORTD as Input// OR DDRD = 0x00; //Makes all pins of PORTD inputwhile(1) //infinite loop{if(PIND & (1<<PIND0) == 1) //If switch is pressed{PORTC |= (1<<PINC0); //Turns ON LEDDelay_ms(3000); //3 second delayPORTC &= ~(1<<PINC0); //Turns OFF LED}}}

author: hugatry
author_rank: Contributor
timestamp: December 26, 2017, 07:11:06 pm
content: The code actually works (almost) as you intended it to work; While PD0 is high, PC0 repeatedly toggles between high and low.Problem is, the low-state won't last long. PC0 goes back to high so fast that you won't even notice the low-state.
Microchip - Up to the minute! - Page 1
Forum section: electronics / general

author: Gyro
author_rank: Super Contributor
timestamp: December 20, 2017, 09:41:35 am
content: I just received a Dev tools email from Microchip, entitled...."It’s Our Best Sale Yet – The 2016 End of Year Sale!"

author: JPortici
author_rank: Super Contributor
timestamp: December 21, 2017, 06:51:35 am
content: they haven't discontinued the last year

author: CJay
author_rank: Super Contributor
timestamp: December 21, 2017, 11:14:13 am
content: Hah, I spotted that one too.Good to know they're still supporting 2016 though

author: andersm
author_rank: Super Contributor
timestamp: December 21, 2017, 12:09:25 pm
content: Can't blame them for not wanting to acknowledge that 2017 ever happened.

author: SiliconWizard
author_rank: Super Contributor
timestamp: December 21, 2017, 02:42:55 pm
content: Hopefully their R&D teams are a bit more rigorous than their marketing teams.

author: cv007
author_rank: Frequent Contributor
timestamp: December 21, 2017, 02:44:39 pm
content: copy/paste syndrome- infects datasheets also

author: NivagSwerdna
author_rank: Super Contributor
timestamp: December 21, 2017, 02:58:44 pm
content: I read the email. Didn't notice the typo... but thought the offers were rubbish!

author: Mr. Scram
author_rank: Super Contributor
timestamp: December 21, 2017, 02:59:27 pm
content: It actually took me three times looking at this thread to figure out what's wrongBut hey, I was just remarking a few weeks ago how I'm not quite used to 2017 yet, so that lines up quite nicely.
Please, would someone i.d this 20pin smd controller device (PIC?) - Page 1
Forum section: electronics / general

author: peteb2
author_rank: Regular Contributor
timestamp: December 19, 2017, 10:25:03 pm
content: It has pin8 as +5V and pin 10 as 0V. As per usual the top has been sanded off. None of the other pins are dedicated to any external xtal etc. My knowledge kind of leaves a bit to be desired within this area. The device's tasks seem fairly simple, monitoring humidity and temperature and switching a peltier module on when so required. There's the addressing of a couple of dual 7seg displays and user input is via 3 press buttons that pull that pin to 0V level.The device seems to be 'running' on 5V but the amplitude of the 'scoped pulses are seriously low, less than 2Vp-p and most with a +1.3Vdc potential. I fully realise just replacing the device won't be a fix but i'd love to be able to explain to the owner of the piece of kit this circuit inhabits what specially has died and how it may have occurred....As always ... TIA!

author: Bruce Abbott
author_rank: Frequent Contributor
timestamp: December 20, 2017, 06:08:25 am
content: Photo?

author: peteb2
author_rank: Regular Contributor
timestamp: December 20, 2017, 06:57:28 am
content: Here is the board. U2 is a 555 as per the Humirel relative humidity sensor HS11xx series marked CT1... Chip U1 has had it's top ground off....
include files for C - Page 1
Forum section: electronics / general

author: yalect
author_rank: Regular Contributor
timestamp: December 20, 2017, 11:13:23 am
content: Hello,I would like to ask you where I can find this include files or headers and How to add them tomikroC PROcompiler :#include <avr/io.h>#include <util/delay.h>#include <avr/delay.h>Thank you

author: dgtl
author_rank: Regular Contributor
timestamp: December 20, 2017, 03:08:30 pm
content: You are probably referring to the files from avr-libc. Source repository of avr-libc is here:http://svn.savannah.nongnu.org/viewvc/avr-libc/trunk/avr-libc/include/

author: yalect
author_rank: Regular Contributor
timestamp: December 20, 2017, 03:59:25 pm
content: Thank you for your reply but how I can copy that file from the website or download it may you try with one here or there is another website?Thank you

author: Bruce Abbott
author_rank: Frequent Contributor
timestamp: December 20, 2017, 06:29:35 pm
content: https://download.savannah.gnu.org/releases/avr-libc/

author: senso
author_rank: Frequent Contributor
timestamp: December 20, 2017, 09:55:33 pm
content: You might want to explain a bit more what you are doing...If you want to program an AVR in C, use the toolchain, you cant just slap .h files into a random c compiler..

author: rstofer
author_rank: Super Contributor
timestamp: December 21, 2017, 01:32:30 am
content: You can't simply grab the headers and libraries that work with avr-gcc and expect to incorporate them in MikroC. What you need to do is see if MikroC provides the functions you need - and they certainly do.In fact, document page 108 (PDF page 138) shows that MikroC does include delay_us() and delay_ms().http://download.mikroe.com/documents/compilers/mikroc/avr/mikroc-avr-manual-v100.pdf
Which oscillators to buy for CPLD project - Page 1
Forum section: electronics / general

author: garvind25
author_rank: Regular Contributor
timestamp: December 21, 2017, 09:59:03 am
content: Hi,I was looking forward to buy an oscillator for my CPLD project. Can anyone pls. point exactly to which device I can buy (25/50 MHz; preferably SMD). The ones at aliexpress are low cost (hence tempted to buy those ) but dont have datasheets attached with them. The devices at utsource are either low cost and without datasheets or about 10-11 dollars a piece!Thanking You,Arvind Gupta.

author: rstofer
author_rank: Super Contributor
timestamp: December 21, 2017, 10:04:08 pm
content: If the question is "Which is the best of the worst?", I don't know.l I buy first line parts from Digikey or Mouser. It improves the odds that my project will run.Selecting a quality part should be as easy as matching the desired frequency with the required Vcc and drive level (HCMOS, LVTTL, etc). Digikey has a selection tool.Lacking any knowledge of your CPLD, I chose 25 MHz 3.3V LVCMOS drive level and came up with a cost of $1.13. You need to check the CPLD datasheet to determine which drive level is required. It might be LVTTL...https://www.digikey.com/product-detail/en/sitime/SIT8008BI-13-XXS-25.000000G/1473-30687-2-ND/6080749I linked the qty 250 part because the qty one part doesn't have a picturehttps://www.digikey.com/product-detail/en/sitime/SIT8008BI-13-XXS-25.000000G/1473-30687-1-ND/7559748

author: garvind25
author_rank: Regular Contributor
timestamp: December 23, 2017, 11:21:54 am
content: Thanks for the reply. The digikey website chages a lot for delivering here in New Delhi! So do you know of any chinese vendors for such parts pls (usually they give free / low cost delivery options)Thanks again,Arvind Gupta

author: rstofer
author_rank: Super Contributor
timestamp: December 23, 2017, 04:52:52 pm
content: Sure, just add 'china' to a search for 'crystal oscillator'https://www.alibaba.com/product-detail/25MHz-3-3V-5032-quartz-oscillator_60439909880.html?s=pI don't buy from China because it takes too long to get the parts. Nevertheless, they do have cheap shipping and much lower prices.
Looking for infos about ti OMAP5948 - Page 1
Forum section: electronics / general

author: helltron
author_rank: Newbie
timestamp: December 19, 2017, 10:30:26 pm
content: Hi,i',m (desperately) looking for datasheet or all kind of info about the texas instruments processor called "OMAP5948". It's used in car audio devices/nav-systems. Also in my Blaupunkt LSRNS (called "Navigation FX" by Ford).As far as i found out, it's an non-standard device andnotone of the OMAP5-family! It's more OMAP1. It is a compound of an 32-bit ARM9-CPU and an DSP.What i want to do is to debug this device using J-Tag and read the flash.Any(!) help would be greatly appreciated,helltron
Atmega Pin to send Data - Page 1
Forum section: electronics / general

author: yalect
author_rank: Regular Contributor
timestamp: December 26, 2017, 09:09:44 am
content: Hi,I would like to ask you that I want to sand data 8 bits or (1 byte) out of Atmega 32 throw one Pin of Port like Port b for example which it means serially I found some Ideas like using -and- operation logic to compare the Data with 1 logic and shifting that Data right or left for eight times I made example in C but it did't work.may you provide me an Idea or simple in C example?thank you

author: matseng
author_rank: Frequent Contributor
timestamp: December 26, 2017, 10:24:52 am
content: For UART or SPI data? But the correct term for this is "bitbang" or "software serial" or "softserial". So a google for instance ATMEGA BITBANG SPI should turn up some relevant codes for you to pursue.

author: Nusa
author_rank: Super Contributor
timestamp: December 26, 2017, 11:18:21 am
content: Perhaps this will help. Didn't test. If I typoed something, sorry.void setup() {pinMode(LED_BUILTIN, OUTPUT);}void loop() {int bits = 12345; // binary 0011 0000 0011 1001// use bits to flash built-in LED on a 1-second cyclefor (int index = 0; index < 16; index++){if ((bits >> index) & 1) // shift right, then mask bottom bit{// if bit was 1, give long flash on LEDdigitalWrite(LED_BUILTIN, HIGH);delay(900);digitalWrite(LED_BUILTIN, LOW);delay(100);}else{// if bit was 0, give short flash on LEDdigitalWrite(LED_BUILTIN, HIGH);delay(100);digitalWrite(LED_BUILTIN, LOW);delay(900);}}delay(5000); wait 5 seconds, then repeat.}
Imagination technology to sell their mips business - Page 1
Forum section: electronics / general

author: asgard20032
author_rank: Regular Contributor
timestamp: May 21, 2017, 04:21:39 pm
content: http://www.anandtech.com/show/11334/imagination-to-sell-mips-and-ensigmaI wonder if this will have any impact on microchip pic32 business, since they rely on imagination implementation, and the future of that is uncertain.

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: December 19, 2017, 06:13:32 pm
content: Imagination has sold their MIPS business to Tallwood Venture Venture Capital (for USD$65M). They acquired the MIPS business back in 2012 for $100M, so this sale represents a loss of $35M.My guess is they will eventually find a buyer for the MIPS technology as they seem to be more of a holding company than an operating company.

author: SiliconWizard
author_rank: Super Contributor
timestamp: December 19, 2017, 06:30:27 pm
content: I don't quite know where it's all going to lead. MIPS are nice architectures actually, but they really struggle to compete against ARM.As for Microchip, since they acquired Atmel, I don't really know what the future holds for the PIC32 line either. They might end up moving to ARM cores to lower development costs and mutualize with the Atmel ARM-based microcontroller line, which would actually make sense. On the other hand, keeping some architectural diversity would be better for the customers and wise for the long-term. We'll see.
How to know what silicon version the suppliers like mouser sell? - Page 1
Forum section: electronics / general

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: December 19, 2017, 02:27:48 pm
content: Hi,I have ordered some MIMXRT1052DVL6A from mouser, before they reach into my hands, how can I know the chip silicon Rev, since the Rev 0.0, errata have some issues specially with the DC/DC converter and they can only be fixed in Rev 1 silicon. should I cross my fingers to get Rev 1.0 chips?

author: JPortici
author_rank: Super Contributor
timestamp: December 19, 2017, 02:38:30 pm
content: you may ask them, at the very least they should be able to provide you a datecode.reading the ERRATA document, they should be able to tell you by looking at the actual product code (first page on the errata document)

author: SiliconWizard
author_rank: Super Contributor
timestamp: December 19, 2017, 02:42:15 pm
content: Maybe ask the customer support? But frankly, unless you're representing a big company, I doubt you will be able to get an answer, even less give requirements on silicon revisions to the distributor.Anyway, you can always try. "CUSTOMER SERVICE OFFICE" links are available at the bottom of Mouser's home page. Let us know if you can get any kind of answer!

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: December 19, 2017, 03:03:41 pm
content: I think they are Rev 0, since the Silicon Rev is in the part number already it's in the Errata sheet and datasheet, The question for now Does anyone here get their hands dirty on these babies? Does the silicon bugs catches you!
looking for a drop in eeprom replacement for AM27C040 - Page 1
Forum section: electronics / general

author: RogueBotix
author_rank: Contributor
timestamp: December 09, 2017, 05:46:48 pm
content: I am having a hard time finding a replacement to replace an AM27C040 with an eeprom. Have some old boards that I need to update the firmware, I don't have an erasing lamp, so I figured if I just find a eeprom replacement that would be easier. I am not very knowledgeable in this field. Thanks for your help.

author: frozenfrogz
author_rank: Frequent Contributor
timestamp: December 09, 2017, 05:56:57 pm
content: You could tryW27E040-12.Also, EPROM eraser lamps can be had for a couple of bucks from ebay or local small ads.

author: RogueBotix
author_rank: Contributor
timestamp: December 09, 2017, 07:07:47 pm
content: I still would like to find one electronically erased since I might have to do it multiple times.

author: frozenfrogz
author_rank: Frequent Contributor
timestamp: December 09, 2017, 07:32:11 pm
content: Please take a second look at the part I proposed. It is an EEPROM and not a UV-EPROM. It should be pin compatible and up to specs if I am not mistaken.

author: RogueBotix
author_rank: Contributor
timestamp: December 09, 2017, 08:06:06 pm
content: Oh my bad, many thanks!

author: frozenfrogz
author_rank: Frequent Contributor
timestamp: December 09, 2017, 08:11:40 pm
content: You are welcome. Good luck with your project

author: westfw
author_rank: Super Contributor
timestamp: December 09, 2017, 09:38:53 pm
content: A generic replacement for 27c040, in flash technology, would be 29f040

author: technix
author_rank: Super Contributor
timestamp: December 18, 2017, 02:55:51 pm
content: Quote from: westfw on December 09, 2017, 09:38:53 pmThe problem would be pin compatibility - are 29F040 drop-in replacement for 27C040?My personal favorite is actually one of those SD-based flash cartridges used in certain game consoles. However still, pin compatibility.
Is there a way to watch complex number in keil? - Page 1
Forum section: electronics / general

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: December 18, 2017, 02:29:26 pm
content: Hi,I'm doing some Complex calculations using complex numbers, I wanted to know if there is a way to watch the complex variables in the watch window, when I simply add them in the watch window they always show 0