EmbeddedRelated.com

PIC16F648A interrupts

Started by Robert Baer in comp.arch.embedded8 years ago 5 replies

I have a simple program that runs the (timer2) PWM reliably, scope measurements confirm timing of pulse width and the rate as well. I add...

I have a simple program that runs the (timer2) PWM reliably, scope measurements confirm timing of pulse width and the rate as well. I add a simple 256 location lookup table to change the PW on a cyclic basis. Still OK but not exactly verified with scope on a dynamic basis, tho verified that i get the proper PW at setting of CCPR1L. Now, here is when i get into trouble; addin...


anybody know a good C compiler for pic10/12/16 ??

Started by Andre in comp.arch.embedded12 years ago 7 replies

I am using HighTch Picc ( LITE ) I am retired and can't afford paying +/- 1000 ? for the picc PRO. The LITE version loose about 40% in no...

I am using HighTch Picc ( LITE ) I am retired and can't afford paying +/- 1000 ? for the picc PRO. The LITE version loose about 40% in no optimisation and I can't fit all my code in a pic16f648a. I have been googling a while but I didn't find any free compiler ( no such thing as pic-gcc ) I won't loose a lot by moving to another micro, ATMEL avr seems interesting, there is avr-gcc. any...


PIC code for LMX2306 synthesiser

Started by Thomas Magma in comp.arch.embedded19 years ago 1 reply

Does anyone have any PIC code (PIC16F676) for National's LMX2306. I'm sure the PIC has been interfaced to this chip a million times and I'm...

Does anyone have any PIC code (PIC16F676) for National's LMX2306. I'm sure the PIC has been interfaced to this chip a million times and I'm looking for some drag and drop code to save a few hours. Thanks, Thomas


Trouble to start with ARM LPC2148. Dev Environement issu

Started by Anonymous in comp.arch.embedded18 years ago 7 replies

Hello all, I started recently to learn MCU world and I have dealed with 8-bits PIC16F684 & HCS08 MCUs and it was exiting & very helpful...

Hello all, I started recently to learn MCU world and I have dealed with 8-bits PIC16F684 & HCS08 MCUs and it was exiting & very helpful experience. Now I want to move on to 16/32 bits witch ARM. I bought a wonderful Dev board with Philips LCP2148, "Embedded Artists", but now I am VERY STUCK witch DEV ENVironment: witch one to use to develop and program my board?. With the board I got many ...


Programming my PIC chip in Linux

Started by in comp.arch.embedded16 years ago 1 reply

I'm running Ubuntu Linux. I have a C project that I want to compile and upload to my PIC chip (the PIC16F684 to be exact). I've already...

I'm running Ubuntu Linux. I have a C project that I want to compile and upload to my PIC chip (the PIC16F684 to be exact). I've already gotten the PIC Lite C complier from htsoft.com, but I need an application for uploading the machine code to the chip. Windows users use a thing called MPLAB, but I can't get this for Linux. Can anyone please suggest a Linux alternative? I don't nee...


Avoiding a short circuit at boot up

Started by in comp.arch.embedded16 years ago 11 replies

I'm very new to working with microcontrollers, I only started using them properly within the last week. I'm using the PIC16F684...

I'm very new to working with microcontrollers, I only started using them properly within the last week. I'm using the PIC16F684 in conjunction with MPLAB and PIC C. One of my pins on the PIC chip is connected to the output from an encoder. The output from the encoder will always be either 5 V or 0 V, it will never be high impedence. When power is applied to my ci...


Using bitwise AND for setting configuration bits? What's all this about

Started by in comp.arch.embedded16 years ago 4 replies

I've been programming the PIC16F684 for a few weeks now, and only today did I notice the peculiarity of how the configuration bits...

I've been programming the PIC16F684 for a few weeks now, and only today did I notice the peculiarity of how the configuration bits were being set: __CONFIG(FCMDIS & IESODIS & BORDIS & UNPROTECT & MCLRDIS & PWRTEN & WDTDIS & INTIO); I would have expected bitwise OR to be used in conjunction with macros that equate to an exact power of 2, like as follows: #define FCMDIS 1 #define I...


Maximum speed, all ports as I/O

Started by in comp.arch.embedded16 years ago 7 replies

At the moment I'm using the following with my PIC16F684: __CONFIG(FCMDIS & IESODIS & BORDIS & UNPROTECT & MCLRDIS & PWRTEN & WDTDIS &...

At the moment I'm using the following with my PIC16F684: __CONFIG(FCMDIS & IESODIS & BORDIS & UNPROTECT & MCLRDIS & PWRTEN & WDTDIS & INTIO); With this setting, the CPU clock is running at 4 MHz. I've heard tho that it can run at 16 MHz. (I'm not using an external clock). Does anyone know what I've to do to get it running at its top speed, and with all pins set to I/O? (I've looke...


Inputs left floating at the very start

Started by in comp.arch.embedded16 years ago 23 replies

In college, I was always told not to leave input pins floating on a device such as a 74HCT chip. I was told that the device might...

In college, I was always told not to leave input pins floating on a device such as a 74HCT chip. I was told that the device might behave erratically if any of its inputs are floating. I have the PIC16F684. One of its inputs goes to the data input of a shift register, and the other goes to the clock input of the same shift register. On the shift regsiter, there's an RC circuit on the ma...


Symbols for 8-Pin AVR/PIC

Started by Peter Mendham in comp.arch.embedded18 years ago 5 replies

Hi all, Just wondering whether anyone can point me in the direction of existing Eagle symbol/part libraries for 8-pin flash AVRs/PICs? I am...

Hi all, Just wondering whether anyone can point me in the direction of existing Eagle symbol/part libraries for 8-pin flash AVRs/PICs? I am particularly interested in symbols/parts for the ATTINY13s and the PIC16F687. I googled till my fingers bled but I'm obviously not looking in the right place. Any ideas? TIA -- Peter


[PIC] 16F688 USART ISSUES

Started by Grene in comp.arch.embedded15 years ago 8 replies

I=92m trying to get some PIC to PC communication going using the 16F688, but I am not having much luck. Hardware setup is just a PIC16F688...

I=92m trying to get some PIC to PC communication going using the 16F688, but I am not having much luck. Hardware setup is just a PIC16F688 with power, and RC4/RC5 connected to an RS232 ShifterBoard Kit from Sparkfun. (http://www.sparkfun.com/ commerce/product_info.php?products_id=3D133) I grabbed the code below off the internet somewhere. Nothing hooked up to the ADC but that=92...


Atmel

Started by Peter Keller in comp.arch.embedded16 years ago 19 replies

Hello, I've done some PIC development before, with the PIC16F690, PIC18F4321, etc. and I'm thinking about trying out the Atmel processors...

Hello, I've done some PIC development before, with the PIC16F690, PIC18F4321, etc. and I'm thinking about trying out the Atmel processors since I've heard they have a flat memory space (no banks), a software stack, and other things I am interested in. What would be a good entry level atmel microprocessor to experiment with (maybe having features like USART, SPI, USB, external data/program ...


Driving LED with PWM, Beginner's Question

Started by syr123 in comp.arch.embedded15 years ago 2 replies

Hi all! True beginner here, but was very excited to find this site. I would greatly appreciate if someone could shed some light on whether or...

Hi all! True beginner here, but was very excited to find this site. I would greatly appreciate if someone could shed some light on whether or not I am going about a project correctly. Here are the facts: Using - PIC16F690 with an external 20Mhz crystal oscillator, powered by 5V (at 300mA? at least that's what the wall wart says - seems to be about 1 amp when I measure it). I am tryi...


Power Supply Question

Started by syr123 in comp.arch.embedded15 years ago 1 reply

Perhaps someone with more electronics experience than myself can give me an idea of roughly what sort of power supply I need for the...

Perhaps someone with more electronics experience than myself can give me an idea of roughly what sort of power supply I need for the following scenario: I am looking to power: 11 PIC16F690 microcontrollers which run on +5V 1 cold cathode light which runs on +12V (these are the specs given: Input voltage of inverter: 12v, Output voltage of inverter: 680v, Current draw: 5.0mAv) 1 +3.3V acce...


PIC16F716 physically exploding

Started by Fred in comp.arch.embedded17 years ago 22 replies

Hi there, Does anyone have experiencing seeing a PIC16F716 physically blow its lid (in other words, explode)? I have a design that uses three...

Hi there, Does anyone have experiencing seeing a PIC16F716 physically blow its lid (in other words, explode)? I have a design that uses three SO pkg of the F716 and one of them is intermittently exploding. It's always the same one, and never either of the other two. I have never seen this before and I don't know what would be causing it. Any help appreciated. Thanks. Fred


Need help programming a PIC16F72 in C

Started by Jason Hsu in comp.arch.embedded16 years ago 3 replies

I'm trying to program a PIC16F72 microcontroller in C. But I keep reaching dead-ends. The trouble with trying out different solutions is that...

I'm trying to program a PIC16F72 microcontroller in C. But I keep reaching dead-ends. The trouble with trying out different solutions is that it takes time to keep up with all of them as well as to implement them properly. I'd like to hear from those of you who have successfully programmed PIC16F72 microcontrollers (or similar) in C with a computer setup similar to mine. I have three ...


pic16f77 acting goofy

Started by Anonymous in comp.arch.embedded19 years ago 33 replies

I will try to make this question as short as possible. I'm making a "quiz box" that displays the first two of any 20 players that buzz in. I'm...

I will try to make this question as short as possible. I'm making a "quiz box" that displays the first two of any 20 players that buzz in. I'm using a pic16f77. The program scans 20 ports (buttons) and displays the first two numbers (1-20) on four single digit 7-segment LED displays via a display driver. Also, a speaker buzzes after the first player has buzzed in. Everything works great e...


PICKIT2 Programming Problem

Started by mcki0127 in comp.arch.embedded16 years ago 3 replies

I am trying to program a PIC16F77 using a PICKit2 programmer. This isfor a project that was completed a long time ago and I'm now...

I am trying to program a PIC16F77 using a PICKit2 programmer. This isfor a project that was completed a long time ago and I'm now trying toupdate it. The programmer correctly IDs the device and I can load thehex file and program it. When I verify it, I get a verification successful message. However, when I plug the device into my workingcircuit (verified with a previously working MCU), i...


Program PIC16F84(/A) with microchip MPLAB ICD 2

Started by Anonymous in comp.arch.embedded19 years ago 6 replies

I'd like to program my PIC16F84 with microchip MPLAB ICD 2 (I use this software : microchip MPLAB IDE version 6.30.0.0). It seems that the MPLAB...

I'd like to program my PIC16F84 with microchip MPLAB ICD 2 (I use this software : microchip MPLAB IDE version 6.30.0.0). It seems that the MPLAB ICD 2 doesn't support this PIC, and I can't program it. What's wrong? Are there other possibilities to progam this type of PIC with the same programmer? Thank-you very much for reply. Roby.


Extremely long delay loop on PIC16F84

Started by CFF in comp.arch.embedded19 years ago 4 replies

I am working on my first project using a 4MHz PIC16F84. The whole purpose of the project is to set portb pin from HIGH to LOW for a prolong...

I am working on my first project using a 4MHz PIC16F84. The whole purpose of the project is to set portb pin from HIGH to LOW for a prolong period (as much as 30 minutes) before tuning back to HIGH upon detection of activity at porta pins. My idea is to cascade a series of fully loaded counters (I am using 4 8-bit file registers, i.e. count1 to count4, in my experiment) so as to generat