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
28 views

Allowed error in baud rate between pic and Bluetooth module [duplicate]

I'm trying to connect a dsPIC33FJ128MC804 - 16 bit pic - with a Bluetooth module the problem is i have few baud rates of Bluetooth to choose between them , searched the net but could not find the ...
0
votes
2answers
63 views

MOSFET driving MOSFET for reduced reduced Rds [duplicate]

I am using a PIC to drive the gate of a logic level MOSFET. Although the 5V logic output of the pic is sufficient to exceed the threshold voltage I would like to drive the gate using 12V to reduce the ...
0
votes
0answers
21 views

SPI on dsPIC33 and PPS problems

I've been trying to get SPI working on my dsPic33FJ64MC802 for a few days now so I'm desperately needing help because nothing seems to be coming out of SCK1 or SDO according to the o-scope. This is ...
1
vote
1answer
50 views

Is there a way to Divide two 8 bit number in PIC 18fXXX assembly language not C?

I Can easily do the division in C of PIC micro controller. But is there a way to divide two number stored in two 8 bit registers. For example look at this code. I have to do it in PIC assembly for 8 ...
-1
votes
0answers
20 views

PIC16F1509 I2C problem (XC8)

I've got a problem with my PIC16F1509 code. The PIC is running in slave mode for the I2C. With the code below I'm able to write to the device and change the position and run this all day long but ...
1
vote
1answer
50 views

can't assign PORTD a variable value on PIC18F

I'm using the following code to test some GPIO while I mess around with the PIC18F45K20 demo board. I realised something was strange when I couldn't increment a value and see it reflected on the LEDs ...
0
votes
2answers
25 views

PIC18F14K50 with 8Mhz crystal and 50Hz PWM

I'm looking to generate between 50Hz to 150Hz square waves with a PIC18F14K50, which is running with an 8MHz external crystal (XT). Apart reading an analogue value for the frequency from a pot and ...
0
votes
1answer
43 views

Error communication in I2C in PIC32 [duplicate]

Duplicate question was also asked by me and the current question has different code I have a PIC32 starter kit and I am making ...
1
vote
2answers
59 views

SPI communication between PIC24FV32KA301 and MS5611 won't work

I am new to microcontrollers programming and I am trying to establish SPI communication between PIC24FV32KA301(Datasheet) and MS5611(Datasheet). After a week of searching and learning about SPI I am ...
3
votes
3answers
76 views

Error interfacing DS1307 RTC with PIC32

I am interfacing DS1307 RTC with PIC32MX795F512L. I am using I2C1 for ...
1
vote
3answers
65 views

Error generating 1 sec delay using timers in PIC32

I have a PIC32MX795F512l and because XC32 doesnt provide an inbuilt delay function, I am using ...
1
vote
1answer
101 views

Why we use #pragma configs in PIC controllers?

Hi all I am new to the programming of PIC MCUs and I have with me PIC32 MCU. I have done a UART program in it and its working ...
-1
votes
0answers
51 views

TLC5947 How to use [closed]

I have trouble understanding how to use the TLC5947 IC. I need to control 25 servos with it and I plan controlling it with a pic. I understand that it has internal counter that counts to a 4096 and ...
-8
votes
0answers
36 views

how to seperated $gprmc data from following l80 gps module dataformat [closed]

$GPRMC,060412.000,A,1300.4128,N,08015.4265,E,0.53,180.60,190815,,,A*66 $GPVTG,180.60,T,,M,0.53,N,0.98,K,A*35 $GPGGA,060412.000,1300.4128,N,08015.4265,E,1,5,1.51,10.4,M,-88.9,M,,*48 ...
1
vote
1answer
57 views

Unable to receive GPS data from Quectel L80 GPS module

I have a Quectel L80 GPS module with PIC24fj128ga202. I am using UART2 to get GPS data from the module and I transfer the received data to hyperterminal, using UART1. Between PIC and PC I there is an ...
0
votes
1answer
100 views

Running LED at different speed using timer

I am new to C programming. I want to program a running LED on my PIC24 (PIC24HJ256GP206) I have 5 LED on my PORT G and have input PORTB (RB0) My program should, if RB0 is grounded (I put jumper on ...
1
vote
1answer
53 views

Can't control RB10 (and RB12) of the PIC32MZ2048ECG064 as a 'normal' GPIO [closed]

This is an excerpt from the datasheet of the PIC32MZ EC Family concerning peripheral pin select output mapping: I'm using the PIC32MZ2048ECG064. My question concerns RPB10. I would like to use RB10 ...
1
vote
2answers
56 views

Input and UART error in PIC32

I have a PIC32 starter kit and I am making a program such that when I apply input 1, MCU will send this data to my PC using UART and ...
0
votes
0answers
42 views

Linker File Problem [migrated]

I am dealing with a problem in my application with the linker file. What's happening is in the explorer tab it seems the linker file it's not "selected" I have to refer that I also have a ...
2
votes
0answers
28 views

PIC32MZ bootloader without development board

I would like to put a bootloader in a PIC32MZ2048ECG064. I found AN1388B, but in table 9 (available bootloader workspaces) it lists only PIC32MX devices as compatible. The datasheet doesn't mention ...
1
vote
3answers
264 views

Driving LED with PIC 5V

I have always been taught to driver an LED using an MCP using the following method (Driving the pin high) as shown in the diagram below: However I have recently seen LED's being driven using the ...
2
votes
1answer
41 views

Error in turning ON the LED using UART in PIC32

I have a PIC32 starter Kit & IO Expansion Board. PIC32 Starter Kit has 3 LEDs on baord ...
0
votes
2answers
48 views

Missing pins of 16F887 in Proteus 8 schematic

In schematic of Proteus 8, why pin number 11, 12, 31, 32 of PIC16F887 are missing?
2
votes
1answer
37 views

PIC16F684 Timer 2 interrupts occurring much more quickly than expected

TL;DR: Timer 2 interrupts (1:4 postscaler, PR2=0x3F) occurring at about 139 kHz instead of expected 19.5 kHz. Changing postscaler to 1:1 has no effect. I am using a PIC16F684 microcontroller for a ...
0
votes
1answer
30 views

PIC24F: RPINR0 register

Im new to PIC. Im working on PIC24FJ64GA002 PIC. Can any one pls explain how below code says "set RP10 to external interrupt"? ...
2
votes
1answer
28 views

Error reading data from UART in PIC32

I am trying to communicate with PIC32 UART. I am able to transmit any data but getting problem in reading the data. In PIC32 there's a function putsUART2("") which ...
0
votes
1answer
43 views

Is it possible to enable both UART and PLL at the same time on PIC18F?

I'm doing an application where I'm turning on some ws2812 LED with my pic microcontroller and I want it to talk with my smartphone via bluetooth. Now, I got the code for the LEDs from ...
0
votes
1answer
36 views

Creating a PWM signal using PIC18F4520

I am trying to create a 100ms period pwm signal (10Hz) with a PIC18F4520, I followed the PR2 equation to help me create this signal I have a 20MHz clock frequency with a prescaler of 16 and a PWM ...
0
votes
1answer
35 views

PIC24F: problem in AD1PCFG register

Im working ADC in PIC24FJ64GA002 microcontroller using proteus simulation. I've a doubt regards AD port configuration register. I've connected a potentiometer in AN12 pin and channel was selected. The ...
0
votes
2answers
39 views

Measuring Switch State using PIC

What is the best way to measure the state of a latching switch using a micro controller? Keeping in mind the voltage level of the input to the switch is higher then the maximum voltage input to a MCU ...
0
votes
0answers
33 views

Design DIY PIC burner with PIC 4550 [duplicate]

Without buying a PIC development board I need to develop my own PIC burner using PIC 4550. Are there any possibilities designing a PIC burner using that? Please give me the best way.
1
vote
0answers
29 views

Input output voltage problem in PIC32 starter kit & IO expansion board

I have a PIC32 Ethernet Starter kit and IO expansion board. I have a made a simple input output program in which if ...
1
vote
3answers
98 views

I2C: Unable to Read Multiple Byte using Bit-Banging method

I am using Bit-Banging for I2C communication via PIC24FJ128GA010. The code works fine for writing 16bytes to EEPROM ( I recieved ACK = 0 for every Byte write ). While reading EEPROM I am able to ...
3
votes
1answer
43 views

PIC24/PIC16 power consumption during reset

I am working on low power application that has long Vdd rise time. I have external power supervisor that control PIC24/PIC16 MCU reset pin. It holds MCLR pin low during Vdd stabilization period and ...
0
votes
0answers
62 views

Voltage drop problem?

I made a circuit using PC817 optocoupler. On its 1st pin, i gave 3.3v, 2nd pin was ground. 3rd pin was 12v and on 4th pin i used a pull down resistor with resistor ...
0
votes
0answers
54 views

dspic MPU6050 calibration problem

I use dspic33fj128gp802 and MPU6050 for my project. Microcontroller succesfully takes the data from sensors 6 channel and sends the data pc via UART. When i want to add "float 2.0" or "int 2" to ...
1
vote
0answers
64 views

MPU 6050 dspic33fj128gp802 addition operator problem

I use dspic33fj128gp802 and MPU6050 for my project. Microcontroller succesfully takes the data from sensors 6 channel and sends the data pc via UART. When i want to add "float 2.0" or "int 2" to ...
0
votes
1answer
63 views

Problem in PIC24FJ128GA202 UART?

I started to work on PIC24FJ128GA202 microcontroller. Tried samples programs like LED blink and switch, controller works fine with the coding, then I started to work on UART configured all the ...
0
votes
1answer
102 views

Can't get PIC 16F876 working.What am I doing wrong?

I have been playing around with the PIC16F628 for a while, and now I want to transfer to something that has more pins. Specifically the PIC16F876, but I can't get it working. I just want to turn an ...
0
votes
0answers
40 views

dsPIC33ep256mu810 CAN bus-to-USB “bridge” - CAN message overload

I have a problem with transmitting received CAN messages to USB. If I receive only a few messages at a time, there is no problem with communication. The problem is receiving a lot of messages in a ...
0
votes
1answer
43 views

Using the USART on the PIC16F877A

I am trying to use the USART to make two PIC16F877A microcontrollers communicate. When I look with an oscilloscope at the output on the TX pin of the MCU that's transmitting , I see the normal NRZ ...
1
vote
0answers
80 views

Transformerless Realtime Clock Issue

I have an issue with designing a Real Time Clock by using Transformerless power supply. I don't use RTC IC but I use Microchip PIC instead and 32kHz clock. I use battery of 3.3V for backup supply. ...
0
votes
2answers
39 views

Debouncing/Stabilizing power supply rocker switch?

I'm having trouble with the power signal out of my Rocker Switch (https://www.sparkfun.com/products/8837 for reference). My PIC18F4550 + 16x2 character LCD screen project was running fine until I ...
0
votes
0answers
15 views

PIC10F202 configuration bits MCPU and IOSCFS_4Mhz

So I have the following code which orginally had the __CONFIG line uncommented apparently this is depreciated in recent versions of the XC8 compiler from Microchip. I found the #pragma config ...
0
votes
2answers
46 views

Read and Write Protection to pic18f4520?

I am working on pic18f4520 using MPLAB C18 compiler. I have just completed a project (Asked questions about it earlier,see my other posts) and now I want to lock the data of the micro-controller so ...
0
votes
2answers
85 views

AT commands for GSM

I'am trying to interface a GSM module with flowcode for PIC and the Tutorial I'am following suggests a module SmartGM862 which is not available in my market but instead some other SIM900 series module ...
1
vote
2answers
88 views

PIC32 and I2C EEPROM interface problems

I am writing code for a PIC32MX250F128B to interface with the Microchip 24LC02B EEPROM with I2C interface. I have followed the datasheet of the EEPROM, the PIC32 and section 24 of the PIC32 family ...
0
votes
1answer
29 views

PIC18 and RTCC combination

I'm quite new in the microcontroller world, since I work on it only for my internship. But I have a problem in my main project. I was implementing an automaton based on a PIC18F46J50, and we printed ...
0
votes
1answer
42 views

How to use mikroC oscillator frequency in my code?

I am using mikroC pro for PIC. In the "Edit Project" window there is an option for setting oscillator frequency. I want to use that value in my code. I think it can be used like something that is ...
1
vote
1answer
67 views

PIC16F628A: 500ms delay (w/Timer 1) not as expected

TL;DR: See the last few lines (and the quote) at the bottom. Just a word about my background: I learned microcontrollers last semester with the 8051 and have been learning PIC microcontrollers over ...