hybridfree/eevblog-posts huggingface dataset:
code protection for microprocessor - Page 1
Forum section: electronics / general

author: jtronix
author_rank: Regular Contributor
timestamp: April 14, 2016, 04:17:27 am
content: In microprocessor it doesn't have internal memory for code but it stored on external flash which is non protected and anybody can copy. So how people are protect their processor based device ??I have gone through cryptography but in cryptography it store key in external flash so it won't secure the device..kindly advice

author: Kilrah
author_rank: Unknown
timestamp: April 14, 2016, 04:37:17 am
content: You don't.If you need to there are processors that are made specifically for this and have a small internal memory to put a key in as well as hardware modules to do the decryption transparently.

author: ataradov
author_rank: Super Contributor
timestamp: April 14, 2016, 04:37:54 am
content: Quote from: jtronix on April 14, 2016, 04:17:27 amThat depends on your device. Most MCUs that can execute code from external interfaces support scrambling on those interfaces.

author: mikerj
author_rank: Super Contributor
timestamp: April 14, 2016, 07:42:34 am
content: Quote from: ataradov on April 14, 2016, 04:37:54 amMost? I suspect those devices are in the minority.

author: ataradov
author_rank: Super Contributor
timestamp: April 14, 2016, 07:44:56 am
content: Quote from: mikerj on April 14, 2016, 07:42:34 amWell, I don't have the stats, but my thinking is, manufacturer must be pretty dumb to release a product with no IP protection. Who would design such a thing into a real product?

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: April 14, 2016, 07:52:00 am
content: Quote from: ataradov on April 14, 2016, 07:44:56 amNot every product is at risk from code copying - most standard MCUs can be unprotected for a few hundred dollars, so it doesn't offer protection from more than casual copying.Microprocessors are pretty rare nowadays as pretty much everything from within the last couple of decades will have at leas some I/O and/or memory built in.Back in the days when microprocessors were common, for those that did want some protection, it was common to use a GAL or other PLD to provide some level of protection, but again this was only good against fairly low-level attacks.Another tactic that was used was to fill unused areas with "random" data or have hidden functionality to display a copyright message ( that was obfuscated in the ROM image), so if code was copied it was very easy to prove.
DAC - Page 1
Forum section: electronics / general

author: arh8080
author_rank: Newbie
timestamp: April 14, 2016, 05:22:32 am
content: I would like to create a 16 bit DAC in STM32F103RET6. ButSTM32F103RET6 only has 12 bit DAC. How do I implement a higher resolution DAC in STM32F103RET6?Thank you. Please see link belowhttps://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&cad=rja&uact=8&ved=0ahUKEwirsPi8r43MAhUDOJoKHdXJAqoQFggoMAI&url=http%3A%2F%2Fwww.cypress.com%2Ffile%2F136326%2Fdownload&usg=AFQjCNGMTYfBJtqGyTpFVwAPRUurSabTYg&sig2=kmZVVSw8sK1GryLJgSaAhQ&bvm=bv.119408272,d.bGstanks mikerj I need for the following circuit

author: mikerj
author_rank: Super Contributor
timestamp: April 14, 2016, 07:17:18 am
content: If it's for a DC or a very low frequency applications (e.g. a low speed control loop) then you can use a timer interrupt to dither the DAC output, and low pass filter the result.
anyone interested in CPU32 or 328? - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: April 12, 2016, 06:55:54 am
content: going to design a few boards, just to know the interest here

author: dannyf
author_rank: Super Contributor
timestamp: April 12, 2016, 01:06:30 pm
content: Sign me up. Though I'm only at cpu21 and 805.

author: Scrts
author_rank: Frequent Contributor
timestamp: April 12, 2016, 02:10:49 pm
content: Please put a link and/or more information into initial post for future forum users, that actually use SEARCH feature.
PIC PWM slave problem - Page 1
Forum section: electronics / general

author: step_s
author_rank: Regular Contributor
timestamp: April 08, 2016, 01:41:08 pm
content: Hi there EEVbloggers.I'm trying to make a synchronous buck-converter, and is controlling it from a PIC16F1574http://ww1.microchip.com/downloads/en/DeviceDoc/40001782C.pdfIn order to do this I need to make PWM2 run as a slave to PWM1, to make them match, but I'm having some trouble here.Code:OSCCON = 0b11110000; //Setup for the internal OscillatorTRISA = 0b00011000; //TrisA I/O registerTRISC = 0b00011000; //TrisC I/O register//PWM 1 setupPWM1CLKCON = 0b00000000; //Setting clockPWM1PRH = 0b00000000; //PeriodPWM1PRL = 0b01000000;PWM1DCH = 0b00000000; //Duty CyclePWM1DCL = 0b00100000;PWM1PHH = 0b00000000; //PhasePWM1PHL = 0b00000000;RA2PPS = 0b00000011; //Set RA2 as outputPWM1CON = 0b10000000; //Enable PWM1//PWM 2 setupPWM2CLKCON = 0b00000000; //Setting clockPWM2PRH = 0b00000000; //PeriodPWM2PRL = 0b01000000;PWM2DCH = 0b00000000; //Duty CyclePWM2DCL = 0b00100000;PWM2PHH = 0b00000000; //PhasePWM2PHL = 0b00000000;PWM2OFCON = 0b00000000; //Off-set modePWM2CON = 0b10100000; //Enable PWM2RC0PPS = 0b00000100; //Set RC0 as outputThe PWM2OFCON is here mode 00 = independent, and the two PWMs work, running independently, at the same frequency.If I then want to make the mode "One-shot slave run mode" then PWM2 has no output. . . It's constantly low.All the other modes will result in the same problem.Anyone who know what is going on?Thanks in advance.

author: JPortici
author_rank: Super Contributor
timestamp: April 09, 2016, 08:12:03 am
content: Look at the chip's errata. Not sure if it address your problem but there is an entry named "Continuous Run Slave Offset Mode Anomaly" for the PWM module
lock bits - Page 1
Forum section: electronics / general

author: pby
author_rank: Newbie
timestamp: April 04, 2016, 04:57:44 pm
content: Hi all,I'm currently working with an ATTiny85. I've order a bunch to be pre-programmed but the programming house came back to me asking about lock bits as I've only supplied the hex file.Anyhow, I was wondering if there are any reasons not to set the lock bits on the uC (I assume it is there to prevent someone else from reverse engineering the software).Thanks

author: CatalinaWOW
author_rank: Super Contributor
timestamp: April 04, 2016, 05:35:34 pm
content: You've got the primary reason for setting them, although they can also protect against liability in the case where someone modifies the code.Reasons you might not want to set them.1. You aren't absolutely sure the code won't change before installation or delivery.2. You may want to do a field upgrade/bug fix.3. You are sensitive to the cost of the parts, and you aren't sure of the quantity you will need with this program.

author: sleemanj
author_rank: Super Contributor
timestamp: April 04, 2016, 09:05:04 pm
content: The lock bits (avr) prevent reading the flash, and on some, writing the flash (or part of it) including from within the code running on the avr itself (self programming).If you had a bootloader then write locking the non-boot section would not be helpful because your bootloader couldn't write the new code to flash when you tried to upload to it.Note that the lockbits can be cleared (only) by erasing the chip, which is why the read lock works, you can't unlock without clearing the data. This also means the lockbits do not prevent you from updating firmware, you just unlock (erase) and burn fresh firmware.IMHO there is no good reason to read lock, write locking ostensibly could prevent a bug trashing firmware.
measuring angle with gyro+acc ? - Page 1
Forum section: electronics / general

author: koray692
author_rank: Contributor
timestamp: April 01, 2016, 06:33:15 am
content: hello friends I am working to apply second order complamantary filter my imu but I couldnt know it works enough well or not I take a video which shows the two angle in the lcd first row shows with filter result and below one is shows just accelometer results.how can ? know the this system work well or not ?// k=15 , ACI_ACCx=angle of acc ACI_GYROx=angle of gyro dtc2=0,01x1 = ( ACI_ACCx - x_angle2C)*k*k;y1 = dtc2*x1 + y1;x2 = y1 + ( ACI_ACCx - x_angle2C)*2*k + ACI_GYROx;x_angle2C = dtc2*x2 + x_angle2C;video :https://drive.google.com/file/d/0B2zny8J1mP-cWGxMMTBkaWNYNDg/view?usp=sharing

author: legacy
author_rank: Super Contributor
timestamp: April 01, 2016, 07:24:05 am
content: I used two accelerometers in quadrature in order to measure the angleI have never used a gyroscope, and I do not understand your equation

author: koray692
author_rank: Contributor
timestamp: April 01, 2016, 07:58:04 am
content: how did you handle with vibrations noises ? accelometer is very sensitive to vibrations

author: legacy
author_rank: Super Contributor
timestamp: April 01, 2016, 09:48:47 am
content: it's windowed, since I need a statical value, slowly variable
ARM Cortex M7 STM3F746: external bus cache problem (solved) - Page 1
Forum section: electronics / general

author: bktemp
author_rank: Super Contributor
timestamp: March 29, 2016, 06:24:49 pm
content: I am trying to drive a display using 16bit bus connected to STM32F746's FMC.I did configure the FMC for SDRAM + SRAM (both share the same data and address lines) and write the data directly to the SRAM address where the display is connected to:Code:volatile uint16_t * const lcd_data = (volatile uint16_t*) 0x60000000;*lcd_data=value;When sending a single word I can see the FMC_NWE line pulsing once, as expected. But when sending multiple words in a burst it also pulses only once.It looks like some caching is happening somewhere, so only one write is generated despite multiple writes being requested. If I add a short pause (5us) after each write, I get the correct number of pulses and the display works, but it is much too slow.I can rule out the data cache, because it is disabed.Can any ARM expert give me a clue where the caching happens and how to solve this problem?

author: nctnico
author_rank: Super Contributor
timestamp: March 29, 2016, 08:55:46 pm
content: There isn't something like a bus arbiter cache in between? This used to be a problem with PCI I/O on x486 PCs as well where you'd needed to do a read after a write to flush the write cache.

author: Koen
author_rank: Frequent Contributor
timestamp: March 29, 2016, 11:22:44 pm
content: I had the same symptoms and adding a delay also did the trick. I've solved it by adding this :Code:MPU->RNR = 1;MPU->RBAR = 0x60000000;MPU->RASR = 0x1300002d;MPU->CTRL = ((uint32_t) 0x00000004) | MPU_CTRL_ENABLE_Msk;SCB->SHCSR |= SCB_SHCSR_MEMFAULTENA_Msk;I don't remember anything about it but you can try it.

author: bktemp
author_rank: Super Contributor
timestamp: March 30, 2016, 05:49:04 am
content: Quote from: Koen on March 29, 2016, 11:22:44 pmIt works!The only difference to my init code seems to be the TEX setting:All examples I could find used TEX level 1 so I used setting 1, but in your code it is set to 0.A bit more googeling revealed at least a short description (C, B bits set to 00):TEX = 1: memory area is set to non-cacheableTEX = 0: memory area is set to strongly orderedThat makes sense. Thanks!
ESP8266 - Si7021/SHT21 Temperature/Humidity Sensor Driver Tutorial - Page 1
Forum section: electronics / general

author: TJ232
author_rank: Frequent Contributor
timestamp: March 31, 2016, 11:04:30 am
content: I have received this nice sensor from somebody asking for a ESP8266 driver for it.You can find the result below, a Si7021 related walk-thu presentation + driver tutorial.Related article :Driver implementation for the Si7021 Temperature/Humidity Sensor.
complemantary filter with mpu6050 help ? - Page 1
Forum section: electronics / general

author: koray692
author_rank: Contributor
timestamp: March 30, 2016, 11:53:08 am
content: hello friends I am working to apply second order complamantary filter my imu but I couldnt know it works enough well or not I take a video which shows the two angle in the lcd first row shows with filter result and below one is shows just accelometer results.how can ? know the this system work well or not ?// k=15 , ACI_ACCx=angle of acc ACI_GYROx=angle of gyro dtc2=0,01x1 = ( ACI_ACCx - x_angle2C)*k*k;y1 = dtc2*x1 + y1;x2 = y1 + ( ACI_ACCx - x_angle2C)*2*k + ACI_GYROx;x_angle2C = dtc2*x2 + x_angle2C;video :https://drive.google.com/file/d/0B2zny8J1mP-cWGxMMTBkaWNYNDg/view?usp=sharing
DE0 Nano SOC - Page 1
Forum section: electronics / general

author: k4show
author_rank: Newbie
timestamp: March 29, 2016, 09:00:28 pm
content: Hello,I've done some work with FPGA's at school using just VHDL to create things like calculators with LCD displays, and a MIPS processor (just a simulation without pipelining). We used an Terasic DE2-115 board to do it. I would like to learn Verilog and get into some SOC as a learning experience. This would be as a learning tool and would really like to learn how to implement higher end things using IP Cores and using different peripherals and perhaps VGA video.Any thoughts on this board in particular?
ILI9806E LCD bad timing? - Page 1
Forum section: electronics / general

author: kamtar
author_rank: Regular Contributor
timestamp: March 25, 2016, 12:39:46 am
content: Hello,I was trying to test LCD with ILI9806E controller by connecting it to a beaglebone on his 16bit RGB bus parallel with hdmi chip.In order to avoid writing a drivers I'm letting HDMI active and just forcing it into mode480*800 16bit 60hz cvtfor a LCD to "snoop it".The result is this:Its black background with small white window. Display is in "some" way reacting on changes, when window is moved lines are moving too.(looks like lines are just repeating them self with some small change in color)I'm usingCVT (Coordinated Video Timings) with reduced blanking mode. I have checked it and it seems that signals are exactly as calculated for this resolution and timing by cvt.I have tried so many possible configurations of controllers registers that now i don't know what to try next.My question is:Is there somebody with experience who could look at picture and tell what could be wrong or tell me if its even possible to run it on such timing?ILI9806E datasheet:http://www.topfoison.com/uploads/_doc/20141607041656.pdfLCD Module (KD040FM-1A-CTP-002):http://www.lcdlcd.com/res/starteklcd/pdres/201508/20150805190408547.pdfSchematic of my board:https://www.dropbox.com/s/lvbxshx0a334n5g/lake_RGBIF_beagle.pdf?dl=0

author: daveshah
author_rank: Unknown
timestamp: March 26, 2016, 08:06:09 am
content: Not familiar with the beaglebone, but it appears that panel has a DE pin that must be low only during valid video data. Are you sure this is being controlled correctly?

author: amyk
author_rank: Super Contributor
timestamp: March 26, 2016, 03:09:05 pm
content: Are you sure it's 480x800 and not 800x480?

author: bktemp
author_rank: Super Contributor
timestamp: March 26, 2016, 03:25:28 pm
content: Did you verify the HSYNC, VSYNC, DE timing? It looks like at least one of them is wrong or inverted.
MinnowBoard Windows OS compatibility - Page 1
Forum section: electronics / general

author: CarlosRev
author_rank: Newbie
timestamp: March 22, 2016, 03:26:15 pm
content: Hello,I would like to use the MinnowBoard Turbot for a project, but I hesitate in buying it because I am not sure if the program I need is compatible with the board (I dont want to spent some money on it just to find out it is useless to me). If someone that has the board could test it for me, I would really appreciate.The program I need to run with the MinnowBoard is from the Anritsu company, here you can find the link to its download page:https://www.anritsu.com/en-US/test-measurement/support/downloads/software/dwl011051I think of using the board with Windows 8.1 to do so (the MinnowBoard will be running Windows 8.1 and I would like to have the Anritsu application on it).Someone that has the MinnowBoard Turbot (or equivalent) with a windows OS can tell me if the program is compatible? If so, I would really appreciate an image (print screen, for example) to prove that.Thank you!!
MagnetCode microC-Smartphone interfacing platform - Page 1
Forum section: electronics / general

author: KJ
author_rank: Newbie
timestamp: March 22, 2016, 03:06:59 pm
content: Hi ~ my boss has developed a whole new platform for microC-bluetooth interface. The Arduino version was developed by meWe are curious how far this thing can go~In simple,this thing enable us to utilize all available feature of smartphone such as accelerometer.For more detail please visit this websitehttp://magnetcode.com/Any feedback is welcome
Another problem - "timeout communicating with programmer" - Page 1
Forum section: electronics / general

author: Refrigerator
author_rank: Super Contributor
timestamp: March 20, 2016, 06:34:31 pm
content: So after sorting out the other problem another one arises, this time during build it looks like the PC is expecting the Nano to respond but gets nothing in return.The Nano is connected and is receiving data from the PC since the RX LED flashes every 5 secs, and the build would terminate immediatly after starting when the Nano is unplugged.This here is what i see when attempting to build:QuoteCan't figure this one out, but one line cought my eye:QuoteSo i can override this test and i guess it should upload but i don't know where to set the "-F" to do so.This turned out to be much more hassle than anticipated and i need a little help.Thanks.Otherwise ArduinoIDE works fine so i'm not sure why it wouldn't work witht the Teacup Firmware.

author: Whales
author_rank: Super Contributor
timestamp: March 20, 2016, 10:16:57 pm
content: -F simply tells avrdude to send all of the programming instructions even if it it could not properly identify what it is programming. Unless you have damaged the device signature (or other parts of the AVR) yourself, this generally means something is wrong at the communication level.According thethis pagethe nano uses the stk500 protocol. Perhaps there is a difference between stk500 and stk500v2 that is causing the problem. Try avrdude with the former.Note that the Arduino IDE uses avrdude itself. If you can program the board using the IDE then you will also be able to program it with avrdude.

author: andyturk
author_rank: Frequent Contributor
timestamp: March 20, 2016, 10:33:30 pm
content: "timeout communicating with programmer"Happens all the time talking to people I work with.

author: Refrigerator
author_rank: Super Contributor
timestamp: March 21, 2016, 06:12:40 am
content: Quote from: Whales on March 20, 2016, 10:16:57 pmSetting the programmer to STK500 didn't help.QuoteI'm using the CH340G version of arduino nano maybe that could be the problem ?

author: Robartes_m
author_rank: Contributor
timestamp: March 21, 2016, 07:02:48 am
content: I'm using the CH340G version of arduino nano maybe that could be the problem ?The UART to USB chip (CH340G in your case) does not enter into play when programming the micro through a programmer. Double check your connections from the programmer to the Nano. You need VCC & GND, MOSI, MISO, SCK and /RST .
I2C LCD with arduino - Page 1
Forum section: electronics / general

author: Dan Moos
author_rank: Frequent Contributor
timestamp: March 21, 2016, 03:04:34 am
content: I cant seem to find an I2C LCD library that works. Help!Wish I could offer more details, but Ive spent hours with libraries who's examples won't compile (syntax errors with types and the like), or just make the backlight flash, and nothing else.I have SDA on analog pin 4I have SCL on analog pin 5I have Vcc on +5vI have GND on GNDI feel dumb that I cant find the solution to what has to be a pretty common task.

author: alsetalokin4017
author_rank: Super Contributor
timestamp: March 21, 2016, 04:08:57 am
content: Have you tried this:http://forum.arduino.cc/index.php?topic=128635.0

author: Dan Moos
author_rank: Frequent Contributor
timestamp: March 21, 2016, 06:20:29 am
content: Yeah, that was one of the first libraries I tried. It gave me really weird behavior, especially a frantically blinking back light. Almost like the pins were mis-mapped in the software. Its the one I most wanted to have work too, since it was a drop in replacement for the stock, I2C-less library the IDE comes with.I did find a library that worked. I stumbled onto the library manager in the IDE and found one that seems to do what it should. So Solved I guess.I do wish I could get the one you pointed me to going though, as it seems like a more convenient solution if I could get it to work.

author: obiwanjacobi
author_rank: Super Contributor
timestamp: March 21, 2016, 06:52:41 am
content: You have just experienced one of the design problems with most Arduino Libraries. They almost all mix different responsibilities in a single library, namely the knowledge of the LCD (HD44780) protocol and how it is physically connected to the Arduino. This means that you almost always have to hack into libraries to make the work with your specific setup. This will also deter you from updating to a newer (and possibly better) version because of the changes you've made.But don't be discouraged. There is a lot of info to be found and a lot of people are working on code for the Arduino. The good stuff will rise to the surface.Good luck with your project.PS: In my Arduino Template Library (see signature) I attempt to solve this. But this C++ template library is not for the beginner.
Software simulate contactor  - Page 1
Forum section: electronics / general

author: Nhan95
author_rank: Contributor
timestamp: March 20, 2016, 06:38:00 am
content: I want to find a sofeware simulate contactor, relay, timer, ... Could you help me ?

author: cio74
author_rank: Regular Contributor
timestamp: March 20, 2016, 03:14:11 pm
content: http://www.labcenter.com/vmodels/peripherals.cfm
[SOLVED] Teacup firmware problem - "Build terminated Abnormally" - Page 1
Forum section: electronics / general

author: Refrigerator
author_rank: Super Contributor
timestamp: March 20, 2016, 08:44:05 am
content: I decided to use the teacup firmware along with an arduino nano to control my 3d printer that i'm making.I followed the tutorial on the teacup firmware and all was good untill it gave me a "Build terminated Abnormally" message when i tried to build my settings.QuoteI tried looking into solving this issue but after finding and reading some discussion about it i'm still lost.I have almost the same settings as here :http://reprap.org/wiki/File:Teacup_Configtool_Settings.pngthe only difference being i have my Arduino directory field empty, in which case it should find the required files automatically.I'm about as smart as a bag of rocks when it comes to software/firmware so help would be appreciated.Thanks.

author: andersm
author_rank: Super Contributor
timestamp: March 20, 2016, 09:26:54 am
content: Try running the failing command from the command line, so you'll get the real error message.

author: sleemanj
author_rank: Super Contributor
timestamp: March 20, 2016, 10:32:59 am
content: Quote from: Refrigerator on March 20, 2016, 08:44:05 amSounds to me like it's not, at least avr-gcc.exe probably isn't in the path and when it attempts to execute it, it fails.Feed it the appropriate base directory for your arduino installation.

author: Refrigerator
author_rank: Super Contributor
timestamp: March 20, 2016, 11:35:47 am
content: Almost made it to work.Wrote "C:\Program Files\Arduino" into the field and it looked like it helped but then the build terminated.First i getQuoteAnd then.QuoteEDIT:After a quick read on the ld.exe crashes it only happens to WinXP users and only started happening with newer Arduino IDE versions, but it happens to those who try are just programming with arduino and not using any firmwares, seems odd since i've been playing with my arduino nano on my WinXp laptop without any ld.exe crashes yet. I remember seeing a message in the installer regarding possible issues that can occur while using ArduinoIDE on old Xp machines.A bit more reading reveals that this issue is due too many variables.

author: Refrigerator
author_rank: Super Contributor
timestamp: March 20, 2016, 01:08:48 pm
content: Uninstalled current version of arduino IDE and installed ArduinoIDE 1.0.6 and everything works fine and dandy.Except for uploading, seems like avrdude.exe can't find where my nano is plugged in.
about verilog,what is meaning of  if(!res_n) - Page 1
Forum section: electronics / general

author: david-IT
author_rank: Contributor
timestamp: March 24, 2016, 09:14:45 am
content: Reg[17:0] cnt;always@(posedge clk)if(!rst_n)cnt<=18'd0;elsecnt<=cnt+1'b1;What is the meaning of if(!res_n)?

author: david-IT
author_rank: Contributor
timestamp: March 24, 2016, 09:52:26 am
content: don't tell me no one knows here

author: Codemonkey
author_rank: Regular Contributor
timestamp: March 24, 2016, 10:02:42 am
content: It translates to "if res_n signal is low"

author: david-IT
author_rank: Contributor
timestamp: March 24, 2016, 10:26:43 am
content: Quote from: Codemonkey on March 24, 2016, 10:02:42 amthanks for reply,i think i am a little understand now

author: Scrts
author_rank: Frequent Contributor
timestamp: March 24, 2016, 07:41:02 pm
content: Quote from: Codemonkey on March 24, 2016, 10:02:42 amJust for the reference: ! means "not". So it translate if rst_n is NOT high or, as being said, if rst_n is low.
HC908 - Difference between /RST and cycling power? - Page 1
Forum section: electronics / general

author: Circlotron
author_rank: Super Contributor
timestamp: March 17, 2016, 10:23:11 pm
content: A piece of equipment we make has a 68HC908JK3ECPE micro in it and it runs 24/7. Customer rings up and says device is acting up. Field service tech goes out and has a look and finds, sure enough, something is wrong. Still functioning but the A/D ports were not reading some pots properly, among other things. Push a reset switch that pulls the micro reset line low and still no improvement. Replaces board and all is good. I take a look at it when he brings it back and it fires up and goes just fine. 18 hours later it is still all okay.What I want to know is this: is there a difference on that particular micro between resetting by pulling the reset line low, and fully powering off then on again? Maybe in theory there shouldn't be a difference, but could there be something in the micro that the reset line has no effect on but only powering down will clear?

author: Ian.M
author_rank: Super Contributor
timestamp: March 17, 2016, 10:32:28 pm
content: Even if the silicon doesn't have any reset related design flaws, just about any LSI CMOS chip can suffer from ESD or EMI transient induced latchup, or a single event upset due to cosmic or background radiation, and firmware can suffer from uninitialised variables.

author: westfw
author_rank: Super Contributor
timestamp: March 18, 2016, 01:28:36 am
content: Frequently, a RESET does not modify RAM memory contents, while a power-cycle does (nominally leaving RAM with random values, but frequently with conveniently beguiling zeros.)Your overall problem description sounds suspiciously like an "uninitialized variable has a particularly obnoxious value" sort of error... Does your code use malloc()? Are you sure that your malloc() clears the returned chunk of memory like it's supposed to (and many people expect. But it's a frequent optimization of "baby" mallocs on deep embedded systems.)

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: March 18, 2016, 01:46:48 am
content: Quote from: westfw on March 18, 2016, 01:28:36 amMalloc() typically doesn't zero allocated memory, while calloc() does.

author: Circlotron
author_rank: Super Contributor
timestamp: March 18, 2016, 04:34:39 am
content: Quote from: westfw on March 18, 2016, 01:28:36 amNo, it's written in assembly.

author: obiwanjacobi
author_rank: Super Contributor
timestamp: March 18, 2016, 07:30:20 am
content: I can see some differences described in 14.3http://cache.freescale.com/files/microcontrollers/doc/data_sheet/MC68HC908GP32.pdf
Anyone else having problems connecting to Digistump.com ??? - Page 1
Forum section: electronics / general

author: Refrigerator
author_rank: Super Contributor
timestamp: March 17, 2016, 04:48:41 pm
content: I need software to make my digispark compatible with arduino IDE but i can't connect to digispark.com. Are they down or is it just me ??Btw i get an errorERR_CONNECTION_REFUSED

author: MK14
author_rank: Super Contributor
timestamp: March 17, 2016, 04:56:05 pm
content: Seems to be working just fine for me.This website AUTOMATICALLY checks sites for you:http://www.downforeveryoneorjustme.com/E.g.http://www.downforeveryoneorjustme.com/digispark.com

author: Refrigerator
author_rank: Super Contributor
timestamp: March 17, 2016, 05:27:56 pm
content: Ohh sorry i meandigistump.com not digispark, i'll try that site of yours.

author: Refrigerator
author_rank: Super Contributor
timestamp: March 17, 2016, 05:30:50 pm
content: Yup, it's down, i wonder why ??

author: neslekkim
author_rank: Super Contributor
timestamp: March 17, 2016, 09:22:11 pm
content: "Digistump.com is currently offline while we migrate to a new server, it should be back up in about an hour. Thank you."
FTDI EVE Video Controller - Page 1
Forum section: electronics / general

author: westfw
author_rank: Super Contributor
timestamp: March 16, 2016, 05:19:37 pm
content: Has anyone experiemented with the FTDI "EVE" (Embedded Video Engine) chips? These are small chips with internal memory that implement a fancy object/sprite oriented GUI display, designed to be driven by smallish systems over SPI, and to drive modern AM LCD displays of appropriate resolution. (nbits RGB + Sync + Clocking output)I'm particularly curious about driving more legacy displays: if you only care about B&W, can you set up a simple resistor or two from one of the color bits and get NTSC video?What about those B&W LCD displays that show up on the surplus market so often?Are there any forums where the FTDI chips in general get substantial discussion (TECHNICAL discussion!)? Their documentation in general is a bit weak, especially when it comes to their newer and more programmable chips.

author: bktemp
author_rank: Super Contributor
timestamp: March 16, 2016, 06:01:51 pm
content: You can't drive passive LCDs, it only supports TFT LCDs, but you should be able to get B&W PAL/NTSC video signals or VGA output using a DAC if the resolution is supported.I tried the FT800, but the object list is quite different from the traditional framebuffer approach. That makes it difficult to understand how everything works, because you can't change a single pixel or simply add a letter to a text string, instead you have to modify the list. It takes some time to get used to it, but it is quite powerful for a single chip graphics controller/video processor.

author: obiwanjacobi
author_rank: Super Contributor
timestamp: March 17, 2016, 10:33:31 am
content: I came across this chip when researching myZ80 retro project (video memory discussion). I think the Gameduino also uses it. Perhaps just experiment?I seriously consider it for my retro project so let us/me know what you discover

author: igendel
author_rank: Frequent Contributor
timestamp: March 17, 2016, 06:08:30 pm
content: I had a short encounter once* with EVE (more accurately, with an integrated "Arduino"/TFT-LCD/EVE module). The Arduino-like library FTDI provided was a mess. Unfortunately I have no information about compatibility to other displays.*http://www.idogendel.com/en/archives/122
Schematic Sheet Count Limit in ISE 14.7 - Page 1
Forum section: electronics / general

author: MJKaras
author_rank: Newbie
timestamp: March 29, 2016, 12:28:13 pm
content: When using ISE 14.7 in schematic design mode there is a limitation of the GUI design that limits the number of sheets in a schematic to the number of fixed width tabs that fit across the width of the editor window.Other than working with multiple monitors and stretching the window across several monitors does anyone know of a work around for this issue?

author: ale500
author_rank: Frequent Contributor
timestamp: March 29, 2016, 01:13:57 pm
content: I used to use the schematic editor for simple things but it sucked (it still does, no change there) so bad that I went I learned verilog. At least there is no difference there between altera, xilinx and lattice: all schematic editors are from an usability standpoint in the dark middle ages.Just curious, how do you add a second sheet to a schematic ?
Calculate Ecc byte for MIPI DSI header - Page 1
Forum section: electronics / general

author: joy586210
author_rank: Newbie
timestamp: March 13, 2016, 11:58:23 am
content: Just find a piece of C code to calculate Ecc byte for MIPI DSI header.The Ecc byte is derived from Hamming-modified Code (72,64). DSI systems shall use a 5+1 bit Hamming-modifiedcode (30, 24), allowing for protection of up to twenty-four data bits.The Hsync start packet is 0x21,0x00,0x00,0x12.I just compile it as vs2008 project, and verify the Hsync start short packet ecc byte is 0x12.While it is 0x0f in lattice RD1184 implementation, so there must be something wrong.Command output:D:\mipi\mipi_header_ecc\mipi_header_ecc\Debug>mipi_header_ecc.exeChecking Codes(eg.0x1234AF, "-" for exit): 0x210000Result:0x12Reference:1, Version 1.02.00 28-Jun-2010 MIPI Alliance Specification for DSI2,http://www.metsky.com/archives/618.html

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: March 13, 2016, 12:21:08 pm
content: This is the code I usedCode:char parity (unsigned long val){ // calc XOR parity bit of all '1's in 24 bit valueunsigned long i,p;p=0;for(i=0;i!=24;i++) {p^=val;val>>=1;}return(p&1);}unsigned long add_ecc(unsigned long cmd){// add ecc byte to b29-24 of 24 bit command packet (lsbyte first)cmd&=0x00ffffff;if(parity(cmd & 0b111100010010110010110111)) cmd|=0x01000000;if(parity(cmd & 0b111100100101010101011011)) cmd|=0x02000000;if(parity(cmd & 0b011101001001101001101101)) cmd|=0x04000000;if(parity(cmd & 0b101110001110001110001110)) cmd|=0x08000000;if(parity(cmd & 0b110111110000001111110000)) cmd|=0x10000000;if(parity(cmd & 0b111011111111110000000000)) cmd|=0x20000000;return(cmd);}

author: joy586210
author_rank: Newbie
timestamp: March 14, 2016, 02:04:44 am
content: Thanks, it's more efficient!And result is also 0x12.D:\Users\Projects\eevblog_mipi_ecc\Debug>eevblog_mipi_ecc.exeInput command packet(eg.0x123456, lsb first): 0x000021Result:0x12000021
Never did the pcb design so help please - Page 1
Forum section: electronics / general

author: Kesha24
author_rank: Contributor
timestamp: March 05, 2016, 02:52:08 pm
content: done plenty of prof circuit design and breadboard builds now retiredJust looking for someone in the Cardiff area that would like to put heads together on what software and how top use.I have no problem with circuit design theory / practicalLets see what comesthought I might find or hope to join forces if necessary could go as far as Bristol etc.

author: legacy
author_rank: Super Contributor
timestamp: March 05, 2016, 03:26:32 pm
content: Eagle/CAD?

author: Refrigerator
author_rank: Super Contributor
timestamp: March 05, 2016, 06:47:52 pm
content: Quote from: Kesha24 on March 05, 2016, 02:52:08 pmYou seem a bit lost, mate.There's a separate forum section for PCB design.

author: Kesha24
author_rank: Contributor
timestamp: March 05, 2016, 07:49:12 pm
content: Well thank you LEGACY, I clearly cant read so thank you for not adding where you would like me to post.Oh and I could also be blind maybe --- where I could park my stick would have been a great help !!!

author: legacy
author_rank: Super Contributor
timestamp: March 05, 2016, 09:00:40 pm
content: Quote from: Kesha24 on March 05, 2016, 07:49:12 pmdrunk? no sense

author: legacy
author_rank: Super Contributor
timestamp: March 05, 2016, 09:02:16 pm
content: edasubforum,eagle/Cadis used there
Help with Microcontroller interface and old piece of lab equipment (Geiger Rate  - Page 1
Forum section: electronics / general

author: Abelouellette
author_rank: Newbie
timestamp: March 04, 2016, 03:34:35 am
content: Help with Microcontroller interface and old piece of lab equipment (Geiger Rate Meter). Ludlum 200 Rate MeterProjet InformationI have an old piece of equipment that I want connected to the Internet using a microcontroller.Note: The connection with the internet and the small webpage embedded inside the microcontroller is working fine.The microcontroller is an Atmel Atmega 1284P with the Arduino Bootloader in the chip.Principe of operation of the Ludlum 200 Rate MeterDescription of the problemTo Retrieve the Data (The Number of Count, Durring a Specific Intervale of time) from the Ludlum 200 Rate Meter.1. When The Ludlum 2000 has Timed Out and Counting Stops, a High Pulse Appears on Pin 1(Count Complet).This Pulse is Approximately 2 Miliseconde Wide and is used to signal the Accessory unit (The Arduino Microcontroller) that data is ready to be transmitted.The pulse is captured by the microcontroller interrupt pinThe pulse is also measured with an oscilloscopeThe pulse shape and length can also be included as a screen capture of my oscilloscope• This pulse trigger an interrupt on the Atmega 1284P microcontroller ( Interrupt 0 pin: 102. When the Accessory Unit is Ready to Accept The Data, Pin 16 (Printer Ready ) is pulsed High for a minimum of 10 Miliseconde.A function in the code pulse the output pin on the microcontroller from High State to Low state for duration of 10miliseconde(This Section Work Correctly with the Microcontroller and my code)3. The Ludlum 200 Rate Meter output a clock signalThis pulse trigger an interrupt on the Atmega 1284P microcontroller (Interrupt 1 pin of the microcontroller: 17This interrupt subroutine is not working correctly.The first think I try with the Ludlum 200 Rate Meter clock signal subroutine. The Ludlum 200 Rate Meter clock signal is to increase a variable. This variable is printed on the serial console in another function of my code.According to the pulse measured with an oscilloscope (Ludlum 200 Rate Meter clock ) is not present because the Count Complet interrupt is trigger at the same time that clock signal interrupt.Thant you for your time and expertiseThe code is available bellow.
Quick and dirty(?) USB to Serial using part of the CY8CKit-049 - Page 1
Forum section: electronics / general

author: aargee
author_rank: Frequent Contributor
timestamp: March 02, 2016, 11:21:58 pm
content: Yes, maybe not so dity. Looking for a quick USB <-> TTL/RS232, the USB interface on these boards (CY8CKIT-049http://www.cypress.com/documentation/development-kitsboards/psoc-4-cy8ckit-049-4xxx-prototyping-kits?source=search&keywords=cy8ckit-049would do the job if removed from the Cypress board?Are they native, standalone RS232 or is it more complicated than that?I'm just putting an over-night order into Element 14 for some stuff and at $4 ea, two of these would beat the cost/time from China.TIA

author: Dielectric
author_rank: Regular Contributor
timestamp: March 03, 2016, 02:56:26 pm
content: They are TTL-level serial, so if you're expecting the full RS-232 voltage range you'd be disappointed, but otherwise they do work as regular USB-serial devices. Comes up as /dev/ACMx under Linux, Windows wants a driver from CY to get it going.

author: dferyance
author_rank: Regular Contributor
timestamp: March 03, 2016, 05:01:48 pm
content: As mentioned elsewhere it is just TTL level UART instead of RS232 levels, although that might be what you need. It is kinda cumbersome to use stand-alone due to the board-edge USB connector but it does the job. Might want to plug it into a USB extender cable but then the price goes up by needing an extra cable. That said, it is kinda a nice / versatile chip though with providing more options than just UART.
ESP8266 Dev Board Pinouts - Page 1
Forum section: electronics / general

author: StuUK
author_rank: Frequent Contributor
timestamp: February 26, 2016, 04:55:09 pm
content: I fancied experimenting with this particular chip and took a punt on ordering a cheap £2 GBP on aliexpress, it arrived after 3 weeks whichis not too bad for china post (and free post, god knows how they make any profit).The product was entitledNew Wireless module CH340 NodeMcu V3 Lua WIFI Internet of Things development board based ESP8266I loaded the appropriate drivers onto my MAC for the CH340 USB-UART and plugged the board in, loaded up a terminal client and hey presto it worked albeit it was loaded with the AT firmware and not nodemcu. Not to worry a couple of downloads later and a bit of flashing and it had the latest nodemcu on it. The board seemed to work BUT lots of dropouts on the WIFI and refusing to connect sometimes. Suspecting that this was not the board I loaded the Arduino ESP toolset and reflashed again. All works great, no issues, no dropouts.Anyways, my questionI cannot determine what the pinouts actually are and how they equate to the actual ESP pinouts. I believe that some of the pins will obviously be breakouts from the supporting circuitry but I'm more interested in determining the ESP8266 pins. You'll see from the picture that they are labelled differently from what I might expect. i did some googling but no luck as yet, maybe someone out there can point me in the right direction. I believe it to be an ESP 12 or 12E.The product i ordered can be found here...http://www.aliexpress.com/item/NodeMcu-Lua-WIFI-development-board-based-on-the-ESP8266-Internet-of-things/32339203041.html

author: StuUK
author_rank: Frequent Contributor
timestamp: February 26, 2016, 05:10:20 pm
content: Failing that I could always unsolder the ESP board I guess

author: kripton2035
author_rank: Super Contributor
timestamp: February 26, 2016, 05:20:02 pm
content: http://www.cnx-software.com/wp-content/uploads/2015/10/NodeMCU__v1.0_pinout.jpg

author: StuUK
author_rank: Frequent Contributor
timestamp: February 26, 2016, 07:36:40 pm
content: Perfect thanksI must have been looking in completely the wrong place

author: firepower
author_rank: Regular Contributor
timestamp: March 02, 2016, 12:02:48 pm
content: http://frightanic.com/iot/comparison-of-esp8266-nodemcu-development-boardsInfo about nodemcu dev boards V1,V2,V3 with pinouts. V3 bring USB power to two previous reserved
ZedBoard, MATLAB, Windows 10 - Page 1
Forum section: electronics / general

author: kaadam
author_rank: Contributor
timestamp: March 01, 2016, 08:03:26 pm
content: Has anyone positive experience with the above combination?I'm trying to do make a PIL simultator, but i can't even make the demo project run. I was able to generate the bit file for the FPGA, but when Simulink calls the Vivado environment to program the devices, it can't detect the board, but MATLAB can (http://prntscr.com/a9z2fg).By the way, i hate thoose toolchains. I think it's supposed to be working with the latest versions of MATLAB and Vivado, but no! You have to find the correct combination....
Arduino with LCD 20x4 Display - Page 1
Forum section: electronics / general

author: MatthewB
author_rank: Newbie
timestamp: March 01, 2016, 05:29:15 pm
content: I've wired up an LCD 20x4 display to my arduino but have only now realised that I require some method of diming to be able to actually read the screen, supposedly. Instead of a variable dimmer, could I possibly use a resistor to keep it at a constant level so that it is backlit but I can also read the text, if so, what resistance would accomplish an acceptable level of readability?

author: Divvi
author_rank: Contributor
timestamp: March 01, 2016, 06:37:30 pm
content: Yes, just replace the potentiality with a fixed-value voltage divider:

author: AlxDroidDev
author_rank: Frequent Contributor
timestamp: March 01, 2016, 06:56:08 pm
content: Quote from: MatthewB on March 01, 2016, 05:29:15 pmUse an RC filter to set the voltage of the backlight, and control the filter through a PWM pin. This way you can programatically set whatever voltage you want on the backlight (from 0 to 5V) simply by using "AnalogWrite(Dn, val)" where Dn is the digital PWM pin and val is a value from 0 to 255 (meaning 0V to 5V).This is a kind of "poor man's DAC", but it is good enough for these applications where a precise output voltage is not needed.http://provideyourown.com/2011/analogwrite-convert-pwm-to-voltage/

author: NivagSwerdna
author_rank: Super Contributor
timestamp: March 01, 2016, 11:53:03 pm
content: Push the boat outhttp://www.ebay.co.uk/itm/10PCS-10k-103-Ohm-3296W-Potentiometer-Trim-Pot-Trimmer-Variable-Resistor-25-Turn-/281465009320?hash=item41889f34a8:g:0C0AAOSwR0JUOOKE

author: dannyf
author_rank: Super Contributor
timestamp: March 01, 2016, 11:59:22 pm
content: Without knowing exactly what LCD you are talking about and what dimming you are attempting to achieve, there really ia no answer to your question.

author: collingtech
author_rank: Contributor
timestamp: March 02, 2016, 02:16:52 am
content: yep put a model /brand , will help a lot

author: danadak
author_rank: Super Contributor
timestamp: March 02, 2016, 02:59:26 am
content: If the display is transmissive you need the B/L on.If transflective one or the other or both, ambient light, B/L.If reflective you need ambient light.If B/L is LED best way to control brightness is a PWM driving a pin switching powerto the LED chain.If pin is the contrast pin, a simple pot to Vdd, wiper to pin, other side grounded.Regards, Dana.
an unknown chip is looking for its data sheet  - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: February 26, 2016, 01:39:18 pm
content: accidentally found, I have absolutely no idea about it

author: relic38
author_rank: Contributor
timestamp: March 01, 2016, 05:17:37 am
content: Looks like an ASIC of some kind from AMI. If it is an ASIC, you are not likely going to stumble onto a datasheet easily.

author: elecman14
author_rank: Unknown
timestamp: March 01, 2016, 06:58:55 pm
content: I believe @relic38 is correct. The part number appears to be "C2010". My initial through was the 2010 was a date code. Then again ceramic construction for a part made in year 2010 would have been strange.After doing some digging it appears that the part was used in this calculator:http://www.calcuseum.com/SCRAPBOOK/BONUS/15634/1.htmmore info:http://www.calcuseum.com/desk_15634.html

author: elecman14
author_rank: Unknown
timestamp: March 01, 2016, 07:07:13 pm
content: Another random thought. AMI was bought out by on-semi in 2007 ish from what I remember. Archive.orgs wayback machine has a copy of their website before the merger. It appears that C2010 is not listed as a product so that loosely shows it probably is an asic.https://web.archive.org/web/20080115054120/http://www.amis.com/tech_resources/Product_Library.html#process_spec

author: relic38
author_rank: Contributor
timestamp: March 01, 2016, 07:37:55 pm
content: The logo looks strange though, not an AMI logo I've seen before. Still I'd guess it is a prototype of an ASIC, which might explain the ceramic package.

author: elecman14
author_rank: Unknown
timestamp: March 01, 2016, 07:52:45 pm
content: Quote from: relic38 on March 01, 2016, 07:37:55 pmIt appears AMI changed their logo at some point in the late 80's or in the 90's. If I am reading the date code correctly the part was made in 1973. At that time ceramic construction would not have been unheard of. Not sure if it is a prototype since I am able to find a released product that use the part.

author: legacy
author_rank: Super Contributor
timestamp: March 01, 2016, 08:03:44 pm
content: it's a mystery