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
2answers
30 views

PIC16F690 Consecutive flashing LED's

I am having trouble writing the code for flashing 6 LED's from PORTC on the PIC16F690 microcontroller. The LED's should flash like the lights on a runway. With the code that I currently have the ...
-1
votes
3answers
67 views

How can i implement Chirp Signal using C?

I would like to implement Chirp signal using C code Do you have any idea how can I do it? Edit Goal is to send this signal to an DAC Component (µC intern or external peripheral). But I need fast ...
2
votes
2answers
61 views

Best way to allocate boot loader memory space in the micro controller

I'm confused about how to allocate boot loader memory space in the pic18 micro controller and spend sometime researching on it and landed up here . I'll put my question : I have a controller whose ...
0
votes
0answers
11 views

DMP of IMU3000 combo Board [on hold]

I want to use IMU3000 and ADXL345 Fusion Board with Digital Motion Processor(DMP) for inertial navigation of my robot. Gyro and accelero is ok. but the main problem is that their is very little, vague ...
0
votes
1answer
45 views

PIC 16F877A interrupt handling [on hold]

I am trying to write a simple code to receive and resend data using USART but the code is not working. Could someone give suggestions on possible flaws in the code? I am using USART at baud rate ...
-1
votes
1answer
40 views

identify microcontroller pins for CAN interface

I am using DSPIC33FJ64GP804 in my project. And the datasheets can not tell me which pins are used as CAN tx and dx. Maybe it is pin 21 C2in- and 22 C2in+? Or maybe any two pins can be used? I can't ...
1
vote
1answer
49 views

PIC16F1933 Output pins not working

I am having problems with getting certain pins on my microcontroller (PIC16F1933) working as outputs. I have been simulating the code in Proteus Design Suite by Labcenter Electronics and it doesn't ...
-2
votes
0answers
25 views

dspic programming with labview [on hold]

Can I program Dspic with Labview. The objective is to get an interface to send reference values to my processor. Thank you.
0
votes
2answers
77 views

PIC24F UART Rx Interrupt not firing

I am currently trying to write code for a 48 channel DMX controlled dimmer using a PIC24FJ32GA002. Using a scope I have confirmed that there is a DMX signal reaching the Rx pin of the UART which has ...
1
vote
1answer
102 views

dsPIC33E comparator interrupt doesn't occur

I'm currently trying to get the comparator on dsPIC33EP256GP502 works, but get stuck in the comparator interrupt. Basically what i want to do is just using the comparator to compare two external ...
0
votes
0answers
48 views

XBEE interfacing to PIC

My final year project(sensor network) is based on zigbee. I have XBEE s2 module and PIC16F877A. I connected one XBEE (router) to microcontroller along with temp sensor, and another XBEE (cordinator) ...
0
votes
2answers
65 views

Using TMR0 to time an event

i'm trying to use TMR0 on a PIC18F2420 to time the opening of a device and display the percentage it is opened. the issue i'm having is that it has frozen up pretty much all other operations. i'm not ...
1
vote
1answer
48 views

PIC32 SPI Flash Burst Write chip select behavior

I have a pic32 and I'm talking to a spi nor part to store some data. Now for burst write my flash supports 256 bytes at a time and I want to use my DMA to transfer this. However the part requires ...
0
votes
1answer
53 views

PIC12F675 Programmer using arduino (port from 12bit programmer)

I bought some pic12f675 and i am trying to program it using an arduino (for testing purposes, I was trying to write a simple blinking led code, I tried both my code hex compiled and another that I got ...
0
votes
1answer
32 views

Specific ADC input not working on Microchip PIC PIC24FJ128GA202, other inputs work fine

I am trying to get an analog input working on my microcontroller. I am using the PIC PIC24FJ128GA204. The problem is that a specific input is not working, while other do work. I want pin 26, ...
0
votes
1answer
96 views

reset microcontroller

i use dspic micro and ir2104 to drive half bridge mosfet i use 12 volt , 150 watt switching power supply and lm2576 3.3 for dspic. when the mosfet load is 10 watt no problem but when the load is 50 ...
0
votes
0answers
33 views

PIC24FJ258GB110 using USB-Host and UART simultaneously Baud Rate Issue

I am using USB host code from Microchip MLA. The USB and LCD part is working fine but i want to add UART functionality in the project. I want to send keyboard key-press to UART port. I added UART ...
1
vote
0answers
74 views

PIC12F won't enter programming mode?

So I have a K150 PIC programmer, and spent about a week just getting the blasted thing to function in Linux. It managed to program a PIC12F675 twice... and then crapped out. Since I intend to abandon ...
4
votes
2answers
90 views

Does the location of a program need to be specified when programming a PIC?

I recently purchased a PIC programmer (cheap PIC K150) and I am attempting to program a PIC12F683. Upon reading over the datasheet it states that program memory locations are 0005h to 07ffh since ...
1
vote
1answer
63 views

Processing SPI transactions using interrupts

I'm wondering what the best way to handle SPI transactions when using interrupts is. I'm about to write my SPI interface code to an external flash part using a PIC. I'm going to use interrupts and ...
0
votes
2answers
85 views

Frequency Counter Using a PIC16F648A

I wonder if someone could help me with some general suggestions on a frequency counter project. I'm trying to modify a 6 digit LED frequency counter that uses an integral PIC16F648A, a 13 Mhz ...
5
votes
4answers
454 views

Why do I need a delay as PIC powers up?

I'm using a low-power PIC16LF1554 together with an nRF24l01+ 2.4GHz transceiver. During power-up, the PIC will try to initialise the RF module before the supply has reached the required minimum and ...
3
votes
5answers
147 views

PIC/ICSP - Protect circuit from VPP voltage?

I'm more of a software engineer, but I've done a fair amount of toying with components and microcontrollers. That said, this has me concerned, and my searches so far seem to indicate that no one's ...
0
votes
0answers
59 views

pic32 i2s audio working but noisy (aliasing maybe)

I've been putting in a lot of hours trying to get my PIC32 I2S talking to my analog devices codec. After a lot of battling I finally have a loopback working. Well sort of, if I loopback the ...
0
votes
1answer
51 views

Issue replacing 27C256 ROM with 62256 RAM

I'm trying to replace a 27c256 ROM with a 62256 RAM, to be able to easily change the memory content. I thought this would be pretty straight forward. Not quite, it seems. I made an simple ...
3
votes
1answer
61 views

Minimising current consumption in a PIC

I'm using a PIC16LF1554 with a simple soil moisture sensor to remotely monitor houseplants. The sensor circuit will be powered by a coin cell and will spend most of its time asleep. It will wake ...
0
votes
0answers
38 views

Infrared decoder (XC8)

I am trying to decode an infrared signal, I'm very close to achieve it, but I still haven't. My program is getting a code, but varies every time I push a button from the infrared remote control (even ...
0
votes
1answer
43 views

Why erasing my PIC with PICKit2v2 doesn't work?

Below you can see the output of PICKit2V2 after clicking the Erase button: As you can see above, all the memory addresses (I scrolled also) are equal to 3FFF. ...
4
votes
1answer
243 views

First PIC Program using PIC16F877A and its configuration bits for Internal clock?

I have a PIC16F877A and I wrote a program in MPLAB X IDE to blink a LED. This is my program : ...
0
votes
1answer
62 views

Can't get any output in LCD with 18F2550

I have made circuit of contact less tachometer using PIC18F2550 micro controller. when I testing my circuit I cant get any output on LCD. But the LCD is turn on. I check all the connections one by ...
1
vote
2answers
71 views

Using 10 bit ADC for only 8 bits on a PIC MCU

I have a PIC16f1824, which has a 10bit built-in ADC, but I only want 8 bit precision. I don't just want an 8 bit value, but actual 8 bit conversion i.e. higher samples per second at the cost of bits. ...
2
votes
2answers
147 views

MPLAB X IDE problem with PIC Programmer

I have a programmer and it works fine with PICKit2v2. As you see in the below images, I read my PIC16F877A memory and write to it successfully : But the problem appears when I want to use my ...
0
votes
0answers
63 views

PIC32 SPI I2S Interrupts

I'm using a PIC32 (PIC32MX210F016B-I/SO) with I2S (audio) support in the SPI module. I've been able to configure it, and it's clocks, and in fact I am getting data coming out of my codec. I can see ...
0
votes
1answer
48 views

Trying to understand PIC datasheet for the PIC 12F683

I'm new at asking questions on this forum so please forgive me if my format needs to be cleaned up. I have a PIC 12F683 datasheet. I'm trying to understand how, for instance, ANSEL=0 to set I/O to ...
0
votes
1answer
110 views

PIC UART CODE need help in debugging

My question has two parts: Does MPLABX have a UART simulator? I need help debugging this code: ...
2
votes
2answers
171 views

how to implement Ethernet with PIC, PIC18F97J60, PIC32MX(795F512L), ENC624J600, LAN8720A

My project is a data logger board which must mount a PIC of some kind to provide USB and Ethernet as a means to communicating with the board. I can develop this system into two products a low-end ...
0
votes
1answer
41 views

Can you setup UART Reception on dsPIC33EP512MU814 on eval board dsPICDEM MCLV-2

According to microchip, the dsPIC33EP512MU814 can be integrated with the dsPICDEM MCLV-2 Development Board using dsPIC33EP512MU814 Plug-In-Module However, according to the dsPICDEM MCLV-2 Interface ...
4
votes
1answer
173 views

PIC18F4550 External Oscillator

I am currently trying to get the configuration bits set up to blink a LED with a 20MHz external crystal. It is operating correctly using the internal oscillator, but does nothing with the crystal, and ...
1
vote
1answer
63 views

How can I measure the current drawn by a soil hygrometer?

I have one of these ubiquitous soil moisture sensors: The only information I can find is that it operates from 3.3V to 5V, uses an LM393 to trigger a digital output and also exposes an analogue ...
0
votes
1answer
31 views

uC Datalogger to GUI for dataprocessing

So I looked around electronics.stackexchange for this one and here is where I landed: What type of USB Protocol for Datalogger Basically, I would like to sample a voltage (specifically, from a photo ...
0
votes
0answers
37 views

Spurious output on PIC 32 when I Init I2C

I'm working with my PIC32MX210F016B I2C again today, and I got to the point where I had to scope SCL and SDA. For some reason whenever I enable the I2C port there is a bunch of activity on the I2C ...
0
votes
1answer
41 views

PIC32 I2C to ADAU1761

So I'm working with this part the ADAU1761 it's a little dsp codec from Analog. I'm trying to get I2C communication up between it and my PIC32. I spent a good part of today trying to get this to ...
1
vote
1answer
141 views

Simple Two wire SPI communication between two PIC24s

I am trying to achieve a simple SPI communication of 16-bit data from a PIC24FJ64GA002 to another of the same microcontroller. By following the data sheet to the word, I wrote the transmitter and ...
2
votes
2answers
107 views

How to prevent MPLABX and XC16 from polluting my assembly program on 16-bit PIC24?

I recently started programming PIC microcontrollers after AVR and I wrote a small, do-nothing program just to see what the ...
2
votes
1answer
167 views

PIC MCUs C language Compilers and IDE for PIC16F and PIC18F

I want to write some program in C language for a PIC16F and a PIC18F. I searched in the internet and I got confused with the name of them! I want a free version and I know that my C program is less ...
1
vote
3answers
77 views

Using PIC32 Flash for storage

Continuing along on my PIC32 adventure, and using my PIC32MX210F016B. I have some configuration data for another IC that I have to program over SPI. I want to store that confurgation data, about ...
2
votes
2answers
56 views

PIC32 How do I find group number for peripheral

From my last question I made a mistake on thinking SCK was under PPS control. I see that now but I still don't understand how to figure out group number for a function with PPS by reading the ...
1
vote
1answer
74 views

PIC Microstick vs Pickit

I am starting new in using PIC MCUs and am slightly confused by these two available options. Pickit is a programmer/debugger, that's what they say. Now, there is this something called Microstick ...
0
votes
2answers
78 views

Serial Servo Control using PIC

I am trying to make a serial servo controller using pic18f4550 microcontroller. following if the complete code that i've tried.. please note that i'm currently sending 8bit hex to control only one ...
2
votes
2answers
68 views

PIC32 Configure PPS for SPI CLK

Well I'm struggling hard with this, been at it for 2 hours so far. I should have stuck to my TI parts :) Anyway I have a board and I'm trying configure the PPS to bring the SPI peripheral out to the ...