hybridfree/eevblog-posts huggingface dataset:
esp8266 broadcasting to a TV - Page 1
Forum section: electronics / general

author: Muxr
author_rank: Super Contributor
timestamp: January 31, 2016, 02:48:24 pm
content: This guy has pushed his esp8266 to do some really cool things:

author: janekm
author_rank: Unknown
timestamp: January 31, 2016, 05:12:33 pm
content: That is hilariously awesome in the best possible way.I thought it was going to use the actual WiFi radio to output TV signals (in retrospect that doesn't make sense) but using I2S DMA instead is genius! At 80MHz no less! What a crazy little chip.

author: miguelvp
author_rank: Super Contributor
timestamp: January 31, 2016, 05:53:23 pm
content: Awesome,Yeah, there is nothing Micro on current modern Microcontrollers.PSoC can do also DMA to SPI and other peripherals, the 5LP i believe it can do 8 asynchronous DMA transfers while the CPU is doing nothing at all other than setting things up.

author: zapta
author_rank: Super Contributor
timestamp: January 31, 2016, 05:55:42 pm
content: Awesome!Reminds me Ron Popeil's "but wait, there's more...".

author: captbill
author_rank: Contributor
timestamp: February 02, 2016, 07:46:53 pm
content: Quote from: zapta on January 31, 2016, 05:55:42 pm...and he didn't even mention anything about his custom carrier board ON A GLASS MICROSCOPE SLIDE. Look close at that 'board'.This guy is quite clever.(How do I link a video?)

author: zapta
author_rank: Super Contributor
timestamp: February 05, 2016, 01:24:10 am
content: Quote from: captbill on February 02, 2016, 07:46:53 pmJust remove change HTTPS to http and the video will get inlined.

author: Aodhan145
author_rank: Frequent Contributor
timestamp: February 05, 2016, 01:27:43 am
content: I subscribed to him along time ago. I would recommend you do as well. He really likes minecraft servers on avrs

author: crispy_tofu
author_rank: Super Contributor
timestamp: February 05, 2016, 05:44:00 am
content: That is very cool.

author: Chalcogenide
author_rank: Regular Contributor
timestamp: February 08, 2016, 04:54:04 pm
content: he now got even COLOUR broadcast working!
STM32 Simulator - Page 1
Forum section: electronics / general

author: hamdi.tn
author_rank: Frequent Contributor
timestamp: February 14, 2016, 04:10:57 pm
content: Hi, someone correct me if am wrong, but am not able to find any simulation software for STM32.dev board are cheap so not having a simulator it's not a major problem. but it can be better with one.

author: Yansi
author_rank: Super Contributor
timestamp: February 14, 2016, 04:37:34 pm
content: Almost any proper development IDE can simulate those. Keil for example.H.

author: Brutte
author_rank: Frequent Contributor
timestamp: February 14, 2016, 04:55:21 pm
content: What does it mean "stm32 simulation software"? You want to simulate ST's add-ons, like RF frontend, SDRAM bus timings, BLDC controllers, Op-amps, etc?

author: hamdi.tn
author_rank: Frequent Contributor
timestamp: February 14, 2016, 05:45:44 pm
content: For the most basic part, a simulator capable of simulating just stm peripheral (timers, usart, gpio, interrupts , etc ... ) and if can do more than that (proteus like one ) capable of connecting the MCU to other chips and more why not. but am just looking for something with what i can check if signals, peripheral are running correctly without using real hardware.

author: Yansi
author_rank: Super Contributor
timestamp: February 14, 2016, 07:15:11 pm
content: As I've said - try Keil.But I do not recommend doing so. Those ARM MCUs are very complex devices and very easily the simulation can be wrong or not accurate. Running the real HW should always be better. Yet to consider many different silicon revisions and bugs. The simulation can easily become missleading.

author: hamdi.tn
author_rank: Frequent Contributor
timestamp: February 14, 2016, 09:59:14 pm
content: Quote from: Yansi on February 14, 2016, 07:15:11 pmThanks for the advice, am aware of sim limitation but it can make things faster. most of the time i need that to test some small functionality without wasting to much time on it and then i use the real board to test the whole thing. So i think i will give keil a try since i don't much code space i presume the free version will suffice.Quote from: blueskull on February 14, 2016, 09:18:04 pmi do that at work, i have all STM eval board so i test code on those board. am just looking for something with what i can test code without being in the lab

author: hamdi.tn
author_rank: Frequent Contributor
timestamp: February 15, 2016, 07:36:00 am
content: Quote from: blueskull on February 14, 2016, 10:19:56 pmyeah i do that what i really have to work on something, not my favorite thing to do really

author: Gabri74
author_rank: Regular Contributor
timestamp: February 15, 2016, 08:53:23 am
content: This look promising:https://beckus.github.io/qemu_stm32/
UART routine - how on earth.. [solved] - Page 1
Forum section: electronics / general

author: ChristofferB
author_rank: Frequent Contributor
timestamp: January 31, 2016, 12:57:45 pm
content: Hello! - Not entirely sure this is the right board, since this involves microprocessors rather than controllers, but I felt this board were closest related-tell me if I should move it!I've recently purchased an old Motorola 6802 trainer - the MEK-6802-D5. It has the std. hex keypad, 7segment displays and save/load to cassette.It has room for serial hardware, the 6850 ACIA and baudrate generator. That's all good, but it doesn't use the ACIA/UART's interrupt line to anything, and there's no serial routines in ROM.So how would you go about writing a routine for receiving serial?My thoughts were either:- Poll the UART for a new byte (how to tell if two bytes in a row are the same?)- Wire the /INT line to a user port and poll that for receiving a byteI think the 2nd one looks more solid, but if that's not a part of the built circuit, there surely must be another way of doing it.I've never really properly interfaced a UART/ACIA before, and I haven't seen any designs that doesn't use the interrupt.Thanks in advance!

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: January 31, 2016, 01:06:29 pm
content: Quote from: ChristofferB on January 31, 2016, 12:57:45 pmAssuming it's like normal UARTs (many of which are based on old dedicated chips), there will be a flag to tell you data is available, which will clear when you read a byte (this may be a clone of the interrupt request line). There will also be an overrun flag to tell you if you didn't read the last byte fast enough.Remember back in those days baudrates like 300 and 1200 were the norm, typically from a terminal, with someone typing one character at a time.

author: ChristofferB
author_rank: Frequent Contributor
timestamp: January 31, 2016, 01:13:30 pm
content: It is a normal UART, in its own 24pin package-it is an old dedicated chip!And yes, you're exactly right! pin 7 of the status register is the /INT. Overflow is there too.Gotta read the datasheet a bit more careful.Thanks!
Shift Register and LED? - Page 1
Forum section: electronics / general

author: modernjack3
author_rank: Contributor
timestamp: January 28, 2016, 08:22:15 pm
content: So Ive got a pretty Basic question:I want to drive a LED with a shift Register and want to use the SN74HC595N .The LED should be visible behind some scratched up Plexy glass.Is it possible? If not what kind of darlington Array should I use and how exactly should I use it?Thanks for the help and sorry for such a stupid question...Greetings Jack

author: Brutte
author_rank: Frequent Contributor
timestamp: January 28, 2016, 09:33:37 pm
content: QuoteAny search effort made so far?? Links?

author: modernjack3
author_rank: Contributor
timestamp: January 28, 2016, 09:37:14 pm
content: Yes I found a Datasheet but I can only read out the Basic Things like VCC and whatsoever- havent found anything related to my question...http://www.produktinfo.conrad.com/datenblaetter/1000000-1099999/001016774-da-01-en-IC_8BIT_SHFT_REG_SN74HC595N_PDIP_16_TID.pdf

author: Muxr
author_rank: Super Contributor
timestamp: January 28, 2016, 09:42:16 pm
content: Quote from: modernjack3 on January 28, 2016, 09:37:14 pmYes you can use a shift register to drive some LEDs. The basic principle is you shift some bits into it and the you latch it to change the state of the pins driving leds with it. You would need some device like a microcontroller to generate this serial data.Your question is very broad in nature. If I may suggest give Arduino a try, it's a fine tool to get started, and as an added bonus there are probably 100s of articles explaining how to use shift registers with Arduino and LEDs. For instance the first hit of this search query gives you a really well written article for any begginer level:https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=arduino%20shift%20register%20ledIt would be difficult to describe the whole problem in a forum post. Once you have more specific questions we can help.

author: modernjack3
author_rank: Contributor
timestamp: January 28, 2016, 10:05:36 pm
content: Thanks for the help !So if I put 5V on the Shift Register how much current can I approx get out of the pin?

author: dadler
author_rank: Unknown
timestamp: January 28, 2016, 10:17:21 pm
content: Have you considered reading the datasheet?

author: Muxr
author_rank: Super Contributor
timestamp: January 28, 2016, 10:34:04 pm
content: Quote from: modernjack3 on January 28, 2016, 10:05:36 pmThe datasheet suggests around 6ma which should be plenty to light the LEDs at 5V. If you look at the absolute max ratings table it says you can do 35mA but the total for the chip is 70mA. You also have to use current limiting resistors for the LEDs to limit current to 6ma. Something around 500 ohms should do.
Looking for a 1Mbit/s USB SPI slave - Page 1
Forum section: electronics / general

author: dcarr
author_rank: Regular Contributor
timestamp: January 27, 2016, 06:49:49 pm
content: I've got a test harness to build for a device that outputs a ~1Mbit/s SPI stream, but I'm struggling to find a simple SPI slave-->USB solution. The FTDI devices seem to have the speed, but as far as I can tell only support SPI master mode.Are you guys aware of there anything off the shelf that could work (<$250) or am I going to have to cobble something together with a USB microcontroller?Thanks for the help,David

author: Lukas
author_rank: Frequent Contributor
timestamp: January 27, 2016, 07:01:41 pm
content: Have you taken a look at thehttp://www.ftdichip.com/Products/ICs/FT220X.html?

author: dcarr
author_rank: Regular Contributor
timestamp: January 27, 2016, 07:56:48 pm
content: Lukas,Thanks for the link. I hadn't seen that before---just on the line in terms of speed. Funny how it's always like that.David
Changing speed in Bitcloud - Page 1
Forum section: electronics / general

author: DaurenD
author_rank: Newbie
timestamp: January 28, 2016, 04:48:56 am
content: Hello everyone!For a couple days i was thinking about changing speed of the RF transmition using atmel Single on Chip. Datasheet says that it is possible to change speed up to 2 Mbit/sec, but I will only apply to the payload field of the 802.15.4. Because protocol above uses speed 256 kbit/sec, if I will change speed frames will not be compliant with protocol.Atmel provides SDK for ZigBee called Bitcloud. I was experementing with it, and changed values of register which responsible for speed. But Bitclouds task handler reset its value on the next cycle. So Question is Has anyone tried to change the speed? Is it possible somehow to tell Bitcloud not to change values?

author: ataradov
author_rank: Super Contributor
timestamp: January 28, 2016, 05:06:32 am
content: Quote from: DaurenD on January 28, 2016, 04:48:56 amIt is impossible and very wrong.2 Mbps data rate comes with limitations on how LQI and RSSI values are calculated. And they basically will be very inaccurate.BitCloud relies on those values to maintain mesh network topology. There are also a whole lot of constants calculated based on 250 kbps timings. All those things will also be off, and it is hard to tell how that will affect network performance.If you want to go proprietary, use LwMesh and do whatever you want with the transceiver. LwMesh will still use LQI, which will be invalid, but at least you can introduce a different link quality metric, if you really need.
C2000 Development tools - Page 1
Forum section: electronics / general

author: Aleksandar B.
author_rank: Contributor
timestamp: January 27, 2016, 08:49:43 am
content: Hi everyone,I am looking into starting using TI's C2000 MCUs but can't find my way around the required development tools.I need an IDE and a programmer, and the only things that I found is CCS for which I totally don't understand the licensing, and the XDS100 debug probe.The XDS100 vendors claim that with the debug probe you get a free licence for CCS, but when I asked TI's technical support they said there is only a free trial version of the IDE.Also, the XDS100 probe claims to support only the TMS320C series of micros, and not TMS320F series, and can't find any information what is required to programme the F series..Is there an alternative to CCS? Preferably a free, or low-cost one.

author: AndreasF
author_rank: Frequent Contributor
timestamp: January 27, 2016, 01:50:25 pm
content: Considering that one of their C2000 launchpads (http://www.ti.com/tool/launchxl-f28069m) uses a TMS320F device, has the onboard "isolated XDS100v2 JTAG Emulator", and claims that it works with the free version of CCS ("Free unrestricted version of Code Composer Studio integrated development environment (IDE)") I think that should answer your questions.

author: Aleksandar B.
author_rank: Contributor
timestamp: January 27, 2016, 04:54:00 pm
content: Thank you.I don't know why this information has to be found on a launchpad's page, and not in the tools section of a MCU...Also, I don't understand why didn't TI's support tell me that when I asked
help connecting to RIoTboard with J-Link - Page 1
Forum section: electronics / general

author: kolonelkadat
author_rank: Regular Contributor
timestamp: January 24, 2016, 11:16:09 pm
content: I recently purchased a J-Link and a RIoTboard. I've connected the RIoTboard to the J-Link with an Olimex ARM-JTAG-20-10. I'm fairly certain the pins are all correct, but I cant seem to get the jtag connection working. My PC can talk to the jlink and loaded the latest firmware on it. the RIoTboard cpu is a freescale MCIMX6s5 Cortex-A9edit:figured it out. pin 9 on the olimex adapter was tied to ground. cut the trace, connect pin 9 (of 10) to pin 3 (of 20) and its good to go.

author: farsi
author_rank: Regular Contributor
timestamp: January 27, 2016, 08:29:45 am
content: Interesting. I was playing with riotboard a while back too. Had some strange effects during boot, that HDMI output freezes the board, and also flashing a Debian image did not really work out. Unfortunately, I have to investigate other things, and could not learn too much what was wrong.What is your plan for the JTag connection?
HDMI Retimer Redriver - Page 1
Forum section: electronics / general

author: electosleepy
author_rank: Contributor
timestamp: January 26, 2016, 01:51:27 am
content: I'm looking for a component that works as a 1.2V to 3.3V level shifter for HDMI. It must be able to support more than 3.4Gb/s per TMDS output lane. I think I have found the component (TMDS181) I need but what is a HDMI retimer and what is a HDMI redriver? Will it work for my application?http://www.ti.com/product/tmds181

author: hamster_nz
author_rank: Super Contributor
timestamp: January 26, 2016, 03:44:55 am
content: Redriver - It receives the incoming signal, and then passes it straight to the output drivers. Any skew and jitter on the input signal will be passed through to the output signal.Retimer - it performs clock data recovery on the incoming signal, and then transmits the same bitstream but using the recovered clock as the reference clock. Skew and jitter on the input interface should be removed, giving a nice clean output.

author: electosleepy
author_rank: Contributor
timestamp: January 26, 2016, 04:28:02 am
content: So the retimer would be useful in applications where skew and jitter has been introduced due to long traces between the GPU and HDMI connector? As seen in the attached picture where the GPU is on one side of the HDMI connector is on the other side of the display.What is the purpose of the redriver if it doesn't remove skew or jitter?

author: marshallh
author_rank: Unknown
timestamp: January 26, 2016, 04:52:41 am
content: Read up on transmission line theory and current mode logic.
Serial on PL2303HX - Page 1
Forum section: electronics / general

author: j.a.mcguire
author_rank: Contributor
timestamp: January 24, 2016, 10:59:50 pm
content: I've begun working with an atmega328, unsuccessfully. I've been unable to get the IDE to communicate with it so I'm unable to get any of my sketches to upload.Through the process of debugging why this could be, I began testing my serial cable. I have a USB -> TTL cable powered by a PL2303HX. If I loop the TX->RX pins together I can get output on a serial console so in general it appears to be working.I disconnected the loopback in order to test the cable on a scope.When I scoped out the TX line. It appeared like the signal was dropping when I entered characters into the serial console, which is what I'd expect.When I then scoped out the RX line, I was getting a reverse effect, the signal appeared to spike on every key press.Does anyone with serial experience know if this is normal, or is it likely I have a faulty cable?

author: macboy
author_rank: Super Contributor
timestamp: January 25, 2016, 07:33:26 pm
content: The Rx line should not be driven. Try adding a pullup resistor (idle is high), since it might just be floating there and picking up noise from the transitions on the Tx line.

author: Brutte
author_rank: Frequent Contributor
timestamp: January 27, 2016, 03:20:35 pm
content: Quote from: j.a.mcguire on January 24, 2016, 10:59:50 pmIt is a uC that has multiple programming options: ISP, HVPP, dW (factory disabled) and self-programming option that can use any custom protocol with appropriate bootloader.So for programming you need one of four: ISP programmer or HVPP programmer or dW programmer (which typically can also debug) or a uC flashed via prior 3 interfaces with a bootloader for custom programming interface (these uCs come blank from the factory).Which one you picked?Your post suggests you own m328 that you have already flashed with some rs232 bootloader.What about starting from ISP, blinking LED or hello world, leave bootloader as a second project?

author: macboy
author_rank: Super Contributor
timestamp: January 27, 2016, 04:02:39 pm
content: Quote from: j.a.mcguire on January 24, 2016, 10:59:50 pmSounds like you are talking about Arduino, but you don't say so anywhere.If that is so, then does your ATmega328 have the Arduino bootloader on it already? An ATmega328 is just an ATmega328 until that bootloader is programmed into it, then it is an Arduino-compatible. To do this, you need an AVR ISP tool. Fortunately, there is a sketch that makes a working Arduino into an ISP tool to program your blank ATmega328. It's like a self-replicating Arduino. Read and understandhttps://www.arduino.cc/en/Tutorial/ArduinoToBreadboard
USB JTAG for FPGA Configuration - Page 1
Forum section: electronics / general

author: electosleepy
author_rank: Contributor
timestamp: January 26, 2016, 03:10:42 am
content: I've seen that the FT2232H is a popular IC for FPGA programming and debugging. The schematic for the Scarab miniSpartanr6+ for example uses one channel for JTAG and another channel for a FIFO interface described on page 41 of the FT2232H datasheet. Why would you choose FIFO over UART, I2C, or SPI. What is the FIFO channel responsible for? Is it used to write bitstreams to flash memory?miniSpartan6+ schematic.https://github.com/scarabhardware/miniSpartan6-plus/blob/master/miniSpartan6%2B_Rev_B.pdfFT2232H webpage.http://www.ftdichip.com/Products/ICs/FT2232H.htmlFT2232H datasheet.http://www.ftdichip.com/Support/Documents/DataSheets/ICs/DS_FT2232H.pdf

author: baoshi
author_rank: Regular Contributor
timestamp: January 26, 2016, 03:48:32 am
content: These kind of application is usually meant for SPEED through USB2.0 port. FT2232H FIFO gives you full 480Mb/s throughput while SPI in sync mode only gives 30Mb/s

author: electosleepy
author_rank: Contributor
timestamp: January 26, 2016, 04:35:19 am
content: So once the FPGA is programmed through JTAG, I can transfer the bitstream data through the FIFO channel to the flash memory so it can reconfigure itself if the power is disconnected?
CLPD / FPGA Square wave frequency generator. - Page 1
Forum section: electronics / general

author: CM800
author_rank: Frequent Contributor
timestamp: January 22, 2016, 08:46:09 pm
content: Hi All,So, I've been playing with my CPLD and I've decided I want to get it controlling a Pulse / Direction stepper motor driver I have (6400pulses per revolution)Now, the first part of this is creating some form of variable frequency control... I am honestly quite stuck with this, my main clock is 50MHz, now, I want to be able to be able to vary my output between about 1kHz to 320kHz (wider then that if possible)What would be the best way to do this?

author: awallin
author_rank: Frequent Contributor
timestamp: January 22, 2016, 09:14:13 pm
content: DDS with a 1-bit DAC at the output?If you want to do positioning (CNC, 3D printer, etc) with the stepper motor then the problem is much harder (you need a trajectory generator) and has already been solved many times, see e.g. linuxcnc.

author: kc8apf
author_rank: Regular Contributor
timestamp: January 22, 2016, 11:40:49 pm
content: Make a counter that increments from the 50MHz click. Have a separate register to hold a compare value. When the counter matches the compare, reset the counter and toggle the output signal.Sent from my Nexus 5X using Tapatalk

author: dgtl
author_rank: Regular Contributor
timestamp: January 23, 2016, 12:17:24 am
content: Just for square wave generation, use a phase accumulator counter. A configurable value gets added to the accumulator every cycle of the 50MHz. In case of square wave, your output is just the most significant bit of the accumulator. The accumulator will wrap over and everything continues; at the same time the remainder of the phase is still kept and you'll get fractional precision. Scale the accumulator size as needed; it shall be at least 16 bits to accomodate divisor 50000; it may be as long as much precision you'll need. In case of 50MHz input and 16-bit accumulator, each configuration step is 762.9Hz. For 32-bit, you'll get 0.01Hz.As always with fractional division, the pulse lengths might not be exactly equal; for example, the input of 419 will give you average frequency of 319.7MHz, but there will be pulses of 156 input clocks and 157 input clocks due to output not being multiple of input frequency.As said, driving stepper motors at not very slow speeds is much more than just fixed frequency pulse generation. For better results, explore what has been done before.

author: andre_teprom
author_rank: Regular Contributor
timestamp: January 23, 2016, 12:17:55 am
content: In the case of the frequency vary in a range so broad like that ( > 300x ), you should consider splitting the calculation routine among scalable updating rates.

author: Kalvin
author_rank: Super Contributor
timestamp: January 23, 2016, 11:42:45 am
content: +1 for the phase accumulator. Very simple to implement and the easiest way to create fractional output frequencies.There are also some PIC-processors with an internal NCO which may be used for frequency generation up to 30MHz:http://www.microchip.com/pagehandler/en-us/family/8bit/peripherals/coreindependent/nco-prdpge.html
Can't download digistump windows drivers. - Page 1
Forum section: electronics / general

author: Refrigerator
author_rank: Super Contributor
timestamp: January 24, 2016, 09:31:00 pm
content: Hi, guys.So i decided to get started with digispark but the drivers won't start downloading like mentioned in the digispark resources page.I couldn't find any manual download and without the drivers my arduino IDE does not have the option to set digispark as my programmer, also my pc freaks out and tosses its new hardware setup wizard at me every time i try to pop the digispark in.Other than that everything else worked out well.In case it's relevant my pc is ACER TravelMate 4100 running windows XP 32 bit, might be old but everything else seems to work.Thanks.ps: i had this thread previously on the digistump forums but it only got like 4 views in one day and no reply so i decided to repost it here.
MicroPython on the ESP8266 - Page 1
Forum section: electronics / general

author: John_L
author_rank: Contributor
timestamp: February 01, 2016, 06:24:33 am
content: Micropython is an option to program microcontrollers in high level Python language .It has its advantages and disadvantages and appropriate uses.http://micropython.org/New Kikcstarter campaign is to develop a more professional port to ESP8266 with main emphasis on wireless networking functionality. This follows a very successful Kickstarter in 2014 for the original Micropython.https://www.kickstarter.com/projects/214379695/micropython-on-the-esp8266-beautifully-easy-iotInitial objective of £6,000 was passed in less than 3 days and they are looking to achieve at least £12,000 to develop more functionality and features.For those that are interested please have a look at Kikckstarter and support if you can.

author: Muxr
author_rank: Super Contributor
timestamp: February 01, 2016, 07:47:19 am
content: Wonder how it stacks up to eLua (NodeMCU for esp8266). Python is a superior language, but I wonder if that will make MicroPython heavier than Lua.

author: eas
author_rank: Frequent Contributor
timestamp: February 01, 2016, 10:15:54 pm
content: I was just checking up on ESP8266 support in the micro-python forums a day or so ago. I seem to have missed this.I looked at the existing port, and a fork, about a month ago. I actually got a working repl over a serial connection, but found that documentation was lagging development and various APIs had been moved or renamed.It looked like there was also a larger effort to refactor some of the micropython APIs to better accommodate differing hardware. It was originally created for the pyboard, but the recently shipped wipy, not to mention various community ports to other boards made it a pressing issue.I'm glad there is a way to support the work.Quote from: Muxr on February 01, 2016, 07:47:19 amThe original proof of concept from fall of 2014 had ~24K heap available to user code. Not sure where it is now.
STM32 CRC Flash - Page 1
Forum section: electronics / general

author: hamdi.tn
author_rank: Frequent Contributor
timestamp: January 21, 2016, 10:49:26 am
content: Hi,Am trying to add CRC32 in the end of the Flash memory of an STM32F101 using IAR tool. So far so good , IAR generate "a" CRC32 and write it in the end of memory.I wrote a function that calculate CRC using integrated CRC hardwareCode:#define MEM_START 0x08000000#define MEM_END 0x0803FFF8#define MEM_CRC 0x0803FFFCuint32_t CheckFlashCRC(){CRC_ResetDR();CRC_CalcBlockCRC((u32 *)MEM_START,((MEM_END-MEM_START)/4)+1);return(*(u32 *)MEM_CRC));}The result of this routine is 0x784888ACthe IAR CRC is 0x60D8E753and i couldn't make those two equal no matter what i change in IAR parameters , the previous values match the parameters in the picture.Thanks

author: hamdi.tn
author_rank: Frequent Contributor
timestamp: January 21, 2016, 11:37:59 am
content: Problem solved, solution here for anyone that may need ithttps://www.iar.com/support/tech-notes/general/calculate-crc32-as-in-stm32-hardware-v.5.50-and-later/

author: dgtl
author_rank: Regular Contributor
timestamp: January 21, 2016, 11:02:03 pm
content: Alternatively, you can use the STM32's CRC unit to calculate the real ethernet crc32 with a little software workaround (they connected the bit order wrong). In some projects, the real crc32 calculation is needed too and then accelerating it is useful. See this c++ example here; with a little help you can de-obfuscate it back to C:https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2Fcortex_mx_stm32%2FSTM32F4%20CRC%20-%20Preload%20CRC-DR&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&currentviews=2071#{295C81A5-7BF1-49F8-B25A-73D6FB23E2E1}
DS1981U, UniqueWareTM iButton - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: January 20, 2016, 07:51:22 pm
content: hi guysI am a bit confused and I am not able to find a good documentI have to reprogram, or to emulate, a chip that is used to provide the MAC-address to a UNIX boxthis chip is called "DS1981U", it communicates with the economy of one signal plus ground (and probably it's read only)someone experienced ?

author: legacy
author_rank: Super Contributor
timestamp: January 20, 2016, 07:58:01 pm
content: ~= 1-Wire device

author: legacy
author_rank: Super Contributor
timestamp: January 21, 2016, 11:03:07 am
content: What I want to do is make an MPU or a CPLD to become a slave on the 1-wire bus, with DS1981U command list for its specific functions.
USB HID+ Bluetooth LE HID together? - Page 1
Forum section: electronics / general

author: twiddle
author_rank: Contributor
timestamp: January 20, 2016, 04:28:41 am
content: Just wondering if anybody has needed to create a HID capable of operating over either USB or BLE?I don't seem to be able to locate a BLE chip that has USB functionality, so I'll be looking to include something like an LPC11u35/LPC11u6x to handle USB (the LPCs have a nice ROM-based USB mass storage drag-n-drop bootloader; end-user reprogrammability without external hardware is a requirement of the device, so this is both convenient and impossible for them to brick).I've got a couple of options regarding how the two chips could interact:a) Run the BLE IC as a dumb radio, turning it on and off as needed, with the matrix scanning/ADC running on the USB ICThis I don't mind at all, but I had major issues with my nRF51822 dev kit connecting erratically to Windows 8.1, and I'm reluctant to drop another $150 on a dev kit for an nRF8001 as a result. This is compounded by the fact that, while there is some GCC documentation for the 51822, I found more advanced features like OTA firmware updates really only had KEIL/MDK documentation.If there are any other suggestions for BLE radios that don't have three-digit cost development kits, that can be developed with GCC, I'd be happy to consider them.Also, this implementation would means both ICs are running when the device is on wireless/battery mode. I'd prefer to avoid the higher power consumption if possible.b) Run the LPC as a dumb USB HID interfaceThis pushes the matrix scanning and such over onto the BLE IC. This works, but I'd lose the ability for end users to drag-and-drop new firmware, because that would just reprogram the LPC rather than the BLE chip which is actually deciding what data should go into the USB reports.c) Use a BLE IC with integrated uc, connected to a USB HID interface ICThis would prevent users from being able to update device firmware over USB, and over-the-air updates for end-users is still poorly supported (every implementation I've seen so far wants you to either use a dedicated hardware dongle, or a smartphone app, to actually perform the update. Inconvenient in the extreme).d) Run the same HID on both devices, turning one or the other offThis is not really something I'd consider, but listed for completeness. End-users would need to reprogram both chips when creating updated firmware, which is just plain silly, not to mention all the actual buttons and such would need to be routed to both ICs. Horrible.Are there options I've not considered that are staring me in the face? Does anybody have experience with a similar product that might assist? Thanks.
PIC16F18324 individual port issue - Page 1
Forum section: electronics / general

author: step_s
author_rank: Regular Contributor
timestamp: January 19, 2016, 12:29:31 pm
content: Hi EEVblog.I'm messing around and learning about microcontrollers, and i have a couple of PIC16F18324.The issue i'm having now is that just setting the individual ports seem to be a problem.Where as setting the entire register at once works just fine, turning on port 0, 1 and 2:Code:PORTC = 0b00000111;Setting the individual ports like this:Code:RC0 = 1;RC1 = 1;RC2 = 1;Will cause the middle one to not react, so the RC1 port stays closed, and sometimes even floats.If the code has RC2 in the middle, it will happen to RC2 instead.Putting in a _delay between each action will run the delays AND the ports just fine. . . which means it doesn't skip delays.Any idea why this is happening? Wouldn't want to have to write _delay(1); after each action, just to make it function. . .I'm using a pickit3 and MPLAB x IDE, and i have connected 3 diodes to the pins, just to test it out.

author: dannyf
author_rank: Super Contributor
timestamp: January 19, 2016, 12:39:32 pm
content: Google read, modify, and write.The short version is that when you assignvalue to the bits, the mcu is reading the whole port,modify it and then write it back.due to loading, or outputpipeline, some of the pins may not have reached its target state and in this case reads low.The typical solution is to operate on the output data register if available. Otherwise, slow down or be careful.

author: RogerRowland
author_rank: Regular Contributor
timestamp: January 19, 2016, 01:08:01 pm
content: Page 136 of the datasheet is relevanthttp://ww1.microchip.com/downloads/en/DeviceDoc/40001800A.pdfLike @dannyf said, it's an RMW problem and the way to "fix" it on this device is to write to the latch register, LATC rather than PORTC.Code:LATC0 = 1;LATC1 = 1;LATC2 = 1;

author: step_s
author_rank: Regular Contributor
timestamp: January 19, 2016, 01:49:25 pm
content: Cheers, beautiful people, it workedDatasheets can be quite cryptic when trying to learn, but mostly always provides the answer in the end!Tried writing to the ports by doing PORTC0 = 1; but this doesnt work, so didn't realize that LATC0 = 1; would work. . .

author: picandmix
author_rank: Frequent Contributor
timestamp: January 19, 2016, 09:05:35 pm
content: Those chips, being the more modern type, have ports with many configurable functions, so you really need to ensure you have them set to what you need, typically Digital Outputs and Inputs ..?By default many pins are set to Analogue Inputs so you need to turn that function off using the ANSEL registers before they can be used as Digital.My suggestion for learning about Pics would be to start with the older but much simpler devices like a Pic16F88.Also their datasheets are often much easier to follow , often with code examples.
Microblaze and the Arty - Page 1
Forum section: electronics / general

author: Adamt99
author_rank: Newbie
timestamp: January 07, 2016, 02:45:44 pm
content: Hello again, to complement the Zynq Chronicles I also recently received an ARTY board and have been blogging this time on my own site on how to get microblaze up and running on it from scratch.http://adiuvoengineering.com/?cat=17

author: awallin
author_rank: Frequent Contributor
timestamp: January 07, 2016, 04:42:52 pm
content: Quote from: Adamt99 on January 07, 2016, 02:45:44 pmThe CERN stuff on ohwr.org all seems to use the LatticeMico32 soft-core. Do you have experience with the lm32 and can you compare it against the microblaze?I guess for truly open and portable designs one would want the lm32 instead of the (vendor locked I presume) microblaze?

author: Adamt99
author_rank: Newbie
timestamp: January 07, 2016, 05:43:01 pm
content: Hello I do not have any experience with the LM32 however, I will add it to my list of blogs for the ARTY that are up coming up

author: rakeshm55
author_rank: Regular Contributor
timestamp: January 17, 2016, 09:39:58 am
content: by the way great blog Adamhttp://adiuvoengineering.com/?cat=17

author: Adamt99
author_rank: Newbie
timestamp: January 19, 2016, 08:37:11 am
content: thanks, I am just working on the next one as I write this
Developing for the Atmel AVR Microcontroller on Linux - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: January 17, 2016, 01:38:11 pm
content: article

author: legacy
author_rank: Super Contributor
timestamp: January 17, 2016, 01:48:00 pm
content: unfortunately articles like this aren't depth about real life usage

author: jaromir
author_rank: Unknown
timestamp: January 17, 2016, 02:27:50 pm
content: Oh, article from 2005, AT90S8515, brings back memories to my second AVR - the first one was AT90S1200, earlier that decade.

author: westfw
author_rank: Super Contributor
timestamp: January 18, 2016, 01:54:52 am
content: It's a nice article, and the steps detailed are still applicable.Nowadays, though, the usual install procedure is more along the lines of "find avr-gcc in your package manager and install it."Here's another one:http://www.ladyada.net/learn/avr/setup-unix.htmlAnd Atmel now has a "toolchain" for linux:http://www.atmel.com/tools/atmelavrtoolchainforlinux.aspxOr, you can just install Arduino ! :-)
Arduino malware? - Page 1
Forum section: electronics / general

author: FrankBuss
author_rank: Unknown
timestamp: January 31, 2016, 05:28:27 am
content: I just tried to download the latest Arduino IDE fromhereand my virus scanner says it is a malware website:I guess it is a false posivite and I should buy a better virus scanner, but just want to ask if someone can verify it before I install the IDE.

author: Muxr
author_rank: Super Contributor
timestamp: January 31, 2016, 05:32:23 am
content: Check the https certificate. Go to the https:// version of the site and click on the little lock icon:If it's false positive, my guess it's being thrown off by the .cc domain. A lot of malware/phishing sites run on that TLD.

author: FrankBuss
author_rank: Unknown
timestamp: January 31, 2016, 05:36:57 am
content: A correct SSL certificate doesn't mean that the site was not hacked. But looks like it is all ok, the setup program shows Arduino LLC as the verified publisher. So unless someone stole the signature key, it is no malware.

author: Muxr
author_rank: Super Contributor
timestamp: January 31, 2016, 05:41:47 am
content: Quote from: FrankBuss on January 31, 2016, 05:36:57 amIt's the only means of verification you have that the site you're visiting is authentic. Sure someone could steal their cert, or hack their website, but at least you're verifying that whatever server you're connected to has the certificate that was only issued to them.It at leasts makes you safe from DNS cache poisoning and some other attack vectors.

author: rs20
author_rank: Super Contributor
timestamp: January 31, 2016, 05:47:33 am
content: Perhaps FTDI coaxed Avira into marking Arduino as a virus to prevent counterfeit FT232s from being used?

author: bitwelder
author_rank: Super Contributor
timestamp: January 31, 2016, 12:13:45 pm
content: I tried to download the file and send it to Virustotal...Most antiviruses report it as clean, including Avira.Only one (to me unknown) AV named Zillya suspects there is a Dropper.Injector.Win32.74653Results here:https://www.virustotal.com/en/file/7d5703f991a0b2cd79aeb990ef5ac7a2af1f9a9a9e432b5bdd466b1ac0ac5674/analysis/1454242141/

author: janoc
author_rank: Super Contributor
timestamp: February 01, 2016, 02:02:23 pm
content: Quote from: rs20 on January 31, 2016, 05:47:33 amGenuine Arduinos don't use FTDI chips since a few years ago, they use ATMega16u2 and such as the USB to UART converters.I think only the first ones up to Diecimillia used an FTDI, then they have changed it from Uno onwards. Not sure why (one less supplier?), but as a side effect it has also allowed to build HID devices with Arduinos, which wasn't possible with FTDI before.

author: newbrain
author_rank: Super Contributor
timestamp: February 01, 2016, 06:44:31 pm
content: Well, I think Avira is not completely wrong here...the ArduinoIDEisactually malware.Not for your PC, but for your sanity.

author: Jeroen3
author_rank: Super Contributor
timestamp: February 01, 2016, 08:30:05 pm
content: Well, when launching the app:Java(TM) Platform SE binary.Seems like Avira is 100% right this time.
MCU to replace CH376 - Page 1
Forum section: electronics / general

author: Bruce Abbott
author_rank: Frequent Contributor
timestamp: January 14, 2016, 06:50:52 pm
content: I have interfaced aCH376 USB moduleto an old Z80 based home computer. It's working well except for a few niggles. In particular, when reading a file it pauses for up to 2ms between blocks. This reduces read speed, but more importantly makes it hard to play WAV files smoothly. I have implemented a double-buffering routine on the Z80, but this uses up a lot of CPU time and limits what I can do with it. If only the module was able to double-buffer internally, the Z80 could simply read the file at maximum speed without having to waste time buffering it.So I am looking at reproducing the CH376's functions with another MCU. The requirements are:-1. 8 bit parallel interface to Z80 bus, with CE, /WR, /RD and A0 inputs.1. All Z80 bus signals must be 5V tolerant (either natively, or using a minimum number of level conversion chips).2. USB stickorSD Card read/write using FAT filesystem.3. Double-buffered reading of media so that data can be continuously streamed to the Z80 at up to 300kB/s.4. Should not cost much more than a CH376 module (US$8).5. In a package that can be soldered by hand (TQFP or SOIC preferred).6. Example code written in C or assembler which I can build on that actuallyworks, and doesn't need a bloated and buggy framework.I currently have four MCUs thatmightdo the job - an STM32F103Ct6 dev board, a Cypress CY8KIT-049-4200 board, a PIC32MX150F128D chip, and a PIC24FJ64GA104. Of these the PSOC 4200 seems like the best choice because it runs on 5V, but the IDE is slow and having to create peripherals with their HDL is a pain. I have connected an SD Card to the STM32 board and got some basic code working, but I don't want to go any further if it's not going to work out.So my question is, which of these chips do you guys think would be the best choice, and why? Or is there something else out there that might do a better job?
Cypress PSoC 5, DSP Block and Digital Block Filtering with HDL - Page 1
Forum section: electronics / general

author: rwgast_lowlevellogicdesin
author_rank: Frequent Contributor
timestamp: January 13, 2016, 07:23:45 pm
content: I have been using PSoC4 for a bit and recently got some PSoC 5 boards. I was wondering just how much DSP can be done with these either with the DFB block and/or using the digital section with an HDL? I am intreted in making a noise canceling speaker, for radio. I am also interested at doing DSP at the IF level of super Het Radio/SDR. I dont know much about anything past micro's so im not sure just how powerful these chips are in the Digital and DSB domain. I know a regular CPLD has more digital block than a PSoC 5 but does a PSoC at least have enough to get started learning about this stuff? I saw they have an example of using an 8 bit ADC block in to the DFB which then runs thata through a FIRR filter and displays FFT I think. That sounds like a bigger task than some Hi order BP/LP filtering..

author: Dielectric
author_rank: Regular Contributor
timestamp: January 13, 2016, 09:07:55 pm
content: The DFB is really a pretty good filter, and can be asked to do other stuff. If you're just doing filtering, the DFB component is actually fun to play around with. You can run the wizard a few times and grab the coefficients table so you have a couple of different filter responses to choose from during runtime. Fun stuff.You don't program the DFB in an HDL, so CY put out a DFB assembler app note and component:http://www.cypress.com/documentation/component-datasheets/digital-filter-block-dfb-assemblerI'll bet the FFT is being done in software after the DFB does an FIR.I always wanted to try demodulating some low-frequency radio with the mixer component.
Chip replacements identify - Page 1
Forum section: electronics / general

author: jagiro
author_rank: Newbie
timestamp: January 12, 2016, 01:35:24 pm
content: Hello guys/girls ,i am new to this forum.I am curious about one thing.this is the story. i had a broken imac 24 inch from the early 2009. it turned out to be a corrupted UEFI bios.now my mac has been repaired. i ordered anther chip online(which this guy reprogrammed with healthy firmware) and i did the resoldering my self.now my question is this, and what i would like to learn is. how did this guy, from england knew, what empty chip to order that will fit into my mac . all he needed to know is, my imac model and serial number. where did he look up this information into what chip is inside my imac?lets say my imac broke again. and i had the equipment to reprogram another empty chip to replace my broken one. how will i know which empty chip to order online.thanks!

author: PA0PBZ
author_rank: Super Contributor
timestamp: January 12, 2016, 03:48:03 pm
content: Quote from: jagiro on January 12, 2016, 01:35:24 pmI would be surprised if it's not the same chip you just replaced

author: amyk
author_rank: Super Contributor
timestamp: January 13, 2016, 11:36:56 am
content: Almost all BIOS are stored on very common types of flash chips --- earlier motherboards used DIP parallel EEPROMs, then PLCCs, and the latest use tiny SPI ones.As for the contents, you can easily find that online too.

author: theatrus
author_rank: Frequent Contributor
timestamp: January 13, 2016, 06:12:03 pm
content: And if he is in the business of flashing boot flashes, he probably has several iMacs open up on his bench
Elm-CHan site down - Page 1
Forum section: electronics / general

author: JimRemington
author_rank: Regular Contributor
timestamp: January 12, 2016, 02:34:09 am
content: Developer of the popular FatFS for MCUs and other cool thingshttp://elm-chan.org/An error message I've never seen before:Quote

author: coppice
author_rank: Super Contributor
timestamp: January 12, 2016, 02:35:24 am
content: Quote from: JimRemington on January 12, 2016, 02:34:09 amThe Ray Bradbury error is the very cutting edge of web technology.

author: Marco
author_rank: Super Contributor
timestamp: January 12, 2016, 02:41:30 am
content: Did Microsoft threaten to sue for contributory infringement?Hope we hear some more, but since the author is Japanese I kinda doubt it.

author: amyk
author_rank: Super Contributor
timestamp: January 12, 2016, 03:57:00 am
content: I get the same error from a Japanese IP, so it's not that he has decided to block foreigners.The server itself is actually returning a 500.

author: Jeroen3
author_rank: Super Contributor
timestamp: January 12, 2016, 05:25:17 am
content: Someone surely has it archived? It was a static site.

author: JimRemington
author_rank: Regular Contributor
timestamp: January 12, 2016, 05:27:53 am
content: I checked the WaybackMachine to see if Elm-Chan pages are archived, and Wayback refuses to cooperate, claiming a "robots.txt" block.

author: ale500
author_rank: Frequent Contributor
timestamp: January 12, 2016, 01:13:40 pm
content: It is up and kicking again....

author: magetoo
author_rank: Frequent Contributor
timestamp: January 12, 2016, 08:02:54 pm
content: Quote from: coppice on January 12, 2016, 02:35:24 amIt is. It's on its way to become approved as an offical standard (RFC).Draft:https://datatracker.ietf.org/doc/draft-ietf-httpbis-legally-restricted-status/The reasoning behind it:Why 451?