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".

Filter by
Sorted by
Tagged with
0
votes
1answer
35 views

Easiest way to add Bluetooth communications to a Microchip PIC project

We are at the tail end of a development project that is currently based on the PIC12F683 microcontroller. Fairly simple project: a couple of A/D channels, a bit-banged DC-DC converter, an output ...
2
votes
1answer
38 views

Microchip device support - MPLAB Snap supported or unsupported devices list

Need to program and debug PIC and AVR MCU's so MPLAB Snap looks to be a very attractive option however: "it supports many of Microchip’s newer MCU offerings but not some legacy products" - ...
0
votes
1answer
48 views

QR Barcode readers with PIC16f877A

I'm working on a Door Lock system project with RFID module and key pad using PIC16F877a and I want to add QR to my project. After I saw the answers I did not know actually what to do for that I ...
0
votes
0answers
63 views

Could a PIC18 running two functions simultaneously?

I am building a robotic car with stepper motors (for wheels) and infrared sensors(avoiding obstracles) using PIC18F4550 microcontroller. So, I have created a function to drive the stepper motor steps ...
0
votes
1answer
73 views

Interfacing 16x2 LCD to PIC 16F690

I'm designing a digital incubator using a DHT-22 sensor and a 16x2 LCD. I programmed the pic to display my name and the title of my project before displaying the temperature and humidity, but I don't ...
1
vote
1answer
27 views

Can PICPgm program a new part?

Specifically, using the GPIO pins of a Raspberry Pi, which PICPgm does explicitly support, but I think that's irrelevant unless it's an XY problem. PICPgm's home page lists a bunch of devices that it'...
0
votes
3answers
119 views

How do I debug my PIC16F15323 code?

Microchip PIC16F15323 topic I have source code that compiles fine under Microchip's mpasmx Somewhere in there I may have a bug as unlikely as that may seem. I would like to debug my code. I have MPLAB ...
0
votes
2answers
55 views

PIC16F Timer 2 one shot not running

I am using a PIC16F18877 to control some LEDs on a control panel. The whole project is rather huge, involving multiple processors communicating via SPI. This particular processor is controlling 88 ...
1
vote
0answers
39 views

PIC18F4550's internal oscillator block power consumption

I started learning the PIC18F4550 recently, and I came across the internal oscillator segment where an 8 MHz internal oscillator source is divided into multiple clock signals of different frequencies. ...
1
vote
1answer
50 views

PIC 18F4550 capture mode

I would like to measure a pulse using the PIC 18F4550 in capture mode. This pulse is generated by the PIC microcontroller itself. For this, I use a function which plays the role of the XOR logic gate (...
-1
votes
0answers
22 views

PIC18F4550 pin enabled upon powering on

I'm using a PIC18F4550 microcontroller in a USB interfacing circuit. However, I notice that upon powering on the MCU (getting power from USB), a certain pin (RA3/AN3/VREF+) is enabled automatically (...
0
votes
0answers
46 views

How can I use a single port of PIC18F4550 as both input and output

I'm trying to use port B of PIC18F4550 as both inputs and outputs. What I need to do is to connect a 7-segment-display and also connect 4 push buttons to the same port, this means that I need to use ...
0
votes
1answer
45 views

External interrupt debugging with PIC16F877A

I am working with a PIC16F877A on a simulator on MPLABX 5.35 with XC8 compiler ver 2.32. I am trying to understand and work with the external interrupt, I am facing a few issues while debugging. ...
1
vote
0answers
57 views

PIC32 UART Communication Wrong Characters

I am fairly new to PIC32 and am attempting to set up a very basic UART transmission to my computer through a DB9 connector. I am using a PIC32MX440F256H as my testing board. I have gotten the data to ...
0
votes
1answer
30 views

How do I choose the current sourcing pin in CTMU? (pic microcontroller)

I want to configure CTMU to apply current on pin 17 (AN10), and then measure the voltage. I looked at the CTMUCON and CTMUICON registers in PIC24F16KA101(datasheet). There are no bits to determine ...
0
votes
1answer
79 views

How to generate 6 phase shifted (60 degrees between each) PWM Signals?

Hi need to generate 6 phase shifted 5V PWM singnals. I need to take fitting microntroler (now it is PIC18F66K22 I'm looking for easiest to make). I want to know what step i will should take to success....
0
votes
1answer
85 views

Help wiring a pic processor to a FTD chip

I have been trying to wire a PIC18f4620 to a FTD1232 using the MLCR reset. Below is my circuit. When I hit the reset, the short causes the processor and the FTD to lose power and I am unable to ...
0
votes
0answers
31 views

the best way to calculate rms voltage from 10Hz to 20KHz

We need to calculate the RMS voltage of a signal that can work from 10Hz to 20 KHz with a duty of 5% to 95%. I decided to use a dsPic33CK256EP202 with the ADC sampling at 500Ksps at 12 bits of ...
1
vote
2answers
35 views

BANKSEL problem with PIC16F18855

I'm working with PIC16F18855 and have some problem with select memory bank via BANKSEL. In listing I see strange message and it's not working properly. ...
1
vote
1answer
84 views

My itoa (c++)conversion has a problem

I am receiving a string of data via UART in PIC32, extracting and concatenating two of its bytes, dividing the result by 2, converting the resulting integer to a string and transmitting via i2c to ...
0
votes
1answer
74 views

HCSR04 with PIC18f24k22 stuck in real test

I have a problem with HCSR04 ultrasonic distance sensor. I wrote a code that works perfectly in Proteus simulator but when I upload it in real microchip it stop working properly. Looks like it sticks ...
0
votes
1answer
17 views

I'm trying to sort the netlist error in proteus

I'm simulating pic in Proteus loaded the hex file of the Proteus but I'm getting the following error: Also I am getting the error of MQ-2 sensor library saying ".......\users\zain\appdata" ...
0
votes
1answer
37 views

PIC10F200 OPTION Register constants not present in header files

I'm brand new to any microcontroller programming and am playing around with the PIC10F200. I'm using MPLAB X 5.45 with XC8 2.32 pic-as compiler and I saw that most of the registers have constants ...
5
votes
7answers
1k views

Is auto generated projects for embedded system the future?

I'm using CubeMX for auto generate projects for the STM32 micro controllers. I really like CubeMX because it's fits both STM8 and STM32 micro controllers. One thing that I'm wondering about is if ...
0
votes
1answer
48 views

Unable to Generate PWM Signal Using CCP of PIC16F15325

I am using: Curiosity LPC dev kit, PIC16F15325, MPLABX v5.35 on Mac, XC8 compiler. I am able to blink each LED on the Curiosity. My goal is to generate a PWM signal on RC5 to drive an LED on the ...
0
votes
3answers
68 views

How to make sure my motor will not start spinning on power up in case the throttle (POT) was not at a 0 position?

I am trying to make sure my motor which is connected to my controller circuit would not just start spinning when you first apply power to it as if the Potentiometer is left high before the battery is ...
0
votes
2answers
82 views

PIC18F4550 : How to convert 16 bits integer to two 8 bits chars in C?

I'm blocked because of an issue that is causing a lot of time loss. I've created a function to get the LSB and another one to get the MSB. ...
0
votes
1answer
33 views

Timer1 not counting T13CKI pulses on PIC18F4550

I have a big issue on Timer1 of a PIC18F4550. Actually I have connected a 4060 IC which provide a square signal of 4Hz on RC0 input of the micro-controller (please refer to attached image). After ...
2
votes
1answer
69 views

Pointer to array gets highest bit toggled by … compiler? (dsPIC33EP & XC16)

Brief: Pointer to a const-int-array, nested in a struct Using ptr to this struct (type) in various places ptr-deref causes address-error, because value was changed from i.e. 0x00AE to 0x80AE -> ...
0
votes
0answers
32 views

How to use the full 10-bit PWM resolution (PIC18F2xk22)?

Hi I am trying to use the full 10-bit PWM resolution for my project, and there is a problem as the duty cycle of the PWM will not set to zero when I rotate the POT to the zero position, here is my ...
0
votes
1answer
24 views

ATM90E32AS Power calculation

My application requires a energy meter so i interface a ATM90E32AS energy meter IC with dsPIC microcontroller. when i gone through the data sheet it was really confusing about power calculation. As ...
0
votes
1answer
29 views

Pic18F67K40 unable to read 7940 RTCC over I2C

I'm trying to integrate the MCP7940N RTCC into my design. The MCU is the PIC18F67K40 and I'm using I2C to communicate. I created a new starter project to make sure that it works there before I add to ...
0
votes
2answers
93 views

Reading Multiple ADC channels with a PIC18F24K22

I am having issues with reading 2 ADC channels in my code running in a PIC18F24K22. One channel is used to read a potentiometer to control the speed of a motor ( PWM) and the other is reading a ...
0
votes
1answer
97 views

PIC10F200 - blinking LED (pic-as) - Assembly

The code below worked for my 10F206, but now I use a 10F200 and for some reason the led does not blink anymore. (compiler: pic-as 2.30, IDE: MPLAB X IDE 5.40) It compiles but the led stays off. ...
1
vote
1answer
52 views

PIC Curiosity HPC with multiple UARTs

I've got a Curiously HPC with two mikroBUS UART modules fitted (1x FTDI232R and 1x RS485 5V), however MCC in MPLAB X isn't letting me map the EUSART2 of the target (PIC18F46K40) to module 2, even ...
0
votes
0answers
25 views

PICKit3 Connection Fails

I am an absolute beginner to PIC microcontrollers. I am using PICKit3 to program a PIC18F4550 and MPLABX-IDE / MPLAB IPE version 5.20. The problem I'm not able to solve is that the connection to ...
0
votes
1answer
50 views

How to read protected PIC16F676

Well I have broken pcb and it has a PIC16f676 on it. PCB Not working very well. I want to replace it with new pic16f676 but I cant read data from on board PIC. it ruturns "0000" in ...
0
votes
1answer
62 views

dsPIC33EV32GM104 CAN bus transmit issue

I created a CAN transmit project for dsPIC33EV32GM104 using MCC plugin. I used the example program given in the can1.h. When i try to debug and check the functionality of CAN bus i am getting struck ...
0
votes
1answer
30 views

Driving Delta-Sigma ADC with reference clock output from MCU

I am sending out the PB clock (32MHz which is PLL multiplied) generated from the internal FRC on a pin to feed into an ADC as a master clock after probing it at 32MHz. This is what I see. It doesn't ...
0
votes
1answer
55 views

dsPIC33CK64MP102 turn on Led

I have just started to pre-program with the dsPIC33CK64MP102 and I want to turn on an LED that I have on the RA0 pin. I have used mplabX's mmc to configure the pins and clock. I have only activated ...
0
votes
1answer
99 views

PIC microcontroller PORT not changing logic states

I tried to run the following code on both the PIC16f690 and the PIC16f19176. All the code should do is turn off and then turn on PORTA. I also tried turning on then off PORTA. However PORTA never ...
0
votes
0answers
60 views

U1RXREG always returns NULL character

I am trying a UART loop back program using dsPIC33EV32GM104 IC. I created a project using Microchip code configurated. I assigned the TX pin as RC1 and RX pin as RB4. Baud rate setting is 9600, 8 data ...
0
votes
0answers
34 views

Die Temperature conversion result of the pipeline ADC [duplicate]

Could you help me with this question? I have some difficulties to answer it. The question is from the PIC24FJ128GC010 family datasheet and after some research I just know the meaning of the different ...
1
vote
1answer
65 views

How can I convert an input with the 16-bit Sigma delta A/D converter

Could you help me with this question? I have some difficulties to answer it. The question is from the PIC24FJ128GC010 family datasheet and after some research I just know the meaning of the different ...
0
votes
1answer
44 views

RPi-PIC18 I2C: problem with first byte

I am having a bit of a problem with RPi-PIC18 I2C communication. The raspberry is the master, the problem is with the PIC18F25K80 slave device. Here is my code regarding the I2C parts: ...
0
votes
2answers
60 views

Stepper motor causes voltage drop when running

I am a bit new to the electronics hobby so I am trying to understand what is going on with my circuit. I am using a pic microcontroller to control a stepper motor, an LCD and an RTC using USB to ...
4
votes
3answers
524 views

Dangers of analog levels on digital PIC inputs?

I'm intending to use a PIC16F675, because it's what I have laying around, for a very simple task that involves turning on or off LEDs in response to changes in a pair of photodiodes. It really could ...
0
votes
0answers
66 views

How does 'Interrupt on Change' work on a PIC 16f877A controller?

I have a problem with my program. I am using "interrupt on change" on a 16f877A microcontroller. I use MikroC. What the program should do: The program should generate an interrupt when I ...
1
vote
2answers
129 views

Incremental encoder - polling or interrupts?

I took over a project including PIC18f25k80 microcontrollers and incremental encoders. Basically I just need to follow the position of the motor using the encoder, and drive a device to specific ...
0
votes
0answers
27 views

PIC18F4550 microcontroller pin pulled high on PC wakeup

I got a PIC18F4550 microcontroller connected to the PC via USB. All is working fine except for one thing. If the PC wakes up from sleep, I notice that certain pins are pulled high (LEDs connected to ...

1
2 3 4 5
52