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)

0
votes
1answer
38 views

doubt about using both watchdog timers in pic

I want to use the conventional WDT and deep sleep WDT. I will be using WDT to prevent any code lock cases if any. And the other after entering deep sleep mode.? My question is whether the WDT ...
1
vote
2answers
37 views

Does 'make and program device' first perform a clean?

In MPLABX v2.00, I'm always scared of introducing some bug by not remembering to first delete all old object files. I'm inspecting the output of the build process but do not know for sure whether ...
0
votes
3answers
82 views

Does every PIC need a bootloader?

Does every PIC chip need a Boot-loader like the Arduino chips do?
2
votes
3answers
47 views

How frequently must Microchip's USB HID USBDeviceTask() Task run?

I'm integrating the example USB module into my existing app and can only get it to work when I disable interrupts. I'm working off the mla example installed at the path: ...
0
votes
1answer
39 views

MicroC rs-485, pic16f887 String sending problems

How can I send the string "test" from a master pic to a slave? I'm using MicroC RS-485 library example: http://www.mikroe.com/download/eng/documents/compilers/mikroc/pro/pic/help/rs-485_library.htm ...
0
votes
1answer
33 views

How to read configuration bit register from PIC?

I'm debugging and want to inspect CONFIG1H (CONFIGURATION REGISTER 1 HIGH) of a PIC18F. CONFIG1H does seem to be recongized as an SFR when I enter it into the Watch window. After stopping at ...
3
votes
1answer
68 views

Rewriting PIC configuration bytes at runtime

My device is the dsPIC33EP64MC202. I have a bootloader which loads a program in flash to run or erases and rewrites that program as directed by serial commands. If possible, I would like to account ...
-6
votes
0answers
71 views

Diy raspberry pi [closed]

I would like to know how to create a diy Raspberry pi like the arduino clone. Can some one show me a diagram of it? How to upgrade the ram how to install the os!!!
-1
votes
0answers
47 views

Formula for current transducer model LTS 15 NP [closed]

I'd like assistance with the formula for reading a current transducer model LTS 15NP with a PIC microcontroller. I'd like to display the results on an LCD, here is the schematic diagram: This is ...
1
vote
2answers
81 views

PWM generation PIC16F628A

I have followed the instructions in the data sheet and tried to generate PWM signal using PIC16F628A. However it seems to be not generating any output. My code is shown below. Any help appreciated ...
0
votes
1answer
75 views

A better programmer for PIC microcontroller?

I work with a project which uses PIC32 and PIC24 controllers.My setup has a Console board(PIC32) which communicates with 3 slave boards(PIC24) over RS485. I have two projects -One for Console and ...
1
vote
0answers
53 views

Simple playback audio with FFT not working (dsPic33F)

I wrote a simple playback audio application (you speak on the mic, it plays on the speakers, just to test), it works. However when I added an FFT + inverse FFT, it doesn't, I only hear noise whitout ...
0
votes
1answer
41 views

Problems with I2C on PIC18F25K22

I've been googling for about two weeks now and I still can't seem to get my I2C working. I've used this (what seems to be complete) tutorial. I followed the Master Write and Master Read examples to ...
0
votes
0answers
23 views

Why does my PIC32 Bootstrap Exception get called?

The PIC32 is a MIPS processor. On startup the normal C startup routines run to clear the RAM, initialize variables, etc. Sometimes when I compile a project, the startup routines will not finish. ...
2
votes
0answers
46 views

pic24fj128ga310 uart not working in application, but works with PuTTY

I'm trying to connect a PIC24FJ128GA310 mounted on an Explorer 16 board with an embedded wireless module. I have been able to set up both to communicate perfectly well with PuTTY (an equivalent to ...
0
votes
4answers
93 views

How to drive LED when sinking current to MCU?

Hopefully a simple one. Should I always control by writing to the GPIO digital output? Or should I always leave it low and then tri-state the output? LED turns on when MCU pin sinks current: In ...
0
votes
2answers
61 views

How to define an interrupt in PIC18F?

The PIC18F family I guess has high and low priority interrupt-service-routines, not just one ISR. My first time dealing with this and I can't seem to get the compiler (XC8) to recognize the two ...
0
votes
0answers
47 views

I2C Reading START STOP but nothing else

I am working on getting a LED driver (pca9635 - datasheet ) to work with a PIC32. Below is my code ...
3
votes
3answers
155 views

RC filter infront of Analog port pins in pic microcontroller

What is the use of RC filter in front of Analog port pin while using port pin for analog to digital conversion in pic 16f877A and in most pic controller the RC filter is advised to be used?
4
votes
4answers
290 views

Electronics protyping and manufacture

I need to design and build an embedded piece of electronics based on a PIC microcontroller. I am assuming the process is: choose chip (PIC16F690) prototype code on PicKit breakout board prototype ...
0
votes
2answers
93 views

Why was a resistor and capacitor used in this IR receiver circuit

The circuit shows an IR receiver whose output pin is interfaced with a PIC. Can you explain why a resistor and capacitor were used and why those values were picked.
-3
votes
1answer
62 views

In PIC microcontroller can i use USART as UART

Can I use USART of PIC microcontroller as UART ? How ?
1
vote
1answer
97 views

Hi tech c adc code not working as expected

I am new to using PIC micro-controllers, and I am working on a project that involves reading an analog value. I am using the PIC16F877A. I have found code for using the ADC posted below however when ...
0
votes
0answers
50 views

PIC16F767 as SPI Slave: Can't clock out data

I have a Raspberry Pi and a PIC16F767 connected via SPI. The rPi is the master, the PIC is the slave. I can write data to the PIC just fine and dandy, but I can't seem to get the PIC to clock data ...
1
vote
2answers
93 views

PIC microcontroller jumping pages

I got this question and wanted to know if my answer was right. Q.92: Assuming that initially the PIC is addressing Page 0 in program memory; Which of the following snippets of code will jump to ...
-1
votes
1answer
70 views

PIC18F4620 ADC Conversion

I'm in need of help in understanding how to code ADC conversions for the PIC18F4620. If someone could provide an example code with comments that would be great. Also if someone can explain to me how ...
0
votes
1answer
105 views

Build a Simple Serial PIC16F84A programmer

I decided to build My own PIC16F84A programmer,The Problem with 16F84A is the Voltage in MCLR pin (+13V). How we get this with a (-10v;+10v) Serial port. Yeah, There are alot of methods, but I choose ...
1
vote
1answer
42 views

dsPIC33EP DMA configuration issue

I am trying to buffer 8192 words of data from an IO Port to RAM using DMA hardware of dsPIC33EP512GM710. I have configured the interrupt source INT0 as the source for the DMA hardware. I am using ...
1
vote
0answers
77 views

PIC32: How to use DSP Library?

I am using a Microstick II Board with the included PIC32MX250F128B and I would like to perform real-time audio processing. I use an analog input to get the input sound and a PWM output, in combination ...
1
vote
1answer
45 views

How do I connect the pickit 3 with PIC32MX795

I bought a USB 32-Bit Whacker - PIC32MX795 Development Board and a MPLAB PICkit 3 after working with some ATmega stuff in the past. These are the 6 pins(on the pickit). I'm looking for them on the ...
0
votes
1answer
83 views

Four different pwm using PIC 18f45k80

In a 4 phase dc motor control application, I have to excite the coil using Mosfet with the pwm of 12.5 Hz with the train of pulses of 12 khz on each phase. So I am in a position to create 4 different ...
2
votes
4answers
141 views

PIC32 only works when shorted to ground

We're using the PIC32MX795F512L on a number of custom boards. I'm responsible for one design, for which we currently have two prototypes. The first board appears to work perfectly. On the second, ...
1
vote
2answers
255 views

How exactly does this shift-register work? - Fairchild 74HC589

I'm using a PISO shift-register, specifically the Fairchild Semiconductor 74HC589. I got the jist of the workings of a generic shift-register via the very useful animated GIF in Wikipedia link above, ...
-1
votes
2answers
105 views

How to properly wire 2 CAN transceivers to the same CANH and CANL

I'm attempting to design a system with 2 CAN transceivers, a High speed and Low speed that use the same CANH and CANL lines, like so: I was planning on using 4 MOSFETs or 4 Relays connected to the ...
2
votes
1answer
54 views

Reading to PIC32MX's memory in C and XORing big sets of data

I have a project in which I have 102 8-bit PISO shift-registers in daisy chain configuration and they are outputting to a common SDI line connected to a PIC32MX controller. There is a total of 816 ...
0
votes
1answer
69 views

cny70 with 40106 and PIC, only detects 1 time every time I reset

I am using a PIC18F2550, a CNY70 and a 40106. (Schematics below) The problem is that when I turn on the circuit, the first time the CNY70 detects something works perfectly (I have 1 led in every B ...
1
vote
2answers
149 views

Configuring PIC16F877A PORTA as digital output port

I am trying to use PORTA of PIC16F877A as digital output port. But somehow it does not seems to be working. I am using MPLAB X IDE MPASM to assemble the code. Below is the code I am using to ...
2
votes
1answer
58 views

Does L293D consume power when not in use

I am designing a robot using the L293D motor driver, and I have just successfully hooked it up to my micro controller. I am using two batteries, one two control the motor and one to control the pic ...
4
votes
3answers
226 views

Why set PORTx before TRISx?

I was browsing through the example code that MikroE provides for PIC programming using MikroC, and they always set PORTx before setting TRISx. What is the reason for this? Since TRIS just selects ...
3
votes
4answers
229 views

TRUE/FALSE or true/false?

In resource-constrained systems (like an 8-bit PIC), is there any benefit to using your own macros for true and false as opposed to using those defined from stdbool? ...
3
votes
1answer
52 views

How to find cause of reset in PIC16F microcontroller?

I've worked with other microcontrollers that have a register that I can check on powerup to check a register that contains debugging information on the cause of the reset. Initial searching revealed ...
0
votes
1answer
104 views

PIC16F628A 16x4 LCD problem while using MPLABX

I'm trying to connect a 16x4 LCD with a PIC16F628A, but I cannot get any response on the display, the display is blank. I put on a LED for indicating whether the time was right, and apparently ...
1
vote
2answers
157 views

Toggle LED on when Button is pressed PIC

I've got an olimex board with a PIC16LF76(Schematic - PIC IS a different pic): I'm trying to toggle the LED when the button is pressed down, my C code looks like: ...
1
vote
1answer
104 views

PIC programmer, need to replace few components

I am building a PIC micro-controller programmer named Brenner8: http://www.sprut.de/electronic/pic/projekte/brenner8/ Although, it needs a BF959 transistor for (Q8), and BAT43 diodes for (D1,D2,D4) ...
2
votes
2answers
234 views

PIC12F629 Doesn't react on input

I've build this circuit : The diode is actually a LED. With this code on MPLAB x,XC8 : ...
1
vote
2answers
90 views

Multi-cell battery measurement design

The task is to measure the voltage of individual cells in a 48-cell battery pack of AA cells in series. The measurements serve to log performance statistics, warn the user if/when a cell dies, or that ...
1
vote
1answer
45 views

Can't get output from GP5 and GP3 in PIC12F629

I can't get output from GP5 and GP3 from a PIC12F629 I have. My code is the following: ...
16
votes
2answers
801 views

Firmware protection on AVR and PIC controllers

Can someone extract the HEX file that I burn in a microcontroller I provide them? If that is possible, how can someone ensure that their code is secured in embedded systems? In the case of PIC and ...
2
votes
1answer
145 views

Simple blink LED with PIC12F629

I am new to microchip but I build an circuit with PIC12F629 and wrote this program: ...
2
votes
1answer
60 views

Should I use an external voltage reference with the PIC24F16KL402?

The internal ADC of the 8-bit PICs I usually use are quite inaccurate. The datasheet for a PIC10F320 for example, states an initial accuracy of -7% to +6%. I usually use a TL431 or a LM336 with those. ...