Questions tagged [pic]

PIC is a brand of 8, 16, and 32 bit RISC microcontrollers manufactured by Microchip. "PIC" originally was an acronym for "Peripheral Interface Controller".

270 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
0answers
221 views

The precision of internal voltage reference in PIC

I am designing some circuit with PIC16F18345 and I need some voltage reference (±0.5% or better). I can add some external reference or use built-in internal voltage reference in that MCU (that means ...
0
votes
1answer
349 views

How to read potentiometer input from dsPICDEM MCLV-2 Dev Board - dspic33

I have very little microcontroller knowledge so please bear with me. I am trying to figure out how to use all of the inputs on the dsPICDEM MCLV-2 Dev Board. Specifically, how do I read the ...
0
votes
0answers
320 views

program resets after ISR for TIMER 2 on pic24F

I am trying to configure the timer2, but every time that an interrupt occurs, the microcontroller goes to the ISR and then starts the main() function again. This are the functions: ...
0
votes
1answer
69 views

Cost-effective current monitoring solution for PIC

I'm in search of a cost-effective solution for monitoring the current draw in a resistive heating element using a PIC. All of the Hall Effect sensors that I've looked into seem to output the same AC ...
0
votes
1answer
860 views

Cannot connect Hc-05 with PIC16f877A

I am trying to connect my HC-05 bluetooth module with PIC16F877A. I know we have to use USART to talk with bluetooth module. So I started with USART of PIC by reading its datasheet. I am using ...
0
votes
1answer
752 views

PIC18F2550 and DS1307 i2c RTC MPLAB assembly code. Have to loop for seconds,mins,hrs

PIC18F2550 and DS1307 i2c RTC MPLAB assembly code. I am using a PIC18f2550 to get time,date,etc from DS1307. I am able to get the seconds,minutes, hours, etc by repeatly CALLing GET_TIME with a ...
0
votes
1answer
688 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 ...
0
votes
1answer
356 views

Odd character echoed from UART - PIC16F

I am working with a PIC16F1829. I have a UART interface that mostly works correctly. My issue is that whenever I type a character into CoolTerm, I get an echo of that character back or some other ...
0
votes
2answers
7k views

ISIS Simulation "is not running in real time due to excessive CPU load"

Here is an animation showing the problem in action : https://gfycat.com/ImmaterialNextGermanshorthairedpointer I press Play, it works, I stop and play again, it stops working until I remove the ...
-1
votes
2answers
621 views

Converting signed hex integer to display negative decimal integer on terminal in C code

I am trying to take a signed hex number and display it on the terminal as a negative decimal number so that it can be easily read. I am having a hard time working through the logic on how to make this ...
-1
votes
1answer
191 views

how to display an output variable from a speed sensor to a 7 segment display in C. DSPIC33E

I have just started an electrical engineering degree and been set an assignment to create a closed loop motor speed control system in C programming language. The PIC is a DSPIC33E (BLO032) and the ...
-1
votes
1answer
712 views

How to return ADC_Read() as characters in PIC ? Using mikroC PRO?

We have a function: ...
-1
votes
2answers
181 views

Recording servo movements using pic with CCS C

Here what I am trying to do is control servo motor with a pottentiometer and record its movement using analog to digital converter and than play. I started with just moving the servo. To see which ...
-1
votes
1answer
521 views

variable PWM frequency and duty cycle in real time

My project is based on a strict time management and precise event timing for that I need to vary the PWM frequency and duty cycle in real time with two potentiometres. I've succeded to vary the ...
-1
votes
1answer
74 views

setting i2c device high

Currently I am working on a project where I have to set an I2C device high, would I do thing by writing to the address of that I2C device then do something like I2C_Write(1)? I am also doing this on a ...
-1
votes
1answer
591 views

PIC SPI Master and Slave at same time

I need to implement a SPI slave device, and SPI master, the idea is a SPI "middle man". I'm familiar with avr and mbed development, i lost the contact with PICs long time ago, so this will an ...
-1
votes
1answer
136 views

PIC32MX UART error using UART 5

I am using PIC32MX Clicker (PIC32MX534F064H microcontroller) for transmitting data through UART and receiving the same on PC using a USB to serial converter at baudrate 115200. When I try to send the ...
-1
votes
1answer
2k views

Rs485 receiving problem in Pic microcontroller

I started to work on Rs485 (Sp3485c) which is interfaced with Pic24fj128ga202 microcotroller IC. This controller has 4 uart's one is connected to pc through max3232 ic ,gps,gsm and another for rs485....
-1
votes
1answer
68 views

Can't compile program for PIC because of a define statement

I am trying to compile an example program from Microchip using MPLABX. It looks like the IDE is not including the "xc.h" file becuase of the following code: if defined(__XC) inlcude xc.h The "...
-2
votes
1answer
321 views

frequency counter code error in pic

Below is my code to count the pulses at RC0 pin of pic16f877A . I applied a square wave at rc0 to count pulses. i used TMR0 as 500ms timer and TMR1 as counter . but the problem is that tmr1 doesn't ...

1 2 3 4 5
6