Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [pic16f]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
25 views

PIC16F7X I2C Issues With 24AA01/24LC01B EEPROM

I have an existing PCB that is no longer supported by the manufacturer and has been plagued with software issues for years. So i don't have much control over how the board is laid out and what ...
5
votes
1answer
564 views

“Not enough RAM ” error in PIC16F877a

I have been trying to run the following code: ...
0
votes
1answer
53 views

Does the increment of a timer on pic is equal for a pic16 and pic32?

The question is because in porting code from a PIC16F15324T using MCC to a project using a PIC 32MX470F512L. There are portions of code where i have code like this: ...
1
vote
1answer
81 views

PIC16F884 keeps resetting even though WDT should be off

I just bought a PIC16F884 and put a simple C program on it using MPLAB: ...
0
votes
1answer
70 views

Read High voltage from PIC16F [duplicate]

I have planned to build a circuit to display voltage and time value using PIC16F877A micro controller.To do this i tested the circuit using Proteus software as i attached here. It can display up to 5V....
0
votes
1answer
204 views

Serial port framing error

I'm new to pic and uart. Just trying out simple uart transmission. I'm using mplab IDE and coolterm for serial monitoring. I'm getting serial framing error. I also used PuTTY and it was printing junk ...
1
vote
1answer
495 views

Copy protect program code in PIC microcontroller

I'm trying to copy protect my code which i program in my PIC16F886 microcontroller. I've set the below CONFIG options in MPLABX and compiled it, got the output hex code. But no matter i set it, i'm ...
0
votes
1answer
67 views

blinking LEDs with PIC16LF1829 with frequency of 1 second in Assembly Code

New learner on Microchip. I'm now trying to make the PIC16LF1829 to make the four LEDs blink in a frequency of 1 time/second. My intention was modify the oscillator frequency at different positions of ...
-1
votes
1answer
108 views

Is it possible to generate 4 PWM signals using a single PIC16F84A IC? [closed]

I have made a line follower and the issue I'm facing right now is its speed adjustment. The motors run too fast and make my robot go off track. Luckily my motor driver supports speed control through ...
0
votes
1answer
31 views

How to use three CCP modules in compare mode simultaneously in PIC16F?

I need to use the three available CCP modules (CCP1, CCP2, CCP7) in compare mode simultaneously. They all use Timer1 as reference to compare. My goal is the following: on every match, for each of ...
0
votes
2answers
145 views

I'm stuck with this simple PIC16F program. Help please!

I'm just getting started with PIC programming and I'm giving up already. I just want to make an LED blink! I'm working with a PIC16F1773, MPLABX IDE v4.05 and Pickit3. These are the configuration ...
1
vote
1answer
98 views

PIC16F1936 Multiple ADC channel readings

I am programming a PIC16F1934 and using it's two ADC channels namely AN0 and AN1. I take the maximum out of a bunch of few readings for the AN0 reading and then just one sample for AN1. Here is my ...
0
votes
1answer
67 views

PIC16F1776 interrupt triggered with no evident source

I have a Microchip PIC161776 running at 32 MHz. Interrupt Code has been generated with MCC, with the preemptive option set. typically, about once every hour the interrupt routine gets called with no ...
1
vote
1answer
409 views

I2C doesn't send data in PIC16F887

I'm relatively new using PIC microcontrollers and MPLAB XC8 compiler. I want to communicate two PIC16F887 using I2C. I did use this tutorial (https:// electrosome .com /i2c- pic-microcontroller-...
0
votes
1answer
911 views

pic16 i2c interrupt

I’m trying to use the Microchip Code Configurator to make an I2C communication between two PIC16F1827. My application is very similar to the example they give with an emulated EEPROM. I've used ...
1
vote
1answer
152 views

Timer 1 can't increment on external T1OSI source for PIC16f627A

New to PIC programming Trying to Simulate a PIC16F627A TIMER 1 using MPLAB X IDE where RB7/T1OSI increments, and it toggles RB4 through TMR1 ISR. ...
-4
votes
1answer
78 views

I have problems with programming a PIC16F84A with Pickit 2

So I've been trying to program a PIC16F84A Microcontroller with a Pickit 2 for 7 days now and I still can't make it to work. I have an LED attached to pin RB4 and I want to make it blink. Any help ...
0
votes
1answer
1k views

Can i replace 1n4148 with 1n4007 in this circuit (pic Programmer) [duplicate]

I want to conceive a pic programmer i found this circuit but i didn't find 1n4148 can i remplace it with 1n4001/1n4007 in this circuit It affects the pic or dysfunction of the system in speed ou ...
1
vote
1answer
347 views

undefined symbols for structs on compile MPLab XC8 on pic16F872

I'm receiving the undefined symbols error on XC8 for two struct arrays declared as externs in file io.h. Why is this happening? ...
0
votes
0answers
291 views

How to increase max output voltage on CCP pin using PWM on PIC16F882?

I am trying to replicate a circuit containing PIC16F882 that I found in an electronic appliance. I wrote code in MikroC that perfectly follows that logic, but the peak voltage of the CCP pin that I'm ...
0
votes
1answer
684 views

Cannot connect Hc-05 with PIC16f877A

I am trying to connect my HC-05 bluetooth module with PIC16F877A. I know we have to use USART to talk with bluetooth module. So I started with USART of PIC by reading its datasheet. I am using ...
-3
votes
2answers
98 views

Pic micro controller

i am programming pic microcontroller using mikro c , i want to store array of 8 bit samples generated from audacity (it's a software used to generate header file from audio file) , i got one header ...
-1
votes
1answer
1k views

what is meant by initializing Ports in Pic microcontroller as 0x00

Why is meant by statement as TRIS = 0x00 or LATB = 0x00, Why 0x00 while programming for PIC microcontroller in C.
2
votes
1answer
606 views

Confusion about #pragma in XC8

I'm currently programming a pic16f18323. I'm using MPLAB X. And XC8 as the compiler. I just want to ask if pragma configurations can be shown as ('110' is the binary representation of 3 bit RSTOSC ...
0
votes
1answer
379 views

PIC16F877A microcontroller security project

Recently I was working on a security project using PIC16F877A. The program works fine on Proteus, but when I build my circuit on a breadboard, it gives random sentences. It should wait for the input ...
3
votes
2answers
150 views

Pic16 Timer0 puzzle

INTRO The whole point of a timer with overflow interrupt is that the interrupt will trigger on a precisely timed interval - so long as the code executed in the interrupt doesn't take longer than the ...
0
votes
1answer
349 views

sleep mode in pic16f1618/19

I am trying to reduce the power consumed by microcontroller pic16f1618, and hence I thought of using SLEEP(). All interrupts such as timer, and pin are disabled. The code is generated with the help of ...
0
votes
2answers
1k views

No clock signal on SCL pin of PIC16F1618

I have been trying to configure I2C on PIC16F1618 microcontroller. I am using MPLAB X IDE, along with xc8 compiler. The MSSP code is being generated through MPLAB code configurator. I have set the ...
0
votes
2answers
470 views

Interrupt and timer on PIC16F690

I 'm new to mikro c and PIC programming and I 'm having troubles shutting down the LED on RB5(green)using interrupt on RA2 and this interrupt is possible only in 5 first seconds. Any help will be ...
-2
votes
2answers
519 views

Using 7-Segment Display on pic18f

I want to show a decimal number between 0-99 on 7-segment display by using 2 push buttons. These buttons will be used for incrementing and decrementing the number on display. I'm using pic18f assembly ...
0
votes
2answers
169 views

I2C Voltage levels with difference [duplicate]

I have an I2C slave device in which the maximum input voltage to SCL & SDA is 3.6V. And the I2C Master device is PIC16F877A operating at 20MHz which provides a 5V output on SCL & SDA. Pls ...
-2
votes
2answers
1k views

Count external clock pulses for a predefined time interval (PIC16f877a)

I need to count external clock pulses for a predefined time using PIC16f877a. I don't know what to use, whether counter or timer or both. I don't know to use timer and counter modules of PIC16f877a. ...
0
votes
2answers
475 views

Micro controller programming with bluetooth dongle

I have this USB bluetooth dongle . I want to know is it posible to active this dongle with PIC 16F628a micro controller and communicate with PC. I know this micro controller support serial ...
1
vote
3answers
653 views

Interrupt-on-Change occurs twice on PIC16F1825

I am having a mind blowing misbehaviour in my PIC16F1825. Basically I am using pin 3 (RA4) to toggle a LED using an Interrupt-on-Change. Problem is, although it toggles the led whenever I press the ...
1
vote
1answer
95 views

Enhanced 16F PIC: How many instruction periods does automatic_context_save require?

I am about to do my first design with an enhanced 16F PIC microcontroller. I have a question regarding automatic context save & restore that occurs when an Interrupt is triggered. Specifically, ...