hybridfree/eevblog-posts huggingface dataset:
Is it worth to choose ZYNQ for SDR designs - Page 1
Forum section: electronics / general

author: rakeshm55
author_rank: Regular Contributor
timestamp: December 03, 2014, 05:17:27 am
content: Hi,Is it worth to choose ZYNQ FPGA for SDR designs... We have a traditional system of virtex 6 FPGA & OMAP combi...What advantage can an Zynq offer??....What are is disadvantages....The price of Zynq seems exorbitant so I have doubts on viability of using ZYNQ..... Xilinx projects Zynq as the technology to go with.... is it worth choosing ??Please share your thoughts....

author: Scrts
author_rank: Frequent Contributor
timestamp: December 03, 2014, 09:00:50 am
content: You want to do processing on ARM cores? Then it depends. Personally, I would go for Cyclone V with hard PCIe plus nVidia Tegra. What are your requirements?

author: tggzzz
author_rank: Super Contributor
timestamp: December 03, 2014, 10:25:52 am
content: Basically Zynq = Artix7 fabric plus dual-core ARM. If your designs would benefit from ARM processors that are tightly coupled with FPGA logic and external memory, then Zynq might be appropriate.You might like to look at the kinds of things that are possible, and see if they are relevant to your situation. Look at the MicroZed board, the Red Pitaya scope+, and the IP primitives that are supplied by Xilinx.We cannot advise you what your designs require; sorry!

author: rakeshm55
author_rank: Regular Contributor
timestamp: December 03, 2014, 11:10:19 am
content: We usually design Waveform (AM FM etc) PHY & MAC in FPGA and rest of the system in OMAP......now there is a suggestion to use ZYNQ to replace the combi and go with single chip design Zynq....this is the jist.... Every where i look for I see praise for Zynq....so did wanted to know the disadvantages of going for Zynq

author: tggzzz
author_rank: Super Contributor
timestamp: December 03, 2014, 11:21:26 am
content: Only you can define what disadvantages you might encounter, since they are highly design specific and company specific.You would have to use Vivado, not ISE, but ISE is on the way out anyway.Why not buy one of the MicroZed family of boards, which comes with Vivado+ChipScope plus decently flexible high speed IO? That would force you to crystallise your thoughts and quickly test your undersanding and designs. Make sure the MicroZed is in stock before committing to a purchase.

author: Rasz
author_rank: Super Contributor
timestamp: December 03, 2014, 11:25:05 pm
content: I read in a couple of places Ettus will come out with Zynq based USRP, so it has to have some advantages (well, maybe they get great price and thats the only reason)
Cypress and Spansion to Merge in $4 Billion All-Stock Transaction - Page 1
Forum section: electronics / general

author: miguelvp
author_rank: Super Contributor
timestamp: December 04, 2014, 06:24:11 am
content: On my regular visit to Cypress.com I noticed something today:http://www.cypress.com/?rID=103842Quote

author: Rasz
author_rank: Super Contributor
timestamp: December 04, 2014, 05:46:58 pm
content: Both companies have been kind of 'me too' for a while now. There is nothing special they offer, nothing unique that cant be second sourced (unless you get suckered down into vendor lockin with some of cypress micros).

author: paulie
author_rank: Frequent Contributor
timestamp: December 04, 2014, 06:20:23 pm
content: Are you serious? Who second sources anything close to their PSOC devices?Those do seem to be Cypress main claim to fame lately.

author: dannyf
author_rank: Super Contributor
timestamp: December 05, 2014, 12:09:53 pm
content: A bad deal for Cypress shareholders,
PIC18 Ethernet module sent data invalid? - Page 1
Forum section: electronics / general

author: E
author_rank: Contributor
timestamp: November 29, 2014, 06:34:27 pm
content: Hi wonderful EEVBlog community!I'm struggling with the Ethernet module of a PIC18F66J60. I'm trying to get it to send data to my PC either directly or via a switch. Using the TCPIP stack demo app from Microchips MLA, I got it to compile and flashed it onto my self-designed board. I let it announce it's IP via UDP broadcast once every second, but when I sniff the network using wireshark I find no packets whatsoever.The link and TX leds are showing the proper behaviour and I get the attached waveform on the TPOUT+/- pair. (yellow is TPOUT+, blue TPOUT- and purple is the difference). It shows the expected frequency of 10 MHz for this 10Base_T/Half-Duplex connection.I don't know if this is what a ethernet waveform is supposed to look like and whether the levels are high enough.Any ideas what could cause me to fail to find packets?Btw: I tried both, static IP config and DHCP. The subnet mask, gateway etc. are set correctly, but I pick up *no* packets at all, no ARP, no ICMP, no DHCP, nada!Edit: Waveforms are AC coupled, have a ~3V (VDD) offset.
Just released Atmels 3.4.5 avr-gcc (4.8.1) as a RasPi .deb package - Page 1
Forum section: electronics / general

author: bingo600
author_rank: Super Contributor
timestamp: April 30, 2014, 06:02:33 pm
content: atmel-3.4.3 , see below for later packagesSee herehttp://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=142428&start=0&postdays=0&postorder=asc&highlight=Orhttp://www.wrightflyer.co.uk/avr-gcc/atmel-3.4.3-avr-gcc-4.8.1-2014-04-30-raspbian.armhf.debatmel-3.4.3-avr-gcc-4.8.1-2014-04-30-raspbian.armhf.txtI have only compiled a single project , but it was succesfull.Well a Kazillion warnings , seems like gcc 4.8.1 is more picky than my old 4.5.1.Try it out if you like , and remember to get/read the .txt file also on the server.Remember to remove the old 4.5.1 toolchain if you have that one installed.Ohh btw: It took 18h50m to build the atmel-gcc , then came avrdude 6.1 , avarice 2.12 and avr-gdb 7.7 , but that was just 1h or so.It is build my RasPi , running raspbian not the "foundation kernel"QuoteBtw: avr-gcc & co should be build & linked static.But avrdude 6.1 , avarice 2.12 and avr-gdb 7.7 is not.You might need to install a few packages for those to work./Bingo

author: bingo600
author_rank: Super Contributor
timestamp: June 16, 2014, 05:05:46 pm
content: Uploaded a new version atmel-3.4.4Based onhttp://distribute.atmel.no/tools/opensource/Atmel-AVR-GNU-Toolchain/3.4.4/Get it here (rember to uninstall the previous package if installed)http://www.wrightflyer.co.uk/avr-gcc//Bingo

author: bingo600
author_rank: Super Contributor
timestamp: December 03, 2014, 06:56:51 pm
content: Uploaded a new version atmel-3.4.5Based onhttp://distribute.atmel.no/tools/opensource/Atmel-AVR-GNU-Toolchain/3.4.5/Get it here (rember to uninstall the previous package if installed)http://www.wrightflyer.co.uk/avr-gcc/The package installs in /usr/local/avr , make sure that directory in non existant before installing the .deb/Bingo
Change Beaglebone Black USB Client Function for Audio - Page 1
Forum section: electronics / general

author: MLM
author_rank: Contributor
timestamp: September 02, 2013, 10:16:55 pm
content: My goal is to create a USB Audio device using UAC 1.0 so it works on all OS's. The BeagleBone Black seems like a great board to do this with but I am unclear if the USB client port can be used for whatever specifically Isochronous transfer for a USB Audio. I can use codec chips, etc to get the Audio data into and out of the BBB but I need to get it from the BBB to the host. Also the audio streams should show up just like any other audio device in the audio manager as a speaker or microphone.I foundthis articleon making the USB client port into a serial port. It uses g_serial which is a driver to turn the USB from a mass storage media (default function) to serial port.My main question is: Is the BeagleBone Black capable of being a USB Audio Device?EDIT:Just found theUSB Gadget API for LinuxandAnalog Devices has some articleson it as well. It looks good but I do not have an complete or necessary understanding to use it yet or is the right method. Just thought I would share in case it sparks someone who has used it before.Other Resources:My beginning topic on USB Audio

author: jaygarcia
author_rank: Newbie
timestamp: November 23, 2014, 06:42:50 pm
content: Were you able to get any movement on this?

author: MLM
author_rank: Contributor
timestamp: November 23, 2014, 07:36:55 pm
content: Quote from: jaygarcia on November 23, 2014, 06:42:50 pmNot with the BBB.I was able to get some USB speaker/microphone stuff to work on the Teensy 3.0 with MickMad's code. I worked with him a bit on it but I never actually made a project with it myself.Here is a GitHub repo:https://github.com/MickMad/Teensy3-USBAudioYou can also find a post on the PJRC forums about the project here:http://forum.pjrc.com/threads/24309-USB-Audio-for-Teensy-3-0?p=36018

author: jaygarcia
author_rank: Newbie
timestamp: November 25, 2014, 07:02:14 pm
content: Did you not make any traction w/ the BBB because of lack of learning resources or anything specific to the hardware itself?Thanks =)
Sample Arduino Code for RGB Rotary Encoder - Page 1
Forum section: electronics / general

author: lyndonasia
author_rank: Contributor
timestamp: November 23, 2014, 04:18:07 am
content: Hi Everyone,I just bought one of those SparkFun RGB encoders. I have never used one before and I wanted to learn more about them. There were some examples of Arduino code on the the SparkFun product page but I couldn't get any of the examples to work properly. After quite a bit of searching I managed to find some code which I then heavily modified. I thought this might be useful if you are planning on getting one of these encoders.The sample code is attached below. (Just rename it to "sparkfun_rgb.ino".)Cheers, Lyndon

author: dannyf
author_rank: Super Contributor
timestamp: November 23, 2014, 05:46:52 pm
content: You may find it helpful if you create a .h-.c file so that your code can be more easily incorporated into future projects.As to your code itself, it uses lots of delays and looping, not the most efficient way to handle encoder reads. The easiest is to use a state machine for this.

author: FreddyVictor
author_rank: Regular Contributor
timestamp: November 24, 2014, 10:05:15 am
content: when you have buttons/user input devices, it's best to use interrupts - atmega's can have pin-change interrupts on most pinsno doubt there's probably an arduino library all ready & waiting for you to use (but really this is the sort of stuff you should be learing to do yourself!)

author: lyndonasia
author_rank: Contributor
timestamp: November 25, 2014, 06:40:00 am
content: Thanks for the comments. Most of the examples I found for encoders did indeed use interrupts however, none of the samples I found worked at all for this particular encoder. If I can find an example that works I will post it here.I think the while { } loops are probably not such a good idea. When I get some free time, I think I will revise this version to use an interrupt. Shouldn't be too hard... and also a good exercise as I am really only getting started in programming micros.Cheers, Lyndon
Output of an CS4344 I2S DAC. - Page 1
Forum section: electronics / general

author: hamster_nz
author_rank: Super Contributor
timestamp: November 24, 2014, 09:35:06 pm
content: I've been playing with an I2S DAC, and found the step response (from -0.5 to +0.5) quite interesting, especially to see the reconstruction filter in action...Sample rate is a little over 48kHz, master clock is 25MHz. Far different from what you get out of a passive R-2R DAC.

author: Bassman59
author_rank: Super Contributor
timestamp: November 25, 2014, 04:23:03 pm
content: Quote from: hamster_nz on November 24, 2014, 09:35:06 pmWell, that's all entirely expected. The reconstruction filter is (ideally) a sinc() function, so if you give it a step (which you won't see in recorded music, because the input antialiasing would obviously ensure you don't have enough HF to have a true step) you'll see the tails of the filter.Since a passive R2R DAC doesn't have the output antialiasing filter (unless you include it in your circuit, of course), you should expect to see the familiar stair-step. Remember: for continuous-time systems you need the output reconstruction filter or the result is bogus.Attached is a WAV file which is a delta function: one sample at 0 dBFS and all others at zero. Sample rate is 48 kHz. It is somewhat eye-opening to see the DAC output in response to this input.

author: hamster_nz
author_rank: Super Contributor
timestamp: November 25, 2014, 08:34:48 pm
content: So this now has me wondering - if I were to feed this output (it's actually a square wave at a few 100 Hz) into an ADC, sample it at the same speed would I get a data file with something close to the original step wave?If I do it with a pen and paper the points where I sample are in the centres of the ripples.If I sample it in the peak of the ripples, then I guess I get the same frequency spectrum, but with a different phase components (esp for the higher frequencies).So I guess I answered my own question, If I re-sampled this output, although the data may look different it should have the much the same frequency components, but I would expect to see differences due to the difference in phase due to the relative alignment of DAC and ADC sample clocks.
Programming with Microchip ICD3 vs PICkit 3 - Page 1
Forum section: electronics / general

author: DarkerMorgul
author_rank: Newbie
timestamp: November 20, 2014, 11:03:29 am
content: Hi Guys,I'm currently running into some issues with programming a PIC24FJ256DA210 using a PICkit 3. Usually this device is programmed with a ICD3 but I am unable to use an ICD at the moment.Are there any settings that need to be changed in order for the same .hex file to be programmed to the device with the PICkit 3?Any pointers are appreciated

author: RABeng224
author_rank: Contributor
timestamp: November 20, 2014, 03:26:05 pm
content: Need a bit more info to really help. What program are you using (MPLABX, MPLAB v8, etc...).

author: 22swg
author_rank: Frequent Contributor
timestamp: November 20, 2014, 03:56:26 pm
content: Been programming various PIC24s with PK3 for some time , only issue is an occasional MPLABX 2.20 ... PK3 not found , what is your "issue "

author: dannyf
author_rank: Super Contributor
timestamp: November 20, 2014, 05:42:15 pm
content: QuoteI am sure what those "issues" are have nothing to do with the solutions needed to resolve such issues.Or they are top secrete.

author: BloodyCactus
author_rank: Frequent Contributor
timestamp: November 20, 2014, 07:09:09 pm
content: The only setting I may ever chamge is to have the pickit3/icd supply voltage to the device or not.apart from that I have no issues swapping between the ICD3 and the pickit3. (I use the ICD3 rj11 to ICSP header board so swapping between the two is easy)

author: neslekkim
author_rank: Super Contributor
timestamp: November 20, 2014, 07:12:57 pm
content: If its the pk3 not found thing, I often have the same with pk3, not with icd3, totally different drivers or something, the drivers for icd3 is not giving problems, but with pk3 you have to run mplabx elevated, such crap..Reported it to microchip for some time ago, but not sure if they do anything about it.
Weird pointer issue - Page 1
Forum section: electronics / general

author: IuriC
author_rank: Contributor
timestamp: November 20, 2014, 04:39:31 pm
content: Hi,I'm having a little weird issue in my code running on a ARM Cortex M0 (LPC1114), probably is just a ridiculous mistake bypassing my view. I'm using LPCXpresso IDE, coding in C.Let me break it down for you guys:I have one typedef struct in my code that defines my circular buffer nodes. Exactly the same below.Code:typedef struct {uint8_t addr;uint8_t offset;uint8_t rw;uint8_t size;uint8_t status;uint8_t data;} EEPROM_MemoryPageNode;My read function receives one pointer of that structure above as a parameter to retrieve data. Function declaration below.Code:uint8_t _EEPROM_readBytes(uint8_t address, uint8_t size, EEPROM_MemoryPageNode* mem);Inside the function I catch the memory address of my last node in my circular buffer.Code:...mem = (EEPROM_MemoryPageNode)&_pageNodes;...Here comes the issue. I call the function as below:Code:...EEPROM_MemoryPageNode* mem;_EEPROM_readBytes(0x00, 0x01, mem );...It compiles ok, but for some reason the variable "mem" doesn't catch the address of my node! I did some debugging and could not fix it.As I said earlier, probably a small detail escaping through my hands. Any help is welcome.Thank you.

author: DJohn
author_rank: Regular Contributor
timestamp: November 20, 2014, 04:55:12 pm
content: If you want it to change the mem variable in the caller, you need to pass in a pointer to that variable. As it is, you're passing the value of mem, which is a pointer to EEPROM_MemoryPageNode.You wantCode:uint8_t _EEPROM_readBytes(..., EEPROM_MemoryPageNode** mem ){...*mem = whatever;...}_EEPROM_readBytes( ..., &mem );

author: IuriC
author_rank: Contributor
timestamp: November 20, 2014, 05:41:11 pm
content: Didn't work. First time I got this kind of issue with pointers, may be some limitation on compiler?

author: IuriC
author_rank: Contributor
timestamp: November 20, 2014, 06:07:08 pm
content: Quote from: IuriC on November 20, 2014, 05:41:11 pmoh man... found it! I was forgetting to allocate memory! I can't believe itThank you DJohn.
tricks, build diy soldering stencil out soda can - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: November 20, 2014, 12:31:34 am
content: A CHEAP WAY TO MAKE CLEAN ELECTRONICSseethisarticle

author: gnif
author_rank: Unknown
timestamp: November 20, 2014, 12:42:52 am
content: Link broken, and this was published a long time ago on hack a dayhere.

author: legacy
author_rank: Super Contributor
timestamp: November 20, 2014, 09:40:08 am
content: from italy i can openhttp://www.popsci.com/article/diy/build-diy-soldering-stencil-out-soda-canbtw, what do you think about ?

author: Unknown
author_rank: Unknown
timestamp: November 20, 2014, 11:27:00 am
content: FWIW Popsci licences their name & some of their content on a country-by-country basis, and uses geolocation to redirect to the local website. What you get depends on where you are - you might get the full story, you might get a badly-mangled cut-down version, or you might get nothing. In this case, in Aus I get nothing but the local Popsci front page, and a search for "DIY stencil" finds nothing.Basically, linking to their content is useless in many parts of the world. It's been going on for many years, many people have tried to convince them it's a bad thing, but they don't care.(The quick trick around this sort of crap is to use Google Translate as a proxy - choose a language with a non-Roman characterset (e.g. Arabic), paste the link, and hit translate.)
TDMA Phy MAC interface - Page 1
Forum section: electronics / general

author: rakeshm55
author_rank: Regular Contributor
timestamp: November 19, 2014, 01:21:47 pm
content: Hi all,I am trying to implement a PHY MAC in Virtex 6. The communication scheme used is a custom based TDMA scheme....I would like to know on what should be the nature of interface between PHY and MAC given that the scheme is TDMA...Take data receive scenario1st scheme proposed is1. PHY maintains the time sync and all other layers are oblivious of the slot timing(say 1ms).2. When ever a packet is received PHY will dump data into a FIFO 1K X 8 with Length of packet as first 2 bytes representing packet length.3. MAC will read the Length first and read out all the data upto informed length and process it .....4. once the processing is complete returns and check whether fifo if is not empty read length and read packet.....Packet boundaries are maintained using the length informationin this scheme time information is with PHY and MAC has no sense of time in the receive path2nd scheme proposed Receive channel.....1. PHY writes data into a FIFO.2. PHY informs MAC with data valid signal informing that there is valid data in fifo (This is the 1ms sync signal)3. MAC starts reading data4. PHY will not write the next slot data until FIFO is empty.5. MAC detects the packet boundary using empty signal of FIFO.Data valid signal will be issues after 1ms intervals so that MAC works on a time sync mannerwhich is the right way to work in a TDMA scheme??Please suggest
Level Translator for AVR and microSD - Page 1
Forum section: electronics / general

author: giorgos3924
author_rank: Newbie
timestamp: November 15, 2014, 11:32:10 am
content: Hello!I want to connect a microSD card in my AVR ATMEGA32 which its operate with 5V.The microSD card i think that operates with 3.3V so, it is must to connected via bidirectinal level translator.I found this TI's translator1-BIT BIDIRECTIONAL VOLTAGE-LEVEL TRANSLATORFOR OPEN-DRAIN AND PUSH-PULL APPLICATIONSwhich its accepts any voltage from 1.65V to 3.6V in input A, and 2.3V to 5.5V in input B.My matter is: Can i direct wire the chip's I/O between AVR and microSD?or it's only, as the datasheet say, "for open-drain and push-pull applications"?

author: paulie
author_rank: Frequent Contributor
timestamp: November 15, 2014, 12:42:59 pm
content: Make your life easy and run the AVR from 3.3v so no conversion is needed. 5v is an archaic holdover from the early Ardunio days. If you are unable or unwilling to do that then a couple 1k resistors will suffice.

author: dannyf
author_rank: Super Contributor
timestamp: November 15, 2014, 01:04:19 pm
content: QuoteFairly easy from the avr/output to the microsd/input.The other way around will depend on the devices used.

author: giorgos3924
author_rank: Newbie
timestamp: November 15, 2014, 01:55:50 pm
content: Quote from: paulie on November 15, 2014, 12:42:59 pmin my circuit i have a lot of devices on I2C bus which operate at 5V. Therefore, if i make the AVR to work at 3.3V i think that something will fail.

author: hans
author_rank: Super Contributor
timestamp: November 15, 2014, 04:53:30 pm
content: If possible,avoidthose self-sensing direction chips. They are prone to oscillating when low pull up (even <10k) resistors are used because they are confused which direction the data is flowing.I2C is an exception in that most, if not all, devices are open-drain. If the digital inputs on all 5V slaves are TLL you should be good by running the AVR and pull-ups on 3.3V. Devices can only pull the bus to GND via their open-drain switch. They should not power a bus signal to 5V. The open-drain is required because some slave devices want to do clock-stretching.

author: miguelvp
author_rank: Super Contributor
timestamp: November 15, 2014, 09:12:53 pm
content: Edit: Forgot to mention that this is for I2C up to 400 Kbits/s not sure how it will work on data faster than that.Old Philips app note:http://www.adafruit.com/datasheets/an97055.pdfNew one from NXP (formerly Philips) but I think the old one has more informationhttp://www.nxp.com/documents/application_note/AN10441.pdf

author: sleemanj
author_rank: Super Contributor
timestamp: November 16, 2014, 01:49:10 am
content: I have no problems with an SD Card just with zener diodes (and resistors) to limit to 3.3v, of course, your mileage may vary, but works for me.

author: paulie
author_rank: Frequent Contributor
timestamp: November 16, 2014, 01:54:15 am
content: Turns out extra zeners are unnecessary. AVR have them built in. As mentioned earlier 1k resistors are all thats needed. No problem up to couple Mhz.
MPU-9150 FIFO Mode - Page 1
Forum section: electronics / general

author: maurosmartins
author_rank: Regular Contributor
timestamp: November 13, 2014, 04:39:08 pm
content: Hello all,for a current project that I'm working I need to interface to a MPU-9150 9 axis IMU.I've been reading the documentation and there are two possible ways to read data, directly from the registers or using a FIFO.This is where my doubts are, in the datasheet "FIFO_R_W" (address 116) allows reading from the FIFO, but this is an I2C device, so if I read the first byte I'll read address 116 and the second byte read should be address 117, but address 117 is a "WHO AM I" register (constant).I saw in this codehttps://github.com/kriswiner/MPU-9150/blob/master/STM32F401/MPU9150.hline 446 that they just perform a normal read to addr 116 asking for multiple bytes.My question is, is this a special register? won't the MPU-9150 auto increment the internall I2C address that I'm reading?Thanks in advanced,best regards, Mauro.

author: dannyf
author_rank: Super Contributor
timestamp: November 13, 2014, 11:22:42 pm
content: You are overthinking it: enable the fifo and read it and see if the pointer increments.

author: maurosmartins
author_rank: Regular Contributor
timestamp: November 14, 2014, 09:29:48 am
content: Hello dannyf and thank you for your reply,you are probably right, I'll test it as soon as I can,the reason for me to post here was hopping some user had already worked with this.Thanks anyway,best regards, Mauro.

author: mikerj
author_rank: Super Contributor
timestamp: November 14, 2014, 11:49:34 am
content: The datasheet implies that the FIFO register does not auto-increment if repeated reads are made (it says the FIFO register supports "burst" reads) though I agree this is not very clear.

author: maurosmartins
author_rank: Regular Contributor
timestamp: November 14, 2014, 12:07:55 pm
content: Hello mikerj,that is also my thoughts, thank you for your reply!Best regards, Mauro.

author: andyturk
author_rank: Frequent Contributor
timestamp: November 15, 2014, 05:13:57 am
content: Just read the number of bytes you want starting from that register.Code:bool MPU9150::read_fifo_data(uint16_t &count, uint8_t *buffer) {if (!read(FIFO_COUNT_H, count)) return false;count = byteswap16(count);assert(count <= 1024);return bus.read(address, FIFO_R_W, buffer, count, 100);}
error 148:variable " xxx" has already been initialized - Page 1
Forum section: electronics / general

author: dizgah
author_rank: Regular Contributor
timestamp: November 14, 2014, 04:08:17 pm
content: hi every bodyim trying to port a avr c library to a stm32f103 arm cortex mcu,but i have this error(error 148:variable " xxx" has already been initialized)im bewildered what it say ?tnks

author: dannyf
author_rank: Super Contributor
timestamp: November 14, 2014, 04:13:34 pm
content: QuoteYou are not alone - we all are bewildered too,

author: dizgah
author_rank: Regular Contributor
timestamp: November 14, 2014, 05:02:05 pm
content: Quote from: dannyf on November 14, 2014, 04:13:34 pm-----------------im try it on keil & iar (lite free versions) & all of them show same errorits a osama glcd library for avr im trying to porti attached keil project (it have some other warning too , but at first im trying to solve errors step by step )thanks a lothttp://wikisend.com/download/150238/GLCD.rar

author: dannyf
author_rank: Super Contributor
timestamp: November 14, 2014, 05:09:15 pm
content: Having looked at your code, I would say that you stand very little chance of getting it to work.Reading up on a good C book would be helpful to you.

author: dizgah
author_rank: Regular Contributor
timestamp: November 14, 2014, 05:33:53 pm
content: --------i find reasoni include font.h twice& can do this with #ifndef or with ereasing one of the includesthen i will edite title & post my other problem related with porting this lib to keil stm32f103thanks
how to connect seven segment with PIC - Page 1
Forum section: electronics / general

author: ect_09
author_rank: Contributor
timestamp: November 01, 2014, 09:24:09 am
content: Hi,i have seven segment (3 segment connected together), i attached the image.please tell me how to interface with PIC18f452.doses it connect with a single port.please guide me..

author: Unknown
author_rank: Unknown
timestamp: November 01, 2014, 10:29:15 am
content: Is the display common anode or common cathode?For common cathodehttp://www.extremeelectronics.co.in/pictutorials/images/SevenSegMux1.gif.For common anodehttp://embedded-lab.com/blog/wp-content/uploads/2011/03/Lab11_Circuit_SevenSegmentMultiplexing.jpg.In the program you simply turn on one of the digit and the desired segments, keep it on for some time then you turn it off and go to next digit, you do this fast enough that the human eye sees all the digits on.

author: dannyf
author_rank: Super Contributor
timestamp: November 01, 2014, 11:56:18 am
content: Quotetypically with wires,QuoteThose displays are slightly different -> 24 pins for 3 digits,

author: Brutte
author_rank: Frequent Contributor
timestamp: November 01, 2014, 11:59:39 am
content: Same remark as before,cross-poster.

author: ect_09
author_rank: Contributor
timestamp: November 13, 2014, 02:07:01 pm
content: Well, Thanks for reply.but didnt get the understanding yet
looking for arduino based multi boot cable for game boy advance, lost in space - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: October 06, 2014, 01:59:05 pm
content: hi guysgoogling around i have foundthisuseful article that shows you "how" you could upload an application into nintendo gameboy advanced. Unfortunately the article is pointing to a dead link about the arduino project, so i have opened this thread to ask if someone of you has saved the project and could share.Thank you.

author: IanJ
author_rank: Unknown
timestamp: October 07, 2014, 05:10:51 pm
content: Is this the page you are looking for?http://web.archive.org/web/20100815071014/http://blog.evildro.me.uk/?p=21Ian.

author: legacy
author_rank: Super Contributor
timestamp: October 07, 2014, 10:12:39 pm
content: yes, thank you!

author: legacy
author_rank: Super Contributor
timestamp: October 08, 2014, 10:48:10 am
content: very very useful information, i am toying with my GBA SP, pretty able to upload things in its internal 256Kbyte ram through the serial cable (made with an Arduino micro)

author: TeaNTronics
author_rank: Contributor
timestamp: November 12, 2014, 05:06:33 pm
content: sorry for jumping this 1 month old post up back,but i just want to tell i tired use this GBA Multi-booter too (about 6 months ago),unfortunately, from what i've found, there is no tool for windows for this(except really old and outdated one that works with old printer port, and hard to work with, and also make problems).So the only way you can run the tool is under linux or Mac OS.anyway, i made to myself a small "dev-kit" of all necessary files needed for running this tool,i'm attaching it.it's including also instructions, some schematic, and 2 GBA Multi-boot tools:- MSMCcable-1.01 (arduino sketch type)- usb-gba-multiboot (arduino leonardo "frameware flashing" type, see:http://youtu.be/Zfmj_KPE_L4)(can be found under "Other Booting Tool" folder)i tired to do it in Oracle VM VirtualBox with "PClinux", and it didn't work, its because the drivers in the latest linux version cannot support the MSMCcable-1.01 (which using old libraries),so i guess the best way is to try it out with older linux versions (linux versions from 2004~2003, might work) and then try to install it.i hope i've helped you with this

author: TeaNTronics
author_rank: Contributor
timestamp: November 12, 2014, 06:43:54 pm
content: btw, i forgot to say, i dont have the BGA Link cable too,you can order gameboy link cable for 1~3$ on ebay, cut it and rewire it to the arduino.but i decide to do other thing, i've added serial port on my gameboy (using dupont 2.54mm connector)(see pictures)so i can easily connect it to the arduino (with logic level converter of course).i solder it to all 4 Serial pins on the gameboy link port.its was really tight fit, i didn't had more room to use 5 pin connector. (for ground wire to the arduino)so i'm using gameboy usb charge cable,and i connect the ground the the arduino.
C509L bare die pad layout ??? - Page 1
Forum section: electronics / general

author: redtop
author_rank: Newbie
timestamp: November 13, 2014, 02:29:23 pm
content: Hallo!I'm working with some car electronics as a hobbyist trying to learns something. Now I have here a Bosch M1.5.5 ECU from an Alfa Romeo. I tried to reflash it using standard automotive tools, but since I'm an idiot I happened to brick the ECU by uploading the wrong file to the flash memory.This unit has a C509L microcontroller so my idea is that it can be revived by uploading the original software to the flash using the "External Flash-EPROM Program Enable" on pin PRGEN and the flash tool for the 509. Now this is a hybrid design so the microcontroller is a bare die and I can't find any datasheet that describes the pads.Can anyone here help me with info about the pads on a bare die C509L ?
HLK RM04 - Page 1
Forum section: electronics / general

author: amir30
author_rank: Newbie
timestamp: November 06, 2014, 09:24:34 pm
content: HiI have the base board model of HLKRM04 and i want to use it in Ethernet mode (transferring data between two microcontrolers using 2 of these modules). I have been struggling to run this module for so long, it's driving me crazy. I've searched a lot hoping to get a sample code but i couldn't find any. I use bascom compiler but any sample code will help.I'm a liitle bit familiar with at commands but still a beginner.I could really use your help.Thanks.
HLK-RM04 OpenWRT Wifi/Ethernet/RS232 bridge boards + more? - Page 1
Forum section: electronics / general

author: Smokey
author_rank: Super Contributor
timestamp: August 14, 2013, 06:56:28 pm
content: Hey guys,I was looking for a good solution to adding Wifi to an embedded project I've been working on and I came across this little board.http://www.hlktech.net/product_detail.php?ProId=39The HLK-RM04 looks pretty killer. They advertize it as a Wifi/Ethernet/RS232 bridge but it's really a full 360mhz SOC. The OpenWRT guys look to have made good progress cracking the thing open.http://wiki.openwrt.org/toh/hilink/hlk-rm04You can get them for around 15USD from various Chinese sources, some with dev breakout boards for the connections:http://dx.com/p/hi-link-hlk-rm04-serial-port-ethernet-wi-fi-adapter-module-blue-black-214540http://www.aliexpress.com/store/product/Wireless-Router-Serail-to-RJ45-Serail-To-Wifi-HLK-RMO4/211069_722941117.htmlI wonder if you can implement SPI/I2C on the GPIO pins and do away with a secondary microcontroller all together...Anyone played with these?

author: Stonent
author_rank: Super Contributor
timestamp: August 16, 2013, 12:47:19 am
content: QuoteLooks like a cool way to connect to serial devices together.

author: Marco
author_rank: Super Contributor
timestamp: August 16, 2013, 04:03:17 pm
content: There seem to be quite a few modules with that chipset on aliexpress ... if you don't want to bother with the flash swapping or testing out which ones have uboot still enabled there is also the Carambola 2 :http://8devices.com/carambola-219 Euro for the board.Unfortunately while the project has a lot of open information it's build with a Qualcom chipset ... so any official hardware information is locked away behind 7 NDAs, have to rely on reverse engineered information. I wish open source projects would stop picking their chipsets.

author: Smokey
author_rank: Super Contributor
timestamp: August 17, 2013, 08:55:25 pm
content: SPI on OpenWRT:http://randomcoderdude.wordpress.com/2013/08/15/spi-over-gpio-in-openwrt/Well there you go.

author: amir30
author_rank: Newbie
timestamp: November 06, 2014, 09:22:27 pm
content: HiI have the base board model of HLKRM04 and i want to use it in Ethernet mode (transferring data between two microcontrolers using 2 of these modules). I have been struggling to run this module for so long, it's driving me crazy. I've searched a lot hoping to get a sample code but i couldn't find any. I use bascom compiler but any sample code will help.I'm a liitle bit familiar with at commands but still a beginner.I could really use your help.Thanks.
machine vision (book) - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: November 17, 2014, 08:55:46 am
content: hi guysi have found this pretty bookCode:Ramesh Jain, Rangachar Kasturi, Brian G. Schunck Published by McGraw-Hill, Inc., ISBN 0-07-032018-7, 1995you can download it as PDF using the following linux bash script, or manuallyCode:url="http://www.cse.usf.edu/~r1k/MachineVisionBook/MachineVision.files/"list="MachineVision_Appendix_A.pdfMachineVision_Appendix_B.pdfMachineVision_Appendix_C.pdfMachineVision_Bibliography.pdfMachineVision_Chapter1-ocr.pdfMachineVision_Chapter1.pdfMachineVision_Chapter10.pdfMachineVision_Chapter11.pdfMachineVision_Chapter12.pdfMachineVision_Chapter13.pdfMachineVision_Chapter14.pdfMachineVision_Chapter15.pdfMachineVision_Chapter2.pdfMachineVision_Chapter3.pdfMachineVision_Chapter4.pdfMachineVision_Chapter5.pdfMachineVision_Chapter6.pdfMachineVision_Chapter7.pdfMachineVision_Chapter8.pdfMachineVision_Chapter9.pdfMachineVision_FrontMatter.pdfMachineVision_Index.pdf"for item in $listdoecho -n "getting $item .. "file="$url/$item"wget $file >log1 2>log2echo "done"doneenjoy
PIC24 spi SS pin - Page 1
Forum section: electronics / general

author: Rendon
author_rank: Newbie
timestamp: October 29, 2014, 07:51:40 pm
content: Hi guys,I posted previously when I was trying to get the PIC24 spi module to work. (The device is an FJ128GA006).My issue now is driving the SS pin low. I am addressing the Microchip MCP4921 DAC, so communication is 1-way and I'm operating the SPI module in master mode.At the moment, I am driving the SS pin low by instruction before calling my SPI function. I then run a "for-loop" before setting the SS pin high again - by instruction.Surely, the SPI module should take care of this? Me confused.My initialization code is as follows:Any insight will be appreciated.Thanks.void spiInit(){SPI2BUF = 0;SPI2CON1 = 0;SPI2CON2 = 0;SPI2STAT = 0;SPI2STATbits.SPIROV = 0; // clear overflow bitSPI2CON1bits.MODE16 = 1; // configure words as 16-bitSPI2CON1bits.MSTEN = 1; // set as masterSPI2CON1bits.CKP = 0; // set clock idle stateSPI2CON1bits.CKE = 0;SPI2CON1bits.DISSCK = 0; // enable internal clockSPI2CON1bits.SPRE = 4; // configure secondary clock prescalerSPI2CON1bits.PPRE = 1; // configure primary clock prescalerSPI2CON1bits.SSEN = 1;SPI2STATbits.SPIEN = 1; // enable spi module}

author: gxti
author_rank: Frequent Contributor
timestamp: October 29, 2014, 11:46:25 pm
content: Does it work? If so, what do you feel is not correct about it?From my vague recollection, PIC SPI peripherals can drive SS in a "framed mode" where it goes low at the start of each byte and high at the end. That's not standard SPI, but it is something where hardware support would be necessary. For basic SPI in master mode there's no reason why you'd need anything other than a GPIO. Of course in slave mode SS needs to be used by hardware in order to tristate the line quickly.

author: mazurov
author_rank: Frequent Contributor
timestamp: October 30, 2014, 12:37:29 am
content: What exactly would you like SPI module to do with SS (in master mode)? Assert/deassert before/after sending a byte? What about 16-bit transfers? Or 32? Or 65 bytes long? How about multiple slaves?This is why there is no SS automation in master mode.

author: Rendon
author_rank: Newbie
timestamp: October 30, 2014, 05:29:44 am
content: In other words, it is not possible to automate the SS line?That's what I wanted to know.The purpose of my post is to understand the SPI capabilities better so that I may hold reasonable expectations.Thanks for your insight.
how to check either Controller working or damaged - Page 1
Forum section: electronics / general

author: ect_09
author_rank: Contributor
timestamp: October 28, 2014, 11:13:29 am
content: Hi,:(i want to know that how to check that either Controller working or damaged ,am confused because i have PIC 18f452 and its being detect automatically when i want to load HEX file it and at the end it shows message that programming finished successfully, (i attached the image).but when i run this on hardware its PORT does not responding..no voltage on its output.what should i do..?code is hereCode:#include<htc.h>// PIC 18F452 fuse configuration:// Config word 1 (Oscillator configuration)// 40Mhz crystal input__CONFIG(1, OSCSDIS & HSPLL);// Config word 2__CONFIG(2, BORDIS & PWRTDIS & WDTDIS);// Config word 3__CONFIG(3, CCP2RC1);// Config word 4__CONFIG(4, LVPDIS & STVREN);// Config word 5, 6 and 7 (protection configuration)__CONFIG(5, UNPROTECT);__CONFIG(6, WRTEN);__CONFIG(7, TRU);#define _XTAL_FREQ 40000000 //MHzvoid delay_sec(unsigned char seconds) // This function provides delay in terms of seconds{unsigned char i,j;for(i=0;i<seconds;i++)for(j=0;j<100;j++)__delay_ms(10);}void main(){// Make RB0 zeroTRISB = 0; // Make RB0 outputwhile(1){PORTB = 0x55;// Make RB0 onedelay_sec(1); // delay of one secondPORTB = 0xAA;// Make RB0 zerodelay_sec(1);// delay of one second}}

author: Pack34
author_rank: Frequent Contributor
timestamp: October 28, 2014, 03:35:45 pm
content: Are you sure that your external oscillator is functioning properly?Also I would suggest using the snipping tool, or pressing ALT+PRINT_SCREEN for screenshots. This will slim up your screenshots to the window that you're using.http://windows.microsoft.com/en-us/windows/use-snipping-tool-capture-screen-shots#1TC=windows-8

author: dannyf
author_rank: Super Contributor
timestamp: October 28, 2014, 03:43:35 pm
content: You read the datasheet, write a good piece of code and compile and burn it to your chip. And observe.in your case, your code us wrong.

author: Unknown
author_rank: Unknown
timestamp: October 28, 2014, 04:24:26 pm
content: You could try this neat little program called "PIC18 SIMULATOR IDE"http://www.oshonsoft.com/pic18.htmlit's free to tryout; so you can load in your hex file and setup some LEDs to flash or LCD etc and see if your code works.
Newbie question - Page 1
Forum section: electronics / general

author: SopaXorzTaker
author_rank: Contributor
timestamp: October 25, 2014, 04:49:28 am
content: Can I program PIC16F84A without 12V?If so, how?

author: westfw
author_rank: Super Contributor
timestamp: October 25, 2014, 08:39:50 am
content: No.However, many programmers feature "clever" ways of generating the 12V supply.*HOWEVER*, there is no way that a "newbie" should be using a PIC16F84A chip, unless their only intent is to build some device designed a couple of decades ago back when this was one of the few microcontrollers available to hobbyists that didn't require a very expensive programmer indeed. There are MANY, MANY, microcontrollers that you can buy today that are cheaper, more powerful, easier to program, and have more extensive community support. (no, it doesn't have to be an Arduino, though that's ONE good option. Newer Microchip parts are also much better/cheaper than the 16F84.)

author: SopaXorzTaker
author_rank: Contributor
timestamp: October 25, 2014, 09:40:02 am
content: I have it alreadlySmashi t with a hammer?

author: glatocha
author_rank: Regular Contributor
timestamp: October 25, 2014, 10:01:56 am
content: or keep it as a souvenir.I am not sure if the PIC16F84, was not the first uC on the market with a Flash memory.

author: westfw
author_rank: Super Contributor
timestamp: October 27, 2014, 07:31:25 am
content: QuoteThe PIC16C84 was the first microcontroller released with electrically reprogrammable program memory, but they called it "EEPROM." Shortly thereafter, Atmel released an electrically reprogrammable microcontroller where they called it "FLASH based" (I'm not sure whether that was one of the AVRs, or one of Atmel's 8051 chips, but Atmel routinely claims "first flash microcontroller.") Shortly after that, Microchip "replaced" the C84 with the F84, and started calling the memory "FLASH" memory as well (as they did with all subsequent chips.) It's never been clear to me whether there was any change in the actual technology between the C84 and F84 memory, or whether the actual technology was closer to EEPROM or FLASH (which are pretty similar technologies, especially in the early days, and at lower densities.)

author: Alex Eisenhut
author_rank: Super Contributor
timestamp: October 27, 2014, 02:12:16 pm
content: Quote from: SopaXorzTaker on October 25, 2014, 09:40:02 amI don't know. It's not like it's big, just create a "museum" drawer in your parts bin. I have a windowed 12C508 just because it's so unusual to see a ceramic 8-pin DIP with quartz window.I'll never use the part, I sold my UV eraser years ago.

author: SopaXorzTaker
author_rank: Contributor
timestamp: October 28, 2014, 07:31:33 am
content: okay, will make a trinket for my Nokia

author: westfw
author_rank: Super Contributor
timestamp: October 28, 2014, 08:03:28 am
content: Get a different chip to learn/work/develop with, and when you have a project that "fits" the f84, go ahead and use it.
MachXO2, verilog and I2C - Page 1
Forum section: electronics / general

author: SpiderElectronics
author_rank: Contributor
timestamp: October 21, 2014, 11:49:43 am
content: I'm just getting started with FPGAs and I'm using the MachXO2 Breakout board from Lattice.(The same one that MikesElectricStuff used in his Nano LCD project).The MachXO2 has embedded function blocks (EFBs) containing 'hardened' implementations of such things as I2C, SPI and Counters etc.As far as I can see these are all accessed via the WISHBONE interface, and I found a few examples on Lattice's website - but all the examples use the Mico soft-processor to control the EFBs.What I'm looking for is a basic example of using the I2C function block from Verilog without the Mico soft processor. I haven't been able to find much documentation or examples on how to do that.Does anyone have any Verilog examples of accessing the I2C EFBs via wishbone?

author: jboard146
author_rank: Contributor
timestamp: October 27, 2014, 09:45:34 pm
content: This is where I got very frustrated with the MachXO2.You can use the XO2 hardware to do the I2C/SPI/UART via the wishbone interface or use an "off the shelf" verilog code. I think most people just ignore the XO2 "Hardended" EFB implementation.The WISHBONE is a standard of sorts. That allows standard communication between verilog code modules. From what little I understand you should be able to use the code wizard in Lattice create the interface. Then read/write out the wishbone interface. There is a lot of setup to get it working.I did very little experimenting with this and a buspirate. I got the buspirate to see that there was a I2C device on the address i configured, but i never got further than that. Lots of head banging against the desk and I gave up. And did what i needed to do on an AVR uC.I'm not an expert in FPGA/verilog much more of a noob in this area I may be completely wrong. It was a learning experience and a not very good one. I need to revisit the XO2 again.

author: Spikee
author_rank: Frequent Contributor
timestamp: October 27, 2014, 11:18:17 pm
content: There is an example project and code somewhere ...
FTDI - GetBitMode command - Page 1
Forum section: electronics / general

author: Zvika
author_rank: Newbie
timestamp: October 27, 2014, 01:59:33 pm
content: Hi,I'm NB in FTDI programming.Using FT2232D and Linux driver ftd2xx, I'm trying to read the values on channel A pins while in bit-bang asynchronous mode.The pins were configured as output using SetBitMode command.The FT_Read command returns wrong value.However, the FT_GetBitMode command, from some reason I cant understand, returns the correct value.FT_GetBitMode:Get the current value of the IO bit mode.FT_STATUSFT_GetBitMode(FT_HANDLE ftHandle, PUCHAR pucMode)Parameters:ftHandleHandle of the device.pucModePointer to unsigned char to store bit mode value.Return ValueFT_OK if successful, otherwise the return value is an FT error code.Is it OK to use the FT_GetBitMode in such way (to read the pins value)?What is the usage that require configuring the pins as input?thanks.
Documentation for Lattice components library? - Page 1
Forum section: electronics / general

author: mc
author_rank: Regular Contributor
timestamp: October 22, 2014, 08:06:56 pm
content: I've been getting a little bit time to try and learn VHDL with my Lattice MachXO2 Pico board, however I'm struggling to find the right documentation.For example, I'd been trying to configure the onboard oscillator so I could get a suitable clk signal. Despite going through all the obvious parts of the Lattice site, I eventually found out what I needed via a google search, and that there is a lattice components library. Now I know it exists, I've still not found any official documentation about said library.I suspect it's a case of me not seeing the wood for the trees, so can somebody please point me in the right direction?