hybridfree/eevblog-posts huggingface dataset:
Verilog, Vivado post synthesis simulation does not work - Page 1
Forum section: electronics / general

author: gauravmp
author_rank: Regular Contributor
timestamp: August 10, 2016, 02:26:02 pm
content: Hi,I've done a simulation before synthesis and it works just fine. I ran a synthesis and implementation and then run good with a few warnings. However, when I ran a post synthesis simulation, it gives a different waveform, something which i did not expect.Could someone please tell me how I could find my errors?Thanks

author: Kilrah
author_rank: Unknown
timestamp: August 10, 2016, 02:42:20 pm
content: How do you expect help with absolutely zero information?Give as many details as you can about what you're trying to do, what you're getting, what you're not getting, what you're expecting to get...

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: August 10, 2016, 04:14:54 pm
content: I assume the simulation that works is a behavioral simulation? That type of simulation does not take into account any synthesizer optimizations performed or any timing considerations.When you run a post-synthesis or post-implementation functional simulation the simulator does take into account any optimizations made to your design during the synthesis and/or implementation steps. The synthesizer may have, for example, optimized away a part of your design that in turn causes the simulation to behave differently.Behavioral simulations assume that propagation delays and setup/hold times are zero. Timing simulations do not, and if your design is wonky a timing simulation probably won't look like a behavioral simulation either.I suggest you read the document titledVivado Design Suite User Guide - Logic Simulation. It covers all these things.

author: gauravmp
author_rank: Regular Contributor
timestamp: August 10, 2016, 04:55:02 pm
content: Thanks! I figured that I had multiple drivers which was messing up my code
Upgrading the ESP8266 to 4MB - Page 1
Forum section: electronics / general

author: Chumanista
author_rank: Contributor
timestamp: August 05, 2016, 05:37:57 pm
content: Hello again.I made another video, this time on upgrading the ESP to the biggest flash chip it can support.It is really simple, but I hope it'll help someone.As always: if a moderator tells me to stop posting my videos I will.

author: FlyingHacker
author_rank: Frequent Contributor
timestamp: August 05, 2016, 05:53:13 pm
content: Pretty slick! Easy to upgrade if you need more space.Thanks.

author: Kilrah
author_rank: Unknown
timestamp: August 05, 2016, 06:21:18 pm
content: Watching you try solder this poor thing is something to make you cringe though

author: FlyingHacker
author_rank: Frequent Contributor
timestamp: August 05, 2016, 06:27:50 pm
content: Quote from: Kilrah on August 05, 2016, 06:21:18 pmNo doubt, but it does demonstrate that anyone can solder these, even if it takes extra cleanup work, etc.You gotta start somewhere.

author: Chumanista
author_rank: Contributor
timestamp: August 05, 2016, 06:31:36 pm
content: The problems were caused by the camera nearly touching the board to get the shot and having to work around it. It would be much faster and cleaner if I didn't have to record.

author: thm_w
author_rank: Super Contributor
timestamp: August 05, 2016, 09:07:19 pm
content: thanks for that video,For the soldering I would recommend not adding solder on pads after you've wicked them. The part will be raised and pads are uneven height, making it more difficult to solder. You can put some flux if you like though.

author: b_force
author_rank: Super Contributor
timestamp: August 07, 2016, 11:17:30 am
content: Quote from: thm_w on August 05, 2016, 09:07:19 pmAgree, I normally put some solder on just one pad.Line up the IC, fix it with that one pad. Solder the opposite pad and than finish the rest.
ESP8266 - BASIC - PCF8574 Drivers Example - Page 1
Forum section: electronics / general

author: TJ232
author_rank: Frequent Contributor
timestamp: August 04, 2016, 11:45:11 am
content: If you didn't use it before, it might worth to give it a try:www.esp8266basic.com. Latest Version 3.0 looks impressive, is using websockets and is full of goodies.Please find below also some handy ESPBasic I2C related examples:-ESP BASIC Series - Ep.1 - I2C Bus Scanner Software tutorial- A nice & tiny piece of software that can help you with your ESPBasic & I2C related projects:-ESP Basic -1 - PCF8574 I2C I/O Expander Driver example- How to implement a interactive web interface for a mutually exclusive 8x1 Switch.

author: TJ232
author_rank: Frequent Contributor
timestamp: August 06, 2016, 08:19:29 am
content: Have done also the step-by-step tutorial also for the PCF8574 Driver for a 8 x Independent Switches implementation:Related full article :ESP8266 Basic Series - Part 3 - PCF8574 Driver for a 8 x Independent SwitchesCredit for the XOR bit masking technique goes this time to forlotto from esp8266.com forum who was quicker in posting than me
Ethernet controller chip test model - Page 1
Forum section: electronics / general

author: Sapling
author_rank: Newbie
timestamp: August 02, 2016, 08:23:41 am
content: Hi,I'm designing an Ethernet controller chip which has a 10M/100M PHY.I found a problem when I test it by using category 5 cabling.It work abnormal When the category 5 cabling is longer than 70m(It should work normal at 100m).It is very convenient if I have a Twisted-pair model which can work like 100m or anyother length category 5 cabling to do test.There is a test model I found in IEEE 802.3 standard.But Idon't know it was equivalent to how long twisted-pair in real,50m or 100m or anyother length?Someone said that this model it just used to intended to model certain properties of an ethernet twisted pair in a hardware test?but it can't match to a real piece of hardware.

author: azer
author_rank: Regular Contributor
timestamp: August 02, 2016, 12:09:53 pm
content: RS has a test fixture for Ethernet compliance, maybe some information can be gleaned from it.https://www.rohde-schwarz.com/fr/file/NEWS_211_RTO_Ethernet_english.pdfhttps://cdn.rohde-schwarz.com/pws/dl_downloads/dl_common_library/dl_manuals/gb_1/r/rt_zf/RT-ZF2_UserManual_en_07.pdf

author: Sapling
author_rank: Newbie
timestamp: August 05, 2016, 02:35:02 am
content: Thanks.Though I don't find the thing what I need.
FTDI FT90x series - any new experiences ? - Page 1
Forum section: electronics / general

author: Miyuki
author_rank: Frequent Contributor
timestamp: August 10, 2016, 10:56:37 am
content: Hello,I want to ask if someone have experience with those chipsThey look interesting as they have integrated Ethernet phy and are available in packages with leads so can be easy soldered by handOr should I stay with well tested ARM mcu and external interface, or is here any cheap ARM with integrated Ethernet ? I cant find any at this price levels.

author: donotdespisethesnake
author_rank: Super Contributor
timestamp: August 11, 2016, 07:51:16 am
content: Quote from: Miyuki on August 10, 2016, 10:56:37 amYou had me interested there for a second, but they have an integratedMAC, you still need an external PHY.STM32F107 have an Ethernet MAC, and depending on package can be cheaper than FT32.

author: Miyuki
author_rank: Frequent Contributor
timestamp: August 11, 2016, 08:28:31 am
content: Quote from: donotdespisethesnake on August 11, 2016, 07:51:16 amIn datasheet they say that have on chip transiever and two diferential pairs are at pinsBut they have chaotic documentation

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: August 11, 2016, 08:49:10 am
content: With so many choices from mainstream MCU manufacturers I can't see why anyone would risk going for an oddball like this - looking at the feature summary I can't see anything obvious that differentiates it.

author: donotdespisethesnake
author_rank: Super Contributor
timestamp: August 11, 2016, 05:42:45 pm
content: Quote from: Miyuki on August 11, 2016, 08:28:31 amOh yes, you are right! On the web page it says "10/100 BASE-TX Ethernet MAC with MII interface; compliant with the IEEE 802.3/802.3u standards " but in the datasheet there is no mention of MII, and it in fact appears that the PHY must be onboard, even if it doesn't say mention that as a feature.Integrated PHY seems like a Unique Selling Point, I'm surprised they don't advertise it better. I guess the web page is in error, such a basic mistake doesn't fill me with confidence.Thanks for the heads up, I will take a closer look at these chips. I may have an application for just this type of thing (a small footprint CAN to Ethernet).

author: andersm
author_rank: Super Contributor
timestamp: August 12, 2016, 08:14:29 am
content: I think they still haven't released the instruction set documentation for the core?
Interrupt atmell - Page 1
Forum section: electronics / general

author: Bandzai
author_rank: Newbie
timestamp: August 02, 2016, 06:30:56 pm
content: Hello, I'd like to know how to do it correctly generates an interrupt on a microcontroller from Atmel, a SAMD10.I am currently working on the RTC module and I had created a small program that would light an LED when the counter of the RTC module was equal at the valuethat I fixed (1 second) with a flag on the COMP register.Currently, I want to generate an interrupt without using the ASF library that is too large.My program is composed of multiple files so I want to generate an interrupt when the value of my counter is equal to the register count.I tried things without great success.But I do not see how writing this interruption without using the ASF? If I use the flags, we have to wait until my program gets to the line of code with the condition if (...). In any case, if I only write a condition that will not work.I can understand the interruption but I can not put it into practice. I understand that if the RTC module counter reaches a second, I have to interruptthe execution of the current program to return to the execution of subprogramme corresponding to the interruption.Does someone could tell me how to implement an interruption?thanks

author: westfw
author_rank: Super Contributor
timestamp: August 02, 2016, 11:35:54 pm
content: https://github.com/WestfW/SAMD10-experimentshas code to initialize and use RTC interrupts. (Down inhttps://github.com/WestfW/SAMD10-experiments/blob/master/D10-LED_TOGGLE0/src/UserSource/ticker_rtc.c- but read the comments in the top level readme...)
Complicated STM32F3 ADC issue.. - Page 1
Forum section: electronics / general

author: MT
author_rank: Super Contributor
timestamp: August 01, 2016, 04:10:53 pm
content: Can the ADC sequencer be setup to use one input channel who samples continuous circular sequential filling 6 ADC value buffers with each individual sample? Can these ADC buffers then be read by DMA "asynchronously" (trigged by timer) to ADC buffer write events, i.e double buffering or must DMA always wait for EOC? Or does DMA skip sample buffer read if EOC is not set?

author: MosherIV
author_rank: Super Contributor
timestamp: August 01, 2016, 04:25:58 pm
content: Hii have not done any work with the ADC sequencer but from memory :QuoteNo, I think the sequencer is ONLY for changing the input MUX of the ADC so that the application can continuously sample from a number of inputs.QuoteADC DMA must wait fro EOC.I think you can trigger DMA with a timer event BUT I do not think it will work when trying to DMA out of ADC DMA region directly.They are 2 different DMA event triggers, each linked to a specific DMA.Your best bet is to use the ADC DMA to a secondary memory buffer and then use the timed DMA to copy out of the 2nd buffer else where - thereby doing the double buffering you are looking for. Each DMA will block the other if it is busy DMAing.Does that make sense?

author: MT
author_rank: Super Contributor
timestamp: August 01, 2016, 10:06:41 pm
content: Indeed it does , i also pondered about using secondary sram buffers but having sequential reads from single Chanel to multiple ADC buffers is still an issue , however i found out the "meminc" setting is supported in ADC to DMA triged transfer that might cut it, the DMA arbiter would handle secondary buffer read/write collisions. And as you mentioned there is the "timer injection mode" to test that would take care of any EOC timing. Another problem is that i'm running out of DMA channels, 5 is already occupied.Thanks for your input, i will investigate further into this complex beast of STM32 peripheral!
Circuit inside pic12f675 - Page 1
Forum section: electronics / general

author: vishnuvijayp31
author_rank: Newbie
timestamp: July 30, 2016, 01:38:49 pm
content: Circuit Inside pic12f675Sir, i have two questions1) i like to see the equivalent circuit diagram of pic12f675 microcontroller.Circuit Schematic inside the chip . Is it possible? if yes then tell me where i could find it.2) how they designed this chip circuit? which software is used? Where i can learn this?

author: JPortici
author_rank: Super Contributor
timestamp: July 30, 2016, 02:05:47 pm
content: There isn't.Actually the only thing you would/should care about is the input and output equivalent circuit which is provided in the datasheet

author: ebclr
author_rank: Super Contributor
timestamp: July 30, 2016, 02:42:56 pm
content: Probably was a HDL or VHDL prototype then , they make the silicon with some optimizationhttp://www.ece.uah.edu/~lacasa/pic18/pic.html

author: amyk
author_rank: Super Contributor
timestamp: July 30, 2016, 03:19:09 pm
content: No schematic but you can find die photos...Here's a 12C508:http://zeptobars.com/en/read/PIC12C508-PIC-Microchip
VHDL - How to test with IF only a subset of bits in a std_logic_vector - Page 1
Forum section: electronics / general

author: alank2
author_rank: Super Contributor
timestamp: July 30, 2016, 07:11:04 pm
content: I am trying:signal recv_data : std_logic_vector(31 downto 0);if (recv_data(7 downto 0) = "00000001") thenFails - probably be specifying it wrong - can this be done?

author: AndyC_772
author_rank: Super Contributor
timestamp: July 30, 2016, 09:28:19 pm
content: Yes, it can, and your syntax looks fine. Your problem is elsewhere.

author: alank2
author_rank: Super Contributor
timestamp: July 30, 2016, 09:31:28 pm
content: Are you sure?I found the alias command that allowed me to do this and it does not error:alias recv_data_7d0 is recv_data(7 downto 0);Then this line does NOT error:if (recv_data_7d0 = "00000001") thenThanks!

author: AndyC_772
author_rank: Super Contributor
timestamp: July 30, 2016, 09:35:48 pm
content: Yes, absolutely sureWhat happens if you remove the extraneous brackets, ie.Code:if recv_data(7 downto 0) = "00000001" then

author: alank2
author_rank: Super Contributor
timestamp: July 30, 2016, 09:46:59 pm
content: Now it is working! Wow, I am pretty sure I cut/paste that instruction in the first post directly from it. I must have had something else wrong.
Wiring an xbox controller to a teensy like board, questions. - Page 1
Forum section: electronics / general

author: azigta
author_rank: Regular Contributor
timestamp: July 27, 2016, 02:42:15 pm
content: Hi, I'm not sure if this is the right place to post it, but here I goIn the past few days a friend of mine gave me an xbox like controller, more specifically a Rock candy xbox one controller. The thing is that I can't get it to work with windows 7 and it looks like I have to update to windows 10 to make it work, and I don't want to update so I thoght that I could wire each button to a teensy like board and make it work with windows 7.I've never done this but as far as I'm concerned, I need 2 analog inputs for each analog joystick , (so that's 4 analog inputs on the board) another 2 analog input for the triggers (1 pot per each trigger so just 2 analog inputs more on the board) and then the controller has a 4 direction D-pad , start, select, the 4 abxy buttons, Left button, right button and the xbox button (optional), and the little swith that each joystick has. The controller also has 2 rumbles, could I make them work? EDIT: turns out it has other 2 rumbles inside the triggers! so there are 4 rumbles. I can live without them, but If I can make them work it would be awesomeSo I would need a teensy like board that has 15 I/O and 6 analog for the pots and joysticks. Teensy 2.0 has 25 I/O and 12 analog inputs according tothiswebsite, and has an atmega32u4, but it costs about 20€ 20usd... I don't want to spend too much on this so I looked on aliexpress and I found a board that is similar to the teensy 2.0 in the sense that it has a atmega32u4, it is called "pro micro atmega32u4" isthis oneI only understand how many I/O and analog pins a board has if I see it on a chart like in the teensy webstite. Because if I look at the board I can't tell. I've never bought one of this boards or any arduino, raspberry etc. so I don't have much of an idea, but if teensy 2.0 has an atmega32u4 and has 25 I/O and 12 analog inputs, won't the chinese atmega32u4 also have them?So,First question: Can anyone tell me if the chinese board is suitable for my project?Second question: Is there some code already built for this or will I have to write it myself? If so, is there any tutorial I can follow? because I don't have any idea on how to program anything.Long post, hopefully on the right place.I hope someone can help me. Thanks

author: rstofer
author_rank: Super Contributor
timestamp: July 28, 2016, 04:46:31 am
content: I'm only guessing but I believe you will want to implement a USB HID device and the Teensy website has the code. I did a HID device a few years back using a Teensy to add switches, knobs and dials to Microsoft Flight Simulator. It was pretty easy once I got into it.

author: Rasz
author_rank: Super Contributor
timestamp: July 28, 2016, 07:00:22 am
content: ?there are drivers for win7http://support.xbox.com/en-US/xbox-on-windows/accessories/connect-xbox-one-controller-to-pc
PIC32MX Reference Clock module - Page 1
Forum section: electronics / general

author: dannyf
author_rank: Super Contributor
timestamp: July 24, 2016, 11:21:52 am
content: I'm no fan of PIC32 but just noticed a seldom mentioned feature of its oscillator module: ***user programmable*** reference clock out. The module allows you to select a reference source (both internal and/or external), and then it will run it through a 24-bit fractional divider (consisting of a 15-bit integer divider and a 9-bit fractional divider).This is essentially a full-featured digitally controlled oscillator. with 24-bit of resolution.Pretty cool to use it as a signal generator, sweeper, ...

author: Howardlong
author_rank: Super Contributor
timestamp: July 24, 2016, 12:04:36 pm
content: Quote from: dannyf on July 24, 2016, 11:21:52 amDepending on the application, it will exhibit significant jitter, it's similar in concept to the NCOs used in some PiC16s.

author: hans
author_rank: Super Contributor
timestamp: July 24, 2016, 12:37:55 pm
content: It's probably similar to an I2S PLL clock as seen on STM32F4. Because the multiplier is presumably fractional , it's nice to generate the 64x, 128x or 256x bit clocks required for audio.

author: Buriedcode
author_rank: Super Contributor
timestamp: July 24, 2016, 01:22:15 pm
content: Not only that, you can generate a rather clean 12.288MHz MCLK for DAC's using a 12MHz clock for USB. This makes life much easier for USB DACs running in either isochronous or async mode. Some PIC24's have this also.

author: MT
author_rank: Super Contributor
timestamp: July 24, 2016, 06:52:44 pm
content: Quote from: Howardlong on July 24, 2016, 12:04:36 pmlong time ago i used MX32 but i recall the NCO's in PIC16 is a phase accumulators "bit skip" while REFOCON in MX32 is PLLfeeding a divider so initial jitter is from PLL while the divider acts as a filter, ie the larger the div ratio the lesser of phase jitter.Disclaimer for being utterly wrong.STM32 obviously outperform a MX32 with its multiple 16 by 16 bit divider for every TIMx there is.However i wonder how much worse the RC clock on STM32 are compared to MX32 for USART apps, i recall MX32 RC clockhad really god specs not needing a crystall for high baud rate USART apps, i recall i havent seen any ppm specs for STM32 RC clk?!

author: Howardlong
author_rank: Super Contributor
timestamp: July 24, 2016, 08:59:48 pm
content: Nah, while there is a PLL available to derive the system/USB clocks, there is no PLL+VCO inside the reference oscillator config, just a phase accumulator, dressed up in a slightly different way to the NCOs of some PIC16s (which ironically tend to have longer phase accumulators, I guess that's the difference between what Microchip term a reference clock and an NCO).This is not to denegrate the peripheral, it has real applications, but be aware of the limitations, these are not low jitter DC-to-daylight pure frequency sources, very far from it in fact.

author: MT
author_rank: Super Contributor
timestamp: July 25, 2016, 12:08:01 am
content: What i meant was the REFOCON clk was derived from the PLL among other sources. So the REFOCON is actually a phase acc, interesting.
Arduino Controlled Musical Scanner Motor - Page 1
Forum section: electronics / general

author: TRS-90
author_rank: Regular Contributor
timestamp: July 24, 2016, 07:28:33 pm
content: I want to start a project where I make some scanners and 555 wave generators play a song but I can't find a code example where to notes and pauses are directly coded by the programmer instead of using a MIDI file.All I want to do is make the scanner stepper motors play the main part of the song and the 555 wave generators play the background tune by being switched on and off by the arduino.I plan on using 2 scanners playing the same notes at the same time to make it a bit louder without having to record and then amplify the song (I can do that, it's just I don't want to HAVE to).I will probably buy a motor controller shield for my arduino if that helps.
TI83+ LCD Toshiba T6A04A T6K04 - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: July 24, 2016, 11:31:46 am
content: a few infohereif you have more info, feel free to contribute

author: legacy
author_rank: Super Contributor
timestamp: July 24, 2016, 11:44:46 am
content: older infohere
Need Help Atmega8 timer / Start-Stop on event - Page 1
Forum section: electronics / general

author: mzdenkov
author_rank: Regular Contributor
timestamp: July 21, 2016, 07:48:12 pm
content: Greetings.I need help in:Case:Micro: Atmega 8Timer event source: TDC1011I need to start and timer on Event.Event is change of state on External Pin.So:>---START--- [----------------][ ]from TDC [ OR GATE ]------------AVR PINx------>[ ]>---STOP-----[----------------]<--TRIGGER-------------------------------AVR PINx---------<--RETART--------------------------------AVR PINx----------<--ENABLE--------------------------------AVR PINx---------Im using TDC1011 to measure water level in glass.TDC sends START bit at the begging of measure(here we start the timer) [it sends the ultrasonic signal], when TDC recieves the ultrasonic signal it sends STOP bit(here we stop the timer).As im new in Timer capture mode, i need help (this is for my collage diploma project).Best Regards.Thanks.

author: dannyf
author_rank: Super Contributor
timestamp: July 21, 2016, 11:00:17 pm
content: Have you read the data sheet? There are countless ways of doing it.

author: mzdenkov
author_rank: Regular Contributor
timestamp: July 22, 2016, 05:57:10 am
content: I did. I understand basic operations with timers, but there is a problem because i mix things between TI(collage lessons) and AVR.I've read all in Datasheet, but that is not clear enough for me.
32 kHz low power oscillator - Page 1
Forum section: electronics / general

author: ale500
author_rank: Frequent Contributor
timestamp: July 18, 2016, 12:53:09 pm
content: Hello,I'm looking for a low power stand-alone 32 kHz oscillator. There where a couple my ST but they where discontinued. Any ideas ?Thanks in advance

author: picandmix
author_rank: Frequent Contributor
timestamp: July 18, 2016, 01:26:01 pm
content: Assuming you are wanting something thats crystal based ? - then why not use the cheapo DS1307 which has a 32khz squave wave output pin.

author: nfmax
author_rank: Super Contributor
timestamp: July 18, 2016, 01:41:43 pm
content: How about using a low-end, 'nano-watt' PIC? The things are so cheap & well-engineered for low power consumption it's hardly worth trying to make anything simpler.What a world we live in...

author: kwass
author_rank: Frequent Contributor
timestamp: July 18, 2016, 01:53:48 pm
content: How about the Maxim DS32KHZhttps://www.maximintegrated.com/en/products/digital/clock-generation-distribution/silicon-crystal-oscillators/DS32KHZ.htmlNot cheap, but you just need to add power and you're good to go with an accurate oscillator.

author: LA7SJA
author_rank: Regular Contributor
timestamp: July 18, 2016, 02:08:35 pm
content: I found a few here:http://www.digikey.com/product-search/en/crystals-and-oscillators/oscillators/852334?FV=22c0060%2Cfff4000d%2Cfff8016e%2C1184008f%2C118400f8&mnonly=0&newproducts=0&ColumnSort=1000011&page=1&stock=0&pbfree=0&rohs=0&quantity=&ptm=0&fid=0&pageSize=500Johan-Fredrik

author: uncle_bob
author_rank: Unknown
timestamp: July 18, 2016, 03:51:52 pm
content: HiHow accurate do you need it to be? Is 10 minutes a day "OK" or do you need a second a month?Bob

author: ale500
author_rank: Frequent Contributor
timestamp: July 19, 2016, 05:11:18 am
content: I forgot to give a couple more parameters, like low power because it needs to run from battery.The DS1307 crossed my mind, but it needs programming for the output to be active.The stand-alone oscillators from digikey, there are two affordable types: ASH7K-32.768KHZ-T and ASTMTXK-32.768KHZ-NG-T, both are good options.But I think I'd go with the nano-watt pic. The board has a PIC32 already. and it could also be used for an on-off switch.Thanks guys !
SAMD21 bare metal programming (without ASF or Atmel Start) - Page 1
Forum section: electronics / general

author: acaball1
author_rank: Newbie
timestamp: July 18, 2016, 05:21:51 pm
content: I've tried to use ASF and Start. The examples work fine. However I haven't been able to complete any project with them.Therefore, I decided to start programming without them. Fortunately, there are a lot of definitions already built in in Atmel studio. However, I have struggled finding information on how to do it.Finally I've been able to find something and I thought that maybe other people might like to read it.Some is on this link:https://eewiki.net/display/microcontroller/Getting+Started+with+the+SAM+D21+Xplained+Pro+without+ASF#GettingStartedwiththeSAMD21XplainedProwithoutASF-BackgroundI've also attached some pdf files I found hidden in Atmel's website.

author: acaball1
author_rank: Newbie
timestamp: July 18, 2016, 05:37:36 pm
content: More links:http://www.atmel.com/images/section1_introduction.pdfhttp://www.atmel.com/images/section2_gpio.pdfhttp://www.atmel.com/images/section3_interrupts.pdfhttp://www.atmel.com/images/section4_timers.pdfhttp://www.atmel.com/images/section5_spi.pdf

author: ataradov
author_rank: Super Contributor
timestamp: July 18, 2016, 06:34:38 pm
content: Start herehttps://github.com/ataradov/mcu-starter-projects
Module instantiation in verilog - Page 1
Forum section: electronics / general

author: gauravmp
author_rank: Regular Contributor
timestamp: July 20, 2016, 03:33:37 pm
content: Hi,I'm trying to move variables from one module to another to make the code look nice. The code that I'm working is a little too complex so I copied a piece of simple code from online to test if this would work. Specifically, what I'm trying to achieve is to be able to input data from the top module into the lower modules and receive data back from the lower modules to the top module after some computation. However, when I do a simulation, it looks like the data doesn't move. Could some one please help me out?My top module is this:module file_top (result , // Output of the addercarry , // Carry output of adderr1 , // first inputr2 , // second inputci // carry input);input [3:0] r1 ;input [3:0] r2 ;input ci ;output [3:0] result ;output carry ;wire [3:0] r1 ;wire [3:0] r2 ;wire ci ;wire [3:0] result ;wire carry ;wire c1 ;wire c2 ;wire c3 ;file_1 u0 (.a (r1) ,.b (r2) ,.ci (ci) ,.sum (result) ,.co (c1));file_1 u1 (.a (r1) ,.b (r2) ,.ci (c1) ,.sum (result) ,.co (c2));file_1 u2 (.a (r1) ,.b (r2) ,.ci (c2) ,.sum (result) ,.co (c3));file_1 u3 (.a (r1) ,.b (r2) ,.ci (c3) ,.sum (result) ,.co (carry));endmoduleMy bottom module is:module file_1(a,b,ci,sum,co);input a,b,ci;output sum,co;wire a,b,c;wire sum,co;assign {co,sum} = a + b + ci;endmoduleMy testbench is:module file_tb();reg[3:0] r1,r2;reg ci;wire[3:0] result;wire carry;file_top inst1(.result(result),.carry(carry),.r1(r1),.r2(r2),.ci(ci));initialbeginr1 = 4; r2 = 3;#50r1 = 2; r2 = 7;#50r1 = 3;r2 = 7;endendmoduleAnd the sim I get is attached here. ANy help would be very much appreciated.

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: July 20, 2016, 04:04:24 pm
content: ci is an input to your module file_1, yet you're not setting it to anything in your test bench.

author: gauravmp
author_rank: Regular Contributor
timestamp: July 20, 2016, 04:13:37 pm
content: Thanks!! It works now. Do you know what might be the problem if I see a Z in the simulation? Does it mean that the register isn't connected to anything?

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: July 20, 2016, 04:33:34 pm
content: Quote from: gauravmp on July 20, 2016, 04:13:37 pmExcellent. I'm glad I could share my vast FPGA knowledge with you. All two weeks worth.Most of the time when I see a 'Z' in a simulation output it's due to an output not being driven. Check your module connections.
Pain migrating CycloneV SOC kit from 13. to 16, QSYS, GSRD, SOC-EDS, kernel? - Page 1
Forum section: electronics / general

author: evb149
author_rank: Regular Contributor
timestamp: July 04, 2016, 08:26:42 pm
content: Hi,I'm wondering about the likely pain involved in migrating Cyclone V SOC devkit projects from ACDS/Quartus 13.1 to 15.1 or 16.0, affecting QSYS + GSRD + GHRD designs, DTS, SOC-EDS preloader/u-boot/BSP-Editor configurations, targeting a substantially newer kernel, etc.?I know there are supported GSRD/GHRD versions for ACDS 13, 14, and 15.1 for my kit so I know that's possible but I'm wondering about going further and importing the 13.1 or 15.1 base designs to the newest 16.0 ACDS related Quartus/Qsys/SOC-EDS/BSP-EDITOR/Preloader/U-BOOT configurations and going from the 3.10 LTSI kernel to say 4.4 Angstrom or similar using the newer 16.0 related recommended procedures applicable to newer / other kit platforms than my particular one.Do there tend to be any significant difficulties involved in importing older version QSYS SOPC designs / DTS / GSRD / GHRD base designs etc. into the newer tool versions?Should be easy / straightforward but their documentation on it is sparse / a mess and there isn't specific indication of support for my kit's use in the 16.0 GSRD docs. so I'm wondering about likely portability concerns at the tool / build levels.

author: andersm
author_rank: Super Contributor
timestamp: July 04, 2016, 08:50:52 pm
content: There was just a discussion on the Rocketboards mailing list where it was mentioned that the device trees produced by sopc2dts are not compatible with newer kernels.

author: azer
author_rank: Regular Contributor
timestamp: July 14, 2016, 07:42:43 pm
content: Your board_info.xml needs some updates from the GHRD, but apart from that it should be enough with a clean build. Upgrade ipcores, rerun qsys, synthesize, regenerate preloader+uboot, generate dtb.Depends on how new kernel you need, as mentioned the sopc2dts is missing some stuff for the newest kernels so you need to add some things in the xml file. I'm using 4.4 at the moment with the attached xml (changes mostly taken from updates of dts files in kernel sources), though I'm not using all features of the HPS so ymmv.
LUA interpreter : how to autostart a lua program - Page 1
Forum section: electronics / general

author: free_electron
author_rank: Super Contributor
timestamp: July 06, 2016, 10:18:18 pm
content: anyone using eLUA on Cortex ?i want to know how i can run a lua program automatically on startup. google is broken ...basically : is there an autoexec.bat ?

author: bson
author_rank: Unknown
timestamp: July 06, 2016, 11:23:07 pm
content: http://www.eluaproject.net/doc/master/en_using.html#shell

author: joseph nicholas
author_rank: Frequent Contributor
timestamp: July 06, 2016, 11:45:41 pm
content: The default for that is init.lua. It runs automatically on start up.

author: free_electron
author_rank: Super Contributor
timestamp: July 07, 2016, 05:16:30 pm
content: so if i add an init.lua to the rom filesystem that one will run ?i want to make a small self starting lua script that checks for the presence of a flash memory on spi or i2c. if the memory is found and it contains a specific signature it will create a new file in the write once filesystem and copy the data from the eeprom over. this then becomes a new lua program that is called and launched.Think of it as a small LUA bootloader.lua starts and then launches my loader. this loader checks for the existence of an eeprom. if it exists : read signature. then : check eif app.lua exists in internal worm. if it does : compare signatures. if they match :run app.lua. if they dont match : cope eeprom contents in new app.lua and then launch app.luathe idea is to have the control program for a sensor reside in the sensor. if i plug it into the system (lua based) this will detect the sensor and automatically install the driver for it.

author: chipah
author_rank: Newbie
timestamp: July 12, 2016, 12:36:04 am
content: I work with the open source Apache Mynewt OS that has a lua interpreter:https://mynewt.apache.org/latest/os/modules/elua/elua/There is a sample app on github (app called "latest") that currently initializes lua via shell (so you can manually run the lua script at the prompt).https://github.com/apache/incubator-mynewt-core/blob/master/apps/luatest/src/main.cThe shell command calls the lua_main(argc, argv) as shown inhttps://github.com/apache/incubator-mynewt-core/blob/master/libs/elua/elua_base/src/lmynewt.cYou could write an app that calls lua_main() to start automatically on some trigger or periodically.
dsPIC33 QEI Guidance Appreciated - Page 1
Forum section: electronics / general

author: Tin Duc Vo
author_rank: Contributor
timestamp: June 30, 2016, 07:27:31 pm
content: Hey, everyoneI have another question. It seems that everything on dsPIC33 is a bit hard to find information on. Right now, I'm trying to use the QEI module, but I do not understand how to even use the peripheral library. I looked in the dsPIC33 family QEI datasheet, the dsPIC33EP32MC204 datasheet, the 93002A Microchip datasheet, and outline, but I can't find any place that explains the various registers. Additionally, I do know how one would determine the direction of either the position or velocity.The functions are:3.4 Read32bitQEIxPositionCounter3.5 Read32bitQEIxCapture3.6 Read32bitQEIxIndexCounter3.7 Read32bitQEIxIntervalTimer3.8 Read32bitQEIxVelocityCounter3.9 Write32bitQEIxGreaterEqual3.10 Write32bitQEIxIndexCounter3.11 Write32bitQEIxInitialization3.12 Write32bitQEIxIntervalTimer3.13 Write32bitQEI1LesserEqual3.14 Write32bitQEIxPositionCounter1. I am unsure how the position/velocity direction work2. I do not know what the capture read is supposed to do3. I do not know if the only way to infer position sign is to use the index counter and whether is overflowed.4. I think two logical things for the greater or lesser than functions to do are to either set the values at which interrupts will be greater and/or set a maximum/minimum vaue for the position counter.In general, I just do not understand. I've looked everywhere I could. I also signed up for the microchip forums, but I haven't been admitted. If someone could point me in the right way, that would be lovely. Thank you.

author: andre_teprom
author_rank: Regular Contributor
timestamp: July 01, 2016, 12:09:47 am
content: I used the dsPIC30F more than a decade ago, but I had to do myself some calculations. For example, to obtain direction it was done just subtracting two consecutive readings, if greater or smaller than zero, meant clockwise or opposite direction. To obtain the speed, I had to make the division of the previous result by a constant value, proportional to the sample interval.

author: Tin Duc Vo
author_rank: Contributor
timestamp: July 03, 2016, 12:23:33 am
content: Thanks Andre. I know it could be done that way, but it seems like there is hardware support for velocity and the other stuff too. but with velocity, you need a sign for direction. For some reason, the velocity is returned as an unsigned value.

author: Maxlor
author_rank: Frequent Contributor
timestamp: July 03, 2016, 12:43:15 am
content: The Datasheet for your micro only contains a very brief register summary for most peripherals. To learn how the peripherals work, you need to look at the PDFs listed under Documentation/Reference Manual (near the bottom) on this page:http://www.microchip.com/dsPIC33EP32MC204. The one labelleddsPIC33E/PIC24E FRM, Quadrature Encoder Interfaceshould contain the explanations you seek.

author: Tin Duc Vo
author_rank: Contributor
timestamp: July 11, 2016, 03:24:21 pm
content: Thanks. I had a look at the datasheet already, but I still don't understand. I will have another look.
Which Atmel Zigbit module to use? - Page 1
Forum section: electronics / general

author: aceperry
author_rank: Newbie
timestamp: July 09, 2016, 01:11:21 pm
content: Looking to start a Zigbee HA project and having a tough time understanding the ins and outs of Atmel's offerings. I settled on their Zigbit modules because of the software, tooling, and "all in one" module with worldwide radio certification. From what I can see, there are two main choices in the 2.4 GHz range: ATmega256RFR2 and the ATxmega256A3U modules. If I read the Atmel website correctly, the zigbit modules are ready to go without having to add my own oscillators, antennas, etc.(which is missing from the "single chip solutions") All I need to do is program the firmware, using the BitCloud sdk and the ASF stuff. Is that right?I couldn't find any references to the ATxmega256A3U, so I don't know if that is supported by the BitCloud sdk. I'm assuming it is, but wanted to confirm this. And it looks like I'll need to use the respective Xplained Pro Extension board for development. Is something like the JtagICE3 required for programming bare modules? Looks like you can program the extension board without a separate programmer.If the ATxmega256 module is supported by the BitCloud sdk, what is the advantage of using that over the ATmega256? Any insight on this would be greatly appreciated. Thanks.

author: ataradov
author_rank: Super Contributor
timestamp: July 09, 2016, 03:54:15 pm
content: Xmega modules are not supported by BitCloud. And I would not use mega256RFR2 either.There are no good modules with clear future. I would recommend custom design based on SAM R21. There are a few modules (not branded ZigBit) based on R21, but I don't know if you can actually buy them. Their part numbers are ATSAMR21G18-MR210UA and ATSAMR21B18-MZ210PA.

author: aceperry
author_rank: Newbie
timestamp: July 09, 2016, 08:37:46 pm
content: Thanks for the reply Alex. I wanted to use BitCloud because it looks like a fast turnkey zigbee solution. I've seen some of the SAM R21 chips and thought they were close to what I wanted, but I didn't think they were ready to go with the radio certification and all other parts included. That's kind of a requirement for this project so it looks like I'm stuck with the ATmega256RFR2. I know everything is up in the air with Atmel, especially after the acquisition, but I've got to have lots of I/O as well.One more question, if I'm using the ATmega256RFR2, what kind of debugging tools would I need? I was thinking of using the Xplained Pro extension as well as getting the JtagIce3. Didn't know if I needed anything else.

author: ataradov
author_rank: Super Contributor
timestamp: July 10, 2016, 05:57:44 am
content: Quote from: aceperry on July 09, 2016, 08:37:46 pmJTAGICE3 was discontinued. Software tools will still support it for a while, but if you want an up to date thing, you need to go with Atmel-ICE. It will also provide ARM programing capability, just in case you need it later.

author: aceperry
author_rank: Newbie
timestamp: July 10, 2016, 06:09:36 am
content: Thanks Alex! That's really helpful, especially since I'm not up to date on the latest Atmel stuff.
Lattice MachXO2 breakout board -  is it possible to replace FPGA with different? - Page 1
Forum section: electronics / general

author: Brane212
author_rank: Contributor
timestamp: July 08, 2016, 05:13:19 pm
content: I have two such boards. Originally both were with XO27000HE chip, but I managed to let magic smoke out of one, so I replaced it. BUt because Farnell didn't have HE version, I used HC instead and adapted VCC from 1.2V to 3.3V. Basically I bricked two Vccx testpoints together and so now I have 3.3V for I/O and core.New chip seem to be soldered on correctly, but I can't program it through FTDI ( haven't checked ISP cable yet).When trying to program basic demo ( blinks LEDs), it fails with:QuoteDevice#1 LCMXO2-7000HC: Failed to verify the ID(Expected: 0x012BD043 Read: 0xFFFFFFFE).ERROR - Check configuration setup: Unsuccessful.ERROR: pgr_program failed.ERROR - Programming failed.I suspect FTDI's EEPROM might be the possible issue- that it expects HE version.I noticed that those boards tend to carry different chips- early ones were with XO2-1200HEDo they have to be tweaked (EEPROM) or should this just work and I screwed something else ?

author: janoc
author_rank: Super Contributor
timestamp: July 08, 2016, 09:12:44 pm
content: The FTDI EEPROM is unlikely to be a problem - it only stores things like USB VID/PID for the FTDI chip. The USB bridge certainly has no clue about what it connected to it and not much intelligence. It knows how to do JTAG or SPI when you send it specific USB packets, but that's all. The rest of the smarts is in the host software.That failure looks like the chip isn't talking at all to the FTDI. Are you sure the HC and HE versions have the same pinout?

author: Brane212
author_rank: Contributor
timestamp: July 09, 2016, 03:20:17 pm
content: YEAH ! It works now !I don't know how I managed that, but I somehow have cut TDI line just above ISPconnector an thus have cut from the FPGA both ISP and FTDI.Cut was done inadvertently with something as sharp as Xacto knife and cut was more like a stab over track and was practically invisible.After this was taken care of, thing started working. Only thing I did was to remove R56 (bridge for Vccio) and connect 3.3V to its FPGA side, leaving 1.2V line intact to be used perhaps for something else or reworking it with adjustable regulator.
touchpad, ALPS JCI-S1S, Synaptics T1002, Synaptics T1004 - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: July 08, 2016, 07:12:15 pm
content: so,hereit is an interesting lecture about Synaptics-t1004 based touchpad to ps/2I have also found the followingSynaptics T1002,Apple PowerBook G3 Wallstreet, TM1002A Rev H, 8 pin, PIC16C58 ... probably Apple Desktop BusSynaptics T1002,Apple PowerBook G3 Lombard, 920-000169 Rev D, 12 pin, Synaptics M1658TQ32 ... unknown protocol (USB? I can't find information aboutSynaptics M1658TQ32, it's attached toSynaptics T1002)ALPS JCI-S1S,Fujitsu Siemens(provably also Sony/Vaio) laptop, PS/2 interfaceI am looking for atouchpad, I need to directly interface it to a fpga, therefore I need something known.ALPS JCI-S1Sseems to be present onebay, but ... I haven't found useful information, even if it has been used in an arduinoproject, problem with that: that guy wired the cable, no information about the PCB, and on ebay sellers don't provide exactly that sametouchpadI am opened to different approaches, methods, hacksp.s.I have here theApple TM1002Aused inWallstreetlaptop, but I'd rather avoid to implementApple Desktop Bus (ADP)p.s.2I can't fine datasheet aboutSynaptics T1002, does it speaks PS/2 natively?

author: legacy
author_rank: Super Contributor
timestamp: July 08, 2016, 11:43:21 pm
content: PS/2 protocol, 5V
PSoC combinational loop - Page 1
Forum section: electronics / general

author: blueskull
author_rank: Unknown
timestamp: July 07, 2016, 06:32:11 pm
content: Is there any way to create an async SR latch inside a PSoC 4 device? Its macro library contains clocked SR latch, but I need an async one.I created one with combination logic elements, but it shows the following warning.Does it mean it have already broken the net for me (which is not what I intended to do), or it tells me that I should break the loop, but I have the discretion?

author: danadak
author_rank: Super Contributor
timestamp: July 08, 2016, 02:27:12 pm
content: I had a problem where optimization would take out gates I wanted to stay, no warnings.That was with all optimization off, at the time, ~ 3 years ago, no way to resolve the issue.I would post this on Cypress.com PSOC forum, there may be a way todefeat warning and make sure no nets are broken or to force particularnet routing.Of course you could always eat a pin or two and route so tool does not know youhave latch loop........create the "net" externally.Regards, Dana.

author: Tainer
author_rank: Contributor
timestamp: July 08, 2016, 05:06:29 pm
content: Quote from: blueskull on July 07, 2016, 06:32:11 pmYou could try making your own implementation in verilog
homemade Scientific Graphic Calculator, Coma Project - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: July 07, 2016, 07:50:34 am
content: Scientific Graphic Calculator2 Channel 8bit 16MSPS Oscilloscope with Frequency AnalysysVoltmeter, Ammeter, Ohmmeter, LC Meter, Component Check8 Channel Logic AnalyzerArbitrary Function GeneratorConnection to PC through USB or RS-232...calledComa, nice project, in my opinion