hybridfree/eevblog-posts huggingface dataset:
Burglar Alarm project - Page 1
Forum section: electronics / general

author: tahmod
author_rank: Contributor
timestamp: April 06, 2013, 10:40:18 pm
content: Hi,I want to do a burglar alarm project. I want to ask if any of you have done already a project on buglar alarm so I can learn from.

author: VanitarNordic
author_rank: Frequent Contributor
timestamp: April 16, 2013, 08:46:11 pm
content: This project should be designed for what areas, what customer and to keep the safety of what?
How to do a  btfsc for an analogue input - Page 1
Forum section: electronics / general

author: tahmod
author_rank: Contributor
timestamp: April 18, 2013, 09:48:26 pm
content: I am using the 18F87J11 microcontroller. I just wanted to know how could I test for a analogue input (I know how to test for a single bit of a digital data, but I do not know how to do it for analogue quantity).I want tobtfsc porta, 3 ;I want to skip the the next instruction if the analogue input is about half of the full rotation

author: David_AVD
author_rank: Super Contributor
timestamp: April 18, 2013, 10:18:12 pm
content: You need to do an analog read of the pin, then compare the result to some set point value.So, you will need to configure the A2D converter, turn it on, select the correct channel, start the conversion, wait for conversion to complete, read the result and act on it !

author: Skimask
author_rank: Super Contributor
timestamp: April 19, 2013, 03:03:23 am
content: Quote from: tahmod on April 18, 2013, 09:48:26 pmYou still haven't looked at the datasheet, have you???

author: David_AVD
author_rank: Super Contributor
timestamp: April 19, 2013, 03:08:35 am
content: The OP sent me a PM with code, but I asked for him/her to post here instead. No point discussing stuff like that via PM.

author: amyk
author_rank: Super Contributor
timestamp: April 19, 2013, 10:54:59 am
content: I would almost bet that there's some cheap Chinese gadget out there using a digital input on a uC as a 1-bit ADC...

author: Skimask
author_rank: Super Contributor
timestamp: April 19, 2013, 01:07:36 pm
content: Quote from: amyk on April 19, 2013, 10:54:59 amWell, ya, that sort of thing isn't new by any stretch...

author: AlfBaz
author_rank: Super Contributor
timestamp: April 19, 2013, 03:04:33 pm
content: The 18F87J11 has an analogue comparator module that maybe useful.

author: tahmod
author_rank: Contributor
timestamp: April 19, 2013, 09:57:09 pm
content: This is the code for the analogue to digital;*************************************;Code to set up the A to D;*************************************#ifdef __18F8722clrf ADCON0bsf ADCON0,0 ;turn on A/Dmovlw b'00001110' ;RA0 = analog inputmovwf ADCON1movlw b'10111010'; ;right Justified Fosc/32movwf ADCON2#endif#ifdef __18F87J11bsf WDTCON,ADSHR ;Shared SFRsetf ANCON0setf ANCON1bcf ANCON1,0 ;Make RA0 Analog inputbcf WDTCON,ADSHR ;disable write read to the shared SFRclrf ADCON0bsf ADCON0,0 ;turn on A/Dmovlw b'10111010' ;Fos/32 right justifiedmovwf ADCON1#endif;*************************************; Code to read the A to D;*************************************bsf ADCON0,GO ;start conversionbtfsc ADCON0,GObra $-2movff ADRESL,ARG1Lmovff ADRESH,ARG1H;*************************************; Code to output result to LEDs;*************************************movff ARG1H, PORTDbra menu ;go back to menu
Graphic LCD 128x64 library & tutorial for AVR? - Page 1
Forum section: electronics / general

author: bogdan2013
author_rank: Regular Contributor
timestamp: April 07, 2013, 01:39:57 pm
content: Hello !Know someone a good library and tutorial for Graphic LCD for Atmel Studio ? I can't find a good oneI found only for PIC and Arduino ...

author: Psi
author_rank: Super Contributor
timestamp: April 07, 2013, 01:43:04 pm
content: Depends on the graphic lcd your using.Sparkfun have some libraries for the Nokia 128x128 lcds.

author: bogdan2013
author_rank: Regular Contributor
timestamp: April 07, 2013, 01:53:45 pm
content: Here is the datasheethttp://yl2mk.qrz.ru/md_repair/raystar128x64.pdfSimple LCD Module .
Relay Coprocessor - Page 1
Forum section: electronics / general

author: wd5gnr
author_rank: Regular Contributor
timestamp: April 02, 2013, 01:41:45 am
content: Haven't been on for awhile, but had to stop by to share this:And to make it more on topic, yes I used my Rigol DS1052EXXXX DS1100E to get this working.73

author: Ferroto
author_rank: Frequent Contributor
timestamp: April 02, 2013, 05:33:14 pm
content: Enjoy

author: Smokey
author_rank: Super Contributor
timestamp: April 02, 2013, 07:10:05 pm
content: One seriously cool relay project is the mechanical tabletop Pong game made entirely out of relay logic. Nuts.http://www.niklasroy.com/project/31/

author: wd5gnr
author_rank: Regular Contributor
timestamp: April 06, 2013, 02:50:59 pm
content: Those are cool. I posted the "how to" for mine athttp://www.awce.com/rlyco.html.The code would be pretty easy to port to any PC general purpose I/O board you wanted.

author: peter.mitchell
author_rank: Super Contributor
timestamp: April 06, 2013, 04:12:04 pm
content: So... what's the clock frequency on one of these 1hz? 2hz?

author: lemmegraphdat
author_rank: Frequent Contributor
timestamp: April 07, 2013, 09:56:37 pm
content: Stone knives and bear claws.

author: amyk
author_rank: Super Contributor
timestamp: April 08, 2013, 11:59:10 am
content: Much bigger one:http://web.cecs.pdx.edu/~harry/Relay/(That guy is a wizard.)Some of the tiny reed relays can switch much faster, in the hundreds of Hz range, but that's still ridiculously slow compared to transistors.
avr & pic programmer - Page 1
Forum section: electronics / general

author: peterthenovice
author_rank: Regular Contributor
timestamp: April 02, 2013, 01:41:15 am
content: Dave's april fools sprung the idea that a open source dual development board could be made. Is it possible. maybe based on arduino code

author: 4to20Milliamps
author_rank: Regular Contributor
timestamp: April 02, 2013, 03:00:57 am
content: It should only take a few years to have enough support for enough devices to make it worth while.http://www.kanda.com/products/xeltek/SP3000U.htmlhttp://www.xeltek.com/software/sp3000u/sp3000uDevice.pdfI'd say if no one has tried it with an arduino yet, there might be a reason.

author: westfw
author_rank: Super Contributor
timestamp: April 02, 2013, 03:17:25 am
content: http://forum.freetronics.com/viewtopic.php?t=342
Microcontroller Voltmeter - Page 1
Forum section: electronics / general

author: bogdan2013
author_rank: Regular Contributor
timestamp: March 30, 2013, 09:17:59 am
content: Hello all !How I can read a external Voltage with my microcontroller (with internal ADC - Mega32) ? I need only basic circuit .

author: hammil
author_rank: Regular Contributor
timestamp: March 30, 2013, 09:26:42 am
content: Well, that's dead easy. Connect your voltage to the ADC pin, read it in software, display on your 7-segment or LCD module.However, your range will only be 0 - 5V (or 3.3V). If you go outside it, you will blow up your uC. To avoid this, you'll need to either divide it down (a 1:10 divider will allow you to measure up to 50V, but with decreased precision obviously) or design a proper automatic switching attenuator (which is not easy),

author: bogdan2013
author_rank: Regular Contributor
timestamp: March 30, 2013, 09:59:03 am
content: Yep , really easy . I can read the voltage from a pot. (from 0 -> 5000 mV - 10 bit ADC) , but the problem for me is how to read 12V .

author: Skimask
author_rank: Super Contributor
timestamp: March 30, 2013, 10:20:19 am
content: And did you read the previous post completely?Divide the voltage with a V O L T A G E D I V I D E Rhttp://lmgtfy.com/?q=voltage+divider

author: bogdan2013
author_rank: Regular Contributor
timestamp: March 30, 2013, 11:13:42 am
content: Now I understand ! I know about voltage divider . Thanks ! It work fine in ISIS Proteus 7 . I will put in practice .

author: NiHaoMike
author_rank: Super Contributor
timestamp: March 30, 2013, 05:16:58 pm
content: You'll also want a low pass filter (just add a good amount of capacitance, I've had good luck with 47uF for slow DC measurement channels) and average multiple samples in software for higher effective resolution.

author: VanitarNordic
author_rank: Frequent Contributor
timestamp: April 02, 2013, 10:06:40 pm
content: As other friends said about divider, just put one multi-turn potentiometer on input. You can adjust it easily to earn your linearity parameter, let we name it K.
A Half Duplex Network - Page 1
Forum section: electronics / general

author: croberts
author_rank: Regular Contributor
timestamp: April 11, 2013, 03:24:26 pm
content: All of the PCBs in my Solar Powered LED lighting system are networked with a simple half duplex network. I have been working to improve the network transaction time (how often each network object can be polled). I have rewritten the assembly language code for the communications state machine and have the transaction time down to 1mS. The main difference in the code is I am waiting first for the TXSTA,TRMT bit to clear and then to be set after a transmission (the TRMT bit indicates the state of the transmit shift register and can only be polled). This allows me to set the direction of the MAX487 to receive as soon as possible when the transaction requires it. I have the communications state machine in the interrupt handler that executes every 200uS and waiting for the TRMT bit to go high before leaving the interrupt handler means Timer0 (rollover causes interrupt) will rollover before I leave but that is OK because I add the current Timer0 value to the preset value required to achieve 200uS and the timing will self correct before the next transaction occurs (1mS).The test circuit has a Master and Slave connected by one twisted pair driven by the MAX487s. When you change the switch settings at the Master you see the LEDs change at the Slave and vice versa.The protocol is the same as described in the topic I did for a Full Duplex Network and that can be found here;https://www.eevblog.com/forum/microcontrollers/a-full-duplex-network/Attached are the following;Test Circuit Schematic as PDFMaster assembly language code as ASMSlave assembly language code as ASMTXSTA,TRMT flowchart as PDF

author: croberts
author_rank: Regular Contributor
timestamp: April 12, 2013, 11:53:55 am
content: Hello AllI made a correction to the test schematic in the original post. The MAX487s were not labeled.
MPLABX HItech c issues - Page 1
Forum section: electronics / general

author: Ferroto
author_rank: Frequent Contributor
timestamp: April 01, 2013, 05:10:12 pm
content: When I try to create a new project from the PIC 16 C template I got the following errorCode:error: Configuration "HT_PIC16F54" builds with "hi-tech-picc", but no toolchains of that type are installed.I just did a fresh install of both the MPLABX IDE and XC8 compiler and I'm still getting the same results.also it cannot find the following files despite the fact that I have no problem finding them with windows search.Code:#include <stdint.h> /* For uint8_t definition */#include <stdbool.h> /* For true/false definition */I'm using windows 7 64-bit

author: DavidDLC
author_rank: Frequent Contributor
timestamp: April 01, 2013, 05:17:38 pm
content: If you installed the compiler, make sure it is selected on the Dashboard of your project:

author: DavidDLC
author_rank: Frequent Contributor
timestamp: April 01, 2013, 05:19:01 pm
content: Check:

author: andersm
author_rank: Super Contributor
timestamp: April 01, 2013, 06:21:17 pm
content: Open the project properties and select the right toolchain to use.

author: Ferroto
author_rank: Frequent Contributor
timestamp: April 01, 2013, 08:02:10 pm
content: It turns out that my toolchain was buggered and needed to be reinstalled.
MSP430 Texas Instruments Launchpad Board - Page 1
Forum section: electronics / general

author: ChrisGreece52
author_rank: Frequent Contributor
timestamp: March 23, 2013, 01:32:18 pm
content: I was about to order a new Msp 430 Launchpad board from Texas Instruments only to find out that the price was increased from4.30 USD to 9.99 USDSo i am asking you about your opinion on this matter.In my opinion i think that its their loss because 4.30 was pretty cheap encouraging everyone to buy on even if this person was not into electronics only to test it and get into basic programming.Now with the 9.99 price (still pretty cheap but not quite as cheap for a basic platform) its more discouraging to get an MSP 430 and not get an arduino for 5 more bucks which is more famous , available worldwide and open source (i dont know if the launchpad is open source too.).So please tell me your opinion.Thank you.

author: firewalker
author_rank: Super Contributor
timestamp: March 23, 2013, 01:56:08 pm
content: Is the shipping still free? My opinion? Buy both.Also keep in mind that MSP430 Launchpad offers debugging capabilities.Alexander.

author: bingo600
author_rank: Super Contributor
timestamp: March 24, 2013, 06:12:03 pm
content: Hmm also 9.99 @TIYou'd better get some here while they lasthttp://www.watterott.com/de/MSP430-LaunchPad-MSP-EXP430G2Or get some serious powerhttps://estore.ti.com/Stellaris-LaunchPad.aspxI'd get a STM32xx-Discovery instead , but ymmv./Bingo

author: Pat Pending
author_rank: Regular Contributor
timestamp: April 01, 2013, 01:01:46 am
content: The Stellaris Launchpad initially launched with the LX4F120H fitted although the board silk screen indicated LM4F120XL.The LX4F120H had the longest errata list of any chip I've seen, and used to retail for $4 USD with free shipping.
Blew the ass out of my Digilent Jtag - Page 1
Forum section: electronics / general

author: Hardcorefs
author_rank: Regular Contributor
timestamp: April 01, 2013, 04:10:55 am
content: Hi,I was wondering are there any circuit diagrams for the digilent USB-JTag.Its the one in the black rubber Square case.Many of the resistors are just completely black , most read 10k on a meter, but several read a few 100 ohms.The parts were actually produced without numbers......, so I'm suspecting that a couple may have gone short, but i need a working unit for comparison.
ART UP-1 Universal programmer on a 64 bit Win OS? - Page 1
Forum section: electronics / general

author: TheWelly888
author_rank: Frequent Contributor
timestamp: March 17, 2013, 11:51:30 am
content: I changed my laptop from a 32 bit ( with XP ) to a 64 bit one ( with Win 7 ) and struggled to get my ART UP-1 universal programmer to work on it - it would not find the USB driver that I had downloaded and installed from ART's website. I only then noticed that the downloads are only for the 32bit computers!!!I have just emailed their technical support asking about 64 bit software and while I am waiting for a reply wonder if anyone here has managed to get the UP1 working on a 64bit Win 7 OS laptop/PC?

author: BravoV
author_rank: Super Contributor
timestamp: March 17, 2013, 11:55:03 am
content: Virtualisation

author: nctnico
author_rank: Super Contributor
timestamp: March 18, 2013, 03:22:43 am
content: You could reinstall using 32 bit Windows 7.
MicroXplorer 3.0 for STM32, now with config code generation - Page 1
Forum section: electronics / general

author: KedasProbe
author_rank: Frequent Contributor
timestamp: March 16, 2013, 11:31:48 am
content: Anyone used this already?I tried generating code and it generated 'nice' looking code.Some editing required but you have a structure and less likely you forgot to set something or did it wrong.Website:http://www.st.com/web/catalog/tools/FM147/CL1794/SC961/SS1533/PF251717

author: Harvs
author_rank: Super Contributor
timestamp: March 18, 2013, 01:24:10 am
content: I had a play around with this having seen your post.From what I can see, it just generates the IO setup code (unless I'm missing something.) Which to be honest, is the easiest bits of setting up the peripherals for these devices.I guess it's of some use, but it needs to do a lot more to make it worth using. Like you can select a peripheral (say USART2), it will plonk down the pins it likes the look of on the package, then to change it you still need to pull out the datasheet and find out what other pins could be used for that peripheral. It should have a drop down listing all the alternate pins for each peripheral.It seems like a fairly large tool that doesn't really do much.
Stellaris Launchpad Logic Analyser - Page 1
Forum section: electronics / general

author: HackedFridgeMagnet
author_rank: Super Contributor
timestamp: March 13, 2013, 05:46:54 am
content: As somebody pointed out, a logic analyser might be a good use for your Stellaris Launchpad.So I gave it a go.Quotethe protocol is I2C talking to a ds1307So the analysis doesn't quite work yet, but my data seems to be coming in albeit with some ugly spikes.And I have remote debugging on the launch pad if I needed it.My bus pirate decodes the same data ok so I am not sure what is going on.One day I will look a bit deeper.

author: ve7xen
author_rank: Super Contributor
timestamp: March 13, 2013, 05:53:26 am
content: Looks like the decoder has detected SCL/SDA incorrectly, you'll probably need to set those manually.

author: HackedFridgeMagnet
author_rank: Super Contributor
timestamp: March 13, 2013, 06:28:40 am
content: Yes that was the case, I turned off auto detect, and I have less errors.

author: Skimask
author_rank: Super Contributor
timestamp: March 13, 2013, 07:17:28 am
content: WOW! Great find! And just when I was wanting one...I've got 3 of these Launchpad's sitting here at the bench waiting for an application like this.

author: BravoV
author_rank: Super Contributor
timestamp: March 13, 2013, 07:20:10 am
content: Its about time my launchpad to be loaded with decent app rather than noob apps all this time.Thanks !

author: Skimask
author_rank: Super Contributor
timestamp: March 13, 2013, 01:54:23 pm
content: Quote from: BravoV on March 13, 2013, 07:20:10 amI resemble that remark!

author: ve7xen
author_rank: Super Contributor
timestamp: March 13, 2013, 06:04:59 pm
content: Quote from: HackedFridgeMagnet on March 13, 2013, 06:28:40 amSeem to correspond with the glitches on your SDA line. They look like legit errors to me.

author: bingo600
author_rank: Super Contributor
timestamp: March 14, 2013, 09:48:43 pm
content: Quote from: HackedFridgeMagnet on March 13, 2013, 05:46:54 amGuilty as charged/Bingo
PIC32 Ethernet Starter Kit with MPLAB-X help - Page 1
Forum section: electronics / general

author: SirDan
author_rank: Contributor
timestamp: March 15, 2013, 09:05:37 pm
content: Hello,Just purchased a new PIC32 Ethernet starter kit. This is my first foray into PIC. I have downloaded the IDE, compiler and demo application files. I confirmed everything is working and can make changes to the source code (variables) that show up on the web server output. I am having a hard time wrapping my head around how to edit the demo web pages. I found the html pages but changes I make do not show up when the board is re-programmed. I tried a make clean and re-compiled the entire source from scratch, still no go. I googled around some, but so far have not found a good tutorial. Can someone shed some light on this?Is anyone here interested in making some bucks (paypal account needed) getting me set up with a new project template, and doing some training/consulting? I am crunched for time so I would like to shorten the learning time curve if possible.Thanks,Dan

author: notsob
author_rank: Frequent Contributor
timestamp: March 15, 2013, 10:47:06 pm
content: have a look at gooligum.com

author: SirDan
author_rank: Contributor
timestamp: March 16, 2013, 06:15:12 am
content: Thanks for the reply notsob. I emailed them and asked if they would build a TCP/IP setup tutorial for the PIC32 Ethernet Starter kit.Update: I figured out how to edit the web pages. Its very weird. Make your changes to the html files, then you have to use the Microchip MPFS Generator utility that compresses the webpages into hex bytes and stores them into a C file that gets compiled with the board firmware.Dan
Arduino and ucs5903 PWM LED drivers - Page 1
Forum section: electronics / general

author: fyrewurx
author_rank: Contributor
timestamp: March 12, 2013, 10:52:45 am
content: Hi everyone,As the title says I am trying to use Arduino to control some ucs5903 led drivers. The info about these chips is almost nothing. The most useful thing I found is that they are very similar to d705. The first link if you google d705 is the datasheet. Using the shiftout function of the arduino I managed to get the 3 basic colors: red, blue, green using this code in the attachment. I managed to get similar results with the hardware SPI too. The main problem is that I don't understand how to get other colors (except using shiftOut(PIN_DATA, PIN_CLOCK, MSBFIRST, random(0,255)and how to get dimmed colors. The final project is to create an ambilight using 25 of these controllers. The software I will try to use is lightpack prismatik.Thank you,Alex

author: Harvs
author_rank: Super Contributor
timestamp: March 12, 2013, 11:45:57 am
content: well a quick google search and here's the Chinese datasheet:http://www.icdemi.com/manual/UCS5903P.pdfwhich you can use google's translation on. However, the timing and data diagram on page 4 is a graphic not text, so you'll need to convert it if you want to translate that bit (which sounds like it's most important to you.)Or if you ask really nicely perhaps one of our Chinese speaking readers might translate the few words for you so it can make sense.I imagine that will show what you need to do.

author: fyrewurx
author_rank: Contributor
timestamp: March 13, 2013, 03:53:53 pm
content: Thank you for your response Harvs.I checked the datasheet you linked and I think is exatly the info from this datasheethttp://www.leds.ru/pdf/D705_en.pdf(it's english). On page 3 is the timing and data diagram. I just don't understand how "The D705 next to the controller receives the first data frame, the frame contains one start bit of ‘1’ and three sets gray scale data of 5 bits for RGB" translates to actual code in Arduino.

author: David_AVD
author_rank: Super Contributor
timestamp: March 13, 2013, 08:59:51 pm
content: The D705 pixel driver seems to use the same data format as the popular LPD6803. I have used both. There's plenty of example code out there for the LPD6803.Basically the R, G & B are 5 bits each and are packed (with a start bit) into 2 bytes. There is also the 32 bits (4 bytes) of zero at the start of each frame.So it goes:4 bytes of zerostart bit + all of red bits + part of green bitsrest of green bits and all of blue bitsRepeat steps 2 and 3All done
MSP430G2 on 5V - Page 1
Forum section: electronics / general

author: brainwash
author_rank: Frequent Contributor
timestamp: March 13, 2013, 07:47:54 pm
content: Ok ok, I know, it is bad, do not use in commercial designs, bla bla.I know that VCC is clamped by diodes so it's not a huge problem feeding it 5V through a limiting resistor. I can also go with a voltage divider.What about I/O pins? There's no electrical schematic of them, just some block diagram. Can these manage 5V via a 10k-60k resistor?I'm out of PIC10F so I have to use the lowest thing I have on hand, otherwise I have to break out the mid-range PICs and it would be a waste for a 3 GPIO project.

author: SebG
author_rank: Regular Contributor
timestamp: March 13, 2013, 08:09:36 pm
content: Hey.I'm not familiar with TI MCUs but from the data sheet the absolute maximum voltage that can be applied is 4.1V so maybe consider using 1 or 2 diodes in series with the power pin of the MCU since they can step down the voltage from 5V to 5 - (2* 0.6) = 3.8V or so. Resistors might not ensure the voltage drop is constant which depends on what the MCU is doing or how much current it is drawing. If using resistors then consider what is the minimum and maximum current the MCU will draw (this will create a Voltage-drop across the resistor) then you need to compare the voltage with the minimum and maximum voltage the device can operate on.

author: brainwash
author_rank: Frequent Contributor
timestamp: March 13, 2013, 08:17:13 pm
content: There are a lot of good ways to do it: voltage divider, transistor, ULN buffer, ....I just want to do it the bad way and wondered if anyone has tried feeding these chips with with <2mA @ >4.2V .Well, I guess I just have to try it and see, it's not like I have much use for these low-power chips.

author: mrflibble
author_rank: Super Contributor
timestamp: March 13, 2013, 08:18:54 pm
content: Is there any IBIS data out there for the MSP430G2? That should get you some idea of what those clamping diodes will take, and what they won't take. Mostly it's just ... slap on a current limiting resistor so the clamped voltage at the msp's io pads slay within acceptable limits.

author: brainwash
author_rank: Frequent Contributor
timestamp: March 13, 2013, 08:23:12 pm
content: What's IBIS data?Somewhere in the messy datasheet it says Absolute maximum ratings: Diode current at any device pin +-2mA. I assume that should be the clamping diodes, but as a rant that's one of the worst uC datasheet I have ever seen.It didn't stop half of the world to embed the chips in their designs though.

author: mrflibble
author_rank: Super Contributor
timestamp: March 13, 2013, 08:57:40 pm
content: Based onthis threadI think no IBIS for msp430.Also note this response:QuoteSo now you know why I suggested ibis data.
Saving PIC firmware to a file - Page 1
Forum section: electronics / general

author: ttp
author_rank: Regular Contributor
timestamp: March 23, 2013, 10:26:08 am
content: This is my second encounter with PIC and MPLABX. I'm trying to fix a gadget that has PIC18F25K80 in it, I think PIC is ok but wanted to save the firmware just in case I'll break the chip. I got access to PICKIT3 and after working out which pins need to be connected where and soldering wires to tiny smd pins I thought it's going to be easy. All connected ok and the proof is here:Code:Connecting to MPLAB PICkit 3...Firmware Suite Version.....01.28.57Firmware type..............PIC18FTarget detectedDevice ID Revision = 42013-03-23T18:21:15+1000- Reading...The following memory area(s) will be read:program memory: start address = 0x0, end address = 0x7fffconfiguration memoryEEData memoryUser Id MemoryReading...Read complete2013-03-23T18:21:22+1000- Read completeI don't seem to be able to save (or even see) the contents of PIC flash or anything? Am I loosing my marbles or is MPLABX and IPE so intuitive to use?

author: AndyC_772
author_rank: Super Contributor
timestamp: March 23, 2013, 10:38:11 am
content: What do you see when you select Window > PIC Memory views > Program Memory?It's possible that the device will have code protection turned on, in which case you won't be able to read back the memory contents.

author: ttp
author_rank: Regular Contributor
timestamp: March 23, 2013, 11:09:35 am
content: I think you are right, I was sort of expecting protection as its a commercial device. I can only see NOP's.Now the question to Microchip, if in fact the flash is protected how hard is it to mention it in the log instead of "Read completed"?
elbrus CPU - Page 1
Forum section: electronics / general

author: lucius_O_maximus
author_rank: Newbie
timestamp: March 05, 2013, 03:37:53 am
content: Hi everyone,i dont know if its the right place on this forum for my question but i am looking for manufacturers of ELBRUS cpu's and a place where i could buy them.Those i am interested in are the ELBRUS 2000 , ELBRUS 2C+ , and the MCST-R1000 (sparc instruction set)I looked around the web but i am having a hard time to find a manufacturer.Thanks for any sort of help

author: amspire
author_rank: Super Contributor
timestamp: March 05, 2013, 04:05:42 am
content: Trywww.mcst.ruor the Google translated versionhttp://translate.google.com/translate?sl=auto&tl=en&js=n&prev=_t&hl=en&ie=UTF-8&eotf=1&u=http%3A%2F%2Fwww.mcst.ru%2FIt looks like they have a technology that can execute many instructions per clock cycle so you can get huge speed at a relatively low clock rate and power, but have suffered from lack of investments. Intel have bought the rights to a lot of their technology, and a number of their designers, but I am not sure if Intel has used the technology in products yet.I assume Elbrus MCST (Moscow Center of Sparc Technology) is a subsidy of elbrus.ru

author: reagle
author_rank: Unknown
timestamp: March 08, 2013, 04:47:02 am
content: Ah, the famous Russian supercomputer company. Didn't realize they are still alive.The R1000 chip is herehttp://www.mcst.ru/system-4x.shtmland their contact info:Tel: +7 (495) 363-9665 | Fax: +7 (495) 363-9599 | E-mail: mcst@mcst.ruIf you need a native speaker's help in translation- let me know
Networked RTC FP Display - Page 1
Forum section: electronics / general

author: croberts
author_rank: Regular Contributor
timestamp: March 07, 2013, 06:51:51 pm
content: At some point while designing the Solar Powered LED lighting system for my home, I decided it would be nice if the master controller knew what time of day it was. That was the inspiration for the Networked RTC FP Display board design. I decided to use an LED display so I could drive the display directly from the PIC16F690. The display is multiplexed so the circuit doesn’t demand much power but there is provision on the board to manually blank the display by removing jumper JP5. Because the circuit can be used as a real time clock or a floating point display there is another hardware provision on the board (JP4) to allow for the display of either a colon or decimal points. Pins are limited when you are using a 20 pin PIC so for real time clock applications two jumpers (JP1 and JP2) and a trimpot are used to set the time. A 3 pin connector can be installed in place of the trimpot in floating point display applications to allow for the connection of a local analog signal to the PIC for ADC. The displayed information does not have to be local because the board can be connected to the half duplex network in my lighting system so the displayed number can be from network data. The schematic shows circuitry for a half duplex network but those of you who read my topichttps://www.eevblog.com/forum/microcontrollers/a-full-duplex-network/know the circuit can be easily converted to use full duplex.When this circuit is used as a real time clock, accuracy is bound to be a concern. The real time clock is using the internal oscillator of the PIC as a timebase so tolerance and drift as a result of temperature, aging, etc can affect the accuracy of the clock. For my application, I’m not concerned about near perfect clock accuracy and the circuit is installed in a room temperature environment. The clock does keep time fairly well and from time to time when it crosses my mind I reset it as required. I have a provision in the software to add or subtract seconds per hour to help compensate for the small inaccuracy of the PIC internal oscillator. I’m sure some additional measures could be implemented in software to improve accuracy.If you are curious about the state machines in the assembly file, please read my posthttps://www.eevblog.com/forum/microcontrollers/a-simple-state-machine/Attached are the following files;Networked RTC FP Display schematic as pdfNetworked Real Time Clock code as asm*Networked Real Time Clock installation as jpg***Columns may not appear as intended if not viewed in MPLAB editor.**Shows 2" x 2" PCB installed in 4" electrical box
PROGRAMMING OF PIC16F73 using MIKROC PRO SOFTWARE - Page 1
Forum section: electronics / general

author: ash123
author_rank: Newbie
timestamp: March 06, 2013, 04:36:14 am
content: Hey Guys,I am just trying to learn programming of PIC using embedded C so can anyone pls let me knw how to access the memory of PIC using embedded C as my requirement is to accept an input string compare it with my stored database in PIC memory and display the result in an LCD. Can anyone pls help me out with this ?? If there is any kind of tutorial that will help me in understanding PIC programming using embedded C pls do share it!! Help me out!!

author: Bored@Work
author_rank: Super Contributor
timestamp: March 06, 2013, 04:40:59 am
content: Sounds like homework.

author: W4GNS
author_rank: Newbie
timestamp: March 06, 2013, 02:25:18 pm
content: MikroE has books that are free to read online.http://www.mikroe.com/pic/books/

author: Skimask
author_rank: Super Contributor
timestamp: March 06, 2013, 02:48:49 pm
content: Quote from: Bored@Work on March 06, 2013, 04:40:59 amWhere's that +1 button???
TVOut based on FreeRTOS? - Page 1
Forum section: electronics / general

author: brainwash
author_rank: Frequent Contributor
timestamp: February 25, 2013, 10:14:28 pm
content: I'm struggling with the TVOut option on a Stellaris Launchpad so I thought that maybe I'm reinventing the wheel and someone already did this using an RTOS implementation. TI has their own TI-RTOS and also FreeRTOS and SafeRTOS are included in the standard dev toolchain.So, simple question, is there any library or example based on an RTOS that does analog TV output? I must be getting slow at googling because I cannot not find any.Another question for the more advanced ones out there: would an RTOS be able to enter cycle-accurate into the line display function? Ballpark figures are 80Mhz on the MCU (so 0.0125us for a single cycle), 64us is periodically needed for encoding a line, ~4us out of those remain for general application use. During the vertical sync signal some time can be used for general application use. General timing tolerance is about .20us.I'm looking to do this without nasty assembler instructions or cycle counting, that's the challenge. I don't care if it's PAL or NTSC, both are pretty much supported together. Targeting monochromatic only: black, gray, white.Oh, I forgot, I do have some code available if anyone wants to test TVOut with their stellaris. I have put the code up on another forum for now, I can also attach it here or put the link. Only two resistors are needed, as usual with these monochromatic implementations.

author: andersm
author_rank: Super Contributor
timestamp: February 26, 2013, 11:01:09 am
content: The LM4F120H5QR datasheet claims deterministic interrupt response times. You'll have to make the interrupt the highest priority (and the only one running at that priority) to avoid the tail-chaining optimization.Have you looked at using the DMA engine to drive the display?
Problem with another Mega32 - Page 1
Forum section: electronics / general

author: bogdan2013
author_rank: Regular Contributor
timestamp: February 22, 2013, 08:53:38 pm
content: On another Mega32 the clock fuses was setted wrong : RC Oscillator 8-12 Mhz external . I don't know how to reverse thisI put a external clock from my mega32 and the software who was in flash is working good , but my programmer can't connect to it ...

author: olsenn
author_rank: Frequent Contributor
timestamp: February 22, 2013, 09:45:54 pm
content: Some fuses can be set/cleared in a running system via Atmel's ISP programming; however, some require high voltage programming with the reset line disconnected. The Atmel AVR Dragon, MiniPro TL866CS, or any of several clone HV programmers sold on Ebay can all do this for you, but it may just be cheaper and more convenient for you to throw out that chip and buy a new one.

author: hlavac
author_rank: Frequent Contributor
timestamp: February 22, 2013, 10:41:49 pm
content: This is exactly why I bought AVR Dragon.Screwed up too many fuses with dodgy cheap ISP programmers for it to pay for itself in saved chips...I have soldered a ZIF socket to it and made a few PCB adapters that connect the right pins for chips I use most to avoid the (mis)wiring...

author: fmaimon
author_rank: Unknown
timestamp: February 22, 2013, 11:18:54 pm
content: If you drive the clock externally with, say 1 MHz, you shouldn't have problem programming it. Remember that the clock have to be at least 4 times higher than the ISP frequency. If all fails, you can check this:http://hackaday.com/2010/05/17/magically-repair-avr-chips/

author: bogdan2013
author_rank: Regular Contributor
timestamp: February 23, 2013, 10:36:46 am
content: I solved the problem ! I used a external RC oscillator (that from datasheet of mega32) with 22 pF cap and 50 KOhm resistor . I put the ISP frequency to 7 KHz and the Clock generator to 180 KHz . I put the default clock 1 MHz and now is working fine !Thanks guys !

author: Psi
author_rank: Super Contributor
timestamp: February 23, 2013, 08:55:59 pm
content: You need high voltage programming only if you have disabled serial programming or disabled the reset pin functionality.
Mega32L External Clock - Page 1
Forum section: electronics / general

author: bogdan2013
author_rank: Regular Contributor
timestamp: February 22, 2013, 02:26:08 pm
content: Hello ! I want to put an external crystal oscillator , but I'm not sure how to put it . I need only to put the oscillator terminals to pins 12 and 13 ? It's ok if I put 8 MHz Crystal ?

author: PA0PBZ
author_rank: Super Contributor
timestamp: February 22, 2013, 02:55:47 pm
content: An 8 MHz crystal is ok, but have a look at page 26 of this:http://www.atmel.com/Images/doc2503.pdfYou need 2 capacitors to ground also.

author: bogdan2013
author_rank: Regular Contributor
timestamp: February 22, 2013, 03:22:06 pm
content: That 2 capacitors in series with pin 12 , 13 with 22 pF values ?Hmm ... What SUT_CKSEL fuse to put ?

author: PA0PBZ
author_rank: Super Contributor
timestamp: February 22, 2013, 03:58:14 pm
content: Quote from: bogdan2013 on February 22, 2013, 03:22:06 pmIt's on the same page.

author: bogdan2013
author_rank: Regular Contributor
timestamp: February 22, 2013, 04:45:39 pm
content: Thanks !
89c51 non-isp programmer - Page 1
Forum section: electronics / general

author: Alana
author_rank: Frequent Contributor
timestamp: February 17, 2013, 06:32:50 pm
content: I'd be glad for links and recommendations for 8051 series programmer. I have several of older non-isp chips around and i would like to play with them again. I have programmer for 89c51 and 89cx051 [20pin version] but this is parallel port based and in my new lappy there is no LPT.I'd strongly prefer DIY version - i propably have all the parts but i do not have money.

author: westfw
author_rank: Super Contributor
timestamp: February 18, 2013, 03:14:46 am
content: Well, it would certainly be easiest to start with some other microcontroller; preferably something with a lot of pins that was itself easily programmable with a modern computer (or perhaps you could borrow a computer with a parallel port for long enough to program an 89c51 to make a programmer from?) An Arduino MEGA or Sanguino would probably be a good starting point.I have some 89c51s too; just connecting all those wires seems like a major PITA compared to a modern serial-programmable controller. :-( Mine are LQFP, so just popping them into a socket doesn't seem likely, either. Sigh.

author: westfw
author_rank: Super Contributor
timestamp: February 18, 2013, 10:01:49 am
content: Hmm. I found this:http://www.kmitl.ac.th/~kswichit/easy2/easy2_1.html

author: Alana
author_rank: Frequent Contributor
timestamp: February 18, 2013, 10:30:59 am
content: Problem is that pc software for it is not available on project's webpage.

author: amyk
author_rank: Super Contributor
timestamp: February 18, 2013, 02:07:18 pm
content: http://chaokhun.kmitl.ac.th/~kswichit/ez4/ez4.htmlThe slight issue is that the programmer itself needs an 89C51 to be programmed... maybe then you'd have to "bootstrap" via DIP switches and pushbuttons?

author: Alana
author_rank: Frequent Contributor
timestamp: February 18, 2013, 02:25:55 pm
content: Those designs are OK and i do have means of programing bin/hex into 89c51 but there is an issue with PC software - i checked out all those programmers on this webpage and the only pc software that is still there is for LPT version.

author: notsob
author_rank: Frequent Contributor
timestamp: February 18, 2013, 09:19:43 pm
content: As you said price was an issue, these are probably not for you but have a look anyway.http://www.mikroe.com/8051/development-boards/http://www.mikroe.com/8051/programmers-debuggers/Notice that the\ey also use the Silabs programmer/debuggerhttp://www.silabs.com/products/mcu/udp/Pages/UDP-debug-adapter.aspx
STM8S Discovery board with bigger mcu. - Page 1
Forum section: electronics / general

author: mrflibble
author_rank: Super Contributor
timestamp: February 14, 2013, 07:34:15 pm
content: I thought I'd get me some STM8S-Discovery boards, wave the hot air wand a bit and swap out the installed mcu with a more capable one. Specifically, remove the STM8S105C6T6 and install a spiffy new STM8S207CBT6.I went over the disco board user manual and the 2 mcu datasheets and can't think of any reason why this should not work. But maybe someone already went through this exact same process and knows of any gotchas...

author: bingo600
author_rank: Super Contributor
timestamp: February 14, 2013, 08:36:21 pm
content: Quote from: mrflibble on February 14, 2013, 07:34:15 pmI only have 1 argument against the STM8 -The C-Compiler is either crippleware or $$ware.I have 4 STM8S that i bought just for the "snappable" Jtag/Programmer part (Use Versaloon firmware) , i have never even bothered to apply power to the STM8 part.Get a STM32F4-Discovery if you need power or space/Bingo

author: mrflibble
author_rank: Super Contributor
timestamp: February 14, 2013, 09:19:16 pm
content: Quote from: bingo600 on February 14, 2013, 08:36:21 pmDo you mean to imply that documentation for STM8 is not as shit as for STM32? I'll just add "crap documentation" to that list shall I? ;-)QuoteHeh, I already have a few of those and more on the way.The STM8 is for a project where I basically need N times (DAC input + PWM output), where the PWM outputs preferably have to support center aligned mode and the cost per IO is as low as possible (you know, the usual). The STM32 certainly will have all the required capabilities but cost per IO pair (DAC input + PWM output) is quite a bit higher than for a STM8 solution.It doesn't even have to be ST. I am perfectly fine with something MSP430-ish or NXP LPCxxx or AVR if it fits the bill. Hell, I might even consider Microchippie but it had better be areallygood fit for the project.I went over all of that and STM8S2xx seems to be the best fit for the requirements of which the above is a very rough sketch. :p

author: mrflibble
author_rank: Super Contributor
timestamp: February 17, 2013, 05:22:03 pm
content: Quote from: mrflibble on February 14, 2013, 07:34:15 pmNoone? Oh well, guess I'll find out soon enough.
can I use the on-board programmer/debugging to debug other PIC series 16,18 - Page 1
Forum section: electronics / general

author: sundaram nauduri
author_rank: Newbie
timestamp: February 17, 2013, 12:26:59 pm
content: Hello my name is Sundaram I’m from India; I’m having “PIC32 USB STARTER KIT” which is having on board programmer/debugging (ICSP JTAG)Pins used for programmer/debugging are belowDBG_PGDDBG_PGCDBG_MCLRNow my doubt is… can I use the on-board programmer/debugging to programmer and debug other PIC series Micro like PIC16, PIC18….?Thanks In advance…Sundaram

author: Skimask
author_rank: Super Contributor
timestamp: February 17, 2013, 01:45:17 pm
content: No
PIC MCLR circuit help - Page 1
Forum section: electronics / general

author: AlfBaz
author_rank: Super Contributor
timestamp: February 05, 2013, 06:52:17 am
content: I'm working with a PIC32 and and didn't want to dick around with a jumper, as suggested in the data sheet, to disconnect the filter cap whenever you wanted to program/debug the thing.I decided to look at my PIC16 explorer board and see how MC did it. This is the circuit I have deciphered from the user guide's schematicI think I understand most of it. R5 pulls MCLR high for normal operation, C18 mitigates any spikes that may cause spurious resets, R7 limits current into MCLR pin if it fails, according to data sheet it should be less than 470 ohms but I'm guessing that its high enough to protect any of the programmer/debuggers attemting to pull it high if the Reset button is stuck low.What I dont get is the diode D1 and R22. FOr some pics, programming the chip involves raising MCLR to a higher programming voltage. In that case D1 will be forward biased but I don't understand why they would want that. For the PIC32 there is no need for a higher programming voltage, its a matter of holding it low, pulsing it high and sending some ascii code to the pgd pinDoes anybody have any clues as to the purpose of D1 and R22

author: AndyC_772
author_rank: Super Contributor
timestamp: February 05, 2013, 07:01:33 am
content: At a guess, the diode might be there to protect the PIC in the event that the programmer is set to +5V. No idea about R22, though.

author: codeboy2k
author_rank: Super Contributor
timestamp: February 05, 2013, 11:27:18 am
content: Quote from: AndyC_772 on February 05, 2013, 07:01:33 amThe diode is definitely there to keep the MCLR line a diode drop above 3.3 volts.R5, R7 and R22 form a voltage divider which keeps the MCLR pin at about 3.0V. This may or may notbe significant.R22 could be there as a safety, to provide a path to ground if the 3.3 volt supply is turned off, but there isstill external power applied to one of the JTAG, PICKIT2 or ICD2 pins.The cap needs to bleed off too (but that's probably not it)

author: AlfBaz
author_rank: Super Contributor
timestamp: February 05, 2013, 12:10:14 pm
content: Thanks for your thoughts guys...I have seen schottkey diodes used in MCLR circuits before but usually to isolate the pin from any toher connected bits from the programming voltage.I cant see any other purpose for this diode other than what you guys have mentioned. The only other thought is incase a debugger is connected and powered on and it tries to drive MCLR high whilst the board is off, but that doesn't make sense cause I'm sure most microchip debugger/programmers can also supply power.As for the voltage divider, i was a little concerned about the 3V given the data sheet says the min voltage on MCLRis 0.8VDD, which at 3.3 is 2.64V. I don't quite see the logic of putting a cap in to provide transient supression in an effort to avoid a reset and then go and drop the voltage at the pin so that its closer to the reset value