hybridfree/eevblog-posts huggingface dataset:
Cray on an FPGA - Page 1
Forum section: electronics / general

author: Stonent
author_rank: Super Contributor
timestamp: June 28, 2013, 08:51:44 am
content: I've always wanted to sit on a Cray, haven't you? They always looked so comfy...This guy took a Spartan 3E and turned it into a Cray 1 Supercomputer. Pretty Cool!http://www.chrisfenton.com/homebrew-cray-1a/It boots Cray COS from 1989:http://archive.org/details/Cos1.17DiskImageForCray-1x-mpNow if you don't have a Spartan 3E you can check this guys project out:http://modularcircuits.tantosonline.com/blog/articles/the-cray-files/Using information from the first project, he wrote an emulator that boos Cray COS on a PC.
Consecutive SPI Writes - Page 1
Forum section: electronics / general

author: MONODA
author_rank: Contributor
timestamp: June 24, 2013, 03:54:40 pm
content: Hey I've working on a project which involves interfacing an IC which contains a DAC module via SPI. I'm using TI's TMS320F2807 DSP and am able to interface the DAC.I want to write to the SPI interface as fast as possible but the SPI peripheral of the TMS320 keeps the /CS pin active between consecutive writes to the SPI channel and the DAC expects a rising edge on /CS between each write.Any ideas as to how I can force this to occur?Thanks

author: Unknown
author_rank: Unknown
timestamp: June 24, 2013, 04:29:36 pm
content: Use another output pin and AND it with /CS?

author: Harvs
author_rank: Super Contributor
timestamp: June 25, 2013, 10:00:59 am
content: I had a similar problem with the STM32F0 using the DMA with a DAC that needed exactly what you've just described.The easiest answer was to use the DMA to do a single word write (it needed 24bits per write) then trigger a tuned interrupt routine to toggle a GPIO pin that was used for _CS. The key was to just write this naked ISR in assembly, then it only took a few CPU cycles to write the set and reset GPIO registers with a literal, re-enable the DMA to do another 3Byte transfer and return.

author: nctnico
author_rank: Super Contributor
timestamp: June 25, 2013, 10:12:54 am
content: If the SPI interface has a buffer then you might as well use the interrupt routine to write all the data. Or set the word length longer (does it support 32 bit?).
Microchip PIC18 + SPI RAM - Page 1
Forum section: electronics / general

author: glatocha
author_rank: Regular Contributor
timestamp: June 23, 2013, 10:24:17 pm
content: Hi,I am trying to interface the PIC18F14K50 to the 23A640 SPI RAM 8kb.Sometimes in the transmission on the RAM OUT/ PIC IN line I have short ~42ns pulses (both up or down). This happens only during transmission.When I disconnect RAM from PIC and and just put the analyser probe on the RAM pin it looks all ok. I wonder is there a special setting that need to be done?I am using build in SPI.I switched off the analog and put TRIS as an Input (acc to datasheet this should not be needed anyway).Now everything is put on the protoboard with a dozen of wires for RAM, Graphic LCD and analyser. Can be that it hooks up something from the air?At 3MHz it is not that fast anyway.Once I accidentally power it from 5V (nominal 3.3) for a couple of seconds. Might be that the output get damaged? But As I said, disconnected showing no issues.

author: Skimask
author_rank: Super Contributor
timestamp: June 23, 2013, 11:51:29 pm
content: Read the errata sheets lately?

author: glatocha
author_rank: Regular Contributor
timestamp: June 24, 2013, 03:43:37 am
content: You mean the PIC or the SRAM?For the SRAM I didn't find any, for PIC there is described case:QuoteBut I am using CKE = 1 and CKP = 0. Anyway after work will try with some delay. Cannot prove it right now, but I also think this pulses what I have is not just a case of the last clock cycle.Thank for pointing me out the erratas. I always thought if I download datasheet recently the erratas are included.

author: AndyC_772
author_rank: Super Contributor
timestamp: June 24, 2013, 12:04:35 pm
content: Quote from: glatocha on June 24, 2013, 03:43:37 amErrata rarely, if ever, get included directly in data sheets in my experience. PICs do tend to contain quite a few errors, though at least the errata documents are readily available.I usually make a point of checking these before I even read the data sheet these days.
Library for ki-cad - Page 1
Forum section: electronics / general

author: ayansengupta17
author_rank: Newbie
timestamp: June 22, 2013, 04:40:59 am
content: I am working with Altera cyclone I device. Its model is EP1C12Q240C8.I want develop the FPGA board myself. So I chose KI-CAD for drawing the schematic. The main problem i am facing is that, I cant find the library for this particular FPGA. And making a library for a 240 pin FPGA is really tedious job,I would be really grateful if you can help me. Thanks in advance.

author: marshallh
author_rank: Unknown
timestamp: June 22, 2013, 07:24:02 am
content: Spend 30mins and make one. That's life in kicad.

author: AndyC_772
author_rank: Super Contributor
timestamp: June 22, 2013, 08:38:37 am
content: Tedious, yes, but it's a job that needs doing. Set aside some time, make yourself a cup of tea, and get on with it! Personally I find it a very good discipline, as it forces me to think for a moment about every single pin on the device. It helps make sure I don't miss anything important.The EP1C12 is a very old device now, though, and it's slower and more expensive than the newer alternatives. It's also no longer supported in the latest versions of the Quartus web edition unless you specifically apply for a licence from Altera; clearly they're trying to discourage new designs using this family. Why not use Cyclone III or IV instead?
Arduino PIC32MX programmer - Page 1
Forum section: electronics / general

author: Unknown
author_rank: Unknown
timestamp: June 19, 2013, 07:00:14 am
content: I've been debating getting a PICkit to program the PIC32MX210F016B chips I just got, but it's kind of pricey at the moment, especially when I only have one set of chips and one application for them. So I dug around and found this project:http://code.google.com/p/ardupic32/.It lets you program the PIC32MX from an arduino. Slowly, but at least enough to get a bootloader installed.I haven't tried it yet, I'm going to play with it tomorrow and see if I can get it to work - if so, that might let me hold off on buying a PICkit for a bit. I did a search and didn't see any mention of it here, so I thought I'd post it in case anyone else might find it useful.This is actually good for another reason too that is purely personal - I am planning on using this chip on my lightboard controller project, and learning how to program it using JTAG will be useful once I start on designing the PCB... I understand that you can daisychain JTAG.Onwards and upwards.

author: andersm
author_rank: Super Contributor
timestamp: June 19, 2013, 07:33:18 am
content: If you have a supported adapter there's alsopic32prog(haven't used it myself though).

author: Skimask
author_rank: Super Contributor
timestamp: June 19, 2013, 12:31:43 pm
content: Quote from: duskglow on June 19, 2013, 07:00:14 amNice find.I bought a PICKIT3 to do all my PIC32MX chips, but still don't like the MPIDE much.Gonna check this out and see what's what...

author: DanHamer
author_rank: Contributor
timestamp: June 20, 2013, 12:47:32 pm
content: Yeah MPLAB isn't the nicest IDE but you get used to it. It has lots of great features but most of them are hard to figure out how to use. I got a PICkit 3 a while ago because my ICD2 isn't compatible with the newer PIC32MX210XXXXXX ( god damn it Microchip). I ummed and arred about getting a PICkit 3 what swung it was some of the features such as the programmer-to-go function which I haven't actual had use for yet but I'm sure I will someday.
PIC micro based ambient light for a PC ? - Page 1
Forum section: electronics / general

author: Bibiricat
author_rank: Contributor
timestamp: June 14, 2013, 10:56:33 pm
content: Hello.I was looking at some very cool back PC monitor/tv ambient lights , and i was wondering if anyone had done (or heard of) something like this using a PIC microcontroller, as i only found some arduino-based projects on the web.I think this is a very nice idea, but i have no idea where to start.(the arduino project i was referring is :http://hackedgadgets.com/2011/08/03/diy-pc-ambilight/)

author: nctnico
author_rank: Super Contributor
timestamp: June 15, 2013, 02:44:48 pm
content: IMHO this could be done with an ARM controller if you have the analog RGB signals available. Use a peak detector to slow the signals down a bit, sample with the ADC and use the hsync/vsync to figure out the timing. This way you can create an array (grid) of the dominant colors on the screen and control a bunch of RGB leds. Shouldn't be very hard to do.

author: Bibiricat
author_rank: Contributor
timestamp: June 15, 2013, 06:32:59 pm
content: I wanted it to work via USB, but i don't want to use the output from a video card DVI.

author: caroper
author_rank: Regular Contributor
timestamp: June 17, 2013, 03:11:15 pm
content: If you want to use a PIC, the examples you have as reference are for the Arduino and you want a USB interface to the PC, you may find this newthreadI started on an implementation of an Arduino compatible CHIPKit on a Breadboard, that uses the PIC32MX250, to be a possible starting point for your experiments.CheersChris
Swordfish BASIC for PIC24 - Page 1
Forum section: electronics / general

author: Vasi
author_rank: Regular Contributor
timestamp: June 13, 2013, 03:23:16 am
content: Well, not really but here is Firewing from the same author (David Barker). This time, the language is free without limitations.FirewingIt may be of some interest forcharliehorse55user ...
cross pollination: Arduino on the JavaRanch - Page 1
Forum section: electronics / general

author: jancumps
author_rank: Unknown
timestamp: June 20, 2013, 09:39:37 pm
content: Disclaimer: I am a moderator at the JavaRanch.This one got me excited: the javaranch is a website dedicated to software. For the first time they are now hosting a dedicated session for hardware: Arduino and the Arduino in Action book.http://www.coderanch.com/forums/f-59/gcSo cool: two of my favorite topics together.I created a self-pollination thread there too to point at the EEVBlog video about Arduino.
MPLAB ICD 3 Win 7 - 64 - Page 1
Forum section: electronics / general

author: Dennis
author_rank: Contributor
timestamp: June 10, 2013, 02:23:29 pm
content: Well it has been about a year since I attempted to use my ICD 3 with MPLAB X in Win 7 - 64.Does anyone have it working RELIABLY on their desktop yet?It is getting really old dragging out my XP laptop each time I want to use a PIC.I'm quickly converting to an Atmel fan-boy -=GodHeLpMe=-

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: June 10, 2013, 02:56:24 pm
content: I regularly use ICD3 under MPLAB 8.84 and win7 64 bit with no problems. Mostly using as programmer not debugger

author: Arp
author_rank: Unknown
timestamp: June 10, 2013, 07:11:23 pm
content: Been using MPLAB X IDE 1.41 with ICD3 for quite some time (Win7 64). No problems so far. Using Hitech for 8 bits and C32 for 32 bits.

author: RoadRunner
author_rank: Frequent Contributor
timestamp: June 10, 2013, 07:44:15 pm
content: i am also been using MPLAB ICD3 on WIN7 x64 with both MPLAB x and MPLAB IDE. works fine no problem what so ever.

author: Dennis
author_rank: Contributor
timestamp: June 11, 2013, 05:28:23 am
content: Thanks everyone, I'll give it another go then.Last time I tried I kept getting strange firmware update messages and then it would fail to recognize it in the IDE.

author: Dennis
author_rank: Contributor
timestamp: June 12, 2013, 12:41:08 am
content: I think it is the new drivers X uses that makes it a pain. Supposedly using generic USB, but I think it was a mistake. Unless they changed the design on later models. My ICD 3 is from 2009, shortly after they started shipping.It works fine in XP with MPLAB 8.4 (I believe that is the version)But it just wouldn't work for me reliably in Win 7-64I even did a clean install of Win 7 - 64 on a spare laptop and it failed miserably. I blamed it on immature drivers, but perhaps it is hardware incompatibility. I'm going to have a look under the hood and compare it to a newer model if I can find some pics of a late model somewhereIt absolutely hates my Explorer dev board, it won't recognize the dsPIC33FJ at all.

author: mazurov
author_rank: Frequent Contributor
timestamp: June 12, 2013, 04:34:59 pm
content: My (relatively new) ICD3 won't work in Mplab X under W7-64. It works well under MPLAB8. At the same time, ICD2 works fine in both IDEs but won't talk to PIC24E and other newer micros.

author: caffeinatedbard
author_rank: Regular Contributor
timestamp: June 12, 2013, 05:03:22 pm
content: I would suggest that you make sure you install the drivers as administrator if using Windows 7 and/or if you are using Mplab X.I agree it's not a pretty solution to have to switch between drivers if you are using classic Mplab or Mplab X but with the new drivers you can have several ICD3s connected at the same time and actually store the serial number as part of the project, whereas you were kind of confined to one ICD3 per computer before.good luck!bard
Ard_noob audio player - Page 1
Forum section: electronics / general

author: ceecrb1
author_rank: Contributor
timestamp: June 07, 2013, 02:57:18 pm
content: Hi there..I have never physically touched an arduino or even been near one.... but theres a first time for everything!I hope to make an audio playback device that plays a 3 (or so) seccond WAV clip.It should activate from a button press (via a relay) and also output to another relay which will trigger a strobe light.SO.. having no pic programming experience or hardware (except an altera device while at uni..) I have decided to take the plunge into arduino and bought 2 boards, a mega and an uno.I also got a wave shield.http://www.ladyada.net/make/waveshield/Right now i´m at the... "ok now what" stage.. The "where to start" moment.They wont arrive till next week (18th) but I can spend a few days doing some research.. but I think its one of those cases of, as I cant physically touch and fiddle with it.. its not as clear as it could be.Comments/suggestions for an annoying noob?

author: Len
author_rank: Frequent Contributor
timestamp: June 08, 2013, 03:43:28 am
content: Adafruit has instructions and examples for the WaveShield on their site. There should be an example that plays sounds from button presses.For getting started with Arduino, there are tutorials and examples at the Arduino web sitehttp://arduino.cc/en/Tutorial/HomePageand at Adafruithttp://learn.adafruit.com/category/learn-arduino.
FPGA HACK....Looking for info. on the Fora (FOR-A, FOR.A) DCM pins - Page 1
Forum section: electronics / general

author: Hardcorefs
author_rank: Regular Contributor
timestamp: June 04, 2013, 02:45:36 am
content: Hi,Looking for any information on the Fora video cards CD E03251-2,In particular the damned buried DCM pins. (possibly off of IC 56).... yep they are in there some place..Or if anyone might have a way to identify the Clock input on a Virtex (JTAG/CHIPSCOPE)?
Reading the Code on a Microprocessor - Page 1
Forum section: electronics / general

author: wayneee
author_rank: Newbie
timestamp: June 01, 2013, 09:05:12 pm
content: Is it possible to read the code in a microprocessor once it has been placed on a circuit board?

author: PeterG
author_rank: Frequent Contributor
timestamp: June 01, 2013, 09:14:44 pm
content: I am not sure about Microprocessors but generally you can with Microcontrollers provided the chip is not code locked or otp.

author: Dave
author_rank: Super Contributor
timestamp: June 01, 2013, 10:31:32 pm
content: Yes, if the code is not read protected, you should be able to extract a hex file from the microcontroller. Then use a decompiler to convert that hex file back into human-friendly assembly code.

author: ninn
author_rank: Newbie
timestamp: June 06, 2013, 02:37:16 pm
content: I want to see that "human friendly" asm

author: nuhamind2
author_rank: Regular Contributor
timestamp: June 06, 2013, 02:56:08 pm
content: Quote from: ninn on June 06, 2013, 02:37:16 pmAren't people in the past talk assembly.

author: free_electron
author_rank: Super Contributor
timestamp: June 06, 2013, 03:56:15 pm
content: Quote from: ninn on June 06, 2013, 02:37:16 pmSourcer always did a pretty good job ...
Lattice Semi - I rotfl'd hard.... - Page 1
Forum section: electronics / general

author: Unknown
author_rank: Unknown
timestamp: May 23, 2013, 08:34:00 am
content: HAHA superb!! ;-)

author: andersm
author_rank: Super Contributor
timestamp: May 23, 2013, 12:11:00 pm
content: They've done a couple of others, but that is definitely their most high-budget production.

author: gibbled
author_rank: Regular Contributor
timestamp: May 23, 2013, 09:06:49 pm
content: Lol, Awesome! Love the light emitting pickle display.

author: free_electron
author_rank: Super Contributor
timestamp: May 23, 2013, 10:29:01 pm
content: i wonder how many of those wafers he broke during filming ...

author: poorchava
author_rank: Super Contributor
timestamp: May 24, 2013, 07:40:33 am
content: Probably significantly less than a few years worth of 'ooops!'-es piled up in a drawer

author: Nermash
author_rank: Frequent Contributor
timestamp: May 24, 2013, 07:57:19 am
content: Somehow now I have much less confidence in Lattice products...

author: AndyC_772
author_rank: Super Contributor
timestamp: May 24, 2013, 08:19:24 am
content: Agreed, I lasted less than a minute before switching off. On that basis, it's one of Altera's best ads yet.

author: ivan747
author_rank: Super Contributor
timestamp: May 24, 2013, 09:48:41 pm
content: Just stop this already

author: metalphreak
author_rank: Frequent Contributor
timestamp: May 25, 2013, 12:50:17 pm
content: Those videos remind me of Bill Nye the science guy music videos

author: c4757p
author_rank: Super Contributor
timestamp: May 25, 2013, 01:54:22 pm
content: Quote from: AndyC_772 on May 24, 2013, 08:19:24 amI thought the first one was just irritating, but the MachXO2 video was hilarious

author: Rasz
author_rank: Super Contributor
timestamp: May 29, 2013, 06:33:52 am
content: Quote from: c4757p on May 25, 2013, 01:54:22 pmSame. fake rap failed hard, but 'stop having boring like, FORGETABOUTIT' infomercial one was hilarious.
Bodycom - human skin used to tranfer information - Page 1
Forum section: electronics / general

author: ptricks
author_rank: Frequent Contributor
timestamp: June 04, 2013, 12:15:37 pm
content: Reading at the mouser site under the new products section I came across bodycom. Apparently it works by having a small transmitter in your pocket or hand and when you touch the receivers contact the transmitter is detected and the data is transferred. The data is not transferred if you just place the transmitter on the receiver, it has to be capacitively coupled to the body.http://www.microchip.com/pagehandler/en-us/technology/embeddedsecurity/technology/bodycom.htmlI can see a lot of uses for this. Wonder if it is possible to build something where one person touching another can transfer information .
Video on a cool Arduino clone with wireless transceiver - the Moteino - Page 1
Forum section: electronics / general

author: w2aew
author_rank: Super Contributor
timestamp: May 25, 2013, 06:17:59 pm
content: I put this video together to show this really cool little product that a friend of mine turned me on to. It is a small, breadboard compatible Arduino clone that includes a low cost wireless transceiver - all for under $20 US. I've got no affiliation with this product or it's producer, I just thought it was a cool product to share.

author: TheDirty
author_rank: Frequent Contributor
timestamp: May 26, 2013, 02:16:20 am
content: Jeelabs has a crazy amount of info on the RFM12B and AVR.http://jeelabs.org/
Beginning CPLD/FPGA xxx times PWM - resources - Page 1
Forum section: electronics / general

author: glatocha
author_rank: Regular Contributor
timestamp: May 25, 2013, 03:27:29 am
content: Hi,I am on the beginning of learning PLDs. I have a CoolRunnerII Development Board, so will focus on Xilinx.I thought that having an product idea will help to drive me through the learning process.So the idea is - Multi RGB LED controllerInput from the MCU -> shift registers store the value -> comparators compare with timer -> result stream out by serial interface to LED Controller.So my question is. How many resources (makrocells) of CPLD this design will use. Can I put in (let's say 256 makrocells still reasonable package) 100 PWM channels? Or maybe 1000?How to do such assumptions?

author: TerminalJack505
author_rank: Super Contributor
timestamp: May 25, 2013, 04:36:57 am
content: The easiest way that I know of to 'ballpark' the macrocell count is to count the number of registered bits you are going to need. That will be the absolute minimum number of macrocells you will need since there is only one register per macrocell.So, for example, an 8-bit timer will take a minimum of 8 macrocells and each of the 8-bit registers will need 8 macrocells and so on.

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: May 25, 2013, 08:35:57 am
content: CPLDs are probably not an optimal choice cost-wise due to limited registers - a small FPGA would probably be better. If all you want is PWM, then there are several dedicated chips, many of which also do current regulation.However as a learning exercise it's a fairly good choice - fairly simple to get going initially, then plenty of scope to explore different ways to implement to maximise efficiency.
Visual Micro - Page 1
Forum section: electronics / general

author: Dennis
author_rank: Contributor
timestamp: May 23, 2013, 12:19:37 am
content: Has anyone used this add-in for Visual Studio or Atmel Studio 6.1?http://www.visualmicro.comIt is (as Dave would say:) "The Ducks Guts"Really, it is a slick add-in that automatically configures Visual or Atmel Studio to program and DEBUG Arduino boards. I used it on my last project and it was great not having to string Serial.print statements all through the code debugging it. And the re-compiles are lightning fast!Here is another screenshot:And another:

author: oilburner
author_rank: Contributor
timestamp: May 23, 2013, 10:11:55 pm
content: Thanks Dennis! I'm having the same problem with serial ports and debugging the TSIP binary stream from a Thunderbolt, this should help.
ATTINY167 - ATA6617 cannot drive a red led? [solved] - Page 1
Forum section: electronics / general

author: mimmus78
author_rank: Unknown
timestamp: May 22, 2013, 11:26:13 pm
content: Hi all,I'm using a ATA6617 (it's an ATA6624 + an ATTINY167 in a single package) but something happen somewhere in my workflow or to the chip.I'm not able anymore to drive a red led (and anything else) by any of the pin in port A or B.I'm running this program:Code:#define LED0_PORT PORTA#define LED0_PIN DDA7#define LED0_H LED0_PORT |= (1 << LED0_PIN);#define LED0_L LED0_PORT &= ~(1 << LED0_PIN);#define LED0_T LED0_PORT ^= (1 << LED0_PIN);#define F_CPU 8000000UL#include <avr/io.h>#include <util/delay.h>int main(void){LED0_PORT |= (1 << LED0_PIN) ; // Set LED as outputwhile (1){_delay_ms(333);LED0_T; // toggle led}}If I check the pin without any load with an oscilloscope it's ok. As soon as I insert the red led (with an in series 220R) the voltage at DDA7 drop from 5V to 1.6V.It's like the GPIOs build up a high internal resistance.ATA6624 internal regulator is ok because if I connect the led (and resistor) to the 5V output it turn on regularly (and there is no voltage drop).Anyone can confirm that the chip failed or I'm missing something?

author: senso
author_rank: Frequent Contributor
timestamp: May 22, 2013, 11:47:52 pm
content: Isn't que data direction register spelled DDRA and not DDA?Also you are not setting the pin as an output, so only enabling and disabling the internal pull-up, so what you see is perfectly normal behaviour.DDRA |= (1<<PA7); //Set Pin A1 as outputPORTA ^=(1<<PA7); //Toogle pin A1.

author: mimmus78
author_rank: Unknown
timestamp: May 22, 2013, 11:57:42 pm
content: Thanks it worked ... I write code every day for living and just started with electronic.I always thinking I'm making something wrong in the electronic part of the project but it seems to be always the bloody code.I was thinking I fried it ...:-)

author: senso
author_rank: Frequent Contributor
timestamp: May 23, 2013, 12:17:31 am
content: Great, at the start it can be a bit strange to understand everything, but with time it will all fall into place, so keep up the good work
Anyone got a STLink v2 schematic - Page 1
Forum section: electronics / general

author: HackedFridgeMagnet
author_rank: Super Contributor
timestamp: May 18, 2013, 01:16:22 am
content: I fried my STLink v2 yesterday, by putting the 12 volt rail into pin 1 (target Vcc).Funny thing was it actually kept working for a few minutes.The pcb smells of component charring and I suspect a resistor that I can no longer read the value of. it measures about 30-40Ohms. I am hoping this is the only problem.So a schematic would be useful. Or even a photo of the main board.I have looked at the discovery board circuits but I am not sure if the st link is consistent with them.Also I am now using the F3 discovery for programming while my real programmer remains broken.

author: andyturk
author_rank: Frequent Contributor
timestamp: May 18, 2013, 02:01:37 am
content: Doh!No schematic, sorry. You probably zapped the level translator. It's a 74...8T245, as I remember from taking mine apart once. The disco boards are *not* the same because they lack the level translation. In fact, the only reason I bought the dongle was to debug a 1V8 board--the disco boards were fine for everything else.OTOH, $20 is a pretty cheap lesson.

author: HackedFridgeMagnet
author_rank: Super Contributor
timestamp: May 18, 2013, 03:40:33 am
content: Yes very cheap lesson, but one that I shouldn't need.SN74LVC8T245DGVR seems to be the part.Thanks
no text - Page 1
Forum section: electronics / general

author: daywalkerdha
author_rank: Contributor
timestamp: May 15, 2013, 03:05:02 pm
content: no text

author: TerminalJack505
author_rank: Super Contributor
timestamp: May 15, 2013, 06:42:05 pm
content: It is probably just the simulator.I threw an ATtiny13, an LED and a push button switch on a breadboard and put the following code in and it works.Code:#include <avr/io.h>#include <avr/interrupt.h>#include <avr/sleep.h>#include "Delay.h"void powerDown(void){GIFR |= (1<<PCIF); // Clear eventually occurred previous pin change interruptsGIMSK |= (1<<PCIE); // Activate Pin change interruptsMCUCR = (MCUCR | (1<<SM1)) & ~(1<<SM0);MCUCR |= (1<<SE); //Enable Power-Downsleep_cpu();MCUCR &= ~(1<<SE); //Disable Power-DownGIMSK &= ~(1<<PCIE); // Deactivate Pin change interrupts}ISR(PCINT0_vect){}int main(void){//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//+++++++++++++++++++++++ I/O Setup +++++++++++++++++++++++++//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//SREG &= 0B01111111; //Disables Interrupts globally during setupPORTB |= (1<<PB0)|(1<<PB1)|(1<<PB2)|(1<<PB3); //Setting outputs to zero, activating pullups on inputsDDRB |= (1<<PB4); //0, 1, 2, 3 are inputs, 4 is output, PB5 is reset.//-----------------------------------------------------------//----------------------- I/O Setup -------------------------//-----------------------------------------------------------//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//++++++++++++++++++++ Interrupt Setup ++++++++++++++++++++++//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++PCMSK |= (1<<PCINT3); // Sets the Pin change interrupt mask, only PB3 will trigger the PCINT once it is enabled before sleep//GIMSK |= (1<<PCIE); // Activate Pin change interruptsSREG |= (1<<SREG_I); //Enables Interrupts globally after setup//-----------------------------------------------------------//-------------------- Interrupt Setup ----------------------//-----------------------------------------------------------while (1){for (uint8_t i = 0; i < 8; ++i){// Blink the LED a couple of times to indicate the MCU is running...PORTB &= ~(1<<PB4); // Turn LED on. (LED is active low.)_delay_ms(250);PORTB |= (1<<PB4); // Turn LED off._delay_ms(250);}powerDown(); // LED will be off during power down.}}

author: TerminalJack505
author_rank: Super Contributor
timestamp: May 15, 2013, 08:17:17 pm
content: No problem. Yeah, I don't think the simulator is quite up to snuff.
AVR not getting any output from PWM - Page 1
Forum section: electronics / general

author: blewisjr
author_rank: Frequent Contributor
timestamp: May 09, 2013, 11:11:33 pm
content: Hey guys I am messing around with a PWM on a ATtiny2313A. I am trying to get a signal out of it any signal at all and I am getting nada.Not really sure what is going on. I have it set for a 50% duty cycle ish I think and only thing on the pin is my scope probe.Wish I can give more info but here is some code. The uC is clock at 1 MHZCode:int main(void){TCCR0A = 0b00100011; // Setup fast PWM on PD5TCCR0B = 0b00000001; // no prescalerOCR0B = 126; // about 50% duty cycleTCNT0 = 0; // Reset TCNT0 registerDDRD |= (1<<5); // Set PD5 (OC0B) as an outputwhile(1);return 0;}EDIT: Fixed the code above I missed a bit in TCCR0B doh.

author: Psi
author_rank: Super Contributor
timestamp: May 09, 2013, 11:47:35 pm
content: Do you mean you fixed the problem and now its working?Or you made a mistake posting your non-working code and now it's correct non-working code?

author: blewisjr
author_rank: Frequent Contributor
timestamp: May 10, 2013, 12:12:22 am
content: Fixed the mistake and now it is working code sorry lol. Noticed it while I was looking at the code waiting for a reply.
Motorola chip ID question - Page 1
Forum section: electronics / general

author: kirkpennock
author_rank: Newbie
timestamp: May 07, 2013, 08:44:15 pm
content: I am trying to figure out what a chip is to fix the device.it has a motorola icon on it, the part number does not google to any thing. Is there a trick to it?Here are both numbersLSC402981FU0G43FAVCRAC9746Pretty sure its a microcontroller.did not count them but it looks like a 68 pin quad flat pack.

author: amyk
author_rank: Super Contributor
timestamp: May 08, 2013, 11:01:47 am
content: Motorola maskset 0G43F. It's definitely an MCU. Can't find any information on that one in particular but its neighbours might give you an idea what's in there:G41V MC68HC705B32G47V MC68HC705X32Note: SC prefix means special/custom part.

author: kirkpennock
author_rank: Newbie
timestamp: May 08, 2013, 09:32:54 pm
content: thank you, any clues are better than none.
Can I erase flash on locked MCU? - Page 1
Forum section: electronics / general

author: Spiro
author_rank: Contributor
timestamp: May 06, 2013, 12:08:25 pm
content: I have around 15 MSP430F2013 from Hanla level sensors and I want to recycle them.And this MCU have slow 16bit ADC. I presume they are locked. I downloaded pdfabout this MCU but I don't cant find anything about erasing already locked MCU.I have also Renesas MCU from car radioWhy? Why not. Why I should throw away MCU if it can be recycled? Earth is alreadyf**** up place.

author: jahonen
author_rank: Super Contributor
timestamp: May 06, 2013, 01:28:26 pm
content: I think MSP430 has OTP protection which physically disconnects JTAG/SBW connection inside MCU, so I think it can't be reused if JTAG fuse has been blown.Regards,Janne

author: Spiro
author_rank: Contributor
timestamp: May 06, 2013, 03:53:01 pm
content: Yes I saw that but there is some other type of programming (bootstrap, serial something?).

author: nctnico
author_rank: Super Contributor
timestamp: May 07, 2013, 12:13:16 am
content: AFAIK the serial bootstrap is also disabled when the fuse is blown. Another thing to beware of is that some of the smaller MSP430 don't even have the serial bootloader.

author: NiHaoMike
author_rank: Super Contributor
timestamp: May 07, 2013, 02:03:38 am
content: Those MSP430s are really cheap anyways.

author: amyk
author_rank: Super Contributor
timestamp: May 07, 2013, 11:00:02 am
content: Youpresumethey're locked but why not throw them on the programmer to make sure? Maybe you'll get lucky, you never know until you try.Those MSP430 have a physical fuse so it's not like the common "erase the chip and it's ready for reuse" case. On the other hand, that might make it even easier to attack the protection --- decap and look for the blown fuse, then restore it with microwiring techniques. Physically damaged areas will stand out a lot more on a die photo than EEPROM cells.As for the Renesas, it depends on the model. Some have permanent protection, others don't.
X10 Oscillator  - Page 1
Forum section: electronics / general

author: javi.ar
author_rank: Newbie
timestamp: May 05, 2013, 02:47:12 pm
content: Hi, I am trying to develop an X10 project based on the microchip AN. it is quite hard to find an 7.68Mhz crystal oscillator for accomplishing 120Khz envelope... which is the recomendation for substitution, RC, 555thanks a lot

author: codeboy2k
author_rank: Super Contributor
timestamp: May 05, 2013, 03:53:05 pm
content: It seems like they just use that frequency along with the timer2 settings to divide it by 64 then use that as the pwm frequency to produce a 120 kHz square wave at 50% duty cycle.You could instead use a NTSC colorburst crystal at 14.31818 MHz and divide that by 119. Since timer2's input is already the master clock divided by 4 (Fosc/4), then you only need to further divide by 29 (119/4). You can set the timer 2 prescaler to 1:1 and use the timer2 compare register to divide by 29. Then you get 14.31818 MHz / 119 = 120.3208 kHz. This is within the X10 spec of +/- 2kHzIf you are in a PAL country, then you might have access to 13.5 MHz crystals. If you use this one, just setup timer 2 to divide by 112 to get 120.536 kHz.If you use an 11.0592 MHz crystal and divide by 92, you will get 120.209 kHz. This crystal is commonly used for older PC serial port chips.You could also use an 8 MHz crystal and divide by 67. Then you will get a frequency of 119.403 Khz.These are all close enough for X10, and within the 2 kHz tolerance for the 120 kHz burst.If you change the crystal, you need to make sure that the rest of the code from that appnote doesn't make any other timing assumptions that the clock frequency will be 7.68 MHz.
STM32F3 Technical Training presentaion PDF - Page 1
Forum section: electronics / general

author: KedasProbe
author_rank: Frequent Contributor
timestamp: May 04, 2013, 05:12:38 pm
content: Hi,Found this file here, I don't know if it is allowed to be shared or if it's shared somewhere else.It's 20.6MB PDF, 602 PowerPoint slides (4 day training)http://www.szcdxkmcu.com/PIC/PIC/STM32F3xx%20Training%20V1_2x.pdfThere are some comparison benchmarks in it about how to program it.It's easier to read than a manual since it's a presentation.edit:link present on this page (download is slow)http://www.szcdxkmcu.com/product.asp?ClassID=001006
Forum Subjects - Page 1
Forum section: electronics / general

author: glatocha
author_rank: Regular Contributor
timestamp: May 04, 2013, 07:26:47 am
content: Hi all,I have suggestion to do some more detailed subjects for topics. Preferably with the microcontroller family if the topic is strictly related.Yes, I am new here, but the topics like:"One error I can find""Is it for me"even the "Timer0 Calculation"would looks better:" Timer0 Calculation"I just went through 3 pages, but for sure more people would open your posts if they were described better.greetings

author: lapm
author_rank: Frequent Contributor
timestamp: May 04, 2013, 07:33:53 am
content: Well this proper title problem is not just forums, its on mailing lists too.Sometimes person asking question just docent know what hes really asking, and that can create some almost there topics..Would not worry too much about it, its better to ask question then not ask it out of fear of not having proper title..
Is it possible to copy content of MCU to other MCU? - Page 1
Forum section: electronics / general

author: Fliz
author_rank: Contributor
timestamp: April 29, 2013, 11:29:13 am
content: - 2 identical MCU's- one is full and other one is blankwould it be possible just to copy/past content from one to another MCU?Thanks

author: AndyC_772
author_rank: Super Contributor
timestamp: April 29, 2013, 11:39:51 am
content: Possibly, depending on the type of MCU and whether or not it has any of its code protection bits set.

author: Psi
author_rank: Super Contributor
timestamp: April 29, 2013, 12:00:10 pm
content: You can't link some pins together and have one mcu copy to another (unless the firmware was written to do that.)However, as said above, if there's no protection enabled you can "download" the firmware from one mcu to a PC and then "upload" it from the PC onto another mcu.MCUs in purchased products will almost certainly have the protection enabled to stop other companies copying their firmware and quickly selling a competing product. (Since a significant percentage of the development cost in a product is writing the code)Note:You may have to copy both the firmware and the eeprom for the new chip to work the same as the original.

author: Fliz
author_rank: Contributor
timestamp: April 29, 2013, 12:26:49 pm
content: MCU type is Atmel Attiny13AIdea is toreadcontent of one chip using USBASP programmer (that I have) and then justwritethat content without any changes to another Attiny13A!How will I know If there is a protection? I will not be able to read content of mcu or if I succeed writing that content to new mcu it will not function properly!Thanks for replies

author: ptricks
author_rank: Frequent Contributor
timestamp: April 29, 2013, 12:33:42 pm
content: If the content is protected it will either error out on the read or you will get a read composed of FF or 00.

author: ben_r_
author_rank: Frequent Contributor
timestamp: April 30, 2013, 10:28:01 pm
content: Are you trying to steal someone elses code?

author: Fliz
author_rank: Contributor
timestamp: April 30, 2013, 10:44:28 pm
content: I ordered soic 8 pin clip for this job but unfortunately it's going to take a while while it gets here :/Quote from: ben_r_ on April 30, 2013, 10:28:01 pmYou could say sobut I couldn't get to the source code anyway, it's all converted to hex code.Actually I am trying to make another instance of excellent product that has been discontinued long time ago, unfortunately :/
One error I can find - Page 1
Forum section: electronics / general

author: tahmod
author_rank: Contributor
timestamp: April 07, 2013, 12:35:16 pm
content: I have a problem can find it,The error is herehttp://postimg.org/image/k4i7nyoo7/the code herehttp://postimg.org/image/wr7r0hqt1/

author: Hobgoblin612
author_rank: Contributor
timestamp: April 30, 2013, 10:40:40 am
content: Is 'variables' a reserved keyword?

author: amyk
author_rank: Super Contributor
timestamp: April 30, 2013, 10:59:33 am
content: First of all you should be posting text as text, not images.Secondly the error obviously states something is too big to fit. I'll let you figure out the rest.

author: AlfBaz
author_rank: Super Contributor
timestamp: April 30, 2013, 11:14:04 am
content: The HELP file for MPASM says that the UDATA_ACS directive only works with relocatable code. That means the linker takes care of it.Your code looks as though it is "absolute" (due to the org directive) which means you choose the location of all of your code and variables.With relocatable code you supply directives that the LINKER uses to allocate and locate code space and variable space.The good thing with relocatable code is that you can create code "modules" without regard to where they will be placed. The LINKER will do this during compilation.You really need to learn or read up on relocatable code. Once you come to grips with it will be a good basis for understanding how C compiler tool chains workIf you want to use the access ram in your absolute code you'll have to look at the data sheet, find the start address for it and use it with the equ directive. as far as I know, none of the udata directives work with absolute code
STM8L051F3 amazingness - Page 1
Forum section: electronics / general

author: BiOzZ
author_rank: Regular Contributor
timestamp: April 30, 2013, 10:42:49 am
content: We have been sitting on an idea for a solar powered bathroom scale with logging for some time now and i got an email from a buddy this morning talking about the new STM8L051F3 from STit has some impressive specs with an RTC and a 12 bit 10 channel ADCLow power features: 5 low power modes: Wait, Low power run (5.1 uA), Low power wait (3 uA), Active-halt with RTC (1.3 uA), Halt (350 nA)Ultra-low leakage per I/0: 50 nAFast wakeup from Halt: 5 usClock management: 32 kHz and 1 to 16 MHz crystal oscillatorsInternal 16 MHz factory-trimmed RCInternal 38 kHz low consumption RCClock security systemMemories: 8 Kbytes of Flash program memory and 256 bytes of data EEPROM with ECCFlexible write and read protection modes1 Kbyte of RAMDMA: 4 channels supporting ADC, SPI, I2C, USART, timers1 channel for memory-to-memory12-bit ADC up to 1 Msps/28 channels & Internal reference voltageTimers: Two 16-bit timers with 2 channels (used as IC, OC, PWM), quadrature encoderOne 8-bit timer with 7-bit prescaler2 watchdogs: 1 Window, 1 IndependentBeeper timer with 1, 2 or 4 kHz frequenciesBuilt in debugging and SWIM bootloader for UART programmingall in an 8 bit 3.3v package!Granted for this project the EEPROM is to damn small and we have to fish for an external low power eeprom but that only had to be on when writing and won't be a problem!thought i would share!
parallax boe bot say it module - Page 1
Forum section: electronics / general

author: zainab1421
author_rank: Newbie
timestamp: April 24, 2013, 07:26:14 pm
content: who can help me to do the say it module

author: Skimask
author_rank: Super Contributor
timestamp: April 25, 2013, 04:10:55 am
content: What?
128x64 LCD Problem - Page 1
Forum section: electronics / general

author: bogdan2013
author_rank: Regular Contributor
timestamp: April 21, 2013, 10:41:38 am
content: Hello all ! I made a little software for my GLCD RG12864A and it work well in ISIS Proteus(I used a similar display in simulator : AMPIRE 128x64) . I'm not sure why LCD is not working ...MCU : Mega32Pin config :1. Vss -> GND2. Vdd -> +53. V0 -> POT.4. D/I -> PORTD , PIN 25. RW -> PORTD , PIN 76. E -> PORTD , PIN57. D0 ... 14. D7 -> PORTC , PIN 0 ... PIN 715. CS1 -> PORTD , PIN 316. CS2 -> PORTD , PIN 417. RESET -> +518. Vout - Not connectedP.S. : JTAGEN fuse is disabled .

author: Bored@Work
author_rank: Super Contributor
timestamp: April 21, 2013, 12:50:52 pm
content: Ask Labcenter why the simulation doesn't workhttp://support.labcenter.co.uk/forums/.

author: bogdan2013
author_rank: Regular Contributor
timestamp: April 21, 2013, 12:52:46 pm
content: The simulator work , but my LCD not work

author: Psi
author_rank: Super Contributor
timestamp: April 21, 2013, 01:19:55 pm
content: Is this "while" statement supposed to read data returned from the LCD?Code:#defineDATA_PORTPORTC---while (DATA_PORT >= 0x08){Enable();}If you want to read the inputs you need to use PINC instead of PORTC.Reading PORTC just returns whatever you last wrote to the output port.

author: Bored@Work
author_rank: Super Contributor
timestamp: April 21, 2013, 01:36:35 pm
content: Quote from: bogdan2013 on April 21, 2013, 12:52:46 pmNo, the simulator does not work ok. It should match reality. If something doesn't work in reality then the simulation should not work. If the simulation works it is broken.

author: bogdan2013
author_rank: Regular Contributor
timestamp: April 21, 2013, 02:37:24 pm
content: Still not working ... I will check the software again .

author: PA0PBZ
author_rank: Super Contributor
timestamp: April 21, 2013, 06:48:27 pm
content: Quote from: bogdan2013 on April 21, 2013, 10:41:38 amThen, in GraphicLCD.c line 14:#define E 5So, some confusion here?

author: bogdan2013
author_rank: Regular Contributor
timestamp: April 21, 2013, 06:51:01 pm
content: Sorry , enable is to PIN 5 .

author: amyk
author_rank: Super Contributor
timestamp: April 22, 2013, 10:26:08 am
content: Quote from: Bored@Work on April 21, 2013, 01:36:35 pmMaybe because he's using a different LCD in the simulation than he is in reality?There is no "standard 128x64 LCD". There may be similarities between the command sets of different controllers but the init sequence may differ enough for the code to not be 100% compatible between them.

author: bogdan2013
author_rank: Regular Contributor
timestamp: April 23, 2013, 05:55:55 pm
content: Yep , I use a RG12864 LCD , but in simulator is a similar display : AMPIRE 128x64 .Here is the datasheet :http://www.tme.eu/ch/Document/4c6a62e3da3f0da62c0cec549fd025c8/rg12864a-rgb.pdNow I'm designing new software .

author: bogdan2013
author_rank: Regular Contributor
timestamp: April 23, 2013, 08:51:25 pm
content: Here's new software . It work something , but I still have some problems : the "A" is not displayed correctly and problems with set page . I think is from clock .
interesting AD9850 quirk - Page 1
Forum section: electronics / general

author: Rerouter
author_rank: Super Contributor
timestamp: April 21, 2013, 11:04:59 am
content: when i first picked up one of the modules off ebay, everything went fine, i was using a 1K resistor and a yellow led to stay within the maximum current rating, as a visual indicator,after a few days of testing code for other modules, i hooked it back up (this time accidentally with a 270 ohm) and while testing had a few of the wires pull lose while that code was still running in a constant loop,now i pulled excessive current from an output, and equally fear i may have pushed 1's into the 2 reserved factory codes, though i do not know which may be the cause,the actual unique quirk that now has popped up is that both comparator outputs now will only source more than about a mA at a rate of exactly 1Hz, no matter the actual output frequency or phase, which results in the led flashing at 1Hz even with a 5Mhz signalin the end the output will be buffered by an op amp, but I'm left curious how this behavior might be explained,for reference to the code I'm using, i reverted to this to while troubleshooting with no changehttp://nr8o.dhlpilotcentral.com/?p=83

author: codeboy2k
author_rank: Super Contributor
timestamp: April 21, 2013, 08:59:06 pm
content: I came here expecting to find some cool "quirk" in the chip...I think she's dead. That's no quirk.
A btfsc that is not working? ;s - Page 1
Forum section: electronics / general

author: tahmod
author_rank: Contributor
timestamp: April 20, 2013, 11:33:48 pm
content: I have copy a delay routine from a book, it work perfectly fine, I wanted to introduction a btfsc in the delay routine, when I have done this, while simulating the btfsc was skipped without executing the next instruction.We cannot use a btsc in the delay?CODE:delaymovlw 0C8movwf loop1innernopbtfsc porta,5goto Lopodecfsz loop1,1goto innerreturn

author: Skimask
author_rank: Super Contributor
timestamp: April 21, 2013, 12:36:34 am
content: Again? Same thing?RTFMRTFMRTFMRTFMRTFDSRTFDSRTFDSRTFDSRTFDSRTFPDFRTFPDFRTFPDF

author: dr_p
author_rank: Frequent Contributor
timestamp: April 21, 2013, 01:46:25 am
content: Yes, unfortunately the same idiotic questions keep coming.

author: Skimask
author_rank: Super Contributor
timestamp: April 21, 2013, 04:21:09 am
content: In my mind, it's not that the questions are idiotic. Hell, back in the day, I might've been just as stumped as the next person new to the arena.One of the main problems here is that the O/P doesn't (and likely won't) understand that he (or she) doesn't know what he doesn't know...and keeps going along those same lines rather than backing up.Nah...never mind...it's the same idiotic questions, variations on a different theme...

author: amyk
author_rank: Super Contributor
timestamp: April 21, 2013, 09:29:02 am
content: Quote from: Skimask on April 21, 2013, 12:36:34 amI agree with this too.We have no idea what you're trying to do, and you have no idea either, so asking these very specific but also vague questions doesn't help us help you.