hybridfree/eevblog-posts huggingface dataset:
Determining where is problem with Atmega8a - Page 1
Forum section: electronics / general

author: Urmegil
author_rank: Newbie
timestamp: December 17, 2016, 05:20:55 pm
content: HI,I use usbasp on linux and so far have managed to create some projects on attiny13 but when I tried to make blinking LED project for atmega8a-PU I gotwarning: cannot set sck period. please check for usbasp firmware update.error: programm enable: target doesn't answer. 1 initialization failed, rc=-1Double check connections and try again, or use -F to override this check.error from avrdude.I have connected both GND pins on chip and VCC and AVCC. As I mentioned usbasp is working with attinyCode:sudo avrdude -p atmega8 -P usb -u -c usbasp -U flash:w:mega.hexAnd here is the C codeCode:#include <stdlib.h>#include <util/delay.h>#include <avr/io.h>int main(void){const int msecsDelayPost = 150;// Set up Port C pin 4 mode to output//DDRC = 1<<DDC4;DDRC = 1 << 0x04;// Set up Port B data to be all lowPORTC = 0;while (1) {// Toggle Port B pin 4 output statePORTC ^= 1<< 0x04;// Pause a little while_delay_ms (msecsDelayPost);}return 0;}

author: Buriedcode
author_rank: Super Contributor
timestamp: December 17, 2016, 05:37:56 pm
content: Does your atmega8 have a oscillator? I haven't actually used the usbasp for many years, but I remember from working with the AVR ISP MKII, if it isn't a completely stock blank device and its fuses were programmed for external oscillator, then you'll need to connect one in order to flash it. The default setting for fuses is internal osc, but if those have been changed..Also the ISP clock must be much slower than the clock the MCU is running off. As I sad, the default is 8MHz internal, divided down to 1MHz, which means you should use a much slower ISP clock than that.Howabout a quick schematic of your setup?

author: Urmegil
author_rank: Newbie
timestamp: December 18, 2016, 04:20:08 pm
content: So here is schematichttps://drive.google.com/open?id=0BzQ3D_-L44ZbVklkSHF1WDMzMzQI guess that person from which I got Atmega could change fuse bits, but right now I cant contact them.I dont have any crystal on me but I could use Attiny to use as a clock when I program it as a blinking LED without any delay (Will then the frequency be about 1 MHz?)

author: Buriedcode
author_rank: Super Contributor
timestamp: December 18, 2016, 04:42:41 pm
content: You can indeed use any sort of clock on PB6. 1MHz sounds fine. Also try to reduce the clock speed of your USBasp to the lowest you can get.If you manage to get it working, first thing you should do is program the fuse for internal oscillator.Where did you get the Atmega8 from? From an electronics distributor it will most likely be blank, and therefore *should* have default fuses. If it was from ebay.. it may well come with a preprogrammed bootloader that requires a crystal oscillator (perhaps Arduino based).Using the Attiny as a clock soundsl ike a plan, especially if you can program the fuses on the Attiny to use internal oscillator, and output its clock on a pin (no need to toggle GPIO's in software).
EUSART - Page 1
Forum section: electronics / general

author: ribnark
author_rank: Newbie
timestamp: December 14, 2016, 12:33:07 pm
content: Hi,I am working on a project which requires to setup Asynchronous EUSART communication (Full Duplex) between two micro-controllers (Both PIC16F886). Everything works fine until I unplug the cable connecting both EUSARTs and then re-plug it. After re-plugging nothing works till I reset anyone of the two micro-controllers. please help me to overcome this issue.Thanks

author: Wilksey
author_rank: Super Contributor
timestamp: December 14, 2016, 01:16:49 pm
content: Without posting any code or schematics it's hard to determine!However, are you checking for overflow and framing errors in your UART code? When unplugging and replugging serial it can cause spurious data on the line.I assume (hope) you are using a buffer and/or state machine for your comms?
Lattice MachXO2-4000 QFN-84 - Page 1
Forum section: electronics / general

author: ale500
author_rank: Frequent Contributor
timestamp: April 05, 2016, 12:55:24 pm
content: Hei,I just saw that a new package variant for the lcmxo2-400 is available, at least it is listed on the website.http://www.latticesemi.com/en/Products/FPGAandCPLD/MachXO2.aspxBut apart from that I see no reference on either a distributor or on DIamond.Have someone seen something ?Thanks in advance

author: TimCambridge
author_rank: Regular Contributor
timestamp: December 13, 2016, 11:40:01 pm
content: At Digikey now. It's a dual-row QFN package, tough to solder by hand!
souliss, an open-source alternative to ZigBee and Z-Wave - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: December 13, 2016, 07:38:52 am
content: It takes advantage of the Arduino ecosystem to have thousand of variants available for your smart objects around your home,soulissis an open-source alternative to ZigBee and Z-Wave. All designs (firmware, application and boards) are released in open source.have a look

author: timb
author_rank: Super Contributor
timestamp: December 13, 2016, 10:53:39 am
content: Problem: There are 14 competing standards...Solution: We'll create a new, open standard that encompasses all their abilities!Problem: There are 15 competing standards...

author: legacy
author_rank: Super Contributor
timestamp: December 13, 2016, 10:57:26 am
content: good pointI was just curious to know if someone is following thesoulissproject of if he/she finds it useful or just interesting.

author: dferyance
author_rank: Regular Contributor
timestamp: December 13, 2016, 02:33:36 pm
content: At least from a brief look at the web site I don't see it competing with the wireless standards. It tries to describe itself as that, but I don't see it doing that. Instead, it looks like a messaging protocol with some client and server code.QuoteIt piggy-backs on existing networking / wireless standards. Sounds a bit like it hides what networking layer is used. This makes sense to me but a lot of network libraries do the same.QuoteI personally like the GPL, but this is a deal-breaker for most companies.

author: free_electron
author_rank: Super Contributor
timestamp: December 13, 2016, 04:58:16 pm
content: how is this a competitor for Z-wave ?- it has no radio's apart from wifi (wifi space is already very congested)- not a low power solution( these sp82xx is power hungry... zwave can run for two years off double-a cells )- requires one of the 'approved' hardware boxes- only android app...- not a headless system like z-wave ( zwave does not require a central controller)- no mesh network with packet forwarding ( zwave nodes are also routing capable and can forward packets to out-of-reach nodes)i'd like to see a small board with a radio that can sip power from mains and be built into a lightswitch. kind of like all the z-wave commercial lightswitches/dimmers out there.

author: mark03
author_rank: Frequent Contributor
timestamp: December 13, 2016, 05:43:06 pm
content: If a hobbyist really wants to "compete" with Z-Wave, IMO the best course of action would not be to develop a new standard, but rather tocontinue the reverse-engineering workand produce an interoperable (yet open-source) Z-Wave implementation on CCxxxx or other commodity wireless hardware. This would be of immense value to the community, and a great way to "stick it to the man" at the same time. I also think it is quite feasible, with the exception of the secure/encrypted aspects, which most off-the-shelf devices don't (didn't?) use anyway.Also, here's the xkcd cartoon referenced above, in case someone didn't catch the allusionhttps://xkcd.com/927/
Get some Video Decoder to run - Page 1
Forum section: electronics / general

author: Lord of nothing
author_rank: Super Contributor
timestamp: October 17, 2016, 03:21:53 pm
content: I have some Video Decoder Card and over some years i never get it run.Chips: BCM70015kfbgit have also that chip: w9751g6jband a smal one with "BH=CJ" "D10" on.Does anyone know how to pipe some application over the Chipset get it run?Thanks

author: Lord of nothing
author_rank: Super Contributor
timestamp: October 17, 2016, 09:31:43 pm
content: So I found the Driver:https://www.broadcom.com/support/crystal-hdHow to pipe the Audio and Video Software over the Controller?

author: Lord of nothing
author_rank: Super Contributor
timestamp: December 12, 2016, 11:25:49 pm
content: no idea?

author: andersm
author_rank: Super Contributor
timestamp: December 13, 2016, 08:00:59 am
content: If you have a driver, presumably you'd use the media framework of your OS to interface with the card?

author: Lord of nothing
author_rank: Super Contributor
timestamp: December 13, 2016, 04:57:35 pm
content: Quotei dont know how.
STM32F030K6T6 support touch library? - Page 1
Forum section: electronics / general

author: navidrct
author_rank: Regular Contributor
timestamp: December 12, 2016, 11:21:10 am
content: hiin this doc en.DM00210526.pdf there is no name of STM32F030K6T6 to know which pin is which Chanel of touch.and in STM32F030K6T6.pdf there is no name of touch in pin configuration.can i use touch library on this MCU?
Domoticz + ESP8266 + AC MAINS Dimmer Setup - Page 1
Forum section: electronics / general

author: TJ232
author_rank: Frequent Contributor
timestamp: December 06, 2016, 08:20:36 am
content: Hello everybody,I was looking for a while for a simple solution to be able to turn ON/OFF and also properly change light levels for the MPDMv4 AC dimmer board. The main encountered problem was related with the ability to save the dimmer level when pressing "OFF" button and to return to the same level when "ON" again. The only solution that I found working OK was to use Events combined with a custom LUA script.If you have any better idea how can be done simpler than that will be more than happy to hear aboutMore details, code,etc can be foundhere in the original post.The LUA script might work OK also with others Dimmer Units, probably just need to tweak the values accordingly.You can find also below the Youtube Video with step-by-step setup walk-through for the AC Dimmer Interface Setup:Happy breadboarding,TJ.

author: TJ232
author_rank: Frequent Contributor
timestamp: December 11, 2016, 10:08:03 am
content: If you want to install Domoticz on Windows then you need to do some small changes.Details here:ESPEasy + Domoticz + Windows + MPDMv4 AC dimmer setup
STM32F469 problem with LCD windows using BSP_LCD_SetLayerWindow - Page 1
Forum section: electronics / general

author: cncjerry
author_rank: Unknown
timestamp: December 09, 2016, 12:42:21 am
content: The forum over at ST.com is pretty much worthless so I thought maybe I would get some help here.I am using an STM32F469 disco with display and trying to put up a window on the foreground where the user will be about to use an on-screen keyboard to enter numbers. I have the 2nd layer displaying ok and I want to do a window because I only need about half the screen so I am calling BSP_LCD_SetLayerWindow(10,10,200,200) which creates a nice window with my fill color. Anything that I try to display in that window gets stretched both horizontally and vertically. I've played around with various sequences, etc, tried setting different window sizes, etc. all with the same results.Any help?Thanks.Jerry

author: cncjerry
author_rank: Unknown
timestamp: December 10, 2016, 04:51:30 pm
content: Thanks for looking but this project just got canned because the STM32F469 touch screen has horrible linearity. Draw a straight line and it turns into a wave. Anybody else notice this?
Multiplexing bidirectional IO in Verilog? - Page 1
Forum section: electronics / general

author: Artlav
author_rank: Frequent Contributor
timestamp: December 10, 2016, 12:13:16 pm
content: I want to have an SPI flash chip that can do 1-bit and 4-bit IO to be accessible as both a memory mapped device to a soft CPU for reading, and as an SPI device for direct access to all the other commands in it, selectable by a register (fl_mem_enable).This requires multiplexing of inout signals, and i can't quite figure out how to do it.The code below mostly works - SPI mode works fully, but the mem mode does not get any data into it.Apparently assignment like "assign FL_IO =fl_mem_enable?mem_FL_IO:{3'bz,gio_FL_MOSI};" only controls the output and enable parts of inout, but does not pass the input part.However, trying to add something like "assign mem_FL_IO=FL_IO;" or "assign mem_FL_IO=fl_mem_enable?FL_IO:4'b0000;" gives out errors.So, what am i doing wrong or how to do it right?Code:module top(//...//SPI FLASHoutput FL_CS,output FL_SCK,inout [3:0] FL_IO,//...);wire mem_FL_CS;wire mem_FL_SCK;wire [3:0] mem_FL_IO;wire gio_FL_CS;wire gio_FL_SCK;wire gio_FL_MOSI;wire fl_mem_enable;assign FL_CS =fl_mem_enable?mem_FL_CS:gio_FL_CS;assign FL_SCK=fl_mem_enable?mem_FL_SCK:gio_FL_SCK;assign FL_IO =fl_mem_enable?mem_FL_IO:{3'bz,gio_FL_MOSI};spi_flash mem(//....CS(mem_FL_CS),.SCK(mem_FL_SCK),.IO(mem_FL_IO), //inout//...);gio sysgio(//....FLROM_CS(gio_FL_CS),.FLROM_SCK(gio_FL_SCK),.FLROM_MISO(FL_IO), //input.FLROM_MOSI(gio_FL_MOSI), //output.fl_mem_enable(fl_mem_enable),//...);
anyone using Parallela ? 16-core Epiphany RISC SOC + Zynq SOC (FPGA + ARM A9) - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: December 06, 2016, 04:40:39 pm
content: is anyone using theParallellaboard ? ( 99 USD )if so, for which project?

author: helius
author_rank: Super Contributor
timestamp: December 06, 2016, 05:08:19 pm
content: Be aware that there is a design error on the board; the designers failed to correctly consider inrush currents (as taught in Linear Technology's AN88) and as a result they are easily damaged.

author: legacy
author_rank: Super Contributor
timestamp: December 06, 2016, 07:57:23 pm
content: Quote from: helius on December 06, 2016, 05:08:19 pmhas been fixed in the last releases ?

author: thm_w
author_rank: Super Contributor
timestamp: December 06, 2016, 08:32:04 pm
content: The psu chip used has a max Vin of 6.5V:http://www.intersil.com/content/dam/Intersil/documents/isl9/isl9305h.pdfhttp://www.intersil.com/content/dam/Intersil/documents/isl9/isl9307.pdfAN88 posted lists an example of over 2x voltage being applied. So this chip could presumably get over 10V.Schematic is listed as Rev 1 still. So it seems like it was not fixed?Would be possible to add a TVS across C237:http://www.parallella.org/docs/parallella_schematic.pdf

author: bktemp
author_rank: Super Contributor
timestamp: December 06, 2016, 08:42:09 pm
content: Adding a TVS could work, but the transition of most TVS diodes is too soft for such a small voltage difference (5V->6.5V). The inrush current can easily >10A and the TVS must be able to limit the voltage at this current.But there is a much easier solution: Just add an electrolytic capacitor of about 10x the value of the ceramic capacitor. Its ESR will dampen any overshoots.

author: ebclr
author_rank: Super Contributor
timestamp: December 09, 2016, 06:32:33 am
content: I bought basically to play with the Zynq SOC, it's the cheapest , and util now no problem, it's used only to research on FPGA

author: legacy
author_rank: Super Contributor
timestamp: December 09, 2016, 03:52:35 pm
content: ummm, I'd like to port my SoftCore on the FPGA, toobut I'd also like to play with the Epiphany SoC
Cyclone V Dev Kit with DDR2 / DDR3 (non SoC) - Page 1
Forum section: electronics / general

author: FivePoint03
author_rank: Regular Contributor
timestamp: December 01, 2016, 03:08:25 pm
content: Is anyone aware of any Cyclone V dev boards with DDR3 (or DDR2), but I really want a non SoC version as the DDR3 on those is attached to the HPS / ARM cpu.

author: Scrts
author_rank: Frequent Contributor
timestamp: December 01, 2016, 04:08:44 pm
content: You can still grab SoCKit development kit:http://www.terasic.com.tw/cgi-bin/page/archive.pl?Language=English&CategoryNo=167&No=8161GB is attached to the SoC part and another 1GB is independently connected to the FPGA logic.

author: FivePoint03
author_rank: Regular Contributor
timestamp: December 01, 2016, 09:55:42 pm
content: Thank you!

author: ebclr
author_rank: Super Contributor
timestamp: December 09, 2016, 06:37:04 am
content: https://www.arrow.com/en/products/bemicrocv/arrow-development-tools?utm_source=arrow&utm_medium=npi&utm_content=bemicro_cv&utm_campaign=bemicro_is
Atmel Studio 7 SAMD11 ASF examples have no implementation code... - Page 1
Forum section: electronics / general

author: kmm
author_rank: Regular Contributor
timestamp: December 08, 2016, 07:50:31 am
content: Howdy all,I'm working with a SAMD11 for the first time, and would like to port a couple of the Atmel ASF examples to my little custom board as a starting point.The problem I'm running into is that when I create an example project (File->New->Example project), it's just a skeleton.There's only minimal boilerplate in main.c telling me to put my application code there, just as if I'd created a blank project.Anyone know if I'm doing something wrong here, or if there's a package I need to manually install for it to actually be able to generate examples that contain...examples?Attached is a screenshot of what I get, I've tried a couple different examples and they're the same.TIA for any input on this, it's really irritating!

author: ataradov
author_rank: Super Contributor
timestamp: December 08, 2016, 04:56:02 pm
content: This looks like the project creation process was not fully finished. Typically this stub file is created first when a new project is created, but example project creator replaces it with an actual contents.Here is what I've got on my installation of AS7 -https://dl.dropboxusercontent.com/u/6121480/work/f/DEVICE_EXAMPLE41.zipAnd I do have a simple USB stack implementation for D21 (will port to D11 with no effort at all) -https://github.com/ataradov/dgw

author: kmm
author_rank: Regular Contributor
timestamp: December 08, 2016, 08:49:00 pm
content: Thanks for that example project, got it running on my board in a few minutes (and discovered my prototype run has the USB D+/- transposed), so at least I'm making progress!Will def be checking out your USB code too, the more examples the better!I think I'm gonna try reinstalling Studio this evening, maybe my install is broken or something.

author: kmm
author_rank: Regular Contributor
timestamp: December 09, 2016, 01:14:54 am
content: For anyone else encountering this, reinstalling and updating seems to have fixed it for me.
:-\ codeblocks - STM8L build noobstuck - Page 1
Forum section: electronics / general

author: 3roomlab
author_rank: Frequent Contributor
timestamp: November 24, 2016, 12:19:44 pm
content: i finally got around to trying some more STM8L thingyi got stuck trying to put SDCC and codeblocks together according to this websitehttp://blog.podstuff.de/setup-codeblocks-for-stm8s-discovery/,for STM8L152.basically, edit settings in codeblocks --> copy inc / src folders --> add in adaptations --> build. but due to lack of 8L152 adaptations, it does'nt build?i can see some difference in the STM8S modified version, and the missing SDCC referal, which makes codeblock not building it.stm8l15x.h --> have no SDCC part referal insideCode:#if defined(SDCC)#include <stdint.h>#else/*!< Signed integer types */typedef signed char int8_t;typedef signed short int16_t;typedef signed long int32_t;/*!< Unsigned integer types */typedef unsigned char uint8_t;typedef unsigned short uint16_t;typedef unsigned long uint32_t;#endifmissing stm8l15x_conf.h --> this looks like a "*.h capabilities" pointer?does anyone have any experience in the above? or have an alternative or working file(s) i could look at?

author: Brutte
author_rank: Frequent Contributor
timestamp: December 02, 2016, 07:35:11 am
content: I do not have the SDCC experience with STM8 but I think that if only header file is a problem then just tweak a header from some other toolchain (raisonance cosmic iar).Or start from a commercial demo version IDE and with that experience go to SDCC.Mind that afaik there are no unlimited/free/open-soruce stm8 debuggers available and besides you cannot debug STM8 SDCC at all.

author: 3roomlab
author_rank: Frequent Contributor
timestamp: December 08, 2016, 03:25:24 am
content: has anyone been able to get STM8 xxx thingies to work w/o IAR/COSMIC, just STVD alone?

author: Bruce Abbott
author_rank: Frequent Contributor
timestamp: December 08, 2016, 02:33:34 pm
content: Quote from: 3roomlab on November 24, 2016, 12:19:44 pmSTM8L15x/16x/05x/AL3Lx/AL31x standard peripheral library
Multiple I2S masters MCLK issue. - Page 1
Forum section: electronics / general

author: ee2000
author_rank: Newbie
timestamp: August 01, 2016, 05:06:12 pm
content: HiI am currently doing development on a audio board, where I have multiple I2S masters, which don't share a common oscillator,as some off these sources are offboard audio signals S/PDIF (Multiple), all of the I2S master will be running 11.289600 Mhz (44.1kHz * 256).The problem as I see it is that all the these I2S masters, even if they are running at the same clock speed (11.289600 Mhz), there will be drifting betweenthose oscillators, resulting in async signals between the masters giving an issue in the later processing stage.The main processing unit is a FPGA I have been looking into resampling, but as i don't know if the individual clocks are faster/slower hence chosing up/downscaling selection, i am not sure how I should go about this issue ?I hope some of you guy's are able to point me in the right direction.Thanks a lot in advance.regardsRené

author: whollender
author_rank: Regular Contributor
timestamp: August 01, 2016, 06:24:48 pm
content: I think what you are looking for is called an "Asynchronous Sample Rate Converter". It will take an input stream at a given sample rate, and resample it to another sample rate. These are often used for the exact application you mention, where you have multiple data sources that all have the same nominal sample rate, but whose actual sample rates may drift with respect to one another, and you need to match everything to a master sample rate to do your processing.I think that all the major players (TI, AD, Cirrus, etc) have ASRC chips. You can also implement something in the FPGA to do the sample rate conversion; Xilinx even used to have some IP to do just that, but it isn't supported any longer.They generally work by comparing the input and output sample rates to determine the resampling ratio, interpolating to a very high sample rate (practically continuous), and then decimating to the output sample rate. Practically, poly-phase techniques and an FIR filter with reloadable coefficients are used to keep actual sample rates within reasonable limits.All the audio work that I've done has been with a single master clock, so I haven't ever needed an ASRC, but the theory behind them is pretty fascinating.If you don't want to dive into the theory, then you probably just want to drop in a couple of the ICs to get all of your inputs onto the same clock before processing. You could implement something on the FPGA, but that would be a pretty involved project just by itself.

author: ee2000
author_rank: Newbie
timestamp: December 08, 2016, 09:21:34 am
content: HiSorry for the late reply, thanks a lot for you help and clarification of the issue I was facingI found a link which explained the issue a bit more, and also some suggestion for IC that can handle the SRC:https://ackspace.nl/wiki/Arbitrary_Sampling_Rate_Converter_in_VHDLHope that is will help others :-)regardsRené
What is this Microcontroller? - Page 1
Forum section: electronics / general

author: Luminax
author_rank: Regular Contributor
timestamp: December 08, 2016, 01:26:53 am
content: Hi folks,I'm currently trying to build a checker for a remote control which have the IC I attached below.Searching for the "SBL4036" leads me nowhere.A while back, I also have had an encounter with another of these "SBL" and it happened that it did have the REAL IC numberwhich was MN101C series from Panasonic.I'm wondering could this chip be another Panasonic? could it be Renesas? Still digging through tons of online datasheets to find a match.If you have any information, it'd be greatly appreciated.I cannot share the full schematic due to...you know, the usual company policy etc.but I can tell you that this IC controls PWM which is output at Pin 24 to a transistor driving the IR-LED IC.The microcontroller gets its clock from 32.768kHz crystal (standard clock).Pin 19 (OUTC) goes to what I think is somekind of filter (Pic also attached)Regards

author: amyk
author_rank: Super Contributor
timestamp: December 08, 2016, 04:16:18 am
content: Google the pin names and...http://www.semicon.panasonic.co.jp/ds4/MN15G0804_E_discon.pdfBingo. MN15G0804. Looks like it's a 4-bit mask-ROM MCU, part of MN1500 series. Not much info available out there, here's a few:http://www.alldatasheet.com/datasheet-pdf/pdf/129290/PANASONIC/MN1500.htmlhttps://en.wikichip.org/wiki/matsushita/mn1500http://www.ndatasheet.com/datasheet-frame/300/mdownload.php?id=387736(I'd love to have the catalog those datasheets seem to have been scanned from...)

author: Luminax
author_rank: Regular Contributor
timestamp: December 08, 2016, 07:03:07 am
content: Wow... you nailed that one!Apparently 'discon' means nothing in this industry as long as you still have client/demand.Then again... Pana isn't exactly 'market' brand when it comes to microcontrollerThanks for the help!Regards
Atmel Lightweight Mesh and I2C slave - Page 1
Forum section: electronics / general

author: piotrvv
author_rank: Newbie
timestamp: November 23, 2016, 10:07:29 pm
content: Hello.I try to develope LwM coordinator with I2C slave. Seperate I2C and stack works fine. But when I set it in one time, master always reads bad data. Hardware: master - Raspberry PI (100kHz), slave- SAMR21Xplained, software: WSNDEMO app from atmel studio + i2c slave (callback mode). I cut usart printing, but it doesn't help at all. I2C frame has 16B length. Is it possible to build stable project? Will service stack allow i2c slave work correctly?Best regards,Piotrvv

author: ataradov
author_rank: Super Contributor
timestamp: November 23, 2016, 11:18:24 pm
content: I see no reason for it not to work technically. I don't know what is wrong with ASF drivers, I recommend using standalone LwMesh and writing bare metal I2C driver.

author: piotrvv
author_rank: Newbie
timestamp: December 06, 2016, 10:46:04 am
content: New ASF project works (it was new ASF version meantime), but I had to slow down SCK to 20kHz. I know, it's pretty slow, but enough for me.Best regards,Piotrvv

author: ataradov
author_rank: Super Contributor
timestamp: December 06, 2016, 05:27:38 pm
content: This is really weird if you have to do things like this to make your program work. I would investigate and figure this out before moving on, things may break later on in a way that is much harder to debug.

author: piotrvv
author_rank: Newbie
timestamp: December 07, 2016, 11:01:17 pm
content: I atacched my simple project. Master can read 16B from four internal adresses: 11-14. Slave works fine on 100kHz without stack.https://drive.google.com/file/d/0B8NjEbzmcZQvaWQ3U25kdVNMZHc/view?usp=sharingRegards,Piotrvv

author: ataradov
author_rank: Super Contributor
timestamp: December 07, 2016, 11:20:42 pm
content: Well, I can't debug things remotely. Plus this is ASF, and I don't do ASF.
FPGA in the Cloud (Amazon EC2) - Page 1
Forum section: electronics / general

author: sleemanj
author_rank: Super Contributor
timestamp: December 01, 2016, 04:03:38 am
content: https://aws.amazon.com/blogs/aws/developer-preview-ec2-instances-f1-with-programmable-hardware/Interesting.

author: Fsck
author_rank: Super Contributor
timestamp: December 01, 2016, 04:19:40 am
content: OVH offers altera:https://www.runabove.com/FPGAaaS.xml

author: hamster_nz
author_rank: Super Contributor
timestamp: December 01, 2016, 06:56:23 am
content: And they are big ones too... the FPGAs have 6,000+ DSP blocks, and they offer option to have multiple FPGAs in the same instance.

author: daqq
author_rank: Super Contributor
timestamp: December 01, 2016, 02:24:30 pm
content: They seem to fall out of the range of their free tools

author: fki82
author_rank: Contributor
timestamp: December 04, 2016, 11:35:13 pm
content: Wow, 1150k LE is a lot!One of this FPGAs costs about 10000€!

author: stfsux
author_rank: Contributor
timestamp: December 05, 2016, 12:08:48 pm
content: Neat!I would be interested in any feedback about this kind of services.

author: CM800
author_rank: Frequent Contributor
timestamp: December 05, 2016, 11:20:22 pm
content: Wow, I could imagine this having some huge potential for research companies and big number crunchers.

author: alanambrose
author_rank: Frequent Contributor
timestamp: December 06, 2016, 06:02:32 pm
content: Errr, what would you use that for? - clearly not for driving some local bus at high speed...A.

author: andersm
author_rank: Super Contributor
timestamp: December 06, 2016, 10:17:26 pm
content: Quote from: alanambrose on December 06, 2016, 06:02:32 pmProblem-specific compute acceleration.

author: hamster_nz
author_rank: Super Contributor
timestamp: December 07, 2016, 12:49:04 am
content: Quote from: alanambrose on December 06, 2016, 06:02:32 pmI was thinking that. You need to do very 'deep' processing of the limited data set.Assuming you have 1GB/s of network bandwidth to get data in or out of the system. The large instances you have around 50,000 DSP blocks (able to run at 250MHz+?) - that gives tens of thousands of DSP operations per byte of data...What you would use that ratio of bandwidth to compute for? No idea! (but then I lack vision)I'm sure the Square Kilometer Array could give me a few hints...
MSP430 crystal startup time - Page 1
Forum section: electronics / general

author: electrolust
author_rank: Unknown
timestamp: December 05, 2016, 10:35:55 pm
content: The docs warn that it can take hundreds of ms for a 32k crystal to startup.I'm able to get the MS3V-T1R that shipped with the launchpad kit to consistently start in only 7ms. Should I be worried?

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: December 05, 2016, 11:09:29 pm
content: No. The key word there is "can" -- "can" doesn't imply that it "must" take hundreds of ms.

author: nuno
author_rank: Frequent Contributor
timestamp: December 06, 2016, 02:00:21 am
content: If that's important for your product and you want to sleep well at night, I would.
Problems with PIC18f26k22, XC8 and EEPROM. - Page 1
Forum section: electronics / general

author: JPortici
author_rank: Super Contributor
timestamp: December 05, 2016, 02:37:26 pm
content: Cross posting from the microchip forum.XC8 1.38.So, i want to save data to eeprom and it doesn't get saved.I am using the exact code in the datasheet (which works in other projects by the way)function prototype:Code:void write_eeprom(unsigned int address, unsigned char data)address and data are correctly passed, but any write to the registers have no effect. like the instruction wasn't excecuted at all (for example, if i stop the debugger and write "10" to EEADR, if i go inside write_eeprom having address = 5 after the instruction EEADR = address EEADR is still 10)a couple of notes:there is no issue with writing and int on a char, i do it all the time.the routine is the one written by microchip, asm or c doesn't make a difference. it's working in other projects, with the same micro. thinking about creating a new project and import the sources.single stepping the disassembly skips the instructions where i assign data to EEADR but i think that's more a debugger problem... After some time ...No it wasn't. Turns out that the routine is working but if i run it 22 times an eeprom error will be generated during write and the pic will reset.Not an addressing problem, as if i start writing from location "0" it will reset at writing "21". if i start from location "10" it will reset at "31".It happens with multiple pics

author: RogerRowland
author_rank: Regular Contributor
timestamp: December 05, 2016, 03:50:53 pm
content: You don't have the watchdog timer running do you?

author: JPortici
author_rank: Super Contributor
timestamp: December 05, 2016, 05:52:10 pm
content: Yes, it was. i figured that outeven though i was sure that the watchdog was disabled during debug
Artix7 fpga board.  External oscillator EMCCLK  is pulled down post-config. - Page 1
Forum section: electronics / general

author: cirthix
author_rank: Contributor
timestamp: December 04, 2016, 09:00:30 am
content: Hi,I have a newly designed+assembled fpga board based on the artix7 fpga.An external oscillator (64MHz) is connected to the fpga via the EMCCLK pin. The clock can be used during configuration (SPI flash chip used can handle 80MHz). Due to constraints of other parts of the design, the external clock is not connected through an SRCC or MRCC pin. The internal routing is done through generic routing to an MMCM. This is OK because the frequency is relatively low and the phase relationship of the output of the MMCM and the input pin is not cared about.Anyway, the problem that I am having is that prior to configuration, the external oscillator is happily running at 64MHz, but once the fpga is configured (currently using JTAG configuration), the EMCCLK pin is pulled low.The external oscillator has it's enable pin connected directly to vcc, so it is the fpga itself pulling the clock down.In the fpga firmware, the EMCCLK pin is declared as an input, so I don't understand why it is pulled down. Any ideas?

author: Someone
author_rank: Super Contributor
timestamp: December 04, 2016, 09:36:40 am
content: Quote from: UG470So if the clock is being correctly set for the configuration when building the bitstream (loading successfully at that clock rate) then you need to look at the design you are loading onto the FPGA and what its doing with the pin. Time to pull up the routed design and manually follow that pin through.

author: cirthix
author_rank: Contributor
timestamp: December 04, 2016, 10:20:23 am
content: Quote from: Someone on December 04, 2016, 09:36:40 amThe clock is ignored during jtag configuration, but your suggestion of looking through the routed design is a good one. Doing so now. Thanks for the tipEdit:The OBUF block on the IOB33 (X0Y43) for pin M15 which is the EMCCLK pin for the artix7 in 256pin package does not appear to be used in the design. The pin input connects to the IBUF which then connects to a net called 'clock_input_IBUF" which has only one other connection being the MMCM. It looks like the implemented design is doing the right thing.

author: cirthix
author_rank: Contributor
timestamp: December 04, 2016, 07:55:33 pm
content: SolvedThis behavior was not caused by an fpga misconfiguration or design fault. The board was assembled with a nonconnected ball under the ground pin of the 4pin oscilator.An explanation: the oscillator was sinking it's power supply current through the oscilator output through the fpga to ground (half of the time), and the impedance of the fpga input was higher once the pin was configured as an input. Kind of interesting that it worked at all like this. With the enable tied to the supply voltage, it was effectively operating on only two pins, +2.5v and fpga pin, still making an ok-looking clock signal.
Cheat Sheets - Page 1
Forum section: electronics / general

author: danadak
author_rank: Super Contributor
timestamp: December 03, 2016, 02:19:01 pm
content: I searched forum for Language cheat sheets, did not find much.Maybe we could start a thread where everybody posts his/her favorite cheat sheets, any language, and collectthem for general use.Regards, Dana.

author: rstofer
author_rank: Super Contributor
timestamp: December 03, 2016, 05:02:36 pm
content: What are you asking for?I see you have another language thread re: Windows GUI so I take it you are asking about computer languages, not spoken languages.Everything I have ever wanted to know has been on Google. Like the existence of networking example code for Visual BasicETA: I expect this thread to degenerate into a language war right after somebody mentions C or C++.

author: westfw
author_rank: Super Contributor
timestamp: December 03, 2016, 09:32:10 pm
content: This is one of the prettiest reference cards I've seen. An entire 9-bit opcode instruction set, all described on one page with plenty of whitespace...

author: Kalvin
author_rank: Super Contributor
timestamp: December 04, 2016, 04:04:58 pm
content: For handy one line commands, tricks etc. just Google:sed one linersawk one linersbash one linerspython one linersgrep one linersIt is no use to link any specific site as the information is quite scattered. However, each search will typically display most useful one liner sites on the first page.

author: nctnico
author_rank: Super Contributor
timestamp: December 04, 2016, 06:17:41 pm
content: There is no need since there is alreadyhttp://stackoverflow.com/
when has crystal started? - Page 1
Forum section: electronics / general

author: electrolust
author_rank: Unknown
timestamp: December 03, 2016, 02:05:17 am
content: My project is an MSP430G2121 with external 32768 crystal. How do I know when the crystal has started/stabilized?All example code I can find tests OFIFG in a loop, but also all this example code is using LFXT1 as the clock source for MCLK. Does the OFIFG flag work when MCLK is running on the DCO? I suppose I can run off of LFXT1 until I determine if the crystal has started, then switch it to DCO, but just out of curiosity I wonder if this is required. The manual (slau144) isn't exactly clear on the topic.Obviously I can test this easily but I won't have access to my test board for another week.
USB interface with PIC32MX470F512H  - Page 1
Forum section: electronics / general

author: rill17
author_rank: Contributor
timestamp: December 03, 2016, 12:43:43 am
content: Hi I'm working on a project to interface a microcontroller with another IC through SPI. The data gathered from the IC through SPI is then processed in the microcontroller and is then needed to be transferred to a pc to display the data. I was thinking of using a usb interface since the microcontroller supports USB protocol. any suggestions regarding the microcontroller to PC interface?
Peeking Under the mbed Hood  - course by CEC ?   Jan 9 now - Page 1
Forum section: electronics / general

author: ez24
author_rank: Super Contributor
timestamp: December 02, 2016, 07:03:52 am
content: Update:POSTPONED to January 9 – Day 1: Peeking Under the mbed Hoodhttps://www.designnews.com/continuing-education-center/postponed-january-9-day-1-peeking-under-mbed-hoodI have somewhat a little problem with this site - so much crap-----------------------------------------------------------Not all that sure about thishttp://www.designnews.com/continuing-education-center/december-12-day-1-peeking-under-mbed-hood

author: ralphrmartin
author_rank: Frequent Contributor
timestamp: December 02, 2016, 02:21:53 pm
content: Sounds oddly pitched. Who cares about the history of mbed, or how the partners work together? I'd rather hear what it is, what it can and can't do, and how to use it effectively.

author: ez24
author_rank: Super Contributor
timestamp: December 02, 2016, 06:53:46 pm
content: Quote from: ralphrmartin on December 02, 2016, 02:21:53 pmI think this is just for the first class. Since I know absolutely nothing about mbed, I would like here this.

author: jnz
author_rank: Frequent Contributor
timestamp: December 02, 2016, 06:56:17 pm
content: I also know nothing about mbed. I was under the impression it was a lot like Arduino where it's a nice idea and great for tinkering, but a really bad idea to use to launch real products with (so far as hidden functions and inefficiencies).

author: jnz
author_rank: Frequent Contributor
timestamp: December 02, 2016, 09:07:48 pm
content: FWIW, I signed up for this week of webinars just to get a better idea of mbed. For all I know maybe there is something I'll bring into a project someday.
how do you test new MCUs? (to characterize and find out anomalies) - Page 1
Forum section: electronics / general

author: JPortici
author_rank: Super Contributor
timestamp: December 02, 2016, 09:11:18 am
content: There are a couple of new and new-ish PIC16 and PIC18 i'd like to evaluate that came out to the great public between the last six months.they are basically updated versions of some we already use, for examplepic18f26k40 would replace pic18f26k22 (the pic18 we use the most)pic16f18323 would replace pic16f1823 (the pic16 we use the most)and simillar, where the new pics are of interest because they basically have updated pwm, more timers and most important Peripheral Pin Select.I would usually wait for some months before starting to evaluate and see the first erratas and datasheet revisions and THEN start testing by loading the program in the old pic and see if strange things happen but it's not the case anymore.I still get to look at PICs that came out more than one year ago with preliminary information in the Electrical Specification and first revision datasheets, so if i want to use them i'll have to do all the dirty work myself..do you have a routine for that? a sample software like a benchmark, while monitoring voltage and current.. how do you proceed? do you do this at all?
how to get different OUTPUT voltages in ARM micro? - Page 1
Forum section: electronics / general

author: behrooz2011
author_rank: Newbie
timestamp: November 30, 2016, 11:33:13 am
content: Hey buddies,what's up?!I'm using an ARM cortex M0 micro called FRDM-KL25Z (what a funky name! I knew that!) . I'd like to run a simple motor at different speeds. How can I get different OUTPUT voltages to operate this armature ?Do I need any extra component which generates altering DC voltages? if so what is this device called?tnx guys

author: behrooz2011
author_rank: Newbie
timestamp: November 30, 2016, 12:03:18 pm
content: It's a small DC motor(like an Armature). It is supposed to get connected to an ARM micro-controller and automatically change its speed. Actually I'd like to know how I can get altering OUTPUT voltages in this microcontroller. Should I use any special device which generates different voltages or does the ARM micorcontroller in the question "FRDM-KL25Z " have the ability to generate different output voltage?

author: mac.6
author_rank: Regular Contributor
timestamp: November 30, 2016, 03:15:40 pm
content: You need a DC motor driver, driven by PWM from the microcontroller.Do not forget that KL25 is a 3.3v only microcontroller, it cannot tolerate 5v on its inputs.

author: westfw
author_rank: Super Contributor
timestamp: December 02, 2016, 12:32:07 am
content: 1) A microcontroller does not (can not) drive a motor directly. You need some sort of driver or controller.2) (there are motor controllers that will vary motor speed based on a variable voltage. They're not common.)3) The peripheral that would give you a variable output voltage from a microcontroller is called a "Digital to Analog Converter" or DAC. These are also relatively uncommon, but the KL25Z *does* have one.4) It's more common to use PWM to control DC motor speed. The KL25Z also has PWM outputs. (they'll still need a driver to run a motor, but the driver is simpler than the one you'd need to use with the DAC.)

author: zapta
author_rank: Super Contributor
timestamp: December 02, 2016, 12:37:45 am
content: Quote from: behrooz2011 on November 30, 2016, 11:33:13 amCan you provide more information about the motor you intend to use? (or are you also asking for a motor choice?)
Tidying up MPLAB program - Page 1
Forum section: electronics / general

author: yashrk
author_rank: Frequent Contributor
timestamp: November 30, 2016, 11:30:38 am
content: Hey guys,I have written a program in MPLAB X using xc8 compiler which is working fine and dandy its just that due to many function in the program, the program has become very lengthy, now I am trying to tidy it up but I don't know how to write a header file for the program, I tried searching same on the internet but no luck. I'm looking to make my main code in to just includes, global variable and main function. Do tell how you do it or links to videos or blogs will be great to.Thanks,YashRK

author: DTJ
author_rank: Super Contributor
timestamp: November 30, 2016, 11:41:25 am
content: Near the top of your main.c program put:#include "header.h"Depending on the header file location #include <header.h>I can't remember the details...Create the header.h file and add it to the project.Then cut & paste the declarations and definitions into the header.h file.Hopefully I've got this correct, if not others feel free to correct me.Perhaps do it line at a time so if things go astray you'll have an idea what the problem might be.

author: JPortici
author_rank: Super Contributor
timestamp: November 30, 2016, 11:55:09 am
content: have no idea how polished it can get, not knowing your program.on how to write an include file and what to put or not put, you should read up on basic C programming.One resource i usually use whenever i don't remember something:https://www.tutorialspoint.com/cprogramming/Anyway, on an include file you will put all the declarations so- Other includes, if needed- defines- type definitions- function prototypesdo NOT put variables or actual code as it will be compiled every time the include file is used.I usually have a "main.h" file that has all the includes and global defines and typedefs and in each C file i only include the main.hif let's say i had 5 .c files and i had defined an array of 1024 8bit cells in the main.h file.. the compiler would allocate 5k of data memory for that array instead of one, because each .c file when compiled will allocate 1k for himself. (then the linker would complain and maybe fail the compilation)

author: Ian.M
author_rank: Super Contributor
timestamp: November 30, 2016, 11:57:51 am
content: XC8 is an ANSI C89 compliant C compiler (with some C99 extensions), so you just break up your program into separate modules (.c files) and headers as you would for any other ANSI C compiler. Seehttp://www.gamedev.net/page/resources/_/technical/general-programming/organizing-code-files-in-c-and-c-r1798for the details.All modules should #include <xc.h> and also #include whichever standard headers and project specific headers you create, that they need. All project specific headers must be added to the MPLAB project. In each #include, use <> for standard headers and "" for project specific ones.

author: yashrk
author_rank: Frequent Contributor
timestamp: December 01, 2016, 07:21:59 am
content: Thank you guys! it worked thanks for the links