hybridfree/eevblog-posts huggingface dataset:
Issue with TIMER4 PWM and UART0 on ATmega328PB - Page 1
Forum section: electronics / general

author: djococaud
author_rank: Regular Contributor
timestamp: June 14, 2017, 03:39:14 pm
content: Hi boys and girls !I have a problem with the new ATmega328PBand, after reading all the datasheet several times, I kindly request your help !I am using both PWM outputs from the Timer 4 (on PD1 and PD2).I am also using the UART0 to receive DMX data (receive only on PD0, no TX0 enabled,so PD1 should be left free for OC4A).Here is the issue :When I initialize the Timer 4 only,both the PWM outputs are OKon PD1 and PD2.(I figured that I need to write PD2 High in order to disable the Modulator and enable ouput OC4B, no problem here)But when I initialize the Timer4andI enable the UART0 receiver (RXEN0 only), then PD1 (OC4A) is stuck low.Does anyone knows why PD1 (OC4A) is held low when RXEN0=1 (TXEN0 is still 0) ?Thanks everyone !Here is the initialisation code (stripped to the essential)Code:#define TOP_PWM 26666 //16MHz / 26666 = 600Hzint main(void)// -------------------------------------------{// I/O//********DDRD = _BV(PD1) | _BV(PD2) ;// PWM ouputsPORTD = _BV(PD2) ; // (+PD2 to disable Modulator (OCM)// INIT UART (RX DMX)//**********************//- baud rate = 250000 bpsUBRR0H = 0x00;UBRR0L = 0x07;UCSR0A = _BV(U2X0);UCSR0B = _BV(RXEN0) | _BV(UCSZ02);UCSR0C = _BV(UCSZ01) | _BV(UCSZ00);UCSR0B |= _BV(RXCIE0);// INIT TIMER4 / PWM (OCR4A/B)//**************************TCNT4 = TOP_PWM;TCCR4A = _BV(COM1A1) | _BV(COM4A0) | _BV(COM4B1) | _BV(COM4B0) | _BV(WGM41); // Fast PWM (mode 14)TCCR4B = _BV(WGM42) | _BV(WGM43) | _BV(CS40);ICR4=TOP_PWM;// TOP = 26666 (16Mhz/26666 = 600Hz)OCR4A = TOP_PWM/2; //50% PWM for testingOCR4B = TOP_PWM/2; //50% PWM for testingwhile(1);}Here is the datasheet :http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-42397-8-bit-AVR-Microcontroller-ATmega328PB_Datasheet.pdf

author: djococaud
author_rank: Regular Contributor
timestamp: June 15, 2017, 12:53:27 pm
content: Does anybody has an idea about RX0 messing with OC4A (I can't see why it should)?Is there a bug in the mega328PB ? Or am I the bug ? (that's possible !)
Lattice Diamond - Empty Constraint File, no inputs in ECO - Page 1
Forum section: electronics / general

author: Dawid
author_rank: Contributor
timestamp: June 08, 2017, 12:00:30 pm
content: Hi,I just started with Lattice Diamond and MachXO3. I have following problem:- how to assign my inputs to the pins? my constraint file which should contain is empty, there is just:Code:BLOCK RESETPATHS ;BLOCK ASYNCPATHS ;- my ECO file contains outputs but there are no inputs- in the Spreadsheet View the Input category is empty, inputs are in: Others->unconnectedI have seen somewhere that the constraint file is generated automatically from the Spreadsheet and ECO. I also cannot move the inputs between groups in Spreadsheet (if this is possible, I don't know) neither assign those to the pins (I can choose only between outputs).My question is: what am I doing wrong? I am completely new in FPGA and I have no idea how use that IDE (Lattice manuals are mainly useless IMHO)

author: Dawid
author_rank: Contributor
timestamp: June 12, 2017, 10:46:26 pm
content: Ok, after a few tries I found that an input is not available in Spreadsheet View/ECO if it is not assigned to anything...Maybe it will help somebody.Another question:where do you look for support if case of problems with Lattice devices?

author: ale500
author_rank: Frequent Contributor
timestamp: June 13, 2017, 04:28:34 am
content: QuoteOnline ? Seriously. I assume that there are enough people doing something with the same devices that they may have had the same issue, let's say you get some cryptic error message, I look on the synplify manual and if that doesn't help, happens, I just google it. YOu may not get a direct answer but a starting point to discover what could be happening. Sometimes I post hereSome people (in these forums) write that the support (lattice support) is a bit slow, or unhelpful at times... I think I tried once....Regarding inputs and outputs, physical pins, be sure to declare all them in your top entity, synthesis and mapping work even if you use the same pin number for 2 different signals...
External Interrupt Callback function - Page 1
Forum section: electronics / general

author: sangar
author_rank: Regular Contributor
timestamp: June 13, 2017, 12:43:18 pm
content: Hello,I am working on Project which have ADC to measure temperature. As my project is time critical,I am using ADC interrupt to read samples from ADC. For example, if I set ADC to 50 samples/sec, ADC will interrupt MCU for every 20ms(1/50) via a pin to read sample from DATA register. I want to read it in ISR callback function itself instead rising flag in ISR and read sample from main if flag is true. ADC have SPI interface to MCU.Thanks,Sangar

author: alexanderbrevig
author_rank: Frequent Contributor
timestamp: June 13, 2017, 12:48:42 pm
content: You may want to, but you should not. What of SPI hangs and waits for a timeout or some such.Btw actual adc and mcu will help us answer the question I'm guessing will come

author: sangar
author_rank: Regular Contributor
timestamp: June 13, 2017, 12:53:45 pm
content: Hi,Thanks. I am using AD7124-8 from Analog devices and SAML21J18B from ATMEL.Thanks,Sangar

author: voltsandjolts
author_rank: Unknown
timestamp: June 13, 2017, 01:52:53 pm
content: You should not wait in the interrupt for the transfers from ADC.Do something like:ADC sample ready > Ext Interrupt - start ADC read sample (SPI or whatever), Disable Ext Interrupt then return from interruptSPI Interrupt > Receive byte from ADCSPI Interrupt > Receive byte from ADCSPI Interrupt > Receive byte from ADC - transfer complete, restart ADC, Enable Ext Interrupt

author: sangar
author_rank: Regular Contributor
timestamp: June 13, 2017, 05:45:17 pm
content: Hi,Our actual project is acquiring samples from ADC and send it over RF module. I want to make this system as interrupt driven machine because it is very time critical. It means that both ADC and RF module will uses external interrupt to MCU. For example, Acquiring ADC samples in FIFO in ADC handler function as you said and handling this FIFO to RF MODULE handler function to send over air. Is it possible?.If so, what cares should I take when work between handler functions?Thanks,Sangar
STM32 Bootloader read memory command fails - Page 1
Forum section: electronics / general

author: ElectronicJunky
author_rank: Newbie
timestamp: June 13, 2017, 08:27:34 am
content: I'm using an STM32F103 and flashing a code into it using the bootloader. I'm successful in writing the code into the MCU, but when I try reading it using the Read Memory command (pg13) it fails at step 6 (Send the number of bytes to be read (1 byte) & a checksum (1 byte).) I receive a NACK. It's confusing here, so I tried sending both XOR of 8th byte with 0 and in the next try tried sending complement of 8th byte, both failed.Here's what I'm doing:1. Read 128 byte of the file to be written from SD card2. Write this 128 bytes into the STM32 flash (code space) through the boot loader //works perfectly fine3. Read back the recently written 128 bytes to verify if the write was successful.4. If data written == read, move on. Write the next set of data.5. Loop till the whole file has been written.6. Send GO command and reset the STM.Does anyone with experience in STM32 bootloaders who can help me understand what I'm doing wrong?P.S. I know the write command is working because previously I only had the write command, and it was working in the field. But some devices were flashed with the wrong/ corrupted code. So I'm reading back and checking if the data were written is the right one. -http://www.st.com/content/ccc/resource/technical/document/application_note/51/5f/03/1e/bd/9b/45/be/CD00264342.pdf/files/CD00264342.pdf/jcr:content/translations/en.CD00264342.pdf
Programming STM32 with standalone programmer  - Page 1
Forum section: electronics / general

author: rheb1026
author_rank: Regular Contributor
timestamp: June 12, 2017, 04:19:01 pm
content: I'm having a bit of trouble programming/debugging a nucleo board using the broken off ST-Link piece and was wondering if someone may be able to help me figure out what it is I'm missing.It appears that my issue is with the debugger setting in System Workbench because if I leave the debugger settings as the default, with the "nucleo_f429zi.cfg" file as the script everything works okay.If I change the script to "manual spec" I can't program or debug the board no matter what combination of settings I try. It gives me options for ST-Link V2 and V2-1 as well as JTAG or SWD.I also wasn't able to find the .cfg file anywhere even after searching through the file system on the computer (MacOS).Does anyone know what settings this cfg file has different than using manual settings?

author: alexanderbrevig
author_rank: Frequent Contributor
timestamp: June 12, 2017, 04:28:50 pm
content: Did you try SWD? I think that snap-off thing only exposes the SWD and not JTAG.

author: rheb1026
author_rank: Regular Contributor
timestamp: June 12, 2017, 04:38:18 pm
content: I tried all combinations, but I went back and played around with it some and found my issue. Apparently after you stop the debugging session System Workbench doesn't automatically remove the terminated connection. So I had more than one connection, which seems to be my problem - and I'm guessing the default .cfg file clears all old connections before it starts.So for anyone who comes along searching for this, make sure to clear out all old connections shown in the screen cap:

author: alexanderbrevig
author_rank: Frequent Contributor
timestamp: June 12, 2017, 05:17:09 pm
content: Ohhhh yes, been there many times! Ashamed I forgot to ask you about that one!Nice find though
LPC2368 dev kit specs discussion - Page 1
Forum section: electronics / general

author: technix
author_rank: Super Contributor
timestamp: June 14, 2017, 12:45:44 am
content: Someone if you reeled me into the LPC2368 mess. Now I need to cook up ha dev kit for it. Anyone have any suggestions?Here are the specs I have thinked up:* Arduino physical layout and pinout (so I can use the shields)* Switch-mode voltage regulators for 3.3V and 1.8V rails. No VIN rail (since there is no DC jack)* Two onboard microUSB connectors: one goes to the chip itself, another goes to a USB to Serial adapter which in turn goes to the programming UART of the chip.* DC jack replaced with an Ethernet jack, backed by DP83848 PHY, which goes to the LPC2368 RMII port.* One of the two SPI ports occupied by a 25AA02E48 EEPROM chip for storing network configurations (192 bytes available, a 48-bit MAC is pre-programmed into the chip.)* An extension of the PCB is made to accommodate the 20-pin ARM JTAG connector.
BASIC INTERPRETER HIDDEN IN ESP32 SILICON - Page 1
Forum section: electronics / general

author: ebclr
author_rank: Super Contributor
timestamp: June 06, 2017, 06:49:53 am
content: Interesting discoveryhttp://hackaday.com/2016/10/27/basic-interpreter-hidden-in-esp32-silicon/

author: hamster_nz
author_rank: Super Contributor
timestamp: June 06, 2017, 07:30:56 am
content: I would hate to be somebody guilty of that crime against computing......oh? wait! what? noooooo! It is based on THAT version of TinyBASIC?!WHAT HAVE I DONE!

author: DutchGert
author_rank: Frequent Contributor
timestamp: June 06, 2017, 07:52:26 am
content: You forgot to control your Caps-Lock

author: rstofer
author_rank: Super Contributor
timestamp: June 06, 2017, 02:48:33 pm
content: Way back when I was messing with 8085s, the second thing I would bring up on a new project was Li-Chen Wang's "Palo Alto Tiny Basic". The first thing was always a variant of the Intel Monitor Program.PATB was a handy tool for exercising peripheral devices prior to writing driver code. I can see why they added such a feature to ESP32.https://en.wikipedia.org/wiki/Li-Chen_Wang#Palo_Alto_Tiny_BASIC

author: ChristofferB
author_rank: Frequent Contributor
timestamp: June 11, 2017, 10:00:56 pm
content: Small interpreters are my favorite thing to work with in µC's. the 8051 also has a basic that is now open source, and you can get it running by strapping an EPROM on almost any 8051/8031/8052 etc. compatible board with a serial port. Great fun indeed. Glad to see this is still a thing

author: CJay
author_rank: Super Contributor
timestamp: June 12, 2017, 11:13:39 am
content: Quote from: ChristofferB on June 11, 2017, 10:00:56 pmFun fact, if you get Intel 8032 chips of a certain era and strap EA for internal ROM you'll find some of them have BASIC52 V1.0 burned in, seems Intel shipped a load as ROMless when they went to BAISC52 V1.1
[Solved] Annoying Atmel Studio Bug - Page 1
Forum section: electronics / general

author: Jacky_88
author_rank: Contributor
timestamp: May 30, 2017, 03:37:06 pm
content: Hey there,today I updated Atmel Studio (huge mistake ) to version 7.0.1417. When Atmel Studio is running it causes Windows to play the sound which you can hear when a message box appears or an error occurs. And it keeps playing this annoying sound every two seconds. I killed the Atmel Backend Component in the Task Manager and it stopped. But since you cannot comunicate with any device this is no workaround. So I guess the problem is somewhare in the Backend Component. I checked the device manager but none of the Hardware changes while running Atmel Studio, which tells me, that my Hardware works properly.Perhaps someone here can help (or has the same problem), or even knows how to fix it. Tomorrow I will try to catch someone at Atmel to offer an immediate fix of this bug.P.S.: Suggesting to turn off my speakers is no fix

author: Jacky_88
author_rank: Contributor
timestamp: June 11, 2017, 02:58:20 pm
content: A few days ago I had to install I a new version of Windows. Since then the bug didn't occur. So the problem is solved.
Help with calling (external) C code from testbench - Page 1
Forum section: electronics / general

author: mostly_competent
author_rank: Newbie
timestamp: June 10, 2017, 04:24:25 pm
content: Greetings everybody!For my current project, I am interfacing a custom module with a video generator, via a dual-port RAM connected to both modules. Since I am done with verifying the design, both in simulation and in synthesis, I am now left with the task of coding the system firmware. Since resynthesizing and reprogramming every time I make changes in the firmware is too much of a hassle, and is most probably going to consume time that could be used to further improve the firmware, I am now looking into interfacing my existing testbanch to some external C code, which will read the video RAM module and render video in a window using something like SDL or Allegro.I know about verilator, but it requires significant adaptation of the source code, and, as far as I know, it does not support unsynthesizable timing-related constructs, which could be useful in a test environment. So, is there any viable way to achieve this task?Any pointers are appreciated.

author: pthor
author_rank: Newbie
timestamp: June 11, 2017, 01:28:22 am
content: Are you essentially looking for a way to efficiently develop and test the firmware? This is software running on a processor/MCU, which is connected to your custom module(?) and/or RAM?If so, consider separating the development+testing of the firmware from the testing of the hardware.You already have a verified HW design and interface? Mock that interface and behaviour with software unit tests that you use to stimulate and drive the design of the firmware? Combine with HW/SW integration tests. Check out James Grennings book on test driven development in embedded C.Might be that I totally misunderstood you, but I could not really connect your different statements of developing firmware plus the need to connect external (others?) C code with a (HW) testbench?Or are you just trying to read out the content of the RAM + to visialize and evaluate the video data from the custom hardware module?

author: mostly_competent
author_rank: Newbie
timestamp: June 11, 2017, 07:23:01 am
content: Quote from: pthor on June 11, 2017, 01:28:22 amThat's exactly what I would like to do: Read the video RAM and visualize its contents in a pixel canvas window, in order to be able to see what the firmware is goingto display on screen.
MFRC522, KL-25Z UART  - Page 1
Forum section: electronics / general

author: frdm25z
author_rank: Newbie
timestamp: June 10, 2017, 05:41:41 pm
content: Hi everybody.I have no idea how to connect RFID-RC522 with KL25Z through UART0. The datasheet does not tell me much. Uart initialization is correct, but i am not able to connect.Can anyone advise me?
How to create A hardware timer in interval mode (non ASF) - Page 1
Forum section: electronics / general

author: sangar
author_rank: Regular Contributor
timestamp: June 10, 2017, 03:17:06 am
content: Hello All,I am using SAM L21 MCU.I want to use a hardware timer of 80ms in interval mode with TC_irqhandler ISR. Interval mode means that every time timer will need trigger to start (basically setting Register bit). I have to do it at Low level. Can anyone help me?Thanks,Muthu

author: ataradov
author_rank: Super Contributor
timestamp: June 10, 2017, 04:30:39 am
content: Here you gohttps://github.com/ataradov/mcu-starter-projects/blob/master/saml21b/main.c

author: sangar
author_rank: Regular Contributor
timestamp: June 10, 2017, 06:50:08 am
content: Hi,Thanks.I have read and calculated the desired time interval as per code implementation.It is coming as expected.Speaking code compilation:I am getting "Multiple definition of TC3_handler" error when I define and declare all functions in other C file not main.c. Declaring all timer functions in main .c doesn't give any error. Should I add anything other than #include<asf.h> when I use it other source fileThanksSangar

author: ataradov
author_rank: Super Contributor
timestamp: June 10, 2017, 06:52:20 am
content: Quote from: sangar on June 10, 2017, 06:50:08 amYou need to remove ASF handlers for the same interrupts, or just change vector table to point to your function.

author: sangar
author_rank: Regular Contributor
timestamp: June 10, 2017, 07:29:35 am
content: Hi,Do You have any idea about removing asf handler (Or) changing interrupt vector table. Because it is really tough to find.

author: sangar
author_rank: Regular Contributor
timestamp: June 10, 2017, 09:24:10 am
content: Hi ataradov,After I changedTC3_handlername in startup_saml21.c toirq_3_Handler, I am not getting any error.Is this right?

author: ataradov
author_rank: Super Contributor
timestamp: June 10, 2017, 02:41:22 pm
content: Quote from: sangar on June 10, 2017, 09:24:10 amYes, as long as you name your handler irq_3_Handler as well.
Digital Archaeology CPLD - Page 1
Forum section: electronics / general

author: CJay
author_rank: Super Contributor
timestamp: June 08, 2017, 02:27:30 pm
content: I've a device with a CPLD, specifically the ST PSD813F1VA*, which I believe to be unprotected.I have found the ST Flashlink documents and software, I can and probably will build one as it's fairly simple but it's likely to be a one use device.I'd rather have a programmer and software that supports multiple devices as that'd likely be used again, do you know of anything that would do the job of reading/writing the PSD813?

author: joeqsmith
author_rank: Super Contributor
timestamp: June 09, 2017, 12:10:35 am
content: I've used the 813 and still have my USB programmer. Was Wafer Scale.

author: CJay
author_rank: Super Contributor
timestamp: June 09, 2017, 08:33:42 am
content: Was it a 3rd party programmer or something from Waferscale/ST?I'm interested in knowing which programmer devices support the '813 and if any are still current products

author: joeqsmith
author_rank: Super Contributor
timestamp: June 10, 2017, 03:07:52 am
content: I have the RTLink USB.
ATMEGA328P Analog Pins - Page 1
Forum section: electronics / general

author: CodyW
author_rank: Contributor
timestamp: June 09, 2017, 01:25:28 pm
content: Hi Everyone,Would I be right in thinking that If I am not using an ATMega328P-AU microcontroller for anything analog; there would be no need for me to hook up AVCC, AREF and AGND to anything?Cody

author: bktemp
author_rank: Super Contributor
timestamp: June 09, 2017, 01:37:38 pm
content: You need to connect AVCC and AGND to Vcc and GND, otherwise PortC will not work correctly, even in digital mode.AREF can be floating.

author: CodyW
author_rank: Contributor
timestamp: June 09, 2017, 01:57:37 pm
content: Thank you very much, bktemp!
IP core freelancer ? - Page 1
Forum section: electronics / general

author: goldcoin
author_rank: Contributor
timestamp: June 04, 2017, 04:59:18 pm
content: Is it possible to design IP cores at home and then sell them to whatever company is interested ?

author: coppice
author_rank: Super Contributor
timestamp: June 04, 2017, 05:03:11 pm
content: Quote from: goldcoin on June 04, 2017, 04:59:18 pmIts possible, but you may hit problems providing a level of support that big companies feel comfortable with.

author: Scrts
author_rank: Frequent Contributor
timestamp: June 05, 2017, 02:06:46 pm
content: Quote from: goldcoin on June 04, 2017, 04:59:18 pmYep. I knew a guy, who wrote SATA controller and sold it twice for 200k$.

author: CM800
author_rank: Frequent Contributor
timestamp: June 05, 2017, 02:24:26 pm
content: Thats the life!

author: julian1
author_rank: Frequent Contributor
timestamp: June 06, 2017, 12:43:38 am
content: Quote from: Scrts on June 05, 2017, 02:06:46 pmAny idea to who (without naming specific companies) and for what purpose - asic or fpga? Why not license from an established vendor - ie. xilinx?

author: kakabouras
author_rank: Newbie
timestamp: June 06, 2017, 11:54:22 am
content: Even large corporations like XILINX have extensively used the services of independent contractors. A very successful one that comes to mind is Ray Andraka, a person well known to those who followed comp.dsp and comp.arch.fpga newsgroups.

author: legacy
author_rank: Super Contributor
timestamp: June 08, 2017, 02:02:21 pm
content: I have recently completed a debug processor, and a RISC processor, so I still wonder who on this planet would like to buy it. May be Aliens are more accreditable as possible customers for the purchase ()In my opinion it's more probable you can sell consultancy (which means problem solving, at customer's campus) than already made products.

author: westfw
author_rank: Super Contributor
timestamp: June 09, 2017, 02:28:57 am
content: I'd think you'd get more business becoming an expert at integrating more standard-ish cores with standard-ish peripherals. Surely there are people who want a MicroBlaze with 16 UARTs that have deep FIFOs and detect end-of-PPP packets (or something like that) that aren't quite up to putting it together themselves? Probably more than are willing to risk going to a completely custom core...
Any one familiar with this display ? - Page 1
Forum section: electronics / general

author: Back2Volts
author_rank: Unknown
timestamp: June 07, 2017, 05:22:24 pm
content: I just received this display from eBay. You can see it is labeled as SPI, and was advertised/sold as such, but I am a bit puzzled because it seems to have has both SPI and I2C, and I wonder if the SPI is for the SD and the I2C for the display.Supposedly, the controller is a ST7735S, which according to datasheet, on the serial side, it supports 3-wire and 4-wire SPI.I am trying to drive the display with PSoC 4/5.I will appreciate any commentsTony

author: PA0PBZ
author_rank: Super Contributor
timestamp: June 07, 2017, 05:26:22 pm
content: Quote from: Back2Volts on June 07, 2017, 05:22:24 pmLooking at the silkscreen and the pcb I think you are correct.

author: stj
author_rank: Super Contributor
timestamp: June 07, 2017, 06:41:03 pm
content: if you search a bit, you will probably find arduino code for it - that will tell you everything.

author: newbrain
author_rank: Super Contributor
timestamp: June 07, 2017, 06:53:21 pm
content: The SD has a regular, 4 lines SPI (as the silkscreen clearly indicates).The display interface, OTOH, isnotI2C, but rather a half-duplex SPI: MISO and MOSI on same pin, namely SDA.In addition to the usual SCL (serial clock) and /CS (chip select, active low) one need to set the A0 pin to logic high for commands and logic low for data.See the datasheet, page 45.HTH.

author: Back2Volts
author_rank: Unknown
timestamp: June 08, 2017, 03:30:31 am
content: Quote from: newbrain on June 07, 2017, 06:53:21 pmReading the datasheet, it is interesting that the controller can work in what they call 3-wire serial and 4-wire serial, but in both cases is 3-wire SPI with MISO and MOSI on the same wire. What is describe as 4-wire counts the data/command line as the forth wire.The three wire uses 9-bit bytes, with the first bit used as data/command selection.What I do not get is why the card designer called the D/C line A0, but I trust you that is what it is.Thank you

author: baoshi
author_rank: Regular Contributor
timestamp: June 08, 2017, 10:37:26 am
content: Many of these controllers also support parallel mode. When connecting to a MCU parallel port, A0 will be the address line so write to xxxx0 is data and xxx1 is command. Therefore the name here

author: stj
author_rank: Super Contributor
timestamp: June 08, 2017, 11:27:09 am
content: i'm surprised it doesnt have a crappy resistive touchscreen,when i was looking for a cheap display almost all of them had one.

author: Back2Volts
author_rank: Unknown
timestamp: June 08, 2017, 02:06:52 pm
content: Quote from: baoshi on June 08, 2017, 10:37:26 amThat explains it. The controller has parallel modes.
LWMesh with SAM R30 support - Page 1
Forum section: electronics / general

author: pkr1
author_rank: Newbie
timestamp: June 07, 2017, 09:48:21 pm
content: Hello Forum,does anybody know if LWMesh will be support the new SAM R30 including a SAM L21 controller and the AT86RF212 RF Phy in the future ? Or is it possible to select the already implemented SAM D21 together with the AT86RF212?Thank'sPeter

author: ataradov
author_rank: Super Contributor
timestamp: June 07, 2017, 10:47:41 pm
content: I seriously doubt it will be supported, but the manual port should not be that hard.The code for D21 will not compiler on L21 directly. L21 has slightly different names for some registers and bits, and some things are moved around, but otherwise it is very similar to D21. And the PHY is obviously the same.
Where to find Bitcloud for Megarf. - Page 1
Forum section: electronics / general

author: bigsotos1
author_rank: Newbie
timestamp: June 07, 2017, 12:04:22 am
content: Hi there.I am newbie to this forum,so,if i make a mistake,please forgive me.Three days now i am looking for Bitcloud for megarf.As i can understand ,from now on,you have to pay to get it,but is there anothe way to get the previous versions,at least?Does anyone has a link to download it?Thanks in advance.

author: bigsotos1
author_rank: Newbie
timestamp: June 07, 2017, 12:15:00 am
content: I mean not illegal way .

author: ataradov
author_rank: Super Contributor
timestamp: June 07, 2017, 03:42:32 am
content: You need to contact Microchip support directly. There is no official download link anymore.

author: bigsotos1
author_rank: Newbie
timestamp: June 07, 2017, 08:59:23 pm
content: Thank you Alex for your reply.I will wait few more days (this days Microchip's support is down) and I will give it a try.Thank you again.
RGB Led palens (16x32, 32x32 and so on) like: OS-P5-32X32-8S - Page 1
Forum section: electronics / general

author: ale500
author_rank: Frequent Contributor
timestamp: June 07, 2017, 09:44:32 am
content: hei all,there are currently some RGB LED panels in aliexpress that look really atractive:https://de.aliexpress.com/item/High-brightness-waterproof-P8-RGB-3-in-1-smd-3535-outdoor-full-color-led-module/32711702540.htmlhttps://de.aliexpress.com/item/Indoor-P2-5-Full-Color-RGB-LED-dot-matrix-module-160-80mm-64-32-pixels/32733178058.html?ws_ab_test=searchweb0_0,searchweb201602_1_10152_10065_10151_10068_10136_10137_10060_10138_10155_10062_437_10154_10056_10055_10054_10059_303_100031_10099_10103_10102_10101_10096_10052_10053_10107_10050_10142_10051_10084_10083_10080_10082_10081_10177_10110_519_10111_10112_10113_10114_10180_10182_10184_10078_10079_10073_10186_10123_10189_142,searchweb201603_13,ppcSwitch_5&btsid=994b7e67-9c1a-4ba5-ba83-79ce1c2d622f&algo_expid=0c86d343-5cca-46d7-b635-8acfbb951234-2&algo_pvid=0c86d343-5cca-46d7-b635-8acfbb951234https://de.aliexpress.com/item/Ali-express-High-Resolution-smd-p5-outdoor-led-display-screen-module-160-160mm-RGB-led-matrix/32659783721.html?isOrigTitle=trueHas someone tried to drive one of those ? How did you do it ? They seem to have "dumb" drivers, like shift registers and so on, I'd say something a bit less elaborate than a WS281x-based panel. Is is so ? can someone confirm ?Thanks in advance

author: darrellg
author_rank: Unknown
timestamp: June 07, 2017, 05:18:53 pm
content: This might help:https://learn.adafruit.com/32x16-32x32-rgb-led-matrix?view=all

author: ale500
author_rank: Frequent Contributor
timestamp: June 07, 2017, 07:20:09 pm
content: Thanks !I was just looking for a driver for a 1.8 " TFT, and found exactly that, well the github repository for that.... I feel I wasted like 30 € in ws2812 8x8 panels...

author: darrellg
author_rank: Unknown
timestamp: June 07, 2017, 07:29:25 pm
content: Sparkfun has similar guide:https://learn.sparkfun.com/tutorials/rgb-panel-hookup-guide
Ublox development boards (GPS,Glonass,Galileo,Beidou) support - Page 1
Forum section: electronics / general

author: jrobi772
author_rank: Newbie
timestamp: June 07, 2017, 01:02:43 pm
content: Hi,My company developed 3 development boards forLEA-M8SGA-001,MAX-M8WGA-002andNEO-M8WGA-003Can you buy on myshop,Ebayor in tindie.
How to power an ESP8266 from a single LiIon Cell - Page 1
Forum section: electronics / general

author: theelectronicegg.com
author_rank: Newbie
timestamp: June 05, 2017, 02:34:19 pm
content: I want to run some ESP8266 chips from single Cell LiIon batteries. Fully charged they have a Voltage of 4.2 / 4.1 Volt. The protected Typ will run down to 2.5 Volt. So my Input Voltage is 2.5 to 4.2V.The ESP8266 has an input voltage of 2.5 to 3.6 Volt.I have tried two Options:a) connect battery direct to esp8266. Advantage: Working down to 2.5V cell voltage. Disadvantage: stressing esp8266 with 4.1 Volt. it is currently working, but its not a nice solution.b) using a LM1117 voltage regulator. Works fine with an input of 4 Volt and down to input voltage of 3.5 V, still producing an output voltage of 2.5V. Advantage: Keeping the ESP8266 in spec. Disadvantage: stops working at a cell voltage of 3.5VBefore i try different switch mode power supply options, I would like to have some input on other real world solutions. All the tutorials have some sort of 5V usb power source.i would like to optimize for battery life. The ESP8266 wakes up, reads a sensor, sends the data over WIFI and enters deep sleep for 5 minutes.

author: thm_w
author_rank: Super Contributor
timestamp: June 05, 2017, 11:54:54 pm
content: Dropout of LM1117 is 1.1-1.2V at 500mA, which is really high.At 300mA:MIC5504 160-380mVLT1763 250mVAP7361C 100mVQuiescent for these is 30-60uA. You can get buck regulators in a similar range, it just depends on the cost and complexity you are willing to deal with.Just have to be careful that they are capable of peak current required (or have suitable output capacitance). Or use the lifepo as suggested by kripton.

author: julian1
author_rank: Frequent Contributor
timestamp: June 06, 2017, 12:30:38 am
content: I have powered esp8266 with LiFePO4 batteries without a linear regulator. The advantage over lipo is lower voltage drop over the discharge range, safer, and simpler charge regime.

author: ivaylo
author_rank: Frequent Contributor
timestamp: June 06, 2017, 06:43:10 am
content: Not sure it's exactly what you are asking, but this board had been good to me -https://www.sparkfun.com/products/13231Schematics is also available...

author: ebclr
author_rank: Super Contributor
timestamp: June 06, 2017, 06:54:56 am
content: With few dollars, you have this solutionhttp://pt.aliexpress.com/item/18650-Battery-shield-V3-for-arduino-Raspberry-Pi/32815139060.html?spm=2114.02010208.3.10.JtXNMe&ws_ab_test=searchweb0_0,searchweb201602_2_10152_10065_10151_10068_5010019_10136_10137_10060_10138_10155_10062_437_10154_10056_10055_10054_10059_303_100031_10099_10103_10102_10096_10052_10053_10142_10107_10050_10051_10173_10084_10083_10119_10080_10082_10081_10110_519_10111_10112_10113_10114_10182_10078_10079_5030020_10073_10123_10120_10189_142,searchweb201603_9,ppcSwitch_5&btsid=35e4ab3d-9172-4f2e-9813-f119ff23de2a&algo_expid=ec59ef5f-4bea-4246-8f1f-13b4a2eb5f79-1&algo_pvid=ec59ef5f-4bea-4246-8f1f-13b4a2eb5f79

author: theelectronicegg.com
author_rank: Newbie
timestamp: June 06, 2017, 06:19:12 pm
content: Thank you.I will evaluate these options next week.
Tizen Studio - Page 1
Forum section: electronics / general

author: ebclr
author_rank: Super Contributor
timestamp: June 02, 2017, 06:12:43 am
content: Does anybody have experience with this tool?It's worth the time to learn?

author: Moondeck
author_rank: Regular Contributor
timestamp: June 02, 2017, 08:18:36 am
content: I will be surprised if the Tizen thing doesn't die in the next 12 months

author: Moondeck
author_rank: Regular Contributor
timestamp: June 03, 2017, 09:03:32 pm
content: Because people are people, and don't like new things. It's not like i like Android, i would love to use Tizen, but i kinda see it becoming another Ubuntu Phone or (insert mobile OS name here), really.

author: Rasz
author_rank: Super Contributor
timestamp: June 04, 2017, 04:15:25 pm
content: makes no sense touching itTizen is 100% politics, its Samsungs way of convincing Google they have other options (total lie, Tizen is a garbage fire)

author: coppice
author_rank: Super Contributor
timestamp: June 04, 2017, 04:49:48 pm
content: To paraphrase Frank Zappa, Tizen is not dead, it just smells funny.

author: HwAoRrDk
author_rank: Super Contributor
timestamp: June 05, 2017, 01:19:17 am
content: Quote from: Rasz on June 04, 2017, 04:15:25 pmIndeed. And of course Samsung feel compelled to justify their investment in it, so they use it in their smart TVs and low-end phones. Ugh.

author: Ushiwaka
author_rank: Regular Contributor
timestamp: June 05, 2017, 01:23:55 am
content: Quote from: coppice on June 04, 2017, 04:49:48 pmIt smells like an epic failGood job, Samsungyou sux!

author: brucehoult
author_rank: Super Contributor
timestamp: June 05, 2017, 12:53:17 pm
content: Quote from: Moondeck on June 02, 2017, 08:18:36 amI expect you will be surprised.

author: Moondeck
author_rank: Regular Contributor
timestamp: June 06, 2017, 06:59:17 am
content: Quote from: Ushiwaka on June 05, 2017, 01:23:55 amTheir product portfolio is explosiveQuote from: brucehoult on June 05, 2017, 12:53:17 pmI don't. Cope.
Nordic nRF52832 DFU problem - Page 1
Forum section: electronics / general

author: hamdi.tn
author_rank: Frequent Contributor
timestamp: June 03, 2017, 09:18:48 pm
content: Hi everyone,so i spent the day trying to flash an nRF52832 in DFU mode with nrfutil.exe.no matter what i do or file i choose it always end withIOError: [Errno 2] No such file or directory: 'c:\\users\\***\\appdata\\local\\temp\\nrf_dfu_pkg_kplm5y\\unpacked_zip\\manifest.json'am running command promp as administrator. tried different OS windows 7 10 and linux.changed Temp directory in windows config.and am out of idea.Help.

author: hamdi.tn
author_rank: Frequent Contributor
timestamp: June 04, 2017, 12:10:09 am
content: Yap same error, IOError Errno2I posted there but those forums are not as reactive as EEVanyway i walked my way around this issue by using the J-Link programmer instead of DFU.

author: andyturk
author_rank: Frequent Contributor
timestamp: June 05, 2017, 01:28:43 am
content: In case it helps, here's some Makefile rule to call nrfutil. We're using the pythonversion and this is for nRF51, so the newer stuff may be different. This runs ona mac, so will probably be the same for linux.Code:OTA_ASSET_APP := $(RELEASE)/over-the-air/$(APP_TAG).zipOTA_ASSET_BOOT := $(RELEASE)/over-the-air/$(BOOTLOADER_TAG)-$(VERSION_SOFTDEVICE).zip# The nrfutil program accepts the softdevice image as either a .hex or a .bin file# However, the .bin version will cause nrfutil to also include the MBR in the# over-the-air image, which is incorrect. Passing the original .hex file of the# softdevice image (directly from the SDK directory) avoids this problem.over-the-air : manufacturing@mkdir -p $(RELEASE)/over-the-air@nrfutil dfu genpkg \--application $(RELEASE)/manufacturing/abrams.bin \--application-version 0xffffffff \--dev-revision 0x3031 \--dev-type 0x5354 \--sd-req 0x80 \$(OTA_ASSET_APP)@nrfutil dfu genpkg \--bootloader $(RELEASE)/manufacturing/r2d2.bin \--softdevice $(NRF5_SD_HEX) \--dev-revision 0x3031 \--dev-type 0x5354 \--sd-req 0x64,0x80 \$(OTA_ASSET_BOOT)
Is there a way to use the RFarduino to connect to a USB device? - Page 1
Forum section: electronics / general

author: yada
author_rank: Frequent Contributor
timestamp: May 31, 2017, 04:32:41 am
content: I want to make my SDR wireless. Is there away to feed the two data pins of the USB from the SDR into the wireless Arduino then have the same thing on the PC creating a simple data link?If not are there devices to make USB wireless? The other idea I had was to buy a raspberry pi and see if that could be used by just controlling its screen through one of those remote desktops. Can you remote desk top from PC to Linux?
[bitcloud] MAC_INVALID_PARAMETER_STATUS received in ZDO_StartNetworkConf - Page 1
Forum section: electronics / general

author: gouroufui
author_rank: Contributor
timestamp: May 29, 2017, 03:15:31 pm
content: Hi there,I've just migrated my old bitcloud 3 stack (HomeAutomation 1.2) to bitcloud 4 stack (Zigbee 3.0).I'm running a router device that tries to join a network.When I call the ZDO_StartNetworkReq() function to perform a network steering, I see a beacon request on my sniffer and the coordinator respond with a beacon with "AssociationPermit" set to true.However, the ZDO_StartNetworkConf() callback function is returning me 0xE8 (MAC_INVALID_PARAMETER_STATUS).According to the spec, this error means "A parameter in the primitive is either not supported or is out of the valid range."In the context of a network join failure, what parameter could be either not supported or out of the valid range?

author: ataradov
author_rank: Super Contributor
timestamp: May 29, 2017, 04:34:14 pm
content: For this you may have to go to the official support. I have no experience with BC4, and no access to the source code.Assuming that MAC layer did not change much since v3, I can give a list of all checks tomorrow, when I'm back in the office.Also, post your configuration.h file, just in case.

author: gouroufui
author_rank: Contributor
timestamp: May 29, 2017, 04:41:01 pm
content: Config files attached

author: ataradov
author_rank: Super Contributor
timestamp: May 30, 2017, 08:54:53 pm
content: I looked at the old stack, but there are way to many places where this status is returned. In general, they all are around setting PHY parameters.If this happens with default application, I would definitely contact official support.

author: gouroufui
author_rank: Contributor
timestamp: May 31, 2017, 12:34:04 pm
content: Hi Alex,I finally found out that the CSUID was always set to 0 instead of reading the proper ID.Case closed
Connect FPGA with i2c to a mikrocontroller - Page 1
Forum section: electronics / general

author: ki92
author_rank: Newbie
timestamp: May 29, 2017, 12:24:42 pm
content: Hi,im trying to connect a FPGA (Altera DE0) via i2c to a mikrocontroller (Arduino, RaspberryPi, etc ...) using copencores i2c-core.I programmed already the toplevel for the i2c-core with VHDL to write from the FPGA via the i2c bus to the mikrocontroller.(FPGA is the master and the mikrocontroller on the other side the slave)The problem: I cant see any signal on the clock line and also on the data line with the oscilloscope.Im 100% sure that the pinassignment ist correct.Can someone look over my code to detect the problem?I have no idea what the problem is.Im new to VDHL maybe I did something wrong.The code I programmed: i2c_controller_top.vhd and writeDummy.vhdThanks

author: rstofer
author_rank: Super Contributor
timestamp: May 29, 2017, 05:10:52 pm
content: That is simply too much code to look through. I didn't see the file (.ucf ?) where you assigned the pins.It's not clear to me why you have 3 clock related lines and 3 data related lines. Ordinarily, you would use tristate outputs (declared as INOUT).ETA: I see there is a 2d '***_top.vhdl' file with the pins declared as INOUT. Oops!Here is some code that is smaller but the interface is a little different. Don't know if it matters.https://eewiki.net/pages/viewpage.action?pageId=10125324I had a project in an FPGA where I wanted to send a stream to an LPC1768 (mbed) at around 10 MHz. So, I used SPI and never looked back.Given a choice, I would never use I2C.

author: ki92
author_rank: Newbie
timestamp: May 30, 2017, 07:54:51 am
content: Im not allowed to use another core! :/

author: Daixiwen
author_rank: Frequent Contributor
timestamp: May 30, 2017, 08:11:20 am
content: Are there pull-ups on your i2c signals? The master expects pull ups, it will just drive the signals low or keep then in high impedance.Can you put some signaltap probes in your FPGA design to see if anything happens in the I2C core?
alternative to uclibc: musl, for Linux x86, x86_64, ARM, MIPS, PPC - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: May 23, 2017, 09:00:22 pm
content: So, I am playing with musl. Anyone has ever used it?QuoteYou can seeherea comparison of C/POSIX standard library implementations for Linux.

author: brucehoult
author_rank: Super Contributor
timestamp: May 24, 2017, 08:51:36 am
content: It does what it says on the tin.

author: legacy
author_rank: Super Contributor
timestamp: May 24, 2017, 09:58:25 am
content: Quote from: brucehoult on May 24, 2017, 08:51:36 amwell, I'd like to hear experiences IF you have used it.Here I am trying to replace uclibc.I am currently working on a stage4-musl, and ... it requires a special overlay

author: brucehoult
author_rank: Super Contributor
timestamp: May 24, 2017, 10:13:25 am
content: Used it in places where it was the standard C lib. I haven't integrated it into something new myself.Have you seen this?

author: legacy
author_rank: Super Contributor
timestamp: May 24, 2017, 10:36:07 am
content: Not yet (thanks for the link), I am more focused on catalyst.I have to reduce the ( sizeof(rootfs) < 64MB ) used in a product I am working at

author: technix
author_rank: Super Contributor
timestamp: May 25, 2017, 01:03:36 pm
content: Maybe I will give it a try, although my own embedded projects have always used newlib instead, be it Linux, bare metal embedded on Cortex-M, or my own operating system project (as libk, supporting libkcxx based on LLVM libc++ and libkobjc based on GNUstep libobjc2. My kernel is written in Objective-C).

author: rstofer
author_rank: Super Contributor
timestamp: May 25, 2017, 02:28:27 pm
content: Critical mass, that's the issue. Are there sufficient numbers of developers using the library to discovery the ugly bits and is there a place where they are discussed?ucLibc has been around a long time and the fact that there hasn't been any upgrades in 3+ years (mentioned in video, I don't really know) might mean that it is finally stable.It wouldn't be a good thing if there were weekly versions of any libc. I remember Linux back about 12 or 13 years ago where it seemed like I was getting a kernel update just about every week. Ordinarily, that wouldn't be a problem except that I had to rebuild the nvidia graphics drivers for every kernel update.Stability and maturity are important considerations. Look at the revision history.

author: legacy
author_rank: Super Contributor
timestamp: May 25, 2017, 09:51:40 pm
content: Quote from: rstofer on May 25, 2017, 02:28:27 pmbah, I wouldn't judge by when the last commit was issued, from my point of view there is still no stable uclibc-stage3 for PPC and MIPS (I don't know about ARM and X86). I mean with catalyst (gentoo) you still have to invest your effort to fix things related to uclibc.edit:but hey? at least crossdev is now able to crosscompile (host=ppc-glibc target=ppc-uclibc) at the first try, say "progress"
Weird behavior on Arduino envioroment - Page 1
Forum section: electronics / general

author: dan3460
author_rank: Frequent Contributor
timestamp: May 27, 2017, 01:55:52 pm
content: I working on a project that uses a DAC and I need to change the address for the I2C to the chip, the datasheet is very simple, you write to the original address, send a command, set one pin on the chip low, write a new address, confirm the address and put the pin high. I normally work on Atmel Studio, but for this very simple process I decided to use Arduino, so I made the following program:Code:#include <Wire.h>void setup() {// put your setup code here, to run once:Wire.begin();Serial.begin(9600);pinMode(12,OUTPUT);digitalWrite(12,HIGH);Serial.println("Setting up Address");Wire.beginTransmission(0x60);Wire.write(0x61);digitalWrite(12,LOW);Wire.write(0x66);Wire.write(0x67);Wire.endTransmission();digitalWrite(12,HIGH);}void loop() {// put your main code here, to run repeatedly:}It cannot be simpler, but didn't work, the chip still have the old address. I stared at the program for quite a while could not see any problem. I pulled my digital analyzer and saw what is in picture i2c-1. The pin is pulled down before the start of the I2C communication and the chip doesn't AKC the request. This is weird as I clearly have the pulled down after the command 0x61.I did the following test, I comment out the digital low for the pin and I got was is in picture i2c-2. Now the chip ACK the command to change address, but NAK the change request because the pin is not low.It appears to me that the pre-compiler is arranging some commands, is this possible? or am I missing something on my code? Ideas?

author: Ian.M
author_rank: Super Contributor
timestamp: May 27, 2017, 02:33:59 pm
content: You are missing something. The Arduino Wire library queues the bytes to be sent and defers sending them till Wire.endTransmission();Seehttps://www.arduino.cc/en/Reference/WireEndTransmissionWorse: there isn't a flush command and WireEndTransmission *ALWAYS* either sends a stop or a restart.Wire.cpp containsCode:void TwoWire::flush(void){// XXX: to be implemented.}

author: dan3460
author_rank: Frequent Contributor
timestamp: May 27, 2017, 02:38:33 pm
content: So, if I understand correctly, there is no way to do what I need to do using Arduino. Is that correct?

author: Ian.M
author_rank: Super Contributor
timestamp: May 27, 2017, 03:11:13 pm
content: Don't know - will your chip tolerate a restart in the address set sequence?If not you could try the Software I2C library:https://playground.arduino.cc/Main/SoftwareI2CLibrary

author: dan3460
author_rank: Frequent Contributor
timestamp: May 27, 2017, 06:16:06 pm
content: It does not for changing the address. I just dumped Arduino and got back using Atmel Studio. Thanks for the help.