PIC is a brand of 8, 16, and 32 bit RISC microcontrollers manufactured by Microchip. "PIC" originally was an acronym for "Peripheral Interface Controller".

learn more… | top users | synonyms (8)

2
votes
2answers
42 views

PIC32 How do I find group number for peripheral

From my last question I made a mistake on thinking SCK was under PPS control. I see that now but I still don't understand how to figure out group number for a function with PPS by reading the ...
1
vote
1answer
47 views

PIC Microstick vs Pickit

I am starting new in using PIC MCUs and am slightly confused by these two available options. Pickit is a programmer/debugger, that's what they say. Now, there is this something called Microstick ...
0
votes
2answers
39 views

Serial Servo Control using PIC

I am trying to make a serial servo controller using pic18f4550 microcontroller. following if the complete code that i've tried.. please note that i'm currently sending 8bit hex to control only one ...
0
votes
0answers
51 views

Please share with me your experience in data-loggers with PIC [on hold]

I want to build a data-logger that records temperature and pressure every second for 20 hours. My circuit must work in a range of 20-130 'C and 0 - 9000 PSI ! And it must be inside a cylindrical ...
2
votes
2answers
44 views

PIC32 Configure PPS for SPI CLK

Well I'm struggling hard with this, been at it for 2 hours so far. I should have stuck to my TI parts :) Anyway I have a board and I'm trying configure the PPS to bring the SPI peripheral out to the ...
1
vote
3answers
120 views

Send integer values through serial communication in PIC to PIC?

I need to pass integer values from one PIC to another through serial port for char I can use the following code ...
0
votes
2answers
59 views

PIC24 Primary Oscillator XT_PLL frequency is off by 3 percent

I am using a PIC24. After solving the issue with the PLL (PIC24 PLL module is always out of lock) I am struggling with large variation in the system frequency. I wrote a small code that is used to ...
-3
votes
1answer
51 views

Calculate the UART Baud Rate register for PIC devices

How do I calculate the UART configuration register values for a PIC 24F device, based on a desired Baud rate? Currently the UART module has 2 values that affect the Baud rate, BRG (16-bit register) ...
0
votes
0answers
43 views

serial communication won't work?

I'm working on serial communication using UART and 16f877. whenever it receive A => turn on green led B=> turn on red led. This is the program in mikroC: ...
0
votes
0answers
49 views

Problem with PWM Output - PIC24F

The following is my code: ...
1
vote
1answer
76 views

PIC24 PLL module is always out of lock

I have been working on a PIC24FJ128GA310 development board for for some time now and recently got a PCB made. If I try to move my code into the new board all timing related math and functions are ...
1
vote
0answers
62 views

PIC18 weird variable assignment bug

I'm debugging a code for the Microchip PIC18F4520 using the PROTEUS ISIS. The code was compiled with the C18 compiler. There is a very crazy bug in the code that I don't know whether it is my fault or ...
1
vote
1answer
70 views

PIC to PIC serial communication

I need to send all port info from one pic to another using serial port.. currently using 9600bps baud rate. on pic18f4550 running at 20mhz clock. i have used this code to send and receive data of a ...
2
votes
2answers
52 views

Mplab X Programmer selection

I am using Mplab X IDE. My question is what does the colours Red, yellow and green dots during selection of programmer indicate ?
0
votes
1answer
33 views

Control multiple servos using pic18f microcontroller?

I want multiple servos to be controlled through pic18f4550 microcontroller. I know for a single servo I can use the following code. ...
0
votes
2answers
60 views

Changing control values for PIC remotely?

I'm using a PIC to take information from a sensor and transmit it via xbee to control a relay, as well as through a gateway to an online program. Forgive the noobie question here (I've searched and ...
0
votes
1answer
74 views

What is needed for basic PIC programming? [closed]

I have a bunch of PICs that have been sitting in the basement for a year, and I really want to learn how to program and put them to use. I have some 16C57's, 16C73, 16C71, 16C54, 16C74, 16C55, and ...
0
votes
0answers
29 views

Microchip ICD3 - Simultaneous Self-Power & Target-power

I have a PIC circuit which includes a self-latching power supply with a momentary push-button and a control line from the PIC to keep the power supply enabled. The simplified version looks something ...
1
vote
1answer
63 views

PORT registers in PIC18

I'm having a problem with PORT registers in PIC18 MCUs. It doesn't matter what value I put on a pin the PORT register never changes it's value. I don't know if it's a programming error or some bug ...
9
votes
2answers
476 views

Can the microcontroller program flash memory be used for storing user configuration?

Many microcontrollers, e.g. PIC18F, have flash program memory: "The Flash program memory is readable and writable during normal operation". Does this mean I can store some user configurations in the ...
1
vote
0answers
49 views

Getting Started On PIC and Web GUI? [closed]

I've some basic knowledge on how to program PIC microcontrollers in the past I've used a LCD and a keyboard to make a clock alarm. Recently I really got into Web development, mostly on SQL, PHP, HTML ...
2
votes
1answer
222 views

What is the maximum number of nested functions in PIC16F628A?

What is the maximum number of nested functions in PIC16F628A? ex. [NEW CODE, should be more explanatory] ...
2
votes
1answer
336 views

Is there any way to program dsPIC33EP in C++?

Is there any way to program dsPIC33EP in C++ ??
1
vote
2answers
104 views

How to tristate output digital pin on a pic 16 series microcontroller?

I know that I can set digital output pins as high and low like this in c: OUTPUT_PIN = 1; OUTPUT_PIN = 0; Is there any way to set that said pin as tristate or ...
1
vote
1answer
116 views

Using the PORTB interrupt on change feature with XC8

I'm making a program to learn to use portB interrupts on the PIC18F2520. I made a program, but it's not working correctly. The program is all time lighting and turning off the led, and the led's ...
1
vote
0answers
38 views

TLC5940 - Interfacing With PIC18F - Is “Counter Overflow” A Problem?

When I wrote some driver code for the TLC5940 on the ATMega328P, I used two timers to drive the GSCLK signal and the BLANK signal. If I remember correctly, both timers were running off the same ...
0
votes
0answers
83 views

DHT11 Temperature/Humidity Sensor

Currently I am trying to read a byte from my dht11 sensor and write it to virtual terminal, but I couldn't find a simple datasheet for beginners. I found a bit complicated mikroC code and set-up which ...
1
vote
2answers
85 views

Is it wrong to write HIGH to a pin used as an open collector?

I'm a software engineer playing with PICs and have an old PS/2 mouse that I am using (successfully), which has CLK and DATA connections as open collectors. So I have configured the internal pullups ...
0
votes
1answer
49 views

PIC18 how to explain : you write bit 1 by making TRIS input

I'm reading 1_wire header file for PIC18 with C18 compiler. in the write_byte function, they specified that in order to write bit1; we make line input and that will take it high. can we specify high ...
3
votes
3answers
99 views

Debugging a PIC16F84A interface with a 4N25 optocoupler

I have a PCB board that I'm trying to repair, the principle of this circuit board is to switch an oven relays one at a time only with a constant rest time, and the switching time is predefined by the ...
1
vote
1answer
75 views

trouble getting two PICs to communicate via I2C

I'm having a bit of trouble getting two PICs to communicate with each other over an I2C line. Both are 16F886, one sitting in the PIC 28-pin demo board, second one sitting inside a board which I ...
1
vote
1answer
32 views

Help needed driving an old PIC programmer from Raspberry Pi GPIO

I have been trying to use a Raspberry Pi's GPIO pins to drive an old PIC programmer board that used to have a parallel port connection before I started messing about with it. You can see from the ...
-1
votes
2answers
61 views

Is PIC microcontroller PIC16C72 and PIC16F72 almost the same from a programmer's perspective?

I just wrote a program to use in PIC16F72. I was trying to simulate it on Proteus and I found that Proteus doesn't have that microcontroller in its library. I read somewhere that PIC16F72 and PIC16C72 ...
1
vote
1answer
64 views

PIC operating temperature… “industrial” vs. “extended”

I am shopping for a PIC micro-controller for use in an automotive application. I noticed that PICs are offered in both "industrial" and "extended" temperature ranges ([-40C to +85C] vs [-40 to +125]). ...
0
votes
4answers
83 views

Shortest time to visibly light LED

What is the shortest time (pulse 010) to visibly light a LED? Visibly = The human eye can see the LED blink. I use 5V as source and PIC16F628A@20MHz for the project. Here is a datasheet for the ...
1
vote
2answers
89 views

PIC32 Peripheral Pin Select for Digital Output

I'm using a PIC32MX250F128B for a project to drive several digital outputs; I need to control the digital output for about 13-14 pins. (using the code below). These pins work: RA0, RA1, RB0, RB1, ...
1
vote
0answers
25 views

Problem with Constant Off-time PWM/Variable Frequency on dsPIC30F2020

I'm using the Microchip dsPIC30F2020. I've been trying for the longest time to get some sort of PFM signal for my project. I see in Section 12.4.7 there is the ability to have constant off-time PWM ...
-1
votes
2answers
53 views

The relation between acquisition time and clock in ADC output?

This is a question that happened to arise in my mind while experimenting on hardware.I was working on pic18f26j50 which falls under the advanced 8 bit controller family from microchip. They provide 12 ...
1
vote
0answers
54 views

Help with PFM with PID Control on dsPIC30F2020 (Pulse Frequency Modulation)

I'm using the dsPIC30F2020 trying to do a project that compares and contrasts PWM and PFM bucks converters. I have the PWM buck converter working perfectly. So for the PFM I used the exact same code ...
4
votes
3answers
79 views

What facilities/methods exist to debug and simulate programs for PIC microcontrollers

In the university, even though I did do some PIC programming and project, the project was quite simple. We could always put in a blinking LED as a sign of life into our program or have the code write ...
0
votes
2answers
99 views

PIC16F877A Timer0 delay problem?

To get min 5ms square wave. I chosen prescalar as 1:32 (The internal clock given 4Mhz), what will be the TMR0 register value? Is it 0x64 or 0x63 !!
0
votes
1answer
49 views

Proteus doesn't show the value of float variables and does not attribute values to them

I have an issue with Proteus Isis. The image below illustrates the problem. I can't see the values of a struct's fields and I think that Proteus can't see the struct too. Full Resolution Anyone ...
2
votes
1answer
110 views

Timer0 Interruption xc8

SOLVED: I put here my code, I hope it helps someone! ^^ TIP: My problem was because I was comparing if PORTBbits.RB3 == 0 or == 1; the solution has been comparing a variable instead a state. ...
3
votes
1answer
117 views

XC8 Compiler array of struct initialization problem

I'm using MPLAB X IDE with XC8 compiler and I would like to create a menu system to a GLCD module, but I'm having trouble initializing my MainMenuItemsList[] array. ...
0
votes
2answers
72 views

arduino based pic16F877A programmer

is it possible to program PIC 16F877A using arduino uno? if it is possible, please tell me how to this;
0
votes
0answers
61 views

Proteus Simulate RS232 between PC and PIC16F887 - Receive wrong characters

I simulate RS232 connection between PC and PIC16F887 in Proteus with COMPIM and Putty. But, when I send a string from MCU to PC ( Putty ), it receive wrong character. I couldn't figure out what went ...
0
votes
1answer
97 views

MPU6050 I2C PIC18F458

I'm using MPU6050 with PIC18F45 protocol I2C. On EasyPIC v6 board its just send me back anything that I put in this WRITE command I2C1_Wr(0xD3);. I replaced the ...
0
votes
2answers
69 views

HD44780 in 4bit mode connected to only ONE PORT on PIC

i am new to PIC programming. I am using MPLAB X + XC8 compiler. I have on a breadboard an PIC18F4550 connected to a HD44780 compatible LCD. Digging online i found out a routine to interface the PIC ...
2
votes
2answers
90 views

PIC18F44K22: Can't use MCLR/RE3 pin as input. MCU resets when RE3 is held down

I'm trying to use the 4-bit wide PORTE on a PIC18F44K22 MCU. This port contains the RE3/MCLR pin which can be configured as a reset pin or as an input pin by setting/clearing the MCLRE bit on ...
2
votes
4answers
67 views

extern and the XC8 C compiler

Perhaps I don't fully understand extern. With the XC8 C compiler, it seems like I can get away without using it. In the file ...