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

Debugging PIC16F886 with PICkit4

MCU: Pic16F886 Programmer: PICkit4 IDE: MPLAB X IDE v5.40 Assembler: pic-as v2.30 (xc8) Circuit: A LED with 270 ohm resistor on RA0. 3,3k ohm resistor pullup resistor on MCLRE. Vdd on pin 20. ...
1
vote
1answer
38 views

Sensor input calibration for wider range

I get minimum voltage output from my sensor as 2.2V and max voltage as 2.65V. I want to change this voltage to 0-5V range so that the controller ADC can calibrate input in a wider range. How can I do ...
0
votes
1answer
32 views

Connecting a PIC32MZ with an Android tablet via USB

I have an Allview tablet running Android I want to connect to my board using USB. An application on the Android tablet would control the micro which in turn would control a bunch of relays and read ...
2
votes
2answers
62 views

Suspected PIC alarm bug with RTCC module in PIC16LF series, cannot set alarm to 00 seconds

This question is about understanding the functionality of RTCC alarm registers within one PIC family. While I am using 16LF19176, I believe this question relates to all RTCC modules in this family. I ...
2
votes
2answers
67 views

PIC MCU: XC8 Not treating TMR0 as a 16 Bit Register

I recently finished a project programming a PIC18F2620. All was good, but I decided to explore the new stuff Microchip has to offer, and am now trying out the PIC18F47Q43. I'm getting a strange ...
0
votes
1answer
55 views

PIC16F877A not working with 4MHz oscillator

I was trying to do a LED flashing program, but the LED didn't turned on. I tried also with a program to just light the LED, but it didn't work either. I searched and one solution says to change the ...
1
vote
2answers
35 views

I2S on dsPIC gets interrupt on both left and right channels, how to distinguish them?

This is hopefully not too silly question: I did set up the dsPIC33CK256MP503 to work with audio microphone via I2S, and it does interrupt for each 32-bit data as expected. There is per I2S standard ...
1
vote
3answers
67 views

How to connect two current sensors together?

I have two ACS712 current sensor modules, sensing different things, connected to a PIC 12F683. I'd like the PIC to do something if either of them senses a current. Individually, the sensors work ...
1
vote
0answers
22 views

Several names for same/similar registers in PIC32MZ USB peripheral?

I am working on my first PIC-project for which I am utilizing a PIC32MZ2048EFH064. Right now I am struggling with some registers of the USB peripheral that are named differently in the datasheet than ...
0
votes
1answer
26 views

I2S on dsPIC generates signals, but interrupt is giving a problem

I am working with SPH0645LM4H-B MEMS microphone with I2S output. I successfully set up the SPI on dsPIC33CK256MP503 to the point, that it outputs the I2S clock at a rate 2MHZ, and WS control signal. ...
1
vote
1answer
31 views

PIC32 DMA (connected to SPI) interrupt not working

I am working on my first PIC32 project on a custom board. I am utilizing a PIC32MZ2048EFH064 microcontroller which I am programming in MPLAB X IDE v5.40 (compiler: xc32 v2.41). My goal is to receive ...
1
vote
1answer
59 views

Darlington transistor for driving coils

I try to drive two small pcb coils. The coils have a resistance of around 14 Ohms (i dont know the L value). I have a PIC10F200 controlling the base of a BCV27. However i dont seem to get much more ...
1
vote
2answers
94 views

Why the ADC conversion causes the analog input pin of PIC to be grounded at the beginning of the conversion?

using MPLAB X IDE v5.35 PIC16LF19176 I used PIC ADC analog inputs several times, the conversion always gives me the proper results. Looking at the input with the scope confuses me. The scope channel ...
0
votes
2answers
157 views

How to build the simplest assembly file in MPLabX IDE 5.4

I just started learning assembly coding in MPLabX IDE 5.4. Without connecting any hardware, simulator or debugger, I simply want to build an object code file and generate a listing file from an ...
4
votes
5answers
2k views

Thread alternatives for embedded systems

I'm currently studying electrical engineering. Due to the pandemics, my classes were suspended and I'm using this time learning more about electronics and programming. I'm currently trying to use a <...
0
votes
1answer
42 views

Wrong data displayed from UART connection

I have trouble displaying a certain hex string on an LCD. The hex string comes from a external display device that communicates with a serial display. With the oscilloscope, the data from the display ...
1
vote
2answers
109 views

PIC10F206 MPLAB X IDE v5.40 - Light a LED

I am trying to light a LED with a PIC10F206, a PICkit4, the IDE MPLAB X IDE v5.40, and the pic-as Assembler. This is what I tried: ...
0
votes
2answers
52 views

PIC10F206 - p10f206.inc file not found

I followed a tutorial to get into pic microcontrollers. But all code in tutorial supply me with errors. For example if I use this code as a first line of my assembly file: ...
0
votes
0answers
21 views

PIC24FJ1024GB610 MLA USB Device Lite USB stack stops working when multiple endpoints are enabled

I'm using a PIC24FJ1024GB610 and have configured the "MLA USB Device Lite [USB Framework Lite]" using the Microchip Code Configurator utility. The Microchip Lightweight USB Stack settings ...
0
votes
0answers
44 views

How to receive a startup hex string during a debug session?

This is my setup: I have a 'smart display' connected to the serial interface of a PCB with a PIC microcontroller. The PIC powers the smart display. This smart display uses a boot mechanism. When the ...
0
votes
1answer
12 views

KSZ8081RNACA phy address setting up

I have following PCB design, which use PIC32MZ2048EFH144 and KSZ8081RNACA, I want to set up phy address to be 3. From document it has following words "Config Mode: The pull-up/pull-down value is ...
0
votes
5answers
134 views

PIC processors - assembly vs. C?

I have heard that earlier PICs that are quite tiny are to be programmed using assembly and not C. Later PICs had hardware instructions to make them easy to be programmed via C language. However, I am ...
0
votes
0answers
14 views

Ch376 USB Module with SPI

What is the problem here, I used logic analyser to check the data and commands i send to the Ch376 USB Module, And all are right, But the module is not responding with any reply, Just return back the ...
0
votes
0answers
29 views

RFID-RC522 with pic16F628A

I want to connect a RFID-RC522 with pic16F628A microcontroller. The only tutorials I could find are those that have RFID-RC522 connected with arduino. The reason why I want to use RFID-RC522, is ...
0
votes
0answers
59 views

Matlab GUI interfacing with pic18f4550

My project consists on collecting usb data form the uC PIC 18F4550 to show them using GUI Interface well I am using for the simulation MikroC for PIC programmation as well as Proteus, I compiled my ...
1
vote
0answers
38 views

Mplab X IDE insists I'm trying to change protected boot memory even though all CodeGuard options are disabled

I'm new to this whole thing, so forgive me if I'm missing something obvious, but the only relevant thing I could find is over 9 years old, using a different programmer and different PIC. I'm using ...
0
votes
0answers
38 views

PIC16F887 I2C Master-Slave communication problem

I am trying to get 2 PIC16F887's communicate through I2C. I am aware that PIC16F887's are old but they are the only chips I have access to right now. I connected the SCL and SDA lines correctly and ...
1
vote
0answers
77 views

DC-DC boost converter resets mcu

Edit: A p-channel mosfet to keep DC boost circuit separated from main circuit until its charged worked like a charm. I'm trying to build a DC-DC boost converter, controlled by a 200kHz PWM signal ...
0
votes
0answers
24 views

CAN Bus Communication in dsPIC

For my university thesis, I'm experimenting with microcontroller programming and data transmission - reception. I have little experience in #C but im really intrested in that field of study. I'm using ...
0
votes
2answers
57 views

PIC microcontroller bit specific adressing beginner question.. PORTBbits.RB0 or just RB0?

In a PIC microcontroller, people use PORTB to access all pins of the PORTB at once and PORTBbits.RB0 for bit specific addressing, for me RB0 itself is working, why not I use that instead of PORTBbits....
1
vote
1answer
46 views

PIC's DAC buffer

I'm designing a circuit that exploits the DAC available in the PIC16F18344 and the datasheet (as well as other Q&A here) suggests to put a buffer on the DAC output because it can provide only a ...
0
votes
1answer
40 views

PIC32MX270F256 Project Build Error: pic32m-gcc.exe: error: build/default/production/main.o: No such file or directory

I am trying to build a simple project for PIC32MX270F256. The code is just this: ...
1
vote
3answers
73 views

Understanding word and instruction on simple microcontroller

From what I'm reading in this CircuitBread tutorial, the microcontroller PIC10F200 has flash memory of 256 words. PIC10F200 has a constant word unit of 12bits and so the maximum program size I can ...
0
votes
0answers
43 views

DC-DC Boost Converter Only Works with a Second Supply

I'm trying to build a 5V to 8V boost converter to use at another mosfet's gate voltage. I'm using a PIC mcu to create a 50kHz square wave signal to switch the BUZ101L. For test purposes i also added a ...
0
votes
1answer
55 views

Problem in editing EEPROM of MLX90614ESF sensor , pic 18f4620 , I2C communication

I want to edit Tomax and Tomin in the EEPROM 0x00h and <...
0
votes
0answers
43 views

I couldn't figure out why are the LCD connections are not working

I defined the LCD connections but the code (written below) still gives me these errors (mentioned below.) I could not figure out the reason (I am new in microcontrollers.) //PS: This code is intended ...
1
vote
1answer
72 views

Different voltage differences for a UART signal (when tested from one microcontroller, vs when tested between two microcontrollers)

I have a question regarding UART signals. I am doing a project where I press a pushbutton (BTN0, BTN1, BTN2) it registers at a microcontroller (MSP430FR6989), transmits a signal to another ...
1
vote
1answer
89 views

Understanding PIC MCU memory from datasheet

Being new to PIC, I have been struggling to understand the information in the datasheet. Q.1. : What does "256 bytes Linear Data Memory Addressing Memory" mean? I am looking at the ...
0
votes
2answers
174 views

How can we multiply two 2-digit BCD numbers?

I am designing a PIC18F4520 microcontroller based system. By using this system I want to multiply two numbers. Each number is a 2-digit BCD number. Such as 73*27 and I want to see results as 2715 at a ...
0
votes
1answer
50 views

PIC16F877A I2C MSSP not sending data

Sup, guys. I'm in the violent war with PIC MCUs and they're clearly winning, so I'm asking once again for your intellectual support. I have PIC16F877A on a breadboard, external 8Mhz+2x20pf, bypassed, ...
1
vote
0answers
37 views

How to put Sim808 and a microcontroller on the same PCB?

I'm families with Arduino (Nano and mini) and GSM modules and I've recently Learn about Altium Designer and I've designed (and ordered) a few simple PCBs and I've learned about Micro controller and ...
1
vote
4answers
374 views

How to code in assembly language for floating point exponentiation?

I have problem calculating raise a to the power of b (a^b) where b is a floating point number. In my case, b=-1.45. So the ...
0
votes
1answer
25 views

How add dsPIC33EP128GP502 in Proteus?

I use proteus to debug the operation of the PICs. Now I am going to use a dsPIC33EP128GP502 and in Proteus libraries it does not appear. I have searched if there is any library of this type of PIC ...
2
votes
2answers
83 views

PIC16F877A External Crystal giving 60Hz

I'm new around here. Usually I read a lot of stuff and find all info I need, but this once I googled my fingers till blood, yet to no avail. Recently got my hands on PIC16F877A. It wasn't MCU of my ...
0
votes
1answer
33 views

how to shifted phases in PWM with PIC18F4431

I am trying to design a driver for a BLDC motor. I have managed to generate 6 PWM signals with the PIC18F4431. But I don't know how I can shifted the phases. I attach my code and the image of the ...
0
votes
1answer
47 views

PIC16F887 PWM multiple output

I am trying to design a control for a BLDC motor with a PIC16F887. I have managed to activate a PWM output and be able to vary it with a potentiometer. The point is, I need to get 6 PWM signals out. ...
1
vote
3answers
63 views

Activate 3 or more PWM signals in PIC

I am doing a PWM with the PIC18f4550 and it managed to do it. But only activate an output by varying the value of CCP1CON. What I want to achieve is to have three PWM outputs and then be able to ...
0
votes
1answer
44 views

PWM Three Phases with PIC

I am trying to program a PIC18F4550 to control a 3 Phase BLDC motor. I have doubts about how to make the program, since I have seen many examples that what they do is use the TIMER to generate the 3 ...
0
votes
0answers
38 views

How to implement an equation in assembly language using PIC18F and display its result on LCD?

I had a project that requires to measure illuminance(lux) using LDR and display the result on LCD. Thanks to some references from Google, I had managed to build a equation that shows relation between ...
0
votes
1answer
29 views

RTD Temperature Reading

I developed a circuit to read a temperature value [30,60] with a PT100 using a PIC32.The circuit has a 1mA current source connected to the PT100.The PT100 is then connected to a differential op amp to ...

1
2 3 4 5
50