PIC is a brand of 8, 16, and 32 bit RISC microcontrollers manufactured by Microchip. "PIC" originally was an acronym for "Peripheral Interface Controller".

learn more… | top users | synonyms (8)

2
votes
1answer
106 views

Using PL2303HX module to program PIC

I'm very new to the electronics stuff. I've spent most of my discovering things so far, however there is something that I'm stuck on. I want to get a PIC18F4550 to begin with, and I'm wondering if I ...
3
votes
2answers
245 views

DsPIC development board recommendation

In a few months I should begin developing a power converter and I was told I should get used to dsPIC. The currently used model is "dsPIC30F6010" which is kind of "old" (compared to the newer ...
2
votes
1answer
248 views

PIC18F1320 with 4 separate PWM channels and C18 compiler for an RGB LED

I'm pretty new to microcontroller programming and I find the lack of documentation on certain features of PICs with C18 compiler frustating. I've been trying to make a simple 3-color-led light up ...
3
votes
1answer
73 views

PIC18F13K50 Has two or one Half Bridge control?

Since the PIC18F13K50 has one ECCP, and it can operate in single, full and half bridge, I dont undestand if it can drive 2 half bridges at the same time, or just one...it appears to be just one ...
-1
votes
2answers
132 views

PIC18F2550 or PIC18F13K50?

The PIC18F13K50 is a lot cheaper than the PIC18F2550...but it seams to be smaller, newer, same speed, just has less RAM. Why is it cheaper? Just because it is a new one and Microchip dont like to ...
1
vote
1answer
175 views

PIC uno32 SPI communication with sensor

So, i'm trying to communicate with a heat sensor using SPI with a chipkit pic uno32. I connected Pin 10 (SS), Pin 11 (DIN), Pin 12 (DOUT), and Pin 13 (CLK) on the Uno32 board to the sensor SS-Chip ...
1
vote
1answer
224 views

PIC 18F2550 USB Dual Power Example

In the PIC18F2550 datasheet, there is an example about how to dual Power it in the figure 17-12. I understand the whole circuit, I am just not sure why there is this diode after the Vself?
1
vote
2answers
177 views

Motor Current Limiting Algorithm

I am building a H-Bridge controller dor DC motors, and I want to add some current limiting on it. Does anyone knows a good algorithm for doing so? I am planning to read the current, and if it goes ...
-1
votes
1answer
432 views

Can we connect an external ADC with PIC16F877A? Or it's compulsory to use the internal ADC of the PIC?

I am making project measuring pollution. I want to display carbon particles in parts per million on an LCD by using mq7 sensor. Can I use an external ADC (ADC0808)? Or do I have to use the internal ...
2
votes
1answer
148 views

Compile C for PIC16F88 with sdcc

I'm trying to program my school learning board with PIC16F88 on Ubuntu. I installed sdcc and picpgm. PIC16F88 already has bootloader so I intended to compile C code in to HEX with sdcc and then ...
0
votes
1answer
136 views

Debugging a PIC16 with MPLAB X

I am having problems with the MPLAB X debugger (although the release build works fine). It behaves very weirdly with my PIC16LF1937-based PICKIT3. Specifically: It gets caught in random infinite ...
0
votes
2answers
1k views

frequency counter using pic16f877a

I want to count pulses using PIC16f877A. The pulses are being fed into pin RA4. I want to use timer interrupt for that so that other functions performed by the micro controller should not disturbed. ...
2
votes
2answers
282 views

Can you have a pin floating on a microcontroller [duplicate]

Possible Duplicate: Is it really a bad idea to leave an MCU input pin floating? I am using a pic microcontroller that has about 36 GPIO pins, I am only using 31 of them, is it ok to have ...
0
votes
2answers
269 views

Digole serial LCD with PIC [closed]

Does anyone have experience using the Digole serial LCD adapter/converter with PIC? I plan to use it in SPI mode on an PIC18F46K20. I can only find Arduino code examples that refer to libraries such ...
1
vote
2answers
233 views

PIC18F2550 I2C Open Drain?

As far as I have read, the I2C pins are Open Drain or Open collector, but in the PIC18F2550 the datasheet doesnt say anything about those pins, and even says they are a digital output if you select ...
0
votes
2answers
254 views

I2C Pulldown and Pullup…is it possible?

I am using a PIC18F2550 to control a H Bridge, and I am using several input signals, such as RS-232, I2C and Analog 0-5V to make the final PWM output for the H bridge. I have a problem with PCB space, ...
3
votes
1answer
90 views

PICKIT 3 resets PIC16 three times upon reprogramming

I am using the PICKIT 3 with MPLAB X with the default setings. When I press F6 to build and run my code, I notice that the PIC16 resets three times: twice with ...
5
votes
2answers
237 views

Why is PIC Programming Voltage Higher Than Vsupply

I work with PIC microcontrollers quite a bit and have never understood why Vpp (programming voltage) is higher than the max supply voltage that powers the PIC?
1
vote
2answers
558 views

PIC16: Problems with UART receive

I have a PIC16 for which I have the (asynchronous) UART transmit working just fine, but the UART receive producing invalid results. For example, a gets interpreted ...
0
votes
2answers
80 views

Assemble PIC connector from bits

I want to build a custom connector to attach to the PICKIT3 serial pins. I have the black plastic bit and little metal bits (similar to the picture below), and wire. Out of these components, I ...
0
votes
1answer
64 views

From Synapse RF Engine to PIC

I made a little program on my Synapse RF Engine to detect some vibrations and then turn on a light basically. What I want to know is how do I get this prototype to an actual PIC that I can connect ...
1
vote
2answers
494 views

Choosing a relay, suppression diode and transistor for switching car power from a PIC pin

Here is my circuit that's hopefully going to be a custom timer circuit. It has two inputs (ignition wire and headlamp wire), it has one output that will be used to switch a relay. nb. "D31A*" is a ...
2
votes
1answer
269 views

Decoupling caps with PICs

I'm working on a project and read that decoupling caps should be connected across the VDD and VSS pins of PIC microcontrollers(or rather all microcontrollers?). I'm using a 9V battery with a 7805 ...
1
vote
2answers
447 views

How to plot a graph on Nokia 5110 LCD

I have interfaced a Nokia 5110 LCD to a PIC. It displays characters using a font table. Is there a way to plot ADC data on the LCD with ADC data on Y axis and time on X axis? I do not want to use a ...
1
vote
3answers
338 views

MPLAB XC16 compiler outputting 8-bit HEX files for PIC24?

I am trying to understand a HEX file I compiled with Microchip MPLAB X IDE using the Microchip MPLAB XC16 Compiler. Concerning the MCU, I am targeting the PIC24EP512GU814. However the scope of this ...
0
votes
1answer
155 views

PIC Write-Protect Behavior

When I write protect a PIC using the config bits, does it prevent all future programming or can I still reprogram the part if I erase it first? I assume this behavior should be standard across all ...
0
votes
2answers
80 views

PIC24E writing address and increment for ICSP programming

I am trying to program my Microchip PIC24EP512GU814 in ICSP mode. The resource I'm using to do this is the Microchip dsPIC33E/PIC24E Flash programming Specifications (70619B) and the Microchip ...
3
votes
3answers
296 views

Choosing a transistor and resistor for PIC input pin protection from Car Power

Further to my previous question, Using a PIC to perform switch on and timed shutdowns in automotive environment I've been pointed at zener diodes and voltage dividers, but I'm now confused by the ...
1
vote
2answers
167 views

Using a PIC to perform switch on and timed shutdowns in automotive environment

I would like to build a circuit to perform a timed shutdown, based on logic inputs from headlamp wires and ignition wires. I have decided on PIC10F200 (datasheet) to perform the logic. I also have ...
3
votes
1answer
145 views

Wake-up PC from sleep mode using PIC24FJ256GB106

I am trying to wake-up the PC from sleep mode, using PIC24FJ256GB106. I am using Windows 7. I have installed "Microchip Solutions v2012-04-03" and I used the firmware from "Device - HID - Custom ...
2
votes
1answer
361 views

How to connect USB barcode scanner to a PIC?

I've got a bog standard barcode scanner with a USB output and I'm trying to figure out how to connect it to a PIC. Basically, the idea is that I use the scanner to scan a barcode and the barcode is ...
2
votes
2answers
123 views

PIC16: Understanding the bound on the argument to _delay

My PIC16 compiler, XC8, defines a _delay(n) pseudo-function which inserts a delay of n cycles. There is a restriction however ...
-2
votes
1answer
273 views

USB host to host connector with PIC18F2550

I'm working on project to design a usb cable between two PCs with PIC182550 as controller.How can I connect both the PCs since there is one USB interface in the PIC?
4
votes
1answer
354 views

PIC16: How does one enter sleep mode using C?

The datasheet of my PIC16 refers to the "SLEEP instruction". I'm programming the PIC16 in C using MPLAB X and the XC8 compiler. How can I execute a ...
4
votes
3answers
1k views

PIC16: How do I modify the configuration words?

As I understand, the configuration words are different to the standard 8 bit registers. They are 14 bit wide, and they can only be accessed in "programming mode". From reading the datasheet I do not ...
2
votes
1answer
117 views

Retrieving a program from a PIC16F877?

Is there any way to retrieve data from a PIC16F877 if VCC and GND are shorted? I want to get the existing program and load it into a new device.
1
vote
2answers
3k views

How do you set the configuration bits for a PIC 16F1829 in MPLAB X?

I am new to PIC programming (but not C, embedded systems, etc.) I am using MPLAB X with the PIC16F1829 specified for the project. I have the following includes: ...
2
votes
1answer
91 views

PIC16: Why are the configuration words 14 bit, but all other registers 8 bit?

A PIC16 (e.g. this one) have a bunch of registers, which are 8 bit wide, and two "Configuration words" (see pages 43, 44) which are 14 bit wide. Why do the configuration words make exception for the ...
0
votes
1answer
161 views

Can I use the C18 library for a PIC16?

I was pointed towards the C18 library, but I'm using a PIC16. Can I use the C18 library for a PIC16 using the MPLAB X IDE? If not, is there an alternative to this library for the PIC16?
1
vote
2answers
255 views

Why are the PIC “F” models popular?

I recently started a project and decided I required a PIC24E. I've been looking for resources to use an Arduino or Serial port to program the MCU, but none of the articles I found support the PIC24E. ...
0
votes
1answer
252 views

Use port for comparator and analog input?

I'm trying to use Port F on the PIC18F65J11 as both analog inputs and a comparator. For example, there are 7 pins on Port F, and I'd use 3 pins for comparator (2 comparator inputs, 1 comparator ...
0
votes
1answer
195 views

Problem Controlling Digital Potentiometer with Micro

I am trying to control a digital potentiometer with a PIC18F14K50 and am having a random problem (potentiometer not remembering correct value) when I power off then back on. The X9313 datasheet states ...
1
vote
7answers
270 views

PIC circuit won't stay powered

I've built a simple LED sequencer using PIC 18f4550. Outputs are 10 pins on ports C&D. I have now built (soldered) this circuit 3 times and it still only powers on intermittently. I installed a ...
1
vote
2answers
199 views

Starting with pic programming dspic30f2010

I'm pretty sure that it's a duplicate in some way but I have to ask anyway. I'm pretty new to chip programming and I got some results using arduino but I still have no idea how to use the pic board my ...
5
votes
4answers
272 views

Does a switch need to be debounced when opened?

Suppose that an input on a microcontroller has a pullup resistor to 5V and a switch to ground (normally open) connected to it. I know that a switch should be debounced (in my case, in software) when ...
1
vote
3answers
133 views

Reading a PIC datasheet

Reading MCU and component datasheets is a whole new skill to me. I have a wire that I want to monitor as high/low (1/0) voltage, using a PIC10F200. (datasheet) I presume somewhere in the datasheet ...
1
vote
1answer
483 views

after programming PIC, can no longer run debug or reprogram

OK, I have written a few basic programs in MPLABX C18 for both 18f4550 and 18f46k20. Eventually got them to compile and test/debug correctly and run on the PIC. After I choose, "make and program ...
2
votes
0answers
239 views

How do I modulate PWM frequency in realtime with a Microchip dsPIC (or PIC24)? [closed]

This question is a direct continuation of the question/answer found at the link below. Skip to the last answer/comments given, as this is where my question begins (I don't have enough rep. points to ...
2
votes
6answers
364 views

Precise timing with a PIC18 microcontroller?

I'm trying to write a software serial implementation and am having trouble with timing. I'm using Timer0 on a PIC18F242 and for some reason it does not seem to be very accurate. I've been trying to ...
3
votes
1answer
164 views

Circuit explanation, role of the trimpot and capacitor, as shown in a part of the circuit

Here is a part of the IOIO circuit . Wondering if someone could explain the role played by the trimpot (R2) there (why not a fixed resistor?) and the role of the capacitor (C5).

1 3 4 5 6 7 14