hybridfree/eevblog-posts huggingface dataset:
nanoPI - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: January 04, 2017, 10:15:51 pm
content: nanoPI

author: CM800
author_rank: Frequent Contributor
timestamp: January 05, 2017, 05:39:02 am
content: Oh yes. I've got 4 of them laying about, need to figure out what to do with them really.They are pretty cute, I need to get around to learning Linux better first and try experimenting with that.One of the things I want to try doing is to run one of the cores as a separate ARM core on bare-bones, and communicating with the other cores on Linux, but I have a feeling that won't be for a while.

author: krho
author_rank: Regular Contributor
timestamp: January 05, 2017, 08:39:51 am
content: * Loose USB and ethernet connectors.* Replace ram with Low power version...* allow powering with as low as 3V power supply* Add castellated edge with all remaining pins breaking out.Now we are talking

author: legacy
author_rank: Super Contributor
timestamp: January 05, 2017, 09:12:36 am
content: um?!?

author: mubes
author_rank: Regular Contributor
timestamp: January 05, 2017, 09:25:46 am
content: Quote from: CM800 on January 05, 2017, 05:39:02 amThere has been work done on this using the Trustzone features to implement a Hetrogeneous Hypervisor. I'm not sure it was for this specific chip though...the company that was doing it hadn't decided if to open source it all, but for me it sounds like a real killer feature (Linux for high level computing, Bare Metal for the realtime stuff) and it's something that's been on my I-should-do-that-when-I've-got-more-time list. I'll dig through some archives and see if I can find more info...sorry, my meat-based memory isn't quite what it once was :-/DAVE

author: krho
author_rank: Regular Contributor
timestamp: January 05, 2017, 03:42:53 pm
content: @legacy. It was a rant. AGAINST all SBCs. There is a ton of them but almost none is of SOM type and thus good for embedding in low profile/ battery powered device.

author: free_electron
author_rank: Super Contributor
timestamp: January 05, 2017, 04:03:35 pm
content: Ditch the 2.54mm and move to 1.27 or a cardedge like an so-dimm.Remove ALL connectors off board apart form a landingpad for a microusbStick in wifi and bluetooth ( both regular and BLE ) and zigbeethen we are talking. i am waiting for the rpi compute module ....

author: mark03
author_rank: Frequent Contributor
timestamp: January 05, 2017, 04:54:12 pm
content: I'm not sure why they are using "Pi" in the name. I went to the site and discovered it's using an Allwinner chip, not a Broadcom. Nothing wrong with that, of course: crappy documentation due to sloppyness, vs crappy documentation due to anal IP lawyers... pick your poison I guess

author: martinayotte
author_rank: Regular Contributor
timestamp: January 05, 2017, 05:17:44 pm
content: There is also the OrangePiZero which has WiFi added.
STM32 DAC slew rate - Page 1
Forum section: electronics / general

author: init
author_rank: Contributor
timestamp: January 04, 2017, 07:03:02 am
content: I have a rather simple problem that I can't seem to find an easy answer to. I am using an STM32F767ZI microcontroller DAC to output a square wave and I'm finding that the slew rate of the DAC going from 0V (0x000) to 3.3 V (0xFFF) is around 2.2us. This seems to be slower than expected. I have tried looking through theDatasheetbut cannot seem to find slew rates for the DAC (although I might have missed it since it is 1896 pages long). Is this sort of slew rate normal? Is there something in code that can change the speed? Where abouts can I find information about this in the datasheet?Many thanks

author: AndyC_772
author_rank: Super Contributor
timestamp: January 04, 2017, 07:29:32 am
content: Do you have the DAC output buffer enabled?What capacitive load do you have on the pin?

author: newbrain
author_rank: Super Contributor
timestamp: January 04, 2017, 07:29:54 am
content: Quote from: init on January 04, 2017, 07:03:02 amThe document you're looking at is not the datasheet, but the reference manual.STM32 MCUs usually come with three manuals: reference, programmer, and datasheet.Electrical characteristics are in the datasheet:http://www.st.com/resource/en/data_brief/stm32f767bi.pdfFor the DAC settling time, see page 177 tSETTLING: typical is 3us, max 6us.

author: init
author_rank: Contributor
timestamp: January 04, 2017, 07:46:47 am
content: Quote from: newbrain on January 04, 2017, 07:29:54 amThanks for the clarification, the typical settling time of 3us seems consistent with my scope readings so no surprises there. Answered my questions in one go, many thanks.

author: Brutte
author_rank: Frequent Contributor
timestamp: January 05, 2017, 04:42:33 pm
content: The DAC output never reaches from AREF- to AREF+ really (do not expect 0x001 to be 0.7mV and 0xFFE to be 3.2993V). Second thing is that DAC output resistance is around 15k. There is an option to connect a voltage follower with decreased output resistance of around 3 ohms and limited bandwidth but that adds some offset and nonlinearity near -AREF and +AREF.You should read the application note from ST called "Extending the DAC performance of STM32 microcontrollers".
C14 circuit  -IMPROVED - Page 1
Forum section: electronics / general

author: sul@k
author_rank: Newbie
timestamp: January 03, 2017, 11:16:50 pm
content: I have improved significantly from my previous circuit.So, please ignore my first post and second post.But, please read this post.Can anyone please help me to improve the following Genie C14 Microcontroller circuit so that it counts chances/lives by acting just like a counter?This should function as a steady hand game.Therefore, every time the input (push to make switch ) is pressed, the next LED in the sequence lights up until the 5th red LED is on.I am almost certain that I DON'T need additional components so it can just be a wiring or coding issue.Thank you, really needed the help.

author: rrinker
author_rank: Super Contributor
timestamp: January 04, 2017, 01:34:30 am
content: You're still shorting the power to do the reset. The reset switch should be yet another input to the micro which then triggers your program to stop sounding the buzzer and get ready for the next push of the control switch. There's no need to do a reset on the whole circuit each time, a reset input and the proper code would reset the LEDs, turn off the buzzer if it was on, and have the program waiting for the next player.

author: FreddyVictor
author_rank: Regular Contributor
timestamp: January 04, 2017, 09:21:43 am
content: Sorry, but what was wrong with the other 2 threads you started on exactly the same subject (and appear to have ignored the answers) ?
AMD Zen - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: December 13, 2016, 06:17:50 pm
content: the event is planned for this evening:watchitI'd like to read your opinions, guys

author: dr.diesel
author_rank: Super Contributor
timestamp: December 13, 2016, 06:28:16 pm
content: For competition reasons I'm really hopeful, but given how far behind AMD is I'm not too optimistic.

author: RGB255_0_0
author_rank: Frequent Contributor
timestamp: December 13, 2016, 07:05:51 pm
content: Going to be two generations behind Intel at best.

author: Fsck
author_rank: Super Contributor
timestamp: December 13, 2016, 08:00:12 pm
content: Intel needs to get socked in the face so we don't have to suffer the ridiculous pricing for HEDT.

author: RGB255_0_0
author_rank: Frequent Contributor
timestamp: December 13, 2016, 08:33:45 pm
content: Quote from: Fsck on December 13, 2016, 08:00:12 pmWhen AMD were on top, their processors were selling for 4 digits (Socket 940 885 for $2149) in the mid 2000s.To think AMD wouldn't gouge where possible is naive. Even if Zen competes with Broadwell-E, Intel could skip Skylake-E and go straight for Kaby Lake-E (although there's hardly any real difference).

author: Ice-Tea
author_rank: Super Contributor
timestamp: December 13, 2016, 09:45:31 pm
content: Quote from: RGB255_0_0 on December 13, 2016, 07:05:51 pmThat would be awesome. The increase in IPC from Intel the last two gens has been limited; so two generations behind would allow AMD to put up a fight for all but the most high-end models.I'd sign for that.

author: Monkeh
author_rank: Super Contributor
timestamp: December 13, 2016, 09:49:08 pm
content: Well, they made a big thing of how their CPU is comparable in performance to an i7-6900K for less power.But they never addressed pricing.And I translate their statement that they chose desktop PCs as their first release because 'they love gaming' into choosing desktop PCs because they can get away without working ECC or any serious validation..

author: RGB255_0_0
author_rank: Frequent Contributor
timestamp: December 13, 2016, 11:01:21 pm
content: I'd take the benchmarks and release dates from AMD with a large chunk of salt anyway. When there are plenty of independents and users with then in hand then I'd be more interested. AMD focused gamers because they have plenty of hard-core consumers on their GPU side who are wanting a change.If AMD competes with Intel well, not just on their CPUs but on the entire platform then they will win back a lot of consumers. Thunderbolt, multiple M.2, and plenty of PCI-E lanes and USB 3.1 is basically what I'm talking about. Yes Thunderbolt is Intel so are likely to miss out on that.I've been pretty nonchalant about all this until because AMD paper launches products and was burnt by Bulldozer and Piledriver...

author: RGB255_0_0
author_rank: Frequent Contributor
timestamp: January 03, 2017, 06:27:50 pm
content: Kaby Lake isOver to you AMD.
AVR I2C bus hangs - Page 1
Forum section: electronics / general

author: m98
author_rank: Frequent Contributor
timestamp: March 04, 2016, 04:29:00 pm
content: Hi,I'm trying to get the I2C communication from an atmega328p to a TPA6130A2 headphone amp working. The code is in the attachment.It always hangs in the i2c_start() function at the following line:Code:while(!(TWCR & (1<<TWINT)));I'm using atmel studio and theI2C library from Peter Fleury, but the exact same same problem also occurred withanother library.Also checked the bus with my scope, looks legit, so probably nothing wrong with the hardware.

author: bktemp
author_rank: Super Contributor
timestamp: March 04, 2016, 04:35:48 pm
content: What do you see on the bus?Is there any activity?When I2C bus hangs the most common problem is the SCL line being shorted to GND (or missing a pullup): An I2C master detects SCL low and waits until it gets released by the slave. So if it is shorted to GND it will wait forever (if there is no timeout in software).

author: nctnico
author_rank: Super Contributor
timestamp: March 04, 2016, 04:45:27 pm
content: I'd look very carefully at the I2C transactions. Some chips can be very picky about stop conditions before a new start condition.

author: dadler
author_rank: Unknown
timestamp: March 04, 2016, 05:53:35 pm
content: I think you neglected to shift the 7bit I2C address to the left by one bit.

author: dadler
author_rank: Unknown
timestamp: March 04, 2016, 06:17:44 pm
content: QuoteQuoteYou have:QuoteTry changing this to:QuoteI2C_WRITE == 0, but it's a reminder/placeholder for when you need to use I2C_READ.

author: m98
author_rank: Frequent Contributor
timestamp: March 04, 2016, 08:05:18 pm
content: Thanks, exactly that was the error.

author: rx8pilot
author_rank: Super Contributor
timestamp: March 04, 2016, 09:36:19 pm
content: I have done the same thing. More than once.

author: dadler
author_rank: Unknown
timestamp: March 04, 2016, 09:40:52 pm
content: Quote from: rx8pilot on March 04, 2016, 09:36:19 pmThat's how I recognized it immediately, I did the same thing!

author: rx8pilot
author_rank: Super Contributor
timestamp: March 04, 2016, 09:43:40 pm
content: This is why I love this group. Its hard to make a mistake that someone else has not yet learned the hard way.Sent from my SAMSUNG-SM-G890A using Tapatalk

author: boffin
author_rank: Unknown
timestamp: January 03, 2017, 05:37:05 pm
content: And yep, I ran into this at the weekend as well with some i2c modules I had bought. They referred to the addresses including the shift left for R/W (so they said they were settible to 0x10, 0x12, 0x14 for each module) but in reality (and the Atmel libraries) that meant 0x08, 0x09, 0x0a...2 hours to figure it out (i've done next to no i2c in the past), 30 seconds to fix. My analog discovery also decoded it the same way as the library named it, so I'm more inclined to say that's the correct way of referring to it.I poured through the i2c specifications, and they really don't deal with the numbing-address convention strongly enough to say that this guy was wrong in his little 3rd party module, but wow, "that's a trap for young players"
IGNORE this post - Page 1
Forum section: electronics / general

author: sul@k
author_rank: Newbie
timestamp: January 01, 2017, 02:44:22 pm
content: Can anyone help me to improve the following Genie C14 Microcontroller circuit so that it counts chances/lives?This should function just like a steady hand game.I don't think that I need additional components so it can just be a wiring issue.Thank you
STM32 SPI: How to properly send 8bits? - Page 1
Forum section: electronics / general

author: WillHuang
author_rank: Contributor
timestamp: December 30, 2016, 05:57:35 am
content: I have a function here that compiles and works fine (i.e. I'm getting the output that I want) for sending 8 bit data frames on the SPI bus for the STM32F3 dev. board.Code:void SPI1_Transfer8(uint8_t data){uint8_t dummy;(volatile uint8_t)SPI1->DR = data;//SPI1_DR = data;SPI1->CR1 |= SPI_CR1_SPE;SPI1_Disable();}Although I can compile the code fine, Keil is showing me an error on lineCode:(volatile uint8_t)SPI1->DR = data;How can I fix this?Thanks in advance!

author: Jeroen3
author_rank: Super Contributor
timestamp: December 30, 2016, 06:35:26 am
content: General rule: you can't cast the left side of an assignment.Also, it will give an hardfault when try to force this.QuoteThe SPI1->DR register is already defined as an volatile uint16_t in the header. C will perform animplicit type conversionwhen you use it.And you will have to wait for SPI to finish. The SPI Master is completed when RXNE = 1 and BUSY = 0.
PIC18: Loading a value into EEPROM at compile / program time. - Page 1
Forum section: electronics / general

author: DTJ
author_rank: Super Contributor
timestamp: January 02, 2017, 04:38:44 am
content: I'm using MPLABx, XC8 lite and a P18LF14k22I want to program a value (a preset 'address') into the EEPROM when its programmed. How do I do this under XC8.Previously under C18 I used the following and it worked fine:Code:#pragma romdata eedata_scn=0xf00000 // 3 lines instruct compiler torom unsigned char eedata_values = {'0'};// preload address "0" ==> eeprom#pragma romdataBelow is what I think is the appropriate section from the XC8 Compiler User Manual:QuoteHow do I interpret that?It seems to be saying that you can't write values to EEPROM directly in the compiler for 8 bit / P18 devices with XC8I've tried a few variations of the __eeprom / eeprom command but they won't compile.Google's not been helpful to me today! Anyone know how I should do this please.

author: DTJ
author_rank: Super Contributor
timestamp: January 02, 2017, 05:53:59 am
content: As usual shortly after posting I manage to answer my own question!As I can't delete my post I'll pop the solution here just in case other noobies like me find it useful.I managed to get the __EEPROM_DATA() macro to work. Placing it after the includes in my code.QuoteIt seems others have had the problem too:http://electronics.stackexchange.com/questions/108310/pre-defining-eeprom-values-in-xc8-compiler
TWI communication problem - Page 1
Forum section: electronics / general

author: dan3460
author_rank: Frequent Contributor
timestamp: December 28, 2016, 03:08:41 am
content: I'm trying TWI for the first time and I run into a problem that got me stuck. The following piece of code supposed to initialize TWI, send the address of the slave and then send another piece of data to the slave before closing. I have a blinking led that tells me that the function was run. I added the commented section in the middle to check for error and exit, then the function executed and got the blinking led. Without the commented section it hangs at the third while. I put this in a loop so I can see what was happening at the communication lines,Code:void eraseDisplay(void){TWSR = 0x00;TWBR = 0x48;TWCR = (1<<TWINT)|(1<<TWSTA)|(1<<TWEN)|(1<<TWIE); //Starting TWI communicationwhile(!(TWCR & (1<<TWINT)));TWDR = LCDA ; // Write the device address to the busTWCR = (1<<TWINT)|(1<<TWEN)|(1<<TWIE);while(!(TWCR & (1<<TWINT)));//if (((TWSR & 0xF8) != TW_START) && ((TWSR & 0xF8)!=TW_REP_START))//{//TWCR=(1<<TWINT)|(1<<TWSTO)|(1<<TWEN)|(1<<TWIE);//return;//}TWDR = 0x1F;// Write the data to be transmittedTWCR = (1<<TWINT)|(1<<TWEN)|(1<<TWIE);while(!(TWCR & (1<<TWINT)));TWCR=(1<<TWINT)|(1<<TWSTO)|(1<<TWEN)|(1<<TWIE);setCursor(0,0);}On the scope I can see the SDA line coming down from high and I can see the SCL line with the clock at about 100Khz. The code on the SDA corresponds to the slave address + write. Then the two lines get pulled down for several mS, then the address is repeated (I think) before the TWSTO.I used a I2C scanner and that reported the address of the device at 0X27. Which is the address that I'm using here. By looking at DSC_1191, looks to me that the device is not ACK, therefore the buffer for the data is not empty for new data, reason why it hangs.Is that correct? How I troubleshoot this problem.Thanks guys.

author: dan3460
author_rank: Frequent Contributor
timestamp: December 29, 2016, 12:12:24 pm
content: In case anyone follows this post. I solved the problem and it was a software problem. I had commented out other part of the software but I missed one statement that was messing up the sequence of calls to TWI, nothing to do with hardware.
someone with Gnat(ADA) for HPPA (HP-Risc) ? - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: December 28, 2016, 07:26:47 pm
content: so I happen to have an HP-PA workstation here, loaded with linux-64bit; the system is built in a sleek, silent tower casing and also available as a rack-mount option, it supports up to 16Gbyte of ram, and it would be fab, if I only I haddev-lang/gnat-gccon it.Code:sci-electronics/ghdlHomepage: http://ghdl.free.frDescription: Complete VHDL simulator using the GCC technologyLicense: GPL-2ghdl is fab because it allows to simulate vhdl, but it needs gnat to be compiler.Gnat needs a bootstrap, and unfortunately there are just a few architectures in the listCode:amd64? ( $url/src/gnatboot-${BOOT_SLOT}-amd64.tar.bz2 )sparc? ( $url/src/gnatboot-${BOOT_SLOT}-sparc.tar.bz2 )x86? ( $url/src/gnatboot-${BOOT_SLOT}-i686.tar.bz2 )ppc? ( $url/src/gnatboot-${BOOT_SLOT}-ppc.tar.bz2 )ppc is deprecated, there is no support for ppc64, so no IBM Power{4,5,6,7} are supported, and hppa is not in the list ='(do you happen to have a bootstrap for HPPA2?HPUX? Linux-hppa? Let me know

author: legacy
author_rank: Super Contributor
timestamp: December 29, 2016, 12:20:54 am
content: it seemsbroken
FPGA face and object detection - Page 1
Forum section: electronics / general

author: Hofbrau
author_rank: Newbie
timestamp: December 25, 2016, 10:52:14 pm
content: About a year ago I worked on an FPGA based face detection system that achieved reasonable performance on cheap hardware.We reported performance of about 5 frames per second on VGA resolution images, but it could easily achieve 10-15 fps with the addition of pipelining.Another bottleneck was our memory implementation. We would wait for a full frame to write into memory before processing and manipulating the original image for display.I was wondering if anyone has worked on or seen compelling results from real time FPGA based face/object detection?It would be interesting to see how our results compared to the community and not just journal publications.For reference our project documentation is archived on: (and yes, its dense)http://www.dejazzer.com/eigenpi/facedetection/E50FinalReport.pdfAnd a very brief demo video:https://www.youtube.com/watch?v=aj4FEovXVXM&feature=youtu.be

author: Scrts
author_rank: Frequent Contributor
timestamp: December 28, 2016, 09:19:13 pm
content: I saw Xylon demo on face detection, but they were using Zynq:As you can see, they are also doing other detections: eyes, cheeks and lips. Original video claimed to be 1080p60, but captured at 30FPS.I don't see any reason why you could not do anything beyond 1080p60, you just need more bandwidth with your DRAM.
PIC18F and CLKO on RA6:   Output not working - Page 1
Forum section: electronics / general

author: smoothVTer
author_rank: Regular Contributor
timestamp: December 12, 2016, 06:12:48 pm
content: Hello,Device: PIC18F46J50http://ww1.microchip.com/downloads/en/DeviceDoc/39931b.pdfI'm using the Explorer 8 Discovery development board from Microchip, as well as the PIC18F46J50 plug-in module. So far, everything has been working as expected.I am interested in using the oscillator mode as described in this datasheet, INTOSCPLLO When this mode is chosen, the instruction clock is supposed to be output on pin RA6:I am seeing no clock output at all from pin RA6 on the scope.What am I doing wrong? Below is my code:Code:#include <xc.h>// CONFIG2L#pragma config OSC = INTOSCPLLO // Oscillator (INTOSCPLLO (CLKO-RA6))#pragma config T1DIG = OFF // T1OSCEN Enforcement (Secondary Oscillator clock source may not be selected)#pragma config LPT1OSC = OFF // Low-Power Timer1 Oscillator (High-power operation)#pragma config FCMEN = OFF // Fail-Safe Clock Monitor (Disabled)#pragma config IESO = OFF // Internal External Oscillator Switch Over Mode (Disabled)#BYTE REFOCON = getenv("SFR:REFOCON") // More portable; show in Window->PIC memory views->SFR#BIT RODIV0 = REFOCON.0#BIT RODIV1 = REFOCON.1#BIT RODIV2 = REFOCON.2#BIT RODIV3 = REFOCON.3#BIT ROSEL = REFOCON.4#BIT ROSSLP = REFOCON.5#BIT ROON = REFOCON.7void main(void){ROSEL = 0; // Use system clock as the base clockROON = 1; // Turn on reference clock output on RB2; debugging to check if REFO = 8MHz; it isTRISA = 0b00000000; // Make sure RA6 is set as an outputTRISB = 0b00000000; // Make sure RB2 is set as an outputwhile(1){//nop here, nothing to do, just checking clock setups}return;}

author: voltsandjolts
author_rank: Unknown
timestamp: December 12, 2016, 09:21:19 pm
content: See Note 1 at the bottom of the picture you supplied. Maybe:OSCTUNEbits.PLLEN = 1;

author: smoothVTer
author_rank: Regular Contributor
timestamp: December 12, 2016, 11:47:01 pm
content: After setting this up correctly, still no output on RA6 for the CLKO ( RA6 ) pin.Ooops, yes, I must set PLLEN = 1 in order to enable the PLL. That bit was missing from my code above, as well as the PLLDIV setting, which must be divide-by-2 in order to get a 4MHz input into the PLL.RA6 does not seem to be a PPS pin so I am still unclear as to why there is no CLKO output.

author: taustin
author_rank: Contributor
timestamp: December 28, 2016, 05:54:22 pm
content: Is this working for you yet?If the pin is also a shared analog input, try explicitly turning off the analog input. This has caught me and the students I work with many times. Analog input is turned on by default and even the most simple output test won't work.Good Luck!
1-wire interface using timers, is it possible? - Page 1
Forum section: electronics / general

author: void_error
author_rank: Frequent Contributor
timestamp: December 25, 2016, 06:13:21 am
content: The micro in question isthis one. Also, here's a simple app note for the 1-wire bus:http://ww1.microchip.com/downloads/en/AppNotes/01199a.pdfThe bus will operate at standard speed. Here's my idea:Use a timer module with gate control, like Timer 1, 3, 5, or 7 and configure the 1-wire bus pin as open drainReset: Preload timer, start timer, enable timer overflow interrupt, drive bus low (for 480us). Release the bus at next interrupt, reload the timer so it overflows after 480us, enable timer gate, gate interrupt and overflow interrupt. If there's a gate interrupt then there's at least one device present so disable overflow interrupt.Write 0 and write 1 are simpler.Reading would be done in a similar way to reset, using timer gating but with an extra timer overflow interrupt at bus sampling time.For the record, I know it can be done using UART but that might be a bit tricky with most of the pin functions already assigned.

author: Ian.M
author_rank: Super Contributor
timestamp: December 25, 2016, 06:33:58 am
content: Theoretically yes, but if you have any other interrupt sources active at the same or higher priority level, the resulting latency jitter will make it extremely difficult to meet the timing specs. Also you may run into problems with the delays caused by high level language interrupt context saving code.As your PIC has five UARTs, PPS and I/O pin open drain control, is it really so difficult to find a free UART and a PPS capable pin for the bus interface?

author: void_error
author_rank: Frequent Contributor
timestamp: December 25, 2016, 08:47:09 am
content: Quote from: Ian.M on December 25, 2016, 06:33:58 amI figured that might be a problem as I'm going to have quite a lot of interrupts, IOC, INT0, INT1, INT2, INT3, two UARTs, a timer, also two other modules, and maybe two from MSSP if needed so the 1-wire bus related interrupts should have the highest priority even with Fosc at 16MHz - that would be a 16MHz crystal with 4x PLL. The interrupt service routines would have to be kept as short as possible.QuoteTheoretically no, but practically it would make a mess out of the PCB layout and it's already starting to look ugly.

author: void_error
author_rank: Frequent Contributor
timestamp: December 25, 2016, 11:35:43 pm
content: This is slightly off-topic, but I want to check something...If IOC is enabled on a port, say PORTC for example, and some of the pins output a PWM signal, the interrupt will be triggered whenever the PWM signals on those pins change state according to the IOC polarity setting on that pin?Dumb question, it seems I can't brain today.
Help with identification (Photohelic Chip I think- A3030) - Page 1
Forum section: electronics / general

author: Andy-In_over_my_head
author_rank: Regular Contributor
timestamp: December 25, 2016, 02:34:58 am
content: Could someone please help me find the datasheet on this? (photo attached)A3030B0542FI'm pretty sure it's a photohelic micorchip sensor...Why is it that some products are just so damn hard to find data on?I understand I'm new to all of this, but most of the time, I can search for 30 minutes longer and find something...But other times, I get this issue..

author: amyk
author_rank: Super Contributor
timestamp: December 25, 2016, 06:47:41 am
content: Agilent/Avago/Broadcom() ADNS-3030. Results found on the Internet suggest it is similar to the ADNS-3040, for which you can easily find a datasheet.

author: RogerRowland
author_rank: Regular Contributor
timestamp: December 25, 2016, 07:33:06 am
content: Quote from: Andy-In_over_my_head on December 25, 2016, 02:34:58 amWell, it certainly doesn't look too similar, but maybe my eyes are getting old

author: Andy-In_over_my_head
author_rank: Regular Contributor
timestamp: December 25, 2016, 08:32:20 am
content: Quote from: RogerRowland on December 25, 2016, 07:33:06 amhaha. yeah.. like I said. I couldn't find much... and I figured that could have used something similar in its guts.

author: RoGeorge
author_rank: Super Contributor
timestamp: December 25, 2016, 03:02:18 pm
content: Maybe some info can be extracted from here (at least the pinout):AT89RFD-11: USB Mouse with Flash Memory Reference Designhttp://www.datasheetarchive.com/ADNS+3030-datasheet.htmlhttp://www.datasheetarchive.com/dl/36473aa66cc267b881da33780f313af7782c02/P/ADNS+3030http://datasheet.datasheetarchive.com/originals/library/Datasheet-025/DSA00435873.pdfand a datasheet:http://pdf1.alldatasheet.com/datasheet-pdf/view/558626/PIXART/ADNS-3000.html
Open source capacitive touch library for Cortex M - Page 1
Forum section: electronics / general

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: December 24, 2016, 11:27:08 am
content: HiAlmost every manufacturer have some parts with integrated touch peripheral in their portfolio, I wonder if there is some sort of open source libraries out there to add it to our existing non-touch MCU's.Regards
Lattice ICE40HX8K unresponsive when programed  - Page 1
Forum section: electronics / general

author: salmanmahmood
author_rank: Newbie
timestamp: December 28, 2016, 04:52:47 pm
content: Hi All,I have designed a breakout board/evaluation board for ICE40HX8K-CT256 that is an exact copy (schematics wise) of the official board available by lattice. I had a lot of issues with the design but have narrowed them down. Originally, in the schematic, the FPGA is being programmed by FT2232H using SPI. This was not working so I ordered a programming cable form LatticeHW-USBN-2B(http://www.latticesemi.com/Products/...lesforPCs.aspx) to bypass the FTDI chip and directly program the FPGA.This is now working but the FPGA is still unresponsive. By working I mean it shows no errors in the programing software (Diamond programmer by Lattice), however, all the IOs are at 3.3V regardless of what the VHDL code says. I am running a very basic VHDL code that just turns the IOs on and off and it is working on the evaluation board.Very confused why this is happening.The evaluation board I am using is:http://www.digikey.de/product-detail...874-ND/4738851Thanks in advance for the help,Regards,Salman
MCU with externally clocked USART - Page 1
Forum section: electronics / general

author: Confucij
author_rank: Newbie
timestamp: December 19, 2016, 03:48:31 pm
content: Hi!I'm trying to implement "smart card" on MCU so I'm in search of MCU with USART that is able to use clock from external source. I used to use AT91SAM7X256 a couple years ago. But now I'm curious maybe there is some alternative which is capable to handle external clock? So far I fail to find anyone

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: December 19, 2016, 03:53:42 pm
content: Many MCUs have a system to detect external clock failure and switch to an internal clock- you could use this, with the whole MCU ( and hence the UART) clocked from the external clock.Or bit-bash the UART using the external clock to clock a timer, and do the UART with timer interrupts from that timer.

author: Bassman59
author_rank: Super Contributor
timestamp: December 19, 2016, 05:32:07 pm
content: Quote from: Confucij on December 19, 2016, 03:48:31 pmJust off the top of my head (because I've been using them), the Silicon Labs EFM32 ARMs have USARTs which can be configured to run in a slave mode on an external clock. So can the NXP LPC18xx parts. I bet most of the ARMs have such capabilities.

author: Confucij
author_rank: Newbie
timestamp: December 20, 2016, 07:17:53 am
content: Quote from: Bassman59 on December 19, 2016, 05:32:07 pmNo one of of STM32 what I've looked has clock inputThank you for mentioning LPC18xx! I have watched 17xx datasheet and was sure that 18xx has same UART block.

author: Jeroen3
author_rank: Super Contributor
timestamp: December 20, 2016, 08:05:36 am
content: You'll be able to emulate using SGPIO on the LPC18xx if you're very desperate.

author: voltsandjolts
author_rank: Unknown
timestamp: December 20, 2016, 09:29:33 am
content: STM32 UART Smartcard interface is designed to support asynchronous protocol Smartcards as defined in the ISO 7816-3 standard. Both T=0 (character mode) and T=1 (block mode) are supported.

author: Confucij
author_rank: Newbie
timestamp: December 20, 2016, 10:53:17 am
content: Quote from: voltsandjolts on December 20, 2016, 09:29:33 amIn master mode. I need slave mode.

author: voltsandjolts
author_rank: Unknown
timestamp: December 20, 2016, 12:07:21 pm
content: Slave Mode - are you trying to emulate a smart card?http://hackaday.com/2016/01/18/emulating-and-cloning-smart-cards/

author: andyturk
author_rank: Frequent Contributor
timestamp: December 21, 2016, 03:16:08 pm
content: Roll your own with PSoC's Universal Digital Blocks (UDBs)?http://www.cypress.com/blog/psoc-sensei-blog/verilog-implementation-transmit-uart
fgpa, interfaced to SIM72 fast page - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: December 18, 2016, 07:39:21 pm
content: I wonder if someone has already implemented something like that.It would be cute, also because those ram are cheap nowadays.what do you think, guys ?I also need it in order to add 64Mbyte(1) to my soft core(1) I happen to have four modules, 32Mbyte each

author: helius
author_rank: Super Contributor
timestamp: December 18, 2016, 07:54:22 pm
content: The standard 72-pin DRAM SIMMs are all 5V; even when the DRAM chips on them are 3.3V ("V" part code identifier), they use level translators to 5V on the interface.Since very very few FPGAs are 5V compatible these days, this means (potentially) two level translators facing each other: to go from 3V (or 1.5V or whatever the FPGA has) to 5V; then 5V to 3.3V to the actual DRAM. The asynchronous RAM interface also uses more pins than later interfaces, which is costly.

author: legacy
author_rank: Super Contributor
timestamp: December 18, 2016, 08:18:40 pm
content: so it's a bad idea. Ok

author: daybyter
author_rank: Frequent Contributor
timestamp: December 18, 2016, 11:18:20 pm
content: Use sd ram?http://fpga4fun.com/SDRAM2.html

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: December 18, 2016, 11:27:41 pm
content: 3.3v non-ddr DRAMs ( chips or DIMMS) are pretty easy to interface to - the Micron datasheets are very readable - interface is same for all brands though.But if you don't need many megabytes, SRAM is by far the easiest to deal with.

author: legacy
author_rank: Super Contributor
timestamp: December 19, 2016, 12:39:59 pm
content: Quote from: daybyter on December 18, 2016, 11:18:20 pmyep, my Papilio-pro-like comes with 8Mbyte, already soldered sdram, but I need more ram (64Mbyte at least)

author: legacy
author_rank: Super Contributor
timestamp: December 19, 2016, 12:43:49 pm
content: Quote from: mikeselectricstuff on December 18, 2016, 11:27:41 pmsluuuurppp, I had forgotten to take a look in the heap of things lying in the cabinets, and , and now I happen to have a few 128Mbyte sticks on my desktopso, I just need to find a DIMM-socket

author: legacy
author_rank: Super Contributor
timestamp: December 19, 2016, 12:50:38 pm
content: a fewtipsfrom electronics-dot-stack

author: legacy
author_rank: Super Contributor
timestamp: December 20, 2016, 07:41:25 am
content: if you need 128Mbyte of ram, what do you use ?

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: December 20, 2016, 10:58:36 am
content: Quote from: legacy on December 20, 2016, 07:41:25 amTwo 512M SDRAM chips - not cheap but easy to interfaceDDR - cheaper but more work to interfaceNon-DDR DIMM - needs a lot of pins and may be harder to find these daysOr for applications where it would be appropriate :NOR flash - super-easy to use, but long write and very long erase timesNAND flash - easy to interface but needs ECC and bad block management.
RN42 and Windows 10 - Page 1
Forum section: electronics / general

author: Pack34
author_rank: Frequent Contributor
timestamp: December 30, 2016, 08:29:42 am
content: Does anyone know of any odd compatibility issues with using a Microchip RN42 bluetooth module and Windows 10?I've been having the most frustrating time getting this bluetooth connection reliable between the module an a Windows 10 app I made. I've been pouring through my code but I think a big give-away is that the module doesn't always create a COM port on my machines. On a new Surface it seems to almost refuse to work, but tends to work better on older machines.I wanted to blame a hardware problem with the circuit but the module pulls so little current that I'm doubting that it could be an issue.http://ww1.microchip.com/downloads/en/DeviceDoc/50002328A.pdf

author: Pack34
author_rank: Frequent Contributor
timestamp: January 03, 2017, 08:59:38 pm
content: This seems like a really odd driver problem. Same hardware works better on some computers and not others. Although on some tablets, using a USB Bluetooth adapter seems to work better than switching the internal bluetooth module over to the generic drivers.This is one of the main reasons I prefer firmware...
Arduino communicating with Processing  - Page 1
Forum section: electronics / general

author: electrochem123
author_rank: Newbie
timestamp: December 18, 2016, 06:04:00 pm
content: I am using an Arduino to move a stepper motor a number of steps based on data from processing however i am having some problems. I am struggling to send 2 bytes at a time, the code works with one byte but not two. I wrote an Arduino program that read a buffer of 2 bytes this worked but the number of steps the motor moved was not consistent with the value processing was sending it. I think this is due to arduino using either char or byte buffers and not int, how do i do this while keeping everything in int. if anyone could help me send two bytes from processing to arduino.

author: kiran_shrestha
author_rank: Regular Contributor
timestamp: December 20, 2016, 05:48:50 am
content: Why dont you leave your code .. I cant see whats there in the code creating problem...
This sub-forum needs one non-partesian sticky with course and video content - Page 1
Forum section: electronics / general

author: Cliff Matthews
author_rank: Unknown
timestamp: December 18, 2016, 12:50:52 am
content: Other forums have resource stickies,this one has zero, nada, ninguno. Perhaps a link list would work by manufacturer like:General help videos by architecture==========================PSoC Creator 101 Lessons........................This is not a criticism, just an observation. Those haunting this area are quite adept at typing code, so share a link. Strictly non-fanboyish (though all have preferences).Maybe some coders have some YT channels or favorite .edu links to share?

author: Cliff Matthews
author_rank: Unknown
timestamp: December 19, 2016, 05:24:37 pm
content: User EZ24 is already sorting many YTube EE links together and I gather Dave prefers the sticky to be kept inOther Blog Specific.

author: ralphrmartin
author_rank: Frequent Contributor
timestamp: December 19, 2016, 06:19:48 pm
content: No, it doesn't. I'm sick of watching 20 minutes of video to get 30 seconds of useful information that I could read.A few videos may be useful e.g. a demo of how to do something practical, like disassembling something tricky. Explaining e.g. the 8051 instruction set is better done in words and diagrams.

author: Cliff Matthews
author_rank: Unknown
timestamp: December 19, 2016, 07:22:52 pm
content: Quote from: ralphrmartin on December 19, 2016, 06:19:48 pmThe singular sticky would be purpose made for the uninitiated entering the various camps of the MPU and FPGA world. Perhaps you never tire of having your favorite sub-forum filled with the same basic questions over and over, but FWIW other sub-forums have a place(s) where newbies can find help before needlessly taxing the cerebral facilities of others.

author: EEVblog
author_rank: Unknown
timestamp: December 19, 2016, 08:31:01 pm
content: Quote from: Cliff Matthews on December 18, 2016, 12:50:52 amHow about you make one and request it be made sticky?

author: Cliff Matthews
author_rank: Unknown
timestamp: December 19, 2016, 08:44:58 pm
content: Quote from: EEVblog on December 19, 2016, 08:31:01 pmI just might. EZ24 PM'ed me with interest in the same, but FPGA seems like black magic for older repair guys like us. I'm flying to the Caribbean tomorrow for 3-weeks so maybe I'll put myself to do some research on return. My son's and I are trying our hands at some PSoC 5LP's for now, but I promised them Cyclone boards if they do well. Happy holidays!

author: Luminax
author_rank: Regular Contributor
timestamp: December 20, 2016, 04:42:10 am
content: I'm thinking of getting one of the dev board that Dave made a comparison video of, maybe I can join in on the black magic funAll joking aside, beside the two big camps (which are now one) MicroChip and Atmel, might as well look at other niche/market specific/application specifics Microcontroller like Renesas, Panasonic(If they still exist when we compile the data), etc etc and maybe someone(me included) can very well develop a beginner friendly dev board.Just throwing out my 2 ringgit (not much value seeing as our currency is dropping rapidly)
General Question  - Page 1
Forum section: electronics / general

author: RenesasT
author_rank: Newbie
timestamp: December 23, 2016, 05:40:02 am
content: Hello,I just joined this forum.I have some question to ask, but as I am not familiar with the community, so I will ask my other questions latter.I will enter into this community by asking simple question as follow:Does IR2118 is compatible with 5V input coming from microcontroller? I am not getting answer in the datasheet.I just want to drive mosfet with both the voltages 12V and 24V.Please help me. Your help would be precise for me.

author: Someone
author_rank: Super Contributor
timestamp: December 23, 2016, 06:41:58 am
content: A good question to start learning from, the VCC for the buffer is specified as 10 to 20V. The logic input has thresholds for high and low at 9.5V and 6V respectively, but the IR2118 does have a pullup allowing for some creativity driving it with an open collector (or drain) output:https://en.wikipedia.org/wiki/Open_collector

author: RenesasT
author_rank: Newbie
timestamp: December 23, 2016, 07:13:32 am
content: HI,Thanks for your reply. It is helpful to me.As I am using micro-controller to generate PWM pulses. The micro-controller can be able to generate pulses of amplitude 5V only. Please help me to understand, How can I switch MOSFET using this IC IR2118.Your help will start my stuck project. Please help me.

author: BrianHG
author_rank: Super Contributor
timestamp: December 23, 2016, 07:28:06 am
content: Can you show us how you are using your mosfet?Do you have part of a schematic?These things would help. There are many mosfet gate drivers out there and without knowing the kind of system voltages you are working with & how you are using the mosfet, it is difficult to offer a good solid recommendation where I wouldn't want to lead you to throwing out time and money on parts which may not work out for you.

author: RenesasT
author_rank: Newbie
timestamp: December 23, 2016, 07:51:05 am
content: Hello BrainHG,Thanks for your reply.I am using MOSFET having part number IRF 3205.As I am providing 12V VCC to the driver IC IR2118 and i/p PWM pulses are from micro-controller. I am not getting o/p of IC IR2118. The O/p of IC IR2118 will go to the gate of IRF3205 MOSFET.Please help me in this.

author: BrianHG
author_rank: Super Contributor
timestamp: December 23, 2016, 09:53:03 am
content: The IC IR2118 isn't nice with microcontroler PWMs since it needs an above input voltage of 9.5v to activate the output.If you were to use an IR2127 instead (remember to invert the output of your PWM), the input only of this mosfet driver needs only 3v to activate the output. Everything else in your circuit should remain the same.
ad9850 - Page 1
Forum section: electronics / general

author: ThePotato
author_rank: Newbie
timestamp: December 18, 2016, 08:26:33 pm
content: hello.i just made a frequncy generator with AD9850 and i want to have and a pwm signal which i can controll it with a rotary potentiometer. how can i do that?

author: xtoffer
author_rank: Contributor
timestamp: December 18, 2016, 10:55:31 pm
content: I haven't used the part but it seems you clock-in the frequency and phase data either serially or in parallel bursts. So I'd imagine you'd want/need a microcontroller or similar to control it with. Then I guess you can use a potentiometer as interface if you really want, although most would probably choose a rotary encoder at this stage.
Is 18F46K80 supported by Pickit3? - Page 1
Forum section: electronics / general

author: txescientist
author_rank: Regular Contributor
timestamp: December 15, 2016, 01:48:34 am
content: Hi,I have searched but could't find the list of supported PICs by Pickit 3. Is 18F46K80 supported? I have Pickit 2 and it is not.All the best, Milos.

author: DTJ
author_rank: Super Contributor
timestamp: December 15, 2016, 01:56:55 am
content: I just checked and the 18F46k80 appears in the selection list using MPLABX v3.35 + pickit3

author: txescientist
author_rank: Regular Contributor
timestamp: December 15, 2016, 02:04:45 am
content: Thank you very much for the fast reply and good news. Just installed MPLABX, but I still can't see list of supported devices because I don't have Pickit 3 yet.

author: JPortici
author_rank: Super Contributor
timestamp: December 15, 2016, 06:11:51 am
content: of course it is! i believe that the PK3 supports all the picsbtw, you should have a supported device list in the release notes for the IDE... and if you attempt to create a new project you will see the support state when you select the programming tool/compiler

author: Bruce Abbott
author_rank: Frequent Contributor
timestamp: December 15, 2016, 06:19:00 am
content: Quote from: txescientist on December 15, 2016, 01:48:34 amUpdate your PICkit2 device file, and then it will be!https://github.com/GBert/misc/tree/master/pickit2/pk2dft

author: txescientist
author_rank: Regular Contributor
timestamp: December 15, 2016, 10:35:51 am
content: Thank you all, especially Bruce for help. I am really glad that I can still use my good old Pickit 2
dspic assembly question regarding status word carry bit and subtraction - Page 1
Forum section: electronics / general

author: snarkysparky
author_rank: Frequent Contributor
timestamp: December 17, 2016, 04:34:10 pm
content: trying to code the basic if statement in assembly in ASM30 for dspic30f2011INC pulse_timingMOV off_cnt ,W0CP pulse_timingBRA LTU loopend// if (TRUE) code in here.loopend:datasheet says CP""""Compute (f) – (WREG) and update the STATUS register. This instructionis equivalent to the SUBWF instruction, but the result of the subtraction isnot stored.""""datasheet says of BRA LTUCondition = !CIf (Condition)(PC + 2) + 2 * Slit16 ? PCNOP ? Instruction RegisterNow the SUBWF reference is wrong. dspic30F has no such instruction. I guess they mean SUB.My question is what is the result of a SUB instruction on the C ( carry bit ). The data sheet can't be bothered to explain.My guess is that if the SUB instruction results in a negative value then the C bit is set.

author: Bruce Abbott
author_rank: Frequent Contributor
timestamp: December 17, 2016, 08:54:02 pm
content: How subtract operations affect the Carry flag is described on page 17 of the sPIC30F/33F Programmer’sReference Manual:-2.2.14.1 MCU ALU Status Bits...When a subtract operation is performed, the C flag is used as a /Borrow flag.So C will be set if the subtraction wouldnotcause a borrow, ie. WREG is less than or equal to the value it is compared to.

author: jpanhalt
author_rank: Super Contributor
timestamp: December 17, 2016, 09:49:39 pm
content: I have not used that chip. But, I have used enhanced mid-range and briefly looked at the Instruction Set for your chip.I believe the comment you reference is made in reference to the 16F and 18F chips. Yes, it would have been helpful if that point had been mentioned.As for the Carry/Borrow bit, there appears to be the equivalent of subwfb instruction (i.e., subbr; see any 16F1xxx instruction set), which can save steps needed to deal with the carry/borrow bit in the Status register of the 8-bit chips.John

author: snarkysparky
author_rank: Frequent Contributor
timestamp: December 17, 2016, 11:57:48 pm
content: Found this answer on microchip forum.""""There is actaully a reason for it in hardware. A subtract is done by adding the complement. This produces a carry on a subtract exactly when there is no borrow.For example, for byte arithmetic 2 - 1 becomes 2 + 255, which produces a carry. 2 - 3 is 2 + 253 with does not produce a carry. And that is the way it is set in a PIC. """""It sounds correct to me. Any thoughts ?

author: Bruce Abbott
author_rank: Frequent Contributor
timestamp: December 20, 2016, 05:11:07 am
content: Quote from: snarkysparky on December 17, 2016, 11:57:48 pmYes, that's it.