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

author: jaRON
author_rank: Contributor
timestamp: September 24, 2011, 08:51:18 pm
content: I'm looking for a Microcontroller that has 40 pins and the pins can be in or out

author: Unknown
author_rank: Unknown
timestamp: September 24, 2011, 11:37:51 pm
content: How much time did you spend with the parametric search? Plenty of micros are available in TQFP-64 packages and typically have 50+ free I/O pins. Random example: ATmega128. Digikey shows almost 3000 hits for in stock microcontrollers with >= 40 pins.

author: Jimmy
author_rank: Regular Contributor
timestamp: October 10, 2011, 12:31:24 pm
content: http://search.digikey.com/us/en/products/C8051F580-IQ/336-1564-ND/1992157QuoteThe power pins on a micro are only input pins maybe give a little more info as alm is correct in what he is saying. Post more info in a question and more people will respond but we are not here to do google searches for you

author: Trigger
author_rank: Regular Contributor
timestamp: October 16, 2011, 06:04:25 am
content: I think you need a little more than just "I need 40 pins that can be in or out."If you knew what you needed you wouldn't be asking so the generic answer for someone who doesn't know a lot about microcontrollers is get an Arduino or a Propeller.

author: johnboxall
author_rank: Unknown
timestamp: October 24, 2011, 03:42:59 am
content: Quote from: jaRON on September 24, 2011, 08:51:18 pmAtmel ATmega2560 springs to mind.http://au.element14.com/atmel/atmega2560-16au/8bit-mcu-256k-flash-5v-smd-2560/dp/1288330
Linking binary files in MPLABX - Page 1
Forum section: electronics / general

author: NiHaoMike
author_rank: Super Contributor
timestamp: October 20, 2011, 03:54:42 am
content: If I have a binary data file that I want to link in a MPLABX project (using the C30 compiler) so that the data will be programmed into a free section of the Flash and accessible as a const byte array in the program, how do I do it?
microcontroller - Page 1
Forum section: electronics / general

author: jaRON
author_rank: Contributor
timestamp: October 06, 2011, 06:52:51 am
content: What is easyer to get a video signal from a microcontrollerusing vga or s video or rca

author: joelby
author_rank: Frequent Contributor
timestamp: October 06, 2011, 10:44:45 am
content: VGA is the easiest. There are many examples on the Internet that show how to do it.
Common Flash Interface - Page 1
Forum section: electronics / general

author: desowin
author_rank: Contributor
timestamp: October 05, 2011, 06:28:21 am
content: Does anyone know where the AMD/Fujitsu command set for CFI can be found?What is the mysterious K8D1x16U mode inK8D3216UBCdatasheet?Does anyone know if the devicecanbe protected/unprotectedwithoutusing the Vid (high voltage)? (that is, whether it can be protected/unprotected through the CFI or any other way)EDIT: I managed to use the High Voltage temporary block protection removal in the particular case - I posteddetailed instructionson my blog.
Microcontroller and buzzer - Page 1
Forum section: electronics / general

author: jaRON
author_rank: Contributor
timestamp: September 27, 2011, 05:51:22 am
content: ok hi I working on a Microcontroller fans controller. It has 14 fans on it and I use 6 Transistors. and 4 Temperature Sensors. I going to use a BUZZER. so if the temperature get to high it gos off. what i need to know is. can i run the buzzer off the Microcontroller or do I need to put a transistor in it. I use the buzzer obo-1201g-b1http://www.americor-usa.com/piezo_electric/piezo_print_files/PE%20Page%20041..pdf

author: Psi
author_rank: Super Contributor
timestamp: September 27, 2011, 06:14:13 am
content: I'm not sure if that device generates a tone by itself.The two terminals may go straight to a pizeo disc. In which case you would need to give it a signal to make sound rather than dc voltage.If it does produce a sound from DC then that one (obo-1201g-b1) is max 3V 15mA. The micro could supply it directly but if it's a 5V micro you will need a resistor to burn off 2volts.Something like 2v/0.015A = ~139 ohms

author: Zero999
author_rank: Super Contributor
timestamp: September 27, 2011, 04:19:33 pm
content: Quote from: Psi on September 27, 2011, 06:14:13 amThose are magnetic sounders not piezo.The rated current is 30mA which is higher than a typical MCU output can supply so a transistor is required. It needs a squarewave to emit a sound but that's easy to with an MCU or failing that, a couple of transistors. According to the datasheet, the resonant frequency (when it's at its loudest) is 2kHz.

author: Mechatrommer
author_rank: Super Contributor
timestamp: September 28, 2011, 06:38:50 am
content: the safest way is using a driver (transistor). later if you find out the buzzer isnt loud enough, you can simply change it with higher power. and i dont think burdening the mcu to draw much current is a good idea, mcu meant for control, not driver, imho, ymmv.

author: Psi
author_rank: Super Contributor
timestamp: September 28, 2011, 07:36:10 am
content: Quote from: Hero999 on September 27, 2011, 04:19:33 pmThe one he's talking about (OBO - 1201G-B1) has a max current of 15mA.15mA is ok for most micros as they're designed to be able to run a 20mA led.but yeah, a transistor is more future proof and keeps the load off the mcu port.

author: Mat
author_rank: Contributor
timestamp: September 28, 2011, 11:20:41 am
content: Isn't it 15mA at the rated voltage of 1.5V?If it is linear, it would be 30mA at 3V.

author: Zero999
author_rank: Super Contributor
timestamp: September 29, 2011, 04:24:45 pm
content: Quote from: Psi on September 28, 2011, 07:36:10 amThe DC is 42R so it's a good idea to use a transistor in case the output goes high for too long causing 71mA to flow and damage to the MCU.

author: Psi
author_rank: Super Contributor
timestamp: October 04, 2011, 05:27:14 am
content: hm.. you're right, that datasheet is a bit odd.the max current isn't actually its max current.
pic32 family - Page 1
Forum section: electronics / general

author: jaRON
author_rank: Contributor
timestamp: October 05, 2011, 05:37:58 am
content: how do you get the pic32 family in the isis professional

author: joelby
author_rank: Frequent Contributor
timestamp: October 05, 2011, 06:09:51 am
content: It probably only supports a limited range of simpler PICs. Why don't you use the MPLAB simulator if you want to test your code?
Which PIC? - Page 1
Forum section: electronics / general

author: redek
author_rank: Contributor
timestamp: September 16, 2011, 06:49:52 am
content: I'm going to start my first real electronics project, circuit design and programming. I've assembled a few kits, but I want to make a nixie clock. I have decided to get a Pickit 3, and have no idea which pic to use. If someone could point out a chip that I can use for various projects for the next few years I would appreciate it. I've hand soldered surface mounted microcontrollers in the past, so the package isn't a big issue.Thanks,Derek

author: PeterG
author_rank: Frequent Contributor
timestamp: September 16, 2011, 09:13:35 am
content: I would go with any one if the 18F PIC chips.Regards

author: ChrisKiwi
author_rank: Contributor
timestamp: September 16, 2011, 12:14:40 pm
content: If your planning on coding in C then you might like to check out Shane Tolmie's sitehttp://www.microchipc.com/which has lots of examples of coding PIC's in C

author: jakeypoo
author_rank: Regular Contributor
timestamp: September 18, 2011, 04:43:09 am
content: Seehttps://www.eevblog.com/forum/index.php?topic=4786.0

author: bruce273
author_rank: Contributor
timestamp: September 28, 2011, 06:43:20 pm
content: 18f are certainly better but if you want something really simple theres also the 16f series
pin mapping on dsPIC33F - Page 1
Forum section: electronics / general

author: NiHaoMike
author_rank: Super Contributor
timestamp: September 27, 2011, 07:45:50 pm
content: On the dsPIC33F, is it possible to map a pin to be an output of one module (output compare) and an input of another module (timer) at the same time? I'm trying to derive two synchronized clocks for a data acquisition circuit, one of which is the master clock of the ADCs and the other commands a conversion. The second clock is about 1/20th or so the frequency of the first, synchronized such that its falling edge happens when the first clock is low.

author: johnmx
author_rank: Frequent Contributor
timestamp: September 27, 2011, 11:02:06 pm
content: Yes it is.
PIC ASM Help! - Page 1
Forum section: electronics / general

author: deephaven
author_rank: Frequent Contributor
timestamp: September 10, 2011, 03:28:28 pm
content: I'm trying to assemble a PIC asm file written by someone else. Trouble is, it is a few years old and so, no doubt, there have been a lot of changes in the Microchip assembler since then.With the various org statements I am assuming it is written for absolute code generation as opposed to relocatable code. The errors I am getting are mainly like this:Error E:\MPLAB_NEW\CC_DECODER\CC\CC.ASM 424 : Overwriting previous address contents (0020)Now, I notice that the RAM locations are reserved using instructions like this:count: res 1 ; general purpose counterwith RAM origin previously set to 0020What looks like happening is that the assember is interpreting this as reserving program space memory and thus I'm seeing this address duplication.What is the easiest way of getting around this?Code is attached.

author: tycz
author_rank: Regular Contributor
timestamp: September 11, 2011, 04:38:48 pm
content: It's probably something to do with the 'res' directives, apparently they don't work like they used to... I always use the cblock/endc directives instead, I'm pretty sure that still works.If you are not familiar with this code and just want to compile it, the quickest solution is to download an old version of MPLAB or just MPASM from the Microchip website and use that.

author: Frangible
author_rank: Regular Contributor
timestamp: September 11, 2011, 08:34:20 pm
content: What device are you building it for?

author: Frangible
author_rank: Regular Contributor
timestamp: September 11, 2011, 09:12:34 pm
content: Never mind - I read the code.What's happening is that the assembler is reading the "org" statements (particularly the "org rambase" which is 20h) and is assigning that to flash space. Since this is a Harvard architecture, program and data space are in separate memory maps (thus all the weird stuff you have to do to store constants in flash).Unfortunately, the assembler is assigning program space for what should be in RAM. So when the program (which is located at 04h, the interrupt vector) assembles to address 20h, you get this warning from then on - indicating two things are being assigned to the same address.There's a way to organize data memory, but I can't remember it off hand. Try the MPLAB docs for more info.http://ww1.microchip.com/downloads/en/devicedoc/33014j.pdf

author: deephaven
author_rank: Frequent Contributor
timestamp: September 13, 2011, 09:55:26 pm
content: Thanks for the replies, guys. I solved it by using the suggestion of downloading an earlier version of MPLAB. It's nice of Microchip to keep previous versions of MPLAB available on their website.
identify Controller by Pinout? - Page 1
Forum section: electronics / general

author: peet8989
author_rank: Newbie
timestamp: August 23, 2011, 09:30:33 pm
content: Hi,i need to know what µC are used on this PCBs:PCB1(Has 2.4GHz Transceiver built in)PCB2(Pins 1-4 tend to be some SPI-Interface to the RF-Unit)both connect to a host machine via usb, so this functionality tends to be integrated into the chipi'm guessing microsoft did not develop their own asics. They rather "rebranded" some widely available microcontrollers.but how to identify the controller used?btw: none of the boards is physically available to me (yet)i would be glad if you could help me out with some tips :9best regards

author: DrGeoff
author_rank: Frequent Contributor
timestamp: August 23, 2011, 09:59:01 pm
content: Identify such things as power supply pins, serial port pins, jtag/programming pins and SPI/I2C pins. See if they match up with any of the popular MCUs (Hitachi, Renesas, Microchip, Atmel etc).

author: Balaur
author_rank: Unknown
timestamp: August 23, 2011, 10:03:17 pm
content: Quote from: peet8989 on August 23, 2011, 09:30:33 pmReally? This is a very cute assumption.Come on, just by looking at the Wiki Xbox HW page:http://en.wikipedia.org/wiki/Xbox_360_hardwareyou can understand that the design effort was significant and that the chips are largely ASICs. This includes the Wireless Gaming Receiver you are trying to reverse engineer.Quick remark: The ATMLH926 is most likely a 24C08 (8K serial ROM) that contains some product id data (serial, maybe USB ids, who knows).

author: peet8989
author_rank: Newbie
timestamp: August 24, 2011, 05:38:26 am
content: thanks for your answer.but in the wikipwdia article is nothing said about asics!
Arm transistor #? - Page 1
Forum section: electronics / general

author: House91320
author_rank: Regular Contributor
timestamp: August 17, 2011, 06:19:04 am
content: I was just wondering if any one knew how many transistor are in a arm cortex m3?

author: IanB
author_rank: Super Contributor
timestamp: August 17, 2011, 06:39:49 am
content: I read 33,000 gates; not sure how many transistors that might be?

author: bruce273
author_rank: Contributor
timestamp: August 17, 2011, 01:27:10 pm
content: As its an IP core and te designs are sold it would depend on the design tool the company producing the chip uses and also the process they use.

author: House91320
author_rank: Regular Contributor
timestamp: August 19, 2011, 04:42:59 pm
content: k thanks I was just curious how big a an fpga it would take to replicate one.
Softbaugh MSP430 915MHz RF modules with host boards - Page 1
Forum section: electronics / general

author: ToBeFrank
author_rank: Regular Contributor
timestamp: August 05, 2011, 07:14:29 am
content: I have five Softbaugh MRF1611CC1100 915MHz RF modules for sale. Each one has the associated HMRF1611 host module. Three are brand new in sealed anti-static bags. Two are in their anti-static bags but have been opened.http://www.softbaugh.com/ProductPage.cfm?strPartNo=MRF1611CC1100http://www.softbaugh.com/ProductPage.cfm?strPartNo=HMRF1611$150 a piece for the unopened ones. $130 a piece for the opened ones.I also have one Softbaugh USBP MSP430 USB Programmer for sale:http://www.softbaugh.com/ProductPage.cfm?strPartNo=USBP$100
Building GCC-AVR - Page 1
Forum section: electronics / general

author: Coldshore
author_rank: Newbie
timestamp: September 20, 2011, 03:30:53 pm
content: I looking to build the GCC AVR toolchain and keep getting referred to Bingo600's Build Scripts at avrfreaks. For some reason I cannot register there to down load the scripts.Anybody have an alternative download or a clue as to how you register at avrfreaks or better yet has done this for themselves.thanks

author: Bored@Work
author_rank: Super Contributor
timestamp: September 20, 2011, 04:10:23 pm
content: See attachment.

author: Coldshore
author_rank: Newbie
timestamp: September 20, 2011, 05:25:40 pm
content: Thanks!Is Avrfreak open for registration ?

author: Bored@Work
author_rank: Super Contributor
timestamp: September 20, 2011, 05:29:26 pm
content: Quote from: Coldshore on September 20, 2011, 05:25:40 pmI don't know. I have a very old registration there which I occasionally use to download stuff.
Reading PWM signal in PIC micro - Page 1
Forum section: electronics / general

author: danielks
author_rank: Contributor
timestamp: August 01, 2011, 06:47:50 am
content: Can anyone teach me what method or how am I suppose to read PWM signal in PIC ?

author: Psi
author_rank: Super Contributor
timestamp: August 01, 2011, 11:20:14 am
content: i dunno much about what features are available in PICs (there's probably some that can read a PWM directly) .But in general..You could use one of the mcu's hardware timers and see how many counts you can get between pwm signal high/low, low/high changes. This would give you a measurement of the pwm pulse length and you could calculate the duty cycle from that.Depending on the specs of the micro you might be able to use a pin change interrupt to read and reset the counter.A good idea is to look at projects people have already done. There will be lots of projects out there where people have made a mcu pretend to be a RC servo. RC servos read a pwm signal from the RC receiver and power the motor forward or backward in order to move to the position given by the duty cycle. (there is a pot on the servo arm for position detection)

author: johnmx
author_rank: Frequent Contributor
timestamp: August 01, 2011, 04:27:29 pm
content: See:http://ww1.microchip.com/downloads/en/devicedoc/41214a.pdf
STM32 GPIO problem - Page 1
Forum section: electronics / general

author: cyberfish
author_rank: Regular Contributor
timestamp: July 27, 2011, 08:26:17 pm
content: Hello!I have recently assembled my custom STM32 board, and after a day of work, was finally able to program and debug it through JTAG.However, my first program, that turns on 2 LEDs, isn't working.I can trace the code running on the chip through gdb, so compiling/flashing/JTAG seem to not be the problem. The only problem is, the GPIO pin voltages aren't actually changing. The LEDs (on PB8 and PB9) don't light up, and I also verified with a scope (both are at DC 0V).This is what I have -Code:#include "stm32/stm32f2xx.h"void assert_failed(uint8_t* file, uint32_t line){}int main(){GPIO_InitTypeDef gpio_init;GPIO_StructInit(&gpio_init);gpio_init.GPIO_Pin = GPIO_Pin_8 | GPIO_Pin_9;gpio_init.GPIO_Mode = GPIO_Mode_OUT;gpio_init.GPIO_OType = GPIO_OType_PP;GPIO_Init(GPIOB, &gpio_init);GPIO_SetBits(GPIOB, GPIO_Pin_8 | GPIO_Pin_9);for(;;);}Can anyone see what I'm doing wrong?Thanks!

author: bruce273
author_rank: Contributor
timestamp: July 27, 2011, 08:29:55 pm
content: I had the same problem can't remember the code for it but you have to initialise the GPIO clock aswell for GPIO to work

author: cyberfish
author_rank: Regular Contributor
timestamp: July 27, 2011, 08:37:03 pm
content: Thanks so much!! That was it!Code:RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOB, ENABLE);I have never been so excited to see 2 LEDs light up. It has taken me about 5 hours of head scratching already.Never seen this kind of regional clock stuff coming from 8-bit micros.Is it to save power by not clocking unused peripherals?

author: TheDirty
author_rank: Frequent Contributor
timestamp: July 27, 2011, 08:42:03 pm
content: Yes, ARM's generally have peripheral clocks, at least ARM7 and Cortex-M3/M0 do which are the only ones I'm familiar with. You only enable what you are using.

author: bruce273
author_rank: Contributor
timestamp: July 27, 2011, 08:52:20 pm
content: I'm not sure I'd assume so too. It's also possible that it is there to reduce effects of the internal impedance and interference on the clock signal when the peripheral is not in use. Odd thing in both cases is the GPIO clock is still required when an alternative function like UART is used on a pin.
dsPIC33: FRC vs. XTAL Primary Osc - Page 1
Forum section: electronics / general

author: A-sic Enginerd
author_rank: Regular Contributor
timestamp: July 13, 2011, 04:51:05 pm
content: Any trade-offs?Please, I get how to select between them and all the clocking options there and blah blah blah. No need to waste your typing time giving the rundown on how to set things up from that perspective.My question is limited strictly to whether there's any advantage / disadvantage of going with internal vs. external osc.Am planning on feeding it through to the PLL (unless someone convinces me of a good reason not to), and application is pretty basic. Vanilla system control. This part is actually way overkill for this application, but want to get more familiar with it for an up-coming project. Nothing where super tight freq control is mission critical or anything like that.Thanks guys.

author: ejeffrey
author_rank: Super Contributor
timestamp: July 13, 2011, 05:46:45 pm
content: Internal oscillator is cheaper and easier to set up, and external crystal is more accurate, stable, and can be any frequency you want. I guess the external crystal takes more power, but I don't know. Crystals are more shock/vibration sensitive.You would use the external crystal when you needed a communications interface to be at a specific frequency or if you wanted a stable clock for the ADC sample rate.

author: A-sic Enginerd
author_rank: Regular Contributor
timestamp: July 13, 2011, 06:50:15 pm
content: Quote from: ejeffrey on July 13, 2011, 05:46:45 pmGot it. So internal is probably OK for generic don't give a crap applications. Jitter and stability can be a concern. External can give me precision and long term stability. Sounds reasonable.Thanks!

author: NiHaoMike
author_rank: Super Contributor
timestamp: July 19, 2011, 03:46:30 am
content: FWIW, my friend Brittany Benzaia is using the FRC (with PLL I assume) in the dsPIC30F4011 for a hybrid A/C controller (high speed SRM compressor drive plus some other A/C related control) and it was obviously more than accurate enough for that job.However, my friend Megan Cornner used 4 dsPICs (don't know which ones) in a model airplane and she couldn't get the propellers to operate balanced enough until she put a crystal oscillator module in the hub (which has an Arduino as the flight computer) and ran a coax to each dsPIC. (I assume the actual problem was noise messing up the oscillators or an overlooked configuration mistake since a few percent difference should not cause any flight problems.)
Which MCU ? - Page 1
Forum section: electronics / general

author: bilko
author_rank: Frequent Contributor
timestamp: July 15, 2011, 11:53:38 pm
content: I have a board with a 40 pin DIP MCU that I am trying to identify, the manufacturer's details have been scrubbed off. Can anybody narrow it down a little. The crystal connects to pins 38 and pin 39. Gnd is pin 20 and Vcc looks to be pin 40.

author: cyberfish
author_rank: Regular Contributor
timestamp: July 16, 2011, 05:29:12 am
content: Is there some kind of programming interface?

author: hisense999
author_rank: Contributor
timestamp: July 16, 2011, 08:06:12 am
content: Package and VCC, GND suggest some kind of 8051 but clock connection is different - This need more information about device anc connections is this device really need DIP40 or use only few connection from it, communication ports, power design and voltage etc. etc.This is not a mistake which you wrote this are 38 & 39 pins for oscilator not 18 & 19 - if is 18&19 then this perfectly match AVR.B.R.

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: July 16, 2011, 10:30:01 am
content: What sort of vintage is the board? What frequency is the xtal? This may help narrow it down.

author: bilko
author_rank: Frequent Contributor
timestamp: July 16, 2011, 12:59:16 pm
content: Board is from a Xantrex charger/Inverter remote control model RC7Circa 2000I looked up the AVR but haven't found a match for the pinout.Please see attached photo, crystal freq is 4Mhz, no external eprom so assume its a flash device else a OTP.I am trying to document the protocol between the remote control and the inverter.It uses a Max201 chip for the comms so I am going to try a serial sniffer.

author: Rufus
author_rank: Super Contributor
timestamp: July 16, 2011, 02:02:35 pm
content: Some 68HC05 variants like MC68HC705C8A match that pin out.

author: bilko
author_rank: Frequent Contributor
timestamp: July 16, 2011, 02:22:27 pm
content: Quote from: Rufus on July 16, 2011, 02:02:35 pmBrilliant, I can start following the traces and see if they match the functionality. Well done, saved me loads of time on google.Thanks everybody for you help , especially Rufus for finding the chip.
STM32 ADC pins structure - Page 1
Forum section: electronics / general

author: cyberfish
author_rank: Regular Contributor
timestamp: July 02, 2011, 08:50:56 am
content: Just wondering if someone has experience with STM32 ADCs?My question is: Is it possible to do GPIO operations on ADC input pins with the ADC active?It seems to be the case from the reference manual (http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/REFERENCE_MANUAL/CD00225773.pdf, page 206), but I just want to make sure, since for most other peripherals, enabling the peripheral disables GPIO functions on associated pins.In my case, I wish to talk to a 4-wire touch screen, which means I will have to alternatively drive some of those 4 pins high, low, and float (ADC read). I wouldn't be able to drive the pins if enabling the ADC disables their GPIO functions.Thanks!

author: hisense999
author_rank: Contributor
timestamp: July 15, 2011, 03:22:35 pm
content: I not clearly understand your design if is about you want use one pin for example PA0 as ADC input and also as some input or output in same time or you are just worry enabling ADC will disable all pins mentioned in datasheet ? If is about second option then don't worry all pins use routing interface so as long as you don't map pin as AF then peripherials don't have access into it and is working as standard GPIO. For example if you enable ADC without map any pin mentioned in datasheet into ADC AF then you will get ADC which is connected to nothing but working.But if it is about first option then just change on the fly the function of pin from Alternate Function (AF) into IN\OUT running peripherial don't means this pin is connected into it, choosing of pin function you doing by your own so just change pin function into IN\OUT when you need it and then map it again as AF this will works. In this case don't care too much about ADC descriptions more look at GPIO descriptions and functions in datasheet.B.R.

author: cyberfish
author_rank: Regular Contributor
timestamp: July 15, 2011, 05:03:47 pm
content: It's the second option. That's for clearing that up!

author: hisense999
author_rank: Contributor
timestamp: July 16, 2011, 02:13:15 am
content: Then don't worry, datasheet only show which pins which you can use with ADC but without your interaction will not take any pin by itself, to connect pins which you want first you must connect it to ADCThis is taken from STM32 library example:/*** @brief Configures the different GPIO ports.* @param None* @retval None*/void GPIO_Configuration(void){GPIO_InitTypeDef GPIO_InitStructure;/* Configure PC.02, PC.03 and PC.04 (ADC Channel12, ADC Channel13 andADC Channel14) as analog inputs */GPIO_InitStructure.GPIO_Pin = GPIO_Pin_2 | GPIO_Pin_3 | GPIO_Pin_4;GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AIN;GPIO_Init(GPIOC, &GPIO_InitStructure);}So here only 3 channels of ADC are configuret as Alternate Input, by default all IO ports (except JTAG ports) are configured as general GPIO pins which are not connected to any special peripherials, just datasheet always show to you possible connections with peripherials which you can do using Alternate functions of GPIO pins.B.R.
PICkit2 and programming EEPROMs - Page 1
Forum section: electronics / general

author: Neganur
author_rank: Unknown
timestamp: June 25, 2011, 03:26:22 pm
content: I spent some time trying to figure out how this EEPROM programming feature with the PICkit works.I do have a programmer for serial EEPROMs but kind of like the way the PICkit standalone application works, and would consider buying the older PICkit2 in order to shelf my old programmer (parallel port) in favor for a simple USB device. PICkit3 doesn't seem to have this feature.I didn't find any satisfying answers on google or Microchip's own forum.Is this feature only available in the command line tool PK2CMDv1-20 for the PICkit2?I don't actually own a PICkit2 so the GUI application has the Device Family list omitted as shown in the screenshot below (the PICkit3 standalone software does the same until a programmer is attached).MPLAB v8.66 doesn't seem to support this at allas seen in the picture below:Does anyone have any experience with this? Do you use your PICkit2 to program serial EEPROMs?

author: ivan747
author_rank: Super Contributor
timestamp: June 26, 2011, 11:14:23 pm
content: You can do a simple EEPROM programmer. Check out the Bus Pirate. It can communicate using multiple protocols. I have a PICKit 3 and I want to do this too, as well as using it as a serial terminal and maybe even a logic analyzer. If they had open source libraries and a rock solid bootloader on the PK3 I'm sure the community would have implemented all of this in weeks.

author: Neganur
author_rank: Unknown
timestamp: June 27, 2011, 01:48:40 pm
content: Hm,the source for both the firmware and the application is availablefor PICkit2.With MPLAB-X being based on an open-source framewrok (and it supports PicKit3) maybe there's still hope.Why can I select serial EEPROMs in MPLAB if none of the programmers supports them.Thanks for mentioning the BusPirate, I happen to have one and programming an EEPROM works fine withflashrom v0.9.1- r905 for Windows.Apparently only the command line application allows you to program serial EEPROMs with the PICkit2. What a shame - the GUI standalone looks much nicer.
Automatic indent and cleanup for C / C++ source code? - Page 1
Forum section: electronics / general

author: st1
author_rank: Contributor
timestamp: May 16, 2011, 11:04:41 am
content: Hi, I was wondering if anyone knew of a program for Windows that can fix indentations and cleanup C / C++ source code?I've seenhttp://www.codeblocks.org/do it. But i need windows side :O any ideas ?I', using micro C and MPLAB but i cant see any options like that in it.(I'm currently doing a work around by using codeblocks (windows version) and going back and forth when things need fixing, but it's kind of a pain)

author: scrat
author_rank: Frequent Contributor
timestamp: May 16, 2011, 12:35:55 pm
content: I just made a test using Visual Studio Express (which is free, but is a huge package to install, IIRC), and it is able to auto intent the selected text (Edit->Advanced->Format selection). However, I never used that feature, so I don't know how good it works.If you're already using Matlab for something else, its editor has a "Text->smart indent" command, too. I use this feature for M-files, it works perfectly, and seems to work for C-files, too.Other free editors I use/used (dev-cpp, Notepad++) don't have automatic recognition and indentation features, AFAIK.

author: firewalker
author_rank: Super Contributor
timestamp: May 16, 2011, 01:46:30 pm
content: Code::Blocks Works fine under Windows.http://sourceforge.net/projects/codeblocks/files/Binaries/10.05/Windows/codeblocks-10.05mingw-setup.exe

author: dengorius
author_rank: Regular Contributor
timestamp: May 16, 2011, 02:05:44 pm
content: Indent.It also runs under windowshttp://gnuwin32.sourceforge.net/packages/indent.htm

author: senso
author_rank: Frequent Contributor
timestamp: May 20, 2011, 02:54:34 am
content: I use GVim a lot, can use it in Windows and Linux, and to auto-indent all my code I do this:ESC to go to command mode and thengg=G and it auto-indents all the file, its also a nice and very very powerfull editor, with more capabilities than a lot of clicodrome IDE's

author: A-sic Enginerd
author_rank: Regular Contributor
timestamp: June 08, 2011, 05:26:12 pm
content: For work - verilog and system verilog it's all in gvim.However, for C code (as well as many other software languages) it's hard to beat SlickEdit. Has configurable beautifier. You can configure your preference of coding style and it just simply does it. Costs a few bucks, but it's trick enough that I know a number of people (including myself) that sprung for a copy even for personal use. It's capable of serving as your complete IDE as well.

author: Phyllostachys
author_rank: Newbie
timestamp: June 23, 2011, 01:15:12 pm
content: In Visual Studios with the focus on the code window, type in the key sequence: ctrl-A, ctrl-k, ctrl-F. This will highlight then do proper formatting of all code in the window.
ICD capable replacement for 16F627A - Page 1
Forum section: electronics / general

author: sdscotto
author_rank: Contributor
timestamp: August 29, 2011, 06:41:16 pm
content: Does anyone have a recommendation for a pin compatible replacement (DIP18) for the 16F627A that includes ICD?I have been unable to locate one using the parametric search on Microchip's page although I'd be surprised one doesn't exist.Thanks in advance,scotto

author: oPossum
author_rank: Super Contributor
timestamp: August 29, 2011, 09:33:26 pm
content: PIC16F87 and PIC16F88, or any 18 pin 18F series part.

author: BBQdChips
author_rank: Contributor
timestamp: August 30, 2011, 02:53:40 am
content: PIC16F1826/PIC16F1827 come to mind. I'm assuming you want a PDip?I'm not positive they are pin compatible (completely). VDD/VSS are centered on either side, but it strikes me there's something different about port A on the 627/8 layout. Better check the datasheet on that.Also, 16F818 and 819You must not have looked at the MAPS on the site.http://www.microchip.com/maps/microcontroller.aspxIt's a bit easier to use than the parametric, though, it lacks linking to the product pages... (dumb)

author: sdscotto
author_rank: Contributor
timestamp: August 31, 2011, 03:26:53 am
content: Quote from: oPossum on August 29, 2011, 09:33:26 pm16F87 is a possibility, 16F88 is not as all of PORTB is in use. I hadn't considered moving up to the 18F as a drop in replacement. Good idea, I'll check into that as an option.Thanks.

author: sdscotto
author_rank: Contributor
timestamp: August 31, 2011, 03:29:43 am
content: Quote from: BBQdChips on August 30, 2011, 02:53:40 amI had not used the MAPS. I didn't even know it existed. Thanks.Digging through more datasheets....
PIC 24F Input Change Notification Works on PORTA but no PORTC? - Page 1
Forum section: electronics / general

author: Twistx77
author_rank: Regular Contributor
timestamp: June 14, 2011, 08:41:26 am
content: Hi,I'm working in a new design where I need to detect changes in pins from RC0 to RC5. I'm using an interrupt to detect when an pin have changed. The problem is that it doesn't work, it works with pins in PORTA but not PORTC. I configure them exactly the same way. I've checked that there is no other peripheral assigned to those particular pins. I've also check that the RC pins are working as inputs since I can read the real state by using if (PORTCbits.RC0==1) ...Code://Interruptvoid __attribute__((interrupt, auto_psv)) _CNInterrupt(void) {PORTBbits.RB0 = 1;WriteUART1(0x35);InputChange_Clear_Intr_Status_Bit;}//ConfigurationTRISC = 0xFFFF;TRISA = 0xFFFF;AD1PCFG = 0xFFFF;InputChange_Clear_Intr_Status_Bit;ConfigIntCN(INT_ENABLE|INT_PRI_4);EnableCN2;EnableCN8;// CNEN1bits.CN8IE = 1; I also tried this.I would appreciate any help.Thanks.Code:
Microcontrollers Resistor - Page 1
Forum section: electronics / general

author: jaRON
author_rank: Contributor
timestamp: September 27, 2011, 01:26:59 am
content: do i need a Resistor between the Microcontroller and the Transistor it is irf44

author: buffalo960
author_rank: Contributor
timestamp: September 27, 2011, 01:56:28 am
content: https://www.youtube.com/embed/Te5YYVZiOKs

author: Psi
author_rank: Super Contributor
timestamp: September 27, 2011, 03:08:38 am
content: Assuming 5V drive, you should put a low value resistor, like 200 ohms, between the microcontroller and the gate.It insures that the current can never get above 25mA (5V/200) which is safe for the microcontroller i/o port.It would work fine without the resistor but it's always a good idea to use it anyway.Resistors are cheap, mosfets and microcontrollers, not so much.

author: buffalo960
author_rank: Contributor
timestamp: September 27, 2011, 07:21:22 pm
content: Is there any way (other then switching the mosfet really fast) that the gate current would rise above very low levels?

author: Psi
author_rank: Super Contributor
timestamp: September 28, 2011, 03:31:45 am
content: Yeah, if the mosfet blew up (as they sometimes do) it might short the mosfet supply rail to the micro i/o and damage it. Especially if the mosfet rail is higher than 5V
ChipKit-Arduino for PIC32 - Page 1
Forum section: electronics / general

author: djsb
author_rank: Super Contributor
timestamp: May 27, 2011, 09:23:24 am
content: Just found out about thesehttp://digilent.cc/Products/Detail.cfm?NavPath=2,892,894&Prod=CHIPKIT-MAX32Forumhttp://www.chipkit.org/forum/It seems that the Arduino is moving into the PIC arena.Any thoughts?David

author: johnmx
author_rank: Frequent Contributor
timestamp: May 27, 2011, 10:51:30 am
content: repost:https://www.eevblog.com/forum/index.php?topic=3525.0
Google Announces Arduino based ADK for Android Hardware Development. - Page 1
Forum section: electronics / general

author: firewalker
author_rank: Super Contributor
timestamp: May 10, 2011, 06:55:03 pm
content: Google Announces Arduino based ADK for Android Hardware Development.http://developer.android.com/guide/topics/usb/adk.html

author: PeterG
author_rank: Frequent Contributor
timestamp: May 11, 2011, 01:24:08 am
content: I am thinking this is going to be a good thing for both Arduino and Google.Now i have to get myself a tablet to play with.Regards

author: ColinA
author_rank: Contributor
timestamp: May 12, 2011, 09:25:14 pm
content: I don't understand the $400 price point..

author: the_raptor
author_rank: Regular Contributor
timestamp: May 14, 2011, 05:49:39 am
content: Personally I wonder if Atmel have the production capacity to support it* if it really takes off.I mean I am an Arduino user, but I bet this decision had more to do with ideology then engineering practicality.* At least it is based off the Arduino MEGA and so doesn't use the DIP versions which are nearly always out of stock. Every major Arduino board maker has a non-DIP version these days, besides that being slightly against the user friendliness of Arduino, because of the supply problems for DIP ATMega168/328.

author: logictom
author_rank: Unknown
timestamp: May 14, 2011, 02:35:30 pm
content: Quote from: ColinA on May 12, 2011, 09:25:14 pmBecause they can?Pick up the Microchip board at a fraction of the costhttp://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en553673If I has a Android phone I'd jump right on the bandwagon, unfortunately nothing like this exists for the iphone with it's locked down hardware

author: johnboxall
author_rank: Unknown
timestamp: May 15, 2011, 11:07:44 pm
content: It seems you can use the SDK with a normal Arduino USB host shield:http://wp.me/p1yvvg-pHaven't tried it yet but looks promising.If anyone around Sydney, Australia is interested there is a one-day "Arduino + Android Open Accessory Development " course on 16th July.See -http://littlebirdelectronics.com/products/arduino-android-open-accessory-development-workshop
PIC web server with DynDNS - Page 1
Forum section: electronics / general

author: Nermash
author_rank: Frequent Contributor
timestamp: April 11, 2011, 07:45:30 pm
content: I am preparing one project for an embedded system with PIC 18F micro that will have a web server running. It will be connected in a LAN, and have DHCP functionality. I see that Microchip is giving their free TCP/IP stack, and that there is a DynDNS module for registering of your public IP to DynDNS service.Has anyone played with such setup? Does it work OK?

author: Unknown
author_rank: Unknown
timestamp: April 11, 2011, 09:17:02 pm
content: No experience with the Microchip IP stack, I lost interest when I noted that you can't redistribute the source, for example in an open-source project. It sounds like a lot for a small uC, IP stacks this size usually implement only a small fraction of the TCP/IP protocol (eg. no fragmentation), not sure how well this will work over the internet with servers you don't control. If you ignore mandatory parts of a protocol, you risk creating a solution that only works in 95% of the cases. If it's just for hobby, this may not be an issue.

author: Nermash
author_rank: Frequent Contributor
timestamp: April 12, 2011, 01:50:35 pm
content: Thanks Alm, cca 95% reliability is good enough for my purpose.
Fundamentals of Microcontrollers - Page 1
Forum section: electronics / general

author: stl
author_rank: Contributor
timestamp: May 26, 2011, 04:53:44 pm
content: By EE Times:http://seminar2.techonline.com/~fundamentals/mcu/player.htmlThis course seems like a good starting point for newbies like me

author: FreeThinker
author_rank: Frequent Contributor
timestamp: May 27, 2011, 02:48:47 pm
content: Lasted about 10 mins before I fell asleep.... Man he has one boring voice

author: RoelA
author_rank: Contributor
timestamp: May 28, 2011, 06:11:14 pm
content: Wow, this is good for insomniacsFarnell also has a few of these online, calledTechcast's.Same boring voices btw.

author: CarolSwayze2016
author_rank: Newbie
timestamp: June 10, 2011, 06:37:57 am
content: Fundamentals of Micro-controller are never easy to learn for that we need lot of concentration and interest.Because micro-controller is the main part of any system to get some action because it has no. of chips and pin configuration.For this we read it and understand it very clearly.
On-line Pic Book found, useful for beginers - Page 1
Forum section: electronics / general

author: dimlow
author_rank: Frequent Contributor
timestamp: February 28, 2011, 07:42:56 pm
content: I was just searching the net for examples of pic ADC interrupt when i came across this very useful intro to pics on-line book. Thought id post a link here for newbies.http://www.mikroe.com/eng/products/view/11/book-pic-microcontrollers/Best thing about this is its free.

author: Chasm
author_rank: Regular Contributor
timestamp: March 01, 2011, 03:22:01 am
content: Looks good at first glance. Please repost in the sticky course material thread.

author: maggi9donald
author_rank: Newbie
timestamp: April 09, 2011, 06:29:37 am
content: Quote from: dimlow on February 28, 2011, 07:42:56 pmGlimpse looks good.Yuppy!!!

author: Zero999
author_rank: Super Contributor
timestamp: April 09, 2011, 08:52:05 am
content: Here's one I've been following, covering baseline PICs, assembly and C to midrange devices.http://www.gooligum.com.au/tutorials.html
lm3s2965 oled - Page 1
Forum section: electronics / general

author: House91320
author_rank: Regular Contributor
timestamp: March 22, 2011, 01:51:27 am
content: Is anyone aware of some oled test code for the lm3s2965.

author: House91320
author_rank: Regular Contributor
timestamp: March 23, 2011, 05:05:34 am
content: found it

author: Unknown
author_rank: Unknown
timestamp: March 23, 2011, 07:33:48 pm
content: How about posting a link so anyone finding this thread in the future also knows how to find it? I know from experience that it's very frustrating to find a report of the exact same problem you're having, which ends with 'problem solved' without any indication how.

author: House91320
author_rank: Regular Contributor
timestamp: March 24, 2011, 12:39:49 am
content: go to this pagehttp://www.luminarymicro.com/products/lm3s2965.htmlinstall stellarisware
USB host/microcontroller - Page 1
Forum section: electronics / general

author: DavidDLC
author_rank: Frequent Contributor
timestamp: February 08, 2011, 04:14:15 am
content: Can you recommend a USB host chip to be used with a Microchip microcontroller ?For learning purposes I want to use a USB mouse with it.Thanks.

author: joelby
author_rank: Frequent Contributor
timestamp: February 08, 2011, 04:23:50 am
content: MAX3421E?Or just use a PIC24F or PIC32 with USB host support.

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: February 08, 2011, 10:17:31 am
content: Vinculum VNC2 may be worth a look as well, unlike the earlier device this is a user-programmable MCU with USB libraries, but can be used as a serial/SPI to USB host interface with their ready-made firmware.The (free) devtools are a bit sucky at the moment, but useable.

author: monpjc
author_rank: Contributor
timestamp: February 08, 2011, 07:45:27 pm
content: Quote from: mikeselectricstuff on February 08, 2011, 10:17:31 amAgreed - I have used these are are very good - can talk to it over serial like like typing DOS commands - very simple to use and removes all that USB protocol stack stuff if all your interested in is get access to a flash drive.Alternatively Microchip have very good library's and support. Also lost of pre-written examples you can teak to your application.

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: February 15, 2011, 04:56:30 pm
content: Quote from: penelopeklimas on February 15, 2011, 01:06:01 pmIt will bewayeasier to use a serial or ps/2 keyboard interfaced barcode scanner.

author: miquentry
author_rank: Newbie
timestamp: February 20, 2011, 11:27:49 am
content: In my new project I´m using the PIC18F4550 with embedded USB port and I use the PC to recognize USB EasyHID Wizard.Very easy to use.

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: February 20, 2011, 03:28:47 pm
content: Quote from: miquentry on February 20, 2011, 11:27:49 amThat's USB Device - the OP wants USB Host, which is a whole 'nother ballgame

author: NiHaoMike
author_rank: Super Contributor
timestamp: February 25, 2011, 10:57:49 pm
content: Some of the cheap routers have USB host in the chipset. If you can find a deal, it's about as cheap as it gets.

author: Zad
author_rank: Super Contributor
timestamp: February 26, 2011, 04:43:56 pm
content: There are many many inexpensive ARM dev boards out there which provide USB host, some are OTG too.

author: neoone
author_rank: Regular Contributor
timestamp: March 01, 2011, 10:53:33 am
content: wouldn't it be easier just to use PS/2 mouse ? Any way, you can try LPC17XX series (NXP Cortex M3). They have Device/Host/OTG.
AVRDUDE cygwin compilation - Page 1
Forum section: electronics / general

author: neoone
author_rank: Regular Contributor
timestamp: March 20, 2011, 12:14:46 am
content: Hello!I'm not sure if this is the right place for that topic but seems close enough. I'm currently making a very simple universal programmer for ARM, MSP430 and AVR which is basically FT232 with some additional stuff like 2 transistors. It is a simple USB solution for people without LPT port for my UniProg v1.0 (LPT based JTAG ARM + JTAG MSP + AVR STK200) and is dedicated to my dev-board called Akai Kaba (red hippo in Japanese)www.livelights.pl/akaikabawhich is now being used by 100+ students.Any way, my problem is about compiling AVRDUDE 5.10 with FT232 bitbang patch under Cygwin. Linux is not my strongest topic and also rarely I do something "manually" with GCC. I've got some older version which is working almost fine but I'd like to use new one and also add some simple esthetic's to the program to make it similar to the other soft (for MSP430 and ARM). Do you know any clear description of that compilation process ? THX in advance.
MSP430 in Altium Designer - Page 1
Forum section: electronics / general

author: flodins
author_rank: Contributor
timestamp: October 06, 2010, 04:49:13 pm
content: HelloIs there any library for Altium having msp430 series?

author: djsb
author_rank: Super Contributor
timestamp: October 06, 2010, 07:19:32 pm
content: No unfortunately.You can check for yourself as they have a library index file (in Excell format) on their website.

author: Hypernova
author_rank: Unknown
timestamp: October 07, 2010, 01:01:11 am
content: If you are talking foot prints you can search for existing ones from altium on their website. SCH symbol you will have to make them yourself but it's pretty easy.

author: miquentry
author_rank: Newbie
timestamp: February 20, 2011, 11:06:08 am
content: You can visit page:http://www.voth.ca/links.php
Question Help! - Page 1
Forum section: electronics / general

author: radiocrazier
author_rank: Contributor
timestamp: February 14, 2011, 01:00:59 am
content: I have a question, there is microcontroller like AVR or any other chips can make a analog to digital convert,but mine just can test votage range0-5V,is there any way i want to let it test-2.5~+2.5,who can make a special circuit or change a chip but AVR seriousThankx!!