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)

1
vote
1answer
40 views

SPI: How does communication work with a device that has multiplexed SDO and SDI signals?

Yes this question is related to MCP4131 which is a 8 pin digital potentiometer. I have never seen/heard/used multiplexed SPI before so am trying to clear some confusions. The datasheet shows ...
1
vote
1answer
24 views

Programming USB OTG PIC32 through USB in MPLAB

I have a PIC32 that has USB OTG. How would I program it through a USB cable in MPLAB? Does it work out of the box of does it need additional software.
1
vote
1answer
65 views

Pull high in software

I was porting Arduino library ps/2 mouse to pic and I wondered why pull high works when declaring the pin as an input and then making it high and that worked for pic and Arduino alike, but when I ...
0
votes
1answer
59 views

PIC16f877A: Working in Debug mode not working in Release mode

I am facing an Issue with my PIC16f877A controller. Its working in Debug mode with PicKit3 connected. But when I program the device for release mode, It gives no sign of working. I am using MPLAB X ...
2
votes
3answers
67 views

wav file audio samples are signed, how does DAC deal with signed numbers when it does not have negative supply?

I was looking into wav audio file specification, they may hold the pulse coded modulation data as signed our unsigned integers as well as floating point values. How does a DAC deal with signed ...
-6
votes
1answer
63 views

How does I2C work? [on hold]

WARNING: I HAVE NEVER DONE I2C BEFORE. Hi. I need to connect 2 I2C devices to a PIC microcontroller with a single I2C port. I saw this answer where two I2C devices were connected to an Arduino. ...
0
votes
0answers
20 views

PICkit 3 Programs, Erases but fails on other functions

I recently bought pickit 3 with pic32 microcontroller, however I'm struggling to resolve some issues. I hooked up the PIC32MX320F064H in similar manner shown below, the picture belongs to the ...
0
votes
0answers
34 views

Interfacing a TFT LCD display with a pic/ microchip [on hold]

So my intentions for the design is to use at TFT LCD display ,like this ...
0
votes
1answer
17 views

PIC24 Reset Issue

I am working with the PIC24FV16KM202. I am encountering resets while implementing Dispatch, which is a serial protocol that I'm working on that grew out of a project. The example that I'm working on ...
-3
votes
0answers
16 views

DC Brushless Control using interrupts [on hold]

I'm using a Brushless DC motor with the ESC module .. . . while using PIC microcontroller (PIC18F4520 ) ... i wonder how i can generate a PWM signal to control it's speed and direction simultaneously ...
0
votes
0answers
17 views

ELM327 PIC to PIC communication [on hold]

Is there any ELM327 based hardware which I can use for PIC to PIC communication, for example to hook ELM327 to OBD2 pins and send received data to my custom PIC for processing? I tried to find it, ...
-4
votes
0answers
74 views

Getting Garbage value when converting Float to string? [on hold]

I am getting garbage value when converting float to string. I can!t use sprintf because it takes more memory and PIC24 microcontroller ram size is very low (128kb). ...
-2
votes
1answer
35 views

What is the difference between “FS Device”, “FS Device/Host/OTG”, and “HS Device/Host/OTG”?

I'm going to buy a PIC32 which has inbuilt USB support. What is the difference between "FS Device", "FS Device/Host/OTG", and "HS Device/Host/OTG"? Am I right in thinking that the "OTG" aka "on the ...
-1
votes
2answers
76 views

Why is an 80MHz PIC32 using an 8MHz AND a 32,768Hz crystal?

I saw this schematic, and they are using a PIC32 microprocessor that can do 80MHz, but they are using an 8MHz crystal on OSC1 and OSC2. Are they running the processor at 8MHz or is there some sort of ...
7
votes
3answers
350 views

SPI bus connections - to loop or not to loop?

I have a question regarding the physical connection of an SPI bus. I have an SPI master (a PIC32 device) and a number of slaves (in this case PIC16 devices). I'm only writing to the slaves, and the ...
0
votes
0answers
46 views

Convert RTC date and time to Seconds in Pic24f?

I am building an application with PIC24f where it needs to send data to server for every 120s .I have used time interrupt to do this task but internally it gives some problem so i would like to move ...
0
votes
2answers
78 views

Integer division and scaling an input

I'm trying to get my head around integer division. I'm entering a decimal number between 100 and 6300 into my program, I then need to scale this number by 100 and output the result as a 6-bit number. ...
5
votes
3answers
373 views

Writing to pins on a port without affecting other pins on that port

I'm outputting a 6-bit number on PORTA (RA0-RA5), how do I write to those bits without messing up what is already on RA6 and RA7? For example if I want to output 0x3F on bits RA0-RA5. If I use ...
0
votes
0answers
32 views

PIC24F UART PROBLEM

I am using PIC24F uart module, but it is not working properly. I have enabled the interrupt but it is not going into ISR, as I glow the leds in ISR routine on purpose to know if the program is going ...
3
votes
1answer
33 views

Cannot debug project using “MPLAB X IDE” on “PIC32 Bluetooth Audio Development Kit” with “PICkit 3 In-Circuit Debugger”

I have "PIC32 Bluetooth Audio Development Kit" (DV320032) board (with on-board PIC32MX470F512L) connected to a PC via "PICkit 3 In-Circuit Debugger" (PG164130). After some experimentation I found out ...
0
votes
0answers
62 views

SIM900A Strange Problem

Please refer to above circuit. I have a SIM900A module connected with the UART of a PIC. D1 toggles every second, using timer interrupt, to indicate that while loop is running satisfactorily. D2 ...
0
votes
1answer
35 views

pic32 debug char pointer declaration

I'm working with a PIC32MX564F128H in MPLABX 2.35 with pickit3. I'm trying to parse a message from UART. The character is received properly, but I'm stalling when I attempt to copy a character to a ...
10
votes
6answers
1k views

What is the purpose of a microcontroller bootloader? [duplicate]

From my understanding, for a common microcontroller (e.g. AVR, PIC), there are generally two methods of programming its flash memory. Using a programmer: In-Circuit Serial Programming (or some ...
1
vote
3answers
127 views

SPI between MCUs

As a newcomer to PIC programming, I am looking for some thoughts on how to implement SPI between a master and slave MCU the most efficient way. The purpose of this system is to provide an extremely ...
0
votes
0answers
25 views

PIC18F66K80 conflict via ADC (RA0) and initialize ECAN-module

right now i am quite familiar with the can-bus communication via labview and the pic. I startet to merge the pure data acquisition on the pic (e. g. temperature) with the can communication. At this ...
0
votes
0answers
33 views

conversion of kp,ki values

I have tuned a pi controller with kp, ki values in integer form using matlab simulink tool.To implement the pi on dsPIC33f it a requires fractional pi controller.How to convert conventional pi values ...
0
votes
1answer
33 views

can't figure out why dsPIC digital input is not working

Having trouble getting a basic digital input to work correctly. Just trying to use it as an additional condition for an LED flasher to work. Right now their example code works just fine but when I ...
1
vote
1answer
83 views

Why can I read accelerometer and gyroscope data on the LSM9DS1 with SPI, but not the magnetometer data on the same device?

I'm currently working on a device that uses the LSM9DS1, a 9-axis motion sensor by ST Microelectronics. I’m using a PIC24FJ128GB202 microcontroller by Microchip, and communicating with the sensor ...
0
votes
4answers
101 views

How to design Current Amplifier circuit to amplify the signal current to 1A

I am trying to design a current amplifier circuit to amplify a signal current to 1A. Application : I am generating a signal using microcontroller (for ex : Pic16f877A). This signal is 5v having 10mA ...
0
votes
3answers
33 views

PIC PWM output port

I am just starting to learn how to program a pic. I'm pretty much teaching myself this. I'm using the pic16f1829. I'm playing around with the examples and trying to do PWM. Obviously, it works and the ...
0
votes
1answer
42 views

Calculating the input current drawn by a MOSFET driver

I am using a PIC32MZ's OC pins (PWM mode, fault disabled) as input to a dual MOSFET driver (ISL89163 A). I need one OC pin to drive 3 drivers i.e 6 inputs each. The pulse width would be around ...
1
vote
1answer
57 views

Software UART of 2 PICs with diffrerent clock frequency

Is it possible to communicate the 2 PICs with different clock frequency via software UART? By the way I'm using 2 PIC16f877a. One is connected to PC use 16mhz oscillator and the other one is using 4 ...
0
votes
3answers
78 views

PIC18 control registers

I'm setting the Analog Channel Select bits in the ADCON0 A/D control register. In the data sheet it list "CHS<4:0> Analog Channel Select bits". In MikroC I write the below to set up my input ...
-1
votes
3answers
74 views

Questions about CAN bus [closed]

I am using the PIC18F2680 built-in CAN module along with CAN MCP2551 transceivers, and I am using the plib library for CAN2510 functions. My question are: Should we use twisted pair wires (like take ...
0
votes
0answers
39 views

PIC delay using XC8 compiler

I have been playing around with my Microchip PIC18F13K22 for a while now. But one thing I have been wondering about is the fact, that the compiler's __delay functions do not work as intended. I have ...
0
votes
2answers
79 views

Using UART's TX & RX for Separate Functinality

I am using PIC18F4520. The project requirement is to interface GSM module with uC as well as receive commands from PC via serial port. to achieve this I have connected Microcontroller- TX to GSM ...
0
votes
2answers
80 views

Speedometer using CCP

I made a Speedometer using CCP pin as input. it works. but i have some problem. speed is changed frequently within a range, even using static frequency (When I use a static frequency, It should ...
0
votes
1answer
33 views

SPI refuses to send in dspic33

I'm trying to talk to an RFM22 wireless module. I'm having a hard time getting the SPI functional. I'm working with a dspic33ep512mc806. I'm debugging directly in hardware with a pickit3. After ...
-3
votes
3answers
73 views

Pic microcontroller relay switching of 1 HP single phase motor [closed]

The situation is I am using pic microcontroller for power supply I am using 230 to 12 v stepdown transformer + 1000 uf 25 v capacitor + lm7805 + 10 uf 25 v capacitor from and these two positive and ...
-1
votes
1answer
44 views

How to use two timers simultaneously to control 2 servo motors

im very new to PIC. Im trying to control 2 servo motors for the wheel of my robot. Im using PIC16f877A MCU, servo motor and 4 mhz crystal oscillator. I use mikroC compiler. Actually i already have a ...
1
vote
1answer
160 views

I2C protocol between PIC32mx and Arduino Uno

I am implementing a way to transfer data using I2C protocol between PIC32mx and Arduino Uno. I've decided to establish PIC as master and Arduino as slave. I passed by all the definitions and configs ...
-2
votes
2answers
71 views

Using 7-Segment Display on pic18f

I want to show a decimal number between 0-99 on 7-segment display by using 2 push buttons. These buttons will be used for incrementing and decrementing the number on display. I'm using pic18f assembly ...
-2
votes
1answer
45 views

Pic microcontroller voice recording and playback [closed]

I was wondering we can easily interface LCD, led an pot etc but I couldn't find way how to record my different voice strings and playback specific string as per commands that given to pic
-3
votes
1answer
33 views

Pic output power on issue [closed]

I m using pic16f877a for my projects I face 1 common issue whenever I do projects, when I turned on power of controller it's all output are raised high for instant like a spike and thus all load like ...
0
votes
2answers
96 views

Why is my PIC microcontroller pic16f683 resetting after 2.4 seconds?

I have written the LED flashing light program for a 16F683 microcontroller. I expected the LED to have a 50:50 mark space ratio. i.e. on exactly half the time. In fact, it is spending longer on than ...
0
votes
3answers
75 views

Stepper motor working

I wanted to know why a stepper motor requires a driver board and can't just run directly by a pic microcontroller
0
votes
0answers
47 views

Programming a PIC (with MikroC)

I have some troubles programming my PIC12F629 and since I'm a newbie in this domain (more a programmer) I'm feeling a bit lost. In fact I would like to generate a signal through one of the ouput GPIO ...
2
votes
1answer
49 views

i2c undefined symbols on compile MPLab XC8

I am trying to compile a simple I2C program for a PIC18F45K22 using MPLab XC8 compiler. I am getting the error: :0: error: (500) undefined symbols: apparently relating to _WriteI2C1, _ReadI2C1 ...
-2
votes
1answer
68 views

Interrupt programming PIC18F4520 :: Toggling LED

[Edit: replaced sideways photo with upright photo] I recently started using interrupts in pic programming. I started with this program but I am not able to go through what has been done in this ...
0
votes
3answers
56 views

VDDCORE & ENVREG connection when it is not used

I have 2 PIC18 chips the first one : 1- PIC18F46K80 working with 5V supplied from external regulator, it has a VDDCORE pin. 2- PIC18F65J90 working with 3.3V supplied from external regulator, it has ...