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

PIC18F power consumption

I am looking for a lower power PIC18F microcontroller that supports SLEEP mode (or even DEEP SLEEP mode without RAM retention). These power saving modes are widely advertised by microchip. They write ...
user avatar
  • 131
-1 votes
0 answers
61 views

dht11 pic16 at low frequency

I'm trying to interface a DHT11 sensor with a PIC16. At 8Mhz internal clock frequency, the ...
user avatar
  • 1
6 votes
3 answers
957 views

Does it make a difference if I use 8MHz or 16MHz crystal for PIC18F47J53

I'm using a PIC18F47J53 in a project. Because I need to use Full-Speed USB 2.0, I can't use the internal 8MHz oscillator because it's not stable enough (*). Although Microchip has a lot of interesting ...
user avatar
0 votes
0 answers
37 views

How to generate PWM with a PIC16F676 when a button when is pressed?

I am using MikroC to program a PIC16F676 in order to generate five different PWM signals. The output is only one which is pin number 10. I am new to PIC so I get confused between different compilers ...
user avatar
  • 15
0 votes
0 answers
36 views

Getting A #DEVICE required before this line error in CCS

I am new to PIC microcontroller programming. I am working on this project. It took me a lot of time to get practiced with MikroC and MPLab software. I was working with sensored BLDC motor for over a ...
user avatar
  • 101
1 vote
2 answers
60 views

Will driving six LEDs damage a PIC18F24K22 microcontroller? [closed]

Can this microcontroller drive six 20mA LEDs at once or will it just fry? Do I need to use transistors or not? Microcontroller datasheet.
user avatar
0 votes
2 answers
44 views

Interfacing PIC18F4550 with Arduino Nano

For a project, I want to communicate with Arduino Nano using PIC: PIC18F4550. PIC is collecting data from MPU6050 and DHT11; I want to send this data to Nano, which is a separate circuit for handling ...
user avatar
  • 101
0 votes
0 answers
29 views

HC-SR04 with pic18f24k22 doesn't work

I'm trying to find the problem with my code, because It seems like I can't get the echo back from the sensor or it's not registered. Any help would be appreciated, thank you The code : ...
user avatar
0 votes
0 answers
33 views

SIM7080 UART Noise interfacing with PIC18F4550

I'm working on a project where I read data over Modbus line and send it in the cloud service through a SIM7080 CATM modem. I'm using PIC18F4550 as MCU. As that PIC18F has just one UART module, I'm ...
user avatar
1 vote
0 answers
63 views

Is it OK to use manufacturer vendor ID when using virtual COM port example?

I am using a PIC32mz microcontroller for a serial port emulator application. Example code is working fine. But if I want to sell this product, do I need to get a new vendor ID? Is it OK to use the ...
user avatar
1 vote
1 answer
83 views

Can I directly connect a 5V DC device to the inputs or outputs of a 3.3V microcontroller that tolerate that voltage level?

I'm doing a project with a PIC32 that works with 3.3V and that has some terminals that are tolerant to 5V levels. I need to manage another device that has a UART at TTL voltage levels (5v). The ...
user avatar
1 vote
2 answers
65 views

How do I exit (Microchip Pic18fxxxx rs232 BTFSS PIR1,RCIF) Loop when no data is present (Assembly Mplab Mpasm)

...
user avatar
  • 552
0 votes
1 answer
63 views

Pic32MZ microcontroller ADC input scan causes voltage drop on sense pin

I am using PIC32MZ microcontroller for ADC input scanning. I have 10 inputs. Some of them are resistor dividers, others feed with opamps. I get some kind of voltage drop in every sense input. The ...
user avatar
0 votes
1 answer
89 views

How to get program file from PIC?

I want to get the program file in the pic 18F46K22 from an electronic PCB. There is no code protection or password on the PIC18F46K22. It is a simple card. Is it possible to connect to the card with ...
user avatar
  • 1
0 votes
2 answers
63 views

How can I handle Overrun and Framing errors in UART transmissions on PIC16 devices?

I am transmitting and receiving data over UART between two PIC16 devices using interrupts, but at random times, one of them seems to block its receiver and it stays stuck in that position permanently. ...
user avatar
  • 65
0 votes
0 answers
43 views

How can I set the PWM for PIC16F1934/6/7?

I want to generate PWM of 5 kHz with a 50% duty cycle using PIC16F1934/6/7 at pins RE0 and RE2 (CCP3 and CCP5). I am using the MikroC compiler, and the code is as follows: ...
user avatar
  • 65
0 votes
1 answer
58 views

Design a flashing circuit that uses PWM signal and MCU signal to control when it is on and off

My team and I are working on the low voltage systems of a solar car and have an issue with figuring out how to flash the turn signals on the car. The options we are exploring include: Using a 555 ...
user avatar
0 votes
1 answer
124 views

PIC18 UART interrupt priority problems

I am completely new to microcontroller programing. Just started my journey with PIC18F24K22 and now I am on the UART interrupt stage. I have been reading the datasheet meticulously and it really took ...
user avatar
0 votes
1 answer
59 views

Microchip MLA file does not compile

I tried to compile an MLA file without success. The IDE keep telling me that "No such file or directory." Any idea how I can solve this problem? How can I change the directory of these ...
user avatar
-1 votes
1 answer
57 views

Advice for where to start when choosing and working with a touch screen display for the first time [closed]

I am looking to utilize a touch screen display in an ongoing project and have not ever had to use one before so I am starting from ground zero. I was hoping to get some general advice on what to start ...
user avatar
  • 326
0 votes
0 answers
52 views

What can be a possible reason the PIC16LF1783 I2C Master mode code not working?

I'm having an issue making my I2C code work as expected. I'm using PIC16LF1783 at master mode and trying to read slave reference ID from NFC Tag 4 click. While debugging the code I'm seeing that my ...
user avatar
  • 111
1 vote
0 answers
39 views

PIC32MX170F256B SPI

I bought a PIC32MX170F256B but struggle with the SPI module. The chip has dedicated pins for the clock but no clock is present after writing to the SPI1BUF register. The UART is working, the timers ...
user avatar
  • 11
1 vote
1 answer
92 views

Change Notification Interrupts PIC32

I am attempting to code a program in the PIC32 where pressing S1 button lights up the LED and releasing it would turn it off, LED2 is also blinking - using interrupts. The pressing and releasing works,...
user avatar
0 votes
0 answers
31 views

Problem with SD card initialization with PIC18F452 using mikroC

I'm trying to write a text file to an SD card with a PIC18F452 using mikroC. I'm using a mikroC library named Mmc_FAT16 and I formatted the SD card to FAT, but I can't initialize the SD card. I tried ...
user avatar
2 votes
0 answers
52 views

Problem with bootloader application for PIC18F452

I want to program my PIC18F452 from long distances using a SIM808. By searching on the net I found out that I should write two different programs: a bootloader program and the main program. For the ...
user avatar
0 votes
1 answer
39 views

COM port not recognised by bootloader application PIC18F452

I want to program my PIC18F452 from long distances using a SIM808. by searching in the net I found out that I should follow this procedure: I should write two different programs in the micro: a ...
user avatar
0 votes
0 answers
18 views

Configuration space for the PIC18F66K40 timer 0

I wrote a utility to accelerate analysis of timer configuration in embedded systems. This is not a replacement for testing; it's a convenience visualisation. The default configuration on load ...
user avatar
  • 3,022
-1 votes
1 answer
60 views

XC8, need help. RC3 is holding micro in reset mode

I am trying to write a program for PIC18LF14K50 using MPLAB X and XC8 compiler. So far everything was working fine, but as soon as I set RC3 (input) to 0 and go back to 1, the pic goes into a frozen ...
user avatar
0 votes
0 answers
44 views

PIC32 USB STARTER KIT III not appearing in Board Support Packages (BSP)

I have been trying to use Microchip MPLAB Harmony 3 to develop a USB application using the Microchip PIC32 USB starter KIT III. When I create a new project I enter the following - The PIC32 USB ...
user avatar
  • 3,687
1 vote
1 answer
60 views

PIC18, XC8 compiler, enable multiple interupts

I am trying to make a module that needs to communicate over USART module, and also, do some tasks on a timer basis. (1ms / 30sec / 2 minutes) Now I need to enable USART interrupt and enable a 1ms ...
user avatar
0 votes
3 answers
125 views

16 bit data from max6675 to a 8 bit PIC microcontroller

I'm trying to read data from MAX6675 with PIC16f1937. The bottom is my code ...
user avatar
  • 120
0 votes
0 answers
131 views

Spi in interrupt mode for transmission and reception in PIC microcontroller

I am using spi in pic16f877a, for m95320 eeprom. Using interrupt for communication, Everything is working fine. However I have to tweak something which is confusing me, of using interrupt. ...
user avatar
  • 229
0 votes
0 answers
56 views

Using UART to USB on a PIC24f

Disclaimer: New to PICs, need things dumbed down to an extent until I start to figure things out. I'm trying to set up a UART connection on the PIC24fJ32GA002 to an FTDI which will then go to my ...
user avatar
  • 163
0 votes
0 answers
53 views

PIC16F57 External RC Oscillator oscillates but does not supply clock or appear on OSC2 pin

using 22pf cap and 10K resistor connected to OSC1 pin. Config word set to 0xFB. OSC1 trace shows expected 1MHz sawtooth, but no activity on OSC2 and no clock to processor. Happens on at least 3 ...
user avatar
0 votes
1 answer
47 views

PIC16F886 and Switch Setup with Diode

I would like to make a simple embedded program that will Display what is happening on and LCD screen. When Switch One is pressed, it displays "Switch One". When Switch 2 is pressed it ...
user avatar
0 votes
2 answers
84 views

Transmission interrupt in PIC18F46K80

I'm using a PIC18F46K80 and have been trying to send data to the computer using USART module (simulating in Proteus). This is my code: ...
user avatar
  • 120
0 votes
1 answer
37 views

AVSS pins in PIC18f46k80

I'm trying to use ADC module in PIC18f46k80 and I want to connect VREF- to AVSS. But the problem is that I can't find AVSS pin in this microcontroller: Is AVSS the same as VSS here? meaning I simply ...
user avatar
-1 votes
2 answers
85 views

7segment driver with PIC microcontroller

I'm trying to drive a 7segment using PIC microcontroller. This is the circuit diagram: In the picture, PIC means some ports of the PIC microcontroller. I want to pass 3 mA through each LED, and since ...
user avatar
1 vote
0 answers
51 views

What is wrong with this PIC16F877A HCSR04 example?

I am working on distance sensor with PIC16F877A. I am using MPLAB IDE AND XC8 compiler. My goal is to gradually turn on the right leds at certain distance levels. but the leds are blinking unstable. ...
user avatar
4 votes
2 answers
155 views

4x4 matrix keypad interface with microcontroller

I am extremely new to microcontrollers and PIC programming. I need help in understanding how a 4x4 matrix keypad works. I know the 8 pins are used to determine which of the keys are pressed by the ...
user avatar
1 vote
0 answers
61 views

PIC Microcontroller C program Problem.[Sequential Issue and PWM Problem]

I have just started coding PIC microcontroller in C and do not understand where the problem is. PIC10F320 is chosen for its two PWM pins, one for breathing effect on LED and the other one for 75% duty ...
user avatar
  • 13
3 votes
2 answers
86 views

PWM use in dsPIC3EV - XC16

I'm learning to use dsPIC33EV and XC16 for a project where I need 4 PWM outputs, but I'm not sure if the PWM outputs of this uC are independent because they are named like PWM1H and PWM1L. Can I use ...
user avatar
1 vote
2 answers
65 views

How is the minimum resolution that pic 18f458 can work?

I'm reading an analogic signal (0-5v) with a pic 18f458 by an0. I'm setting an3 as vref+ and used a 3.3V Zenner. I'm changing the signal with a potentiometer. I've used a multimeter to check the ...
user avatar
  • 11
0 votes
0 answers
46 views

Replacement DAC for MCP4922

I have designed a circuit for controlling a device in the lab, using a Microchip PIC32MX Microcontroller, connecting via SPI to a pair MCP4922 DAC, the output is then adjusted with an operational ...
user avatar
  • 66
0 votes
1 answer
71 views

How to implement POE on PIC18

I am trying to create a PCB containing a PIC18F66J60. I want to power the board using POE. For the POE i plan to use the TPS2375PW. The two IC's have two quite different refferent schematics in their ...
user avatar
  • 301
1 vote
1 answer
183 views

Correct design for Pickit 3 ICSP

I am a software engineer messing with some electronics I can't figure out why I can't program with my PicKit 3. I need some help understanding why I can't program my microcontroller. I am able to ...
user avatar
0 votes
2 answers
119 views

24V Bridge Rectified Relay Circuit blowing L7805 & PIC18F

I've got a circuit which is powered using a 24VAC transformer fed into a KBU606G full bridge rectifier to generate 24VDC. Originally there was a 470uF smoothing capacitor, however I was unaware that ...
user avatar
0 votes
1 answer
106 views

Drone ESC causes motor to twitch and beep when powered and PWM signal applied [closed]

I'm trying to make a drone from scratch, and have bought four of these ESCs and motors from Ebay. Now, I've got one of the ESCs hooked up to a 7.4V lipo battery, and the 3 pin cable running to a PIC ...
user avatar
-2 votes
1 answer
52 views

What is the difference between dsPIC30F 2023 and dsPIC30F 2023-30I/PT

I am new to PCB design and microcontroller programming. I want to start a project of a digital SMPS for the bench and I have chosen the DSPIC30F2023 as a controller for this purpose, but I cannot ...
user avatar
-4 votes
1 answer
146 views

PIC16F18446 ADC says 12 bit but max value is 3ff which is only 10 bits? [closed]

What am I missing? For a 12 bit value I'd expect the range to be 000 to FFF, but I see 000 to 3FF. Is the doco wrong or am I misunderstanding?
user avatar
  • 35

1
2 3 4 5
53