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
27 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 ...
0
votes
0answers
31 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 ...
0
votes
1answer
49 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,...
0
votes
0answers
27 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 ...
2
votes
0answers
50 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 ...
0
votes
1answer
37 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 ...
0
votes
0answers
14 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 ...
-1
votes
1answer
45 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 ...
0
votes
0answers
34 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 ...
1
vote
1answer
40 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 ...
0
votes
3answers
56 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 ...
0
votes
0answers
46 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. ...
0
votes
0answers
38 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 ...
0
votes
0answers
40 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 ...
0
votes
1answer
42 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 ...
0
votes
2answers
70 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: ...
0
votes
1answer
33 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 ...
-1
votes
2answers
78 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 ...
1
vote
0answers
48 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. ...
4
votes
2answers
92 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 ...
1
vote
0answers
55 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 ...
3
votes
2answers
72 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 ...
1
vote
2answers
64 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 ...
0
votes
0answers
35 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 ...
0
votes
1answer
55 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 ...
1
vote
1answer
110 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 ...
0
votes
2answers
86 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 ...
0
votes
1answer
66 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 ...
-2
votes
1answer
46 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 ...
-4
votes
1answer
108 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?
0
votes
2answers
63 views

PIC16F18446 Tristate output pins controlled by the value of another pin

In many 74xx chips the high impedance state of pins is controlled by a OE pin. I want a similar functionality for my PIC device. I understand that I could use code to flip the config bits to make the ...
0
votes
1answer
70 views

Which pins should I connect to program a PIC chip using the SNAP programmer?

this seems like this question has an obvious answer but despite looking through the datasheet of the PIC MCU I'm going to be using (the PIC18F45K22), and the SNAP programmer user guide, I can't find ...
0
votes
3answers
107 views

LEDs combinational circuit series and parallel

I have a project involving lighting up 12 dual LEDs using a 9-Volt DC Power Adapter with Max current of 500 mA According to the datasheet Dual LEDs datasheet the forward voltage is about 2 V at 20 mA. ...
0
votes
1answer
79 views

Strange behaviour of PIC18F14K50 EUSART. it only works when the logic analyzer probe is connected

I'm using a PIC18F14K50 and a RS485 bus transceiver (ADM3485) to communicate with a Modbus RTU sensor network. the PCB is not designed by me, (and it has a very foolish/compact design, so it makes it ...
0
votes
0answers
106 views

Assembly Code for my Microcontrollers Class

I am trying to write some assembly code for my Microcontrollers Class. Here is the assignment: Make a program that converts a 4-bit binary number in one hexadecimal number (0-F). The output value ...
1
vote
0answers
72 views

Is a dsPIC33 suitable for creating a 40 kHz signal with 16 bits of resolution as input for ultrasonic transducers?

I'm trying to build a parametric speaker (Directional speaker) that could output a somewhat decent and high-quality sound hence why I'm aiming for a 16-bit resolution. The audio signal needs to be ...
0
votes
3answers
86 views

Problem measuring the velocity of a BLDC motor

I'm coding a PIC24FJ256GA106 to make a PIPD velocity control for a BLDC motor by using the Hall sensors instead of back-emf. Currently I can control start, stop and direction of rotation of the motor. ...
0
votes
2answers
205 views

How do open-drain I/O pins work on a PIC16 microcontroller?

I'm trying to understand how to operate an open-drain I/O port on an older PIC (PIC16F1718.) My goal is to use it for bit-banged bidirectional open-drain I2C communication. I know how to enable and ...
1
vote
0answers
66 views

MPLAB-X new Assembler

I am trying to assemble a old project from old MPASM on this new MPLAB-X Assembler only to end up with many errors and I have searched for usage or help and this seems to be lacking. Anyone know what ...
0
votes
1answer
47 views

PIC18F4550 Optimize code for controlling output signal

I'm trying to develop a C program to control the turn on/off of thyristors by changing the angle of the output signal (down time, and up time). I use a pot to control the angle, and I receive an input ...
0
votes
3answers
174 views

Linux command-line C compilers for PIC10F200

What I have a Raspberry Pi with Raspberry Pi OS Lite 32-bit (a port of Debian with no desktop) environment installed PIC10F200 microcontrollers a PICKit3-like programmer I want to compile C and ...
0
votes
0answers
19 views

PIC18F4550 PWM controlled by external interrupt

I'm using the pic 18f4550, and I want to use an external interrupt triggered by a zero crossing detector to control the pwm period time, meaning T = 8.3ms I know the CCP1 module uses timer2 to handle ...
1
vote
1answer
38 views

How to set time for an RTC 5 Click in MPLAB X?

I am currently working as a design engineer intern. I am using an RTC 5 Click as part of my design to provide real solar time. It is nice that MPLAB X is able to generate sample code, but I have no ...
1
vote
2answers
69 views

PIC18 preserving EEPROM data during reprogramming

I am using PIC18f4550 microcontroller to store some data in EEPROM so that the data can be accessible after the power reset. When I reprogram the PIC with PICkit3, it seems to wipe out the EEPROM data ...
0
votes
1answer
80 views

Communication between PIC18F26K80 and DAC7612

I bought the DAC7612 and would like to make it communicate with a PIC18F26K80 microcontroller. It is specified on the Farnell website that you can use SPI communication, but there is nothing about SPI ...
2
votes
2answers
134 views

Converting analog voltage to drive interrupt signal in PIC microcontroller

I have a circuit that will output between 1v-4v when the circuit detect an event. When there is no event, the output voltage stays at 5v. I want to use this as an interrupt input signal to my ...
0
votes
2answers
63 views

Why it need so many lcd_enable in command in the lcd_init method?

Below are just part of the commands, even with comments, I still couldn't really understand the working principle of LCD even after read it online, is the "lcd_enable()" is the command to ...
0
votes
1answer
80 views

How to read the temperature of DS1620 thermometer using PIC16F877A?

Good afternoon. I am trying to figure out how to make a PIC16F877A to read the temperature from the DS1620 sensor. Accordingly to the datasheet of the DS1620, I need to send two nibbles A (AAh) to the ...
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
0answers
85 views

Indirect addressing on an assembly program with RAM locations

Here, I have written a indirect addressing assembly program (with PIC18) to copy following to RAM locations 10H to 16H. (It says MERHABA in turkish (means hello) But, I am not sure that the part of my ...

1
2 3 4 5
53