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
2 votes
4 answers
52 views

How could I implement PDIP8 PIC controller to PCB so I could remove it?

Basically I would like to not solder it in place - so I could simply remove it for reprogramming. Is there breadboard-like PCB solderable component which let me stick MCU to it and then easily remove? ...
Ri Di's user avatar
  • 775
0 votes
0 answers
27 views

Cannot get PWM on desired pin output PIC18f47k40 [closed]

I've been working with PIC chips for a while and recently using a PIC18f47k40. I cannot get the PWM via CCP or the separate PWM modules to work. I can flash the LED's on the pins by writing/clearing ...
Lukas Brenner's user avatar
1 vote
1 answer
67 views

Smooth a PWM to DC stable [closed]

I have to smooth a PWM (0V- 12V, 200Hz) who trigger my pic12f1572 via transistor 2N3904. What is the best way? I have PWM source connected to 2N3904 and output from 2N3904 is connected to PIC uc. I ...
SkePsis's user avatar
  • 67
1 vote
1 answer
42 views

PIC16F1825 trouble with simple increment MPLAB XC8

I have set myself up with on a breadbord with a simple PI16F1825. I am using MPLAB x with XC8 V2.45 i have a led that turn on/off every second using the simple delay function. i would just like to ...
old_fool's user avatar
0 votes
2 answers
54 views

PWM Driver for PIC12F1572

I have rear lights for car (VW Passat) controlled by default with PWM. I want to create another circuit who do like follow: When I press brake, car send PWM into LEDs and turn it ON. I want to use ...
SkePsis's user avatar
  • 67
0 votes
1 answer
18 views

Pic32MZ interrupt signal to output pin set without CPU usage

I generate ADC digital comparator interrupts. I want to use this interrupt to trigger Input Capture module. To achive precise timing it will be better to directly trigger IC module with ADC digital ...
Ahmet Atcı's user avatar
0 votes
1 answer
41 views

Why can't I drive pin RA4 low on PIC16F1823?

I am using PIC16F1823 MCU. Pin RA4 is a multipurpose pin but can be used as I/O. But I cannot find which settings are required to achieve this. I've tried to disable all unrequired peripherals ...
RickyBoy's user avatar
1 vote
0 answers
86 views

PIC16F UART Receives only the first byte

I'm currently working on a PIC16F18855, I'm trying to set up the communication part. My setup is as follows: A PCB connected to my computer via a TTL232 cable. The PIC16F18855 is clocked at 32Mhz, the ...
Benito's user avatar
  • 31
5 votes
2 answers
869 views

Loading LSB first or MSB first?

I am trying to create a delay function similar to builtin __delay_ms() in MPLABX IDE PIC18F4520. The question is if I write the LSB first to the TMR0L register, I ...
Madhan Gasikanti's user avatar
0 votes
0 answers
27 views

Problems programming PIC16F15213 with PICkit4

I'm having problems programming my PIC16F15213. I am trying to program it with the PICkit4 and it gives me this error: ...
Alberto Penzo's user avatar
0 votes
0 answers
29 views

Problem in code while interfacing PIC24 with 25AA256 EEPROM

I have been trying to interface a PIC24FJ128GA010 with a 25AA256 EEPROM using Proteus and Serial Peripheral Interface (SPI). I wrote a C code and configured everything and all pins but since I self ...
P-Em's user avatar
  • 11
0 votes
1 answer
51 views

Proteus error about coff format. (Coding in C to program a PIC microcontroller)

I am trying to make a code to interface a PIC24FJ128GA010 with a 25LC256 EEPROM. This the following code: ...
P-Em's user avatar
  • 11
2 votes
1 answer
103 views

PICKIT3 unavailable on MPLAB X IDE [closed]

What I want to achieve To write a program to a PIC microchip using PICKIT3 and MPLAB X IDE. Issue PICKIT3 not found on Device Manager No compilers found on MPLAB X IDE Environment Windows 10 ...
dixhom's user avatar
  • 235
0 votes
1 answer
32 views

Error while uploading hex file in DSPIC33CK32MC102

I am using DSPIC33CK32MC102 SSOP package, I have code and its hex file ready. I made the connections for the controller those are as follows: Pullup resistor of 5.5 kΩ for MCLR pin and 100 Ω between ...
user346235's user avatar
0 votes
0 answers
23 views

dsPIC33CH512MP508 CAN Transmit Error

I am using dspic33ch512mp508. When I call the CAN1_Transmit function, it transmitting continuously with 100us second gaps. Even if I put it in the 1 second timer, it doesn't work.I tested it, the ...
emnbke's user avatar
  • 9
3 votes
1 answer
96 views

How can I dynamically preload the EEPROM on a PIC microcontroller

I'm trying to set up code to preload the EEPROM of a PIC16F628A with the necessary data depending on the value of one #define, so the uC is ready to be popped into ...
fpp's user avatar
  • 159
0 votes
0 answers
29 views

How to make equivalent circuit of input pin of PIC16F15375 controller for LTspice simulation

I want to simulate the input pin of the PIC16F15375 controller in LTspice to determine the current. However, I am not aware of the specific circuit diagram.
jash shah's user avatar
0 votes
0 answers
18 views

dsPIC30F2010 reset help

I have tried to program a 30f2010 and its got code protected. Showing 0×00000 error. I have a PicKit2 but didn't know how to use it to reset ic. I've found something like this in the datasheet. How ...
Muhammad Asraful Emon's user avatar
0 votes
2 answers
136 views

Planning a University Course: Advantages of modern MCU platforms [closed]

I want to get sincere advice regarding the use of microcontrollers in educational institutes. I am an Engineer at a University in India. We have been using PIC microcontrollers (PIC16 and PIC18) for ...
Zerox's user avatar
  • 33
1 vote
2 answers
75 views

Not having a PORTAbits.RAx on ISR breaks my code

I'm working on a 433MHz RF reciver code for a PIC16F628A using a cheap 433MHz receiver. The catch here is that I'm only able to use RA4 for the RX, and because of that i had to use timer2 (because the ...
fpp's user avatar
  • 159
0 votes
1 answer
55 views

Access individual bits of a variable

I'm making a code on a PIC16F628A running at 4 MHz that receives the serial bitstream of a 433 MHz remote. The catch here is that I'm forced to do some rather questionable stuff because the pin ...
fpp's user avatar
  • 159
2 votes
2 answers
168 views

How can I receive the bitstream of a 433 MHz remote on PIC16F628A only using timer2?

I'm trying to interface a 433 MHz receiver module with a PIC16F628A, running at 4 MHz from the INTOSC. The idea is that using a generic 433 MHz remote, I could pair it to the uC and toggle some ...
fpp's user avatar
  • 159
1 vote
1 answer
67 views

Why do my MCU's capacitive voltage divider results change with different power supplies?

I've started experimenting with the onboard capacitive voltage divider inside the PIC18F47Q43. I've had success getting it up and running and getting usable results. This is the block diagram of it: ...
ezra_vdj's user avatar
  • 600
0 votes
0 answers
99 views

PID control with PIC microcontroller

I'm relatively new in C program ( I'm using MPLAB X IDE XC8 ), and first time trying to make a PID control, using a PIC16F15223 This is what I want to make: The pic has an analog input that reads a ...
samuel mattio's user avatar
5 votes
4 answers
705 views

Control two LEDs with only one PIC output

I saw a post here and other circuits on the internet, and I don't understand the difference between them. I have a PIC microcontroller, and I need to use only one output to control two LEDs: when one ...
samuel mattio's user avatar
0 votes
4 answers
171 views

Why is timer interrupt on PIC MCU not behaving as desired?

I am using PIC16F627A with PICKit 3. MPLAB X IDE v5.40 (and associated IPE) with XC8 compiler v2.41. PIC16F627A datasheet My intention is to flash TOWER_LED in ...
RickyBoy's user avatar
0 votes
1 answer
77 views

How can I create variables like registers?

I'm currently working on a small home alarm system that runs on the PIC16F628A microcontroller. It's not the first time I came to a project with the idea of using my own custom created registers that ...
fpp's user avatar
  • 159
1 vote
1 answer
50 views

Internal EEPROM on PIC16F628A

I'm currently writing code for an alarm system, and I'm having some issues with the EEPROM at the moment of writing/reading (with MPLAB) its contents. I'm not trying to write any variables or ...
fpp's user avatar
  • 159
0 votes
0 answers
39 views

Interfacing Issue between PIC18F46K22 and I2C LCD with PCF8574AT module

I'm facing a problem while interfacing a PIC18F46K22 microcontroller with an LCD screen using I2C communication. I have used a PCF8574AT I2C module and a 16x2 LCD screen. Everything works correctly in ...
Nader Noomen's user avatar
0 votes
0 answers
21 views

How could I make my PIC32CXMTG-EK send messages to the electrical network through PLC without needing a request from my Circutor concentrator?

My scenario: PIC32CXMTG-EK Evaluation Kit PL460 Evaluation Kit Compact DC-S SBT, PRIME PLC Concentrator Relevant information about it: The main protocol in use for communication is DLSM-COSEM. The ...
anon3894767398289598272's user avatar
3 votes
1 answer
62 views

Setting PORTA of a PIC16F877a as digital

I have an LCD hooked up to the A ports of a PIC16F877a (A0, A1, A2 etc). However, the display doesn't work because PORTA is configured as analog by default. In an PIC18F46K22 I'd do it using ANSELA = ...
HeavyPendulum's user avatar
2 votes
1 answer
58 views

PIC- Analog Digital Converter ( MPLAB - C )

I had a problem with some code where I had to convert analog to digital using my PIC24HJ128GP506A microcontroller. As you may know, the microcontroller uses Successive Approximation for conversion, ...
O_DERE's user avatar
  • 25
0 votes
1 answer
54 views

PIC32CX BZ2 register names don't match documentation

Preamble: I use MPLABx 6.1, the compiler (XC32) is installed and functions correctly, the correct device (WBZ451 with PIC32CX) is selected and xc.h is included. I have about 15 years experience with a ...
Gambanishu Habbeba's user avatar
0 votes
2 answers
127 views

Microchip WBZ451 / PIC32CX with PicKit4 resists programming with SWD

I have a WBX451, that's a BLE + blah module with a PIC32CX on it. I'm trying to program it with a PicKit4 using SWD. I have about 2 hour experience programming PIC controllers and 1.5 decade ...
Gambanishu Habbeba's user avatar
0 votes
1 answer
59 views

Output of the built in ADC in PIC 18F4520

I am trying to use the built in ADC of a PIC 18F4520. The input is a voltage signal from an analog sensor whose output varies with temperature. It comes to be about 5.2 V at a certain temperature. I ...
newbie's user avatar
  • 25
0 votes
0 answers
21 views

CAN communication in dsPIC33CK64MP508

I tried to transmit data using CAN communication in dsPIC33CK64MP508. I use MCC for configuring CAN in dsPIC33CK64MP508. I set the bit rate to 500 kbps. I just transmit two data bytes (0x41 and 0x42) ...
Surendran 's user avatar
1 vote
3 answers
118 views

What is the cheapest way to connect a 12V input into a PIC?

I have a pushbutton which delivers 12V when is pushed. I want to connect it to a PIC12F1572 input pin. What is the proper way to do it? My idea was to use voltage divider to reduce voltage under 5V ...
SkePsis's user avatar
  • 67
1 vote
0 answers
54 views

Strange.. UART accessing U1RXREG is not emptying buffer? PIC32

Not sure what's going on this PIC32 device, the ISR is only getting the first 8 characters (the size of the FIFO buffer) the first time it receives a string. Subsequent string arrivals cause an ...
Real-Knowledge-8592's user avatar
0 votes
0 answers
52 views

PIC Low Voltage UART

I'm receiving data from SIM800L module to PIC 16F628A. The problem is the PIC (PIC does not receive data properly from UART).It is working in home. But in site conditions It misses lots of data. I ...
Joseph143's user avatar
0 votes
2 answers
76 views

PIC Microcontroller Environment VS Arduino Microcontroller Environment [closed]

Does the PIC chip environment have any advantage against AtMega or Arduino Environment for low cost, low power regular use rather than being a little chip? Yes, this is a broad question but I am ...
Ankit_Gunner's user avatar
0 votes
0 answers
17 views

ADC trigger Timer1 using dsPIC33CK64MC105

I currently working on the dsPIC33CK64MC105 controller. I tried to configure ADC triggered by Timer1 I have done step as in the datasheet but I didn't get the ADC data can anyone correct me for the ...
Surendran 's user avatar
1 vote
2 answers
120 views

Why am I getting the wrong timer frequency in PIC microcontroller application?

I am getting results I don't understand in a small application (I am still a learner) using PIC16F627A MCU. Schematic of the circuit: simulate this circuit – Schematic created using CircuitLab ...
RickyBoy's user avatar
-1 votes
1 answer
79 views

Zero Crossing Detector

Thanks for your help in advance! I'm doing a zero cross detector for a microcontroller, PIC16F15223. I will be reading this as a digital input, and not as analog. The circuit is posted below. I know ...
samuel mattio's user avatar
0 votes
1 answer
20 views

Requirements for base PIC test

I am very new to PIC programming. I have PIC12F675 and I was just wondering if I need something else than connecting MCLR to VDD for it to work. As I understand extra components are not necessary for ...
Ri Di's user avatar
  • 775
0 votes
2 answers
66 views

PIC12F675 uC overheating when controlling water pump via MOSFET

I'm a beginner working on a small project with a PIC12F675 microcontroller, aiming to activate a water pump when the water level exceeds a certain threshold. However, I'm encountering an issue when ...
Samuel's user avatar
  • 1
0 votes
2 answers
97 views

Can I Use RS232 Library For RS422 in PIC Microcontroller?

I have this project where I have to use RS422 and Max485 serial communication. The task is simple: The input from 15 buttons should be send to PC by RS422 using PIC18F4620. I have no experience in ...
Line Follower's user avatar
0 votes
2 answers
113 views

PIC16F54 I/P PDIP-18 8-Bit microcontroller: self-made PIC programmer with USB serial communication

The PIC programmer circuit below is from the PIC16F54 datasheet. The programming stage can be reached when the pins RB6 and RB7 are set low and the VPP pin gets more voltage than the power supply in ...
lastime's user avatar
  • 327
0 votes
0 answers
141 views

Why did this PIC circuit short circuit?

I have short circuit problem in an analog reader circuit with a PIC 18F4620. There is a potentiometer connected to pin AN0. The resistance value of the potentiometer is shown on a 7 segment display (...
Line Follower's user avatar
2 votes
0 answers
48 views

Build error linked to TrustZone on MPLAB X for PIC32CM Microchip

I am working on a project on a Microchip PIC32CM LS00, trying to run a code found on GitHub (https://github.com/Microchip-MPLAB-Harmony/csp_apps_pic32cm_le_ls, specifically the "TrustZone basic ...
Skelkinver's user avatar
0 votes
1 answer
100 views

How can I decrease the update rate of the analog conversion?

I'm working on this analog converter circuit. The potentiometer is connected to pin AN0. The resistance value is shown on a 7 segment display. The circuit works fine but the ADC's update rate is too ...
Line Follower's user avatar

1
2 3 4 5
56