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
29 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
57 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
46 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
85 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
53 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
70 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
34 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
51 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
95 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
82 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
62 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
43 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
106 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
62 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
52 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
103 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
77 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
98 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
73 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
170 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
149 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
33 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
67 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
76 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
115 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
73 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
80 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
vote
2answers
63 views

PIC18F4520 reading voltage from analog input

I'm trying to do a homework where is needed to read the voltage from an analog input and to print to a serial monitor a message when the voltage is lower than 2V or higher than 4V. I don't have any ...
0
votes
0answers
77 views

TRIAC Failure - Short between input and gate?

I am having a spot of trouble with a TRIAC (T2535-600G) whose gate is triggered by a PIC microcontroller (PIC12F1501)through an opto-isolator (MOC3063SM). Normally, the TRIAC, labeled U2 in the ...
0
votes
0answers
77 views

RFID with PIC16f877A

I have been working on my school project for couple of weeks and I'm trying to make RFID Door Lock by using PIC16f877A and RDM6300 RFID reader. I made a code works on PROTEUS but I interfaced the ...
0
votes
0answers
34 views

PIC18F25K50, ADS1114 and I2C

I have a minor problem here. I am programming a board with PIC18F25K50 on which I also have three ADCs (ADS1114 from Texas Instruments) for three loadcells. It is a HID device, I have the USB part ...
1
vote
2answers
62 views

Bidirectional half-duplex communication between PIC16 and an FPGA over a single copper track

I need to implement a bidirectional communication mechanism between a PIC16LF microcontroller and an FPGA. It shall be used to transmit only a few kilo bits of data at most per second. The PCB cannot ...
0
votes
1answer
55 views

PIC Processor, SPI to microSD card, 25Mhz Clock slew is bad

Using a PIC24 processor which has a rated SPI clock speed of 25Mhz, we see quite a jaggered sort of wave for the clock, instead of nice square pulses. Given the spec is rated to the speed we are using,...
0
votes
1answer
52 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
267 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" - ...
1
vote
0answers
75 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
97 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
38 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
145 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
62 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
44 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
68 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 (...
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 ...

1
2 3 4 5
53