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

How to use hc-05 with pic32

I want to use Hc-05 bluetooth module with my pic32 controller for communicating with other bluetooth devices. I want to test the hc-05 module with my pic32 controller. I have made the hardware ...
0
votes
2answers
64 views

Setting up Internal Oscillator with PIC16F1829

I just started working with PIC microcontrollers and I am currently using MPLAB X IDE with a PIC KIT 3. I've been trying to get a simple LED blink code to run on a PIC16F1829 using the internal ...
1
vote
1answer
39 views

Resolving interrupt-on-change mismatch conditions in a PIC16F877

I am using pic16f887 to quickly simulate encoder to later use it in a bigger project. reading signals from A and B encoder using interrupt on change for portb and the program was : ...
0
votes
1answer
54 views

Count pwm pulses on pic

I'm working on PIC18F8722 to generate PWM for 50% duty cycle. I have obtained the PWM and now I need to count the PWM pulse. As per my knowledge we can use timers to generate and count those pulses ...
2
votes
2answers
136 views

How can I write high-speed A/D data to an SD card?

I want to use a microcontroller and A/D converter to do some high-frequency (~100 kHz) long-term (minimum of five second buffer, looping until triggered) data logging. It looks like a good way to do ...
0
votes
2answers
46 views

PIC16 10hz timer with timer1 and 1Mhz clock

I need to increment a stopwatch at 10hz using timer1 on a PIC16F628. The external clock is 1Mhz, supplied by a packaged oscillator (EPSON sg8002db). With no prescaler, the value to set the timer to (I ...
0
votes
0answers
16 views

PIC16 timer0 clock calculations

I'm having trouble working out how to implement a timer using timer0 and a 1Mhz clock on a PIC16F628. I thought it would be like this: clocks/sec = 1000000 counter increments every 4th clocks so ...
1
vote
3answers
56 views

Maximum forward current on ESD diodes

I'm interfacing a dsPIC33EP512MC806 with a set of analog systems. The analog systems manage a battery and have vregs for the digital systems. The analog systems measure the voltage and current ...
1
vote
1answer
53 views

PICDEM board and Linux connection through serial

TL;DR: I can open screen or putty session in terminal to the /dev/ttyUSB0, but characters ...
-1
votes
0answers
42 views

linux can't detect PICKIT2

I have installed Arch Linux (i686) every thins works fine but when I try ti plug the PicKit2 (Programmer for PIC MCUs) and run lsusb it doesn't shown in the list I tryed it on Win7 machine and works ...
0
votes
0answers
44 views

Is horting SPI to test PIC24 communication damaging in any way?

I have a question concerning SPI (don't we all) and I was hoping that someone can help me out before I do something stupid (which is usually my favourite way of learning, but I only have one board so ...
2
votes
1answer
39 views

Factory resetting a PIC16F628

I can't get my home brew pic programmer to execute the factory reset sequence correctly (or rather, it's not resetting the device and I can't work out what I'm doing wrong). Other functions such as ...
0
votes
1answer
60 views

ICSP - how to isolate a pin

I have jerry rigged a PIC programmer but I need to use the PGC/PGD pins as part of the actual circuit. I'd like to be able to flash the PIC without physically swapping it between the circuit and the ...
0
votes
0answers
24 views

MCP3221 ADC always returns zero in Proteus

I am interfacing PIC18F2320 with MCP3221 ADC over I2C. When I try to read the converted value from ADC, only zeros are returned. I'm using MPLAB libraries. ADC is in A5 address mode. The AIN voltage ...
-2
votes
2answers
54 views

Adaptation of the ICD2

I'm trying to adapt the ICD2 so that it can be used with a microcontroller family (dsPIC33F) that has a 3.3V supply. Projects using the ICD2 must be 5V. How can I do this?
-5
votes
2answers
44 views

Is there a PIC MCU with an integrated DAC in it? [closed]

I look for a PIC microcontroller with a digital to analog converter in it but I can't found one, if there is one please tell me, thank you.
0
votes
1answer
35 views

Program a PIC24FJ64GB002 with a pickit 2

I am trying to program a PIC24FJ64GB002 with a pickit 2 but when I try to program it, the pickit 2 application says that no device was found, despite the chip being hooked up with the programmer. So ...
0
votes
1answer
32 views

Essential Nodes in a Circuit

My book says above that there are three essential nodes in the circuit above. I am seeing four essential nodes in total which are marked by those four black dots. Since each of those black dots ...
0
votes
2answers
84 views

Output data from computer to light up LEDs

I'm a complete newbie at this, but the idea is to have a circuit board with, say, 10 LEDs, connected via USB to a computer running Linux. This will periodically (e.g. every second) send data to the ...
0
votes
0answers
40 views

RN 4020 bluetooth module not working as expected

I am trying to communicate with a Bluetooth module using PIC32MX110F016. I have made the schematic and produced the PCB which was straight forward. There's a logic to put the module working but I ...
3
votes
3answers
146 views

Industrializing a PIC micro-controller

I want to replace some timers with a PIC16F887 micro-controller. The problem is that the input voltages to the I/Os is going to be 24V which is too much. For the output part I was thinking about using ...
0
votes
1answer
64 views

How to calculate the Timer Preload Properly on PIC32MX575F

I am trying to achieve 1 second on a timer in PIC32MX575F but somehow I am not reaching what I want. Some people says I have to look into the the PLLDIV, some other people says I should look into the ...
1
vote
2answers
118 views

Electric Timer With a Micro-Controller

I am trying to replace some electric timers with some sort of a micro-controller based solution http://www.directindustry.com/industrial-manufacturer/panel-mount-timer-154503.html. I would like to run ...
-1
votes
1answer
93 views

PIC32mx UART to Bluetooth RN4020

I am trying to establish an UART comunication between PIC32MX110F016 and a RN4020 Bluetooth Module. I am new on PIC32mx but I think I am doing enough code/configuration for them to comunication but ...
-1
votes
1answer
65 views

Interrupt INT0 on PIC32MX110F016 not working

I am trying to put the INT0 working in a PIC32MX110F016 but it seems it never goes there. The INTO pin is Electrically powered with a pull-up resistor and when I press a tactile button it goes from ...
1
vote
1answer
44 views

Programming Pins (PGC/PGD) problem on PIC32mx

I made a design using PIC32mx and everything is working well. I was trying to debug my first program and for this case instead choosing PGEC1 and PGED1 I am using PGED2 and PGEC2. Problably that's the ...
0
votes
1answer
49 views

PIC32mx110F016B Programming issue

I am trying to program a PIC32mx110F016B with a PICkit 3 with the "Power target circuit from Pickit3" enabled at 3.25V. When I am trying to program this small code ...
-1
votes
1answer
63 views

Clock and data vs rx and tx communication

I'm working on a project in which I have to make two pic10f200 microcontrollers communicate via serial communication lines. I know that with Arduino you interconnect the two board's rx and tx lines, ...
0
votes
1answer
77 views

PIC32mx Timer5 not working

I am struggling to put my Timer5 working properly. I think I have enabled all the registers but the interrupt never occurs. I already put a break point inside in the FingerprintRun() in the asm("nop") ...
5
votes
1answer
194 views

MPLAB XC8 + PIC18 + external memory = Error 712 (can't generate code for this expression)

I'm currently having a bad time trying to use an external RAM chip (512 kB) with a PIC18F8720 and the Microchip XC8 compiler (v1.35, PRO mode). Whenever I try to write some code to modify a variable ...
0
votes
2answers
126 views

Error initiating microSD card in SPI mode

I am trying to interface a 32 GB microSD card with PIC32MX795F512L using SPI communication. SPI communication is working fine as I have tested it by shorting the Data Input and Output line and ...
1
vote
2answers
82 views

Microchip PIC18F CAN message reception problem

I am attempting CAN communication between two nodes and can not get the receiver to transfer a message from the MAB to a readable buffer. The nodes are identical, physically and in configuration. I ...
0
votes
2answers
63 views

Which MPLAB-X version supports Pickit 2?

I got myself a Microchip Pickit-2 Programmer from a local store. I installed MPLAB release v2.26 from Microchip's website. However, in this version of MPLAB, it is not detecting my Pickit-2. ...
0
votes
1answer
156 views

Bit Banging UART PIC32mx

I am trying to bit banging an UART Port using PIC32MX with timer5 (the only available at this time) but I am struggling how to configure the timer for a Baud Rate of 115200bps. I don't want a flow ...
0
votes
0answers
30 views

SPI using PIC32MX360F512L

I am using SPI channel 1 as the mater and channel 2 as the slave for SPI on PIC32MX360F512L on explorer 16 board. I have made the connections between SDO1 and SDI2, SDI1 and SDO2 , SCK1 and SCK2 , SS1 ...
1
vote
1answer
58 views

Capture/Compare/PWM

The PIC 18FXX2 microcontroller has a Capture/Compare/PWM unit. I understand what capture and PWM are used for. Capture can be used to time the duration of an event. PWM is of course used to generate ...
-2
votes
0answers
35 views

Build USB demo for PIC24FJ64GB002

I am trying to build the simple MSD demo from the microchip application library by following what this person did here http://www.microchip.com/forums/m717252.aspx. To do this I took the ...
0
votes
0answers
34 views

Very low-power digital multiplexed open-drain sensing quandary

This is sort-of related to another question I asked awhile ago. simulate this circuit – Schematic created using CircuitLab This is for an alarm motion-sensing application, so is normally ...
0
votes
2answers
55 views

Confused with D Latch symbol

Is this just a regular D Latch with an inverted clock or is this a D Latch with an inverted clock which becomes active on the negative flank of a signal? Somehow I suddenly became very unsure of ...
2
votes
2answers
82 views

PIC24FJ128GA202 some I/O PortB pins not behaving correctly

I am working on a small project using a PIC24FJ128GA202, and noticed that my UART wasn't working with every RP pins. I ran the following code : ...
1
vote
1answer
44 views

Is there a common wire color for PGD and PGC?

Is there a common color for micro controller programming data and clock wires?
0
votes
1answer
43 views

How to store modify and resend 4 bytes of data from an assembly coded dspic to that in a c compiler based pic18f

I'm using Xc8 compiler and pic18f.Im communicating with a dspic30f ;coded in assembly and receiving a 4 byte variable via i2c. Task: I have to receive the 4 byte packet store,modify it and send ...
0
votes
1answer
71 views

Fingerprint Reader on Pic32mx

I am struggling in trying to put a UART Port working (no flow control and no parity bit) in a PIC32MX in order to comunicate with a Fingerprint for too long, so I decided to get back to you guys. I ...
0
votes
1answer
71 views

pic16f877a problems

I'm pretty new to the pic. I've made a really long circuit on proteus, ran my program, things worked out great. I then moved on to the breadboard, nothing really worked. I made another prpgram that ...
0
votes
1answer
29 views

How to disable Parallel Master Port Address pins in PIC32

I am using PIC32MX795F512L MCU. I need to use few GPIOs on which Parallel Master Port Address pins are already defined like in ...
0
votes
2answers
80 views

What is the program flow to get multiple SPI ports to run at the same time?

What is the program flow to get multiple SPI ports to run at the same time? I am a linear thinker so it's hard to think of doing more than one task to completion at a time. I need to read two 24-bit ...
0
votes
0answers
70 views

Can FreeRTOS tasks be made to last 500nS or less?

Can Free RTOS (specifically for PIC32MZ) tasks be made to switch in 500nS or less? Free RTOS as it comes has a minimum switch time of 1mS. I have to have things move fast.
1
vote
1answer
36 views

How to distinguish between a read and a write in a Harmony USART BufferEventHandler?

I would like to use the Harmony USART driver on a PIC32MX695F512H using interrupts and with buffer support. After setting the appropriate settings in the MPLAB Harmony Configurator, the system has ...
1
vote
1answer
40 views

Can a PIC32MZ SPI Have Multiple Ports Transmitting at the same time?

Can a PIC32MZ have multiple SPI ports running at the same time? If so, how? The problem is I have two ADS1675s that are 24 bits each with an serial clock maximum of 40MHz. I need to make 1M ...