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)

0
votes
3answers
38 views

Run a program on a PICKit 2 chip

I've got a PICKit 2 with a PIC16F690 chip plugged in, and installed MPLAB and made a sample program in C, which compiles fine. However, there's only the option to "Program to target device", "Read ...
2
votes
2answers
112 views

read sd without filesystem

I design a DAQ to collect data from different sensor. The data are write in an SD Card by a microcontroller dsPIC33FJ256GP710A. The data are stored without a file system for speed reason. Now I need ...
-5
votes
0answers
63 views
0
votes
2answers
59 views

How to get up to 24 I/O pins from the PIC4550

Im trying to implement and understand the CRC by making a circuit, by using 1 byte (8 bits), and a highest power of the polynomial of four, these 2 values should be XORed until i get a final output, ...
2
votes
1answer
84 views

PIC Microchip Keeps Resetting

I have a PIC16LF1709 20-pin 8-bit microchip MCU. I am programming it using a PICkit 3. I am able to successfully burn a program to the chip and run it, but it always seems to reset part-way through ...
-5
votes
1answer
47 views

How to generate a 1KHz singal on a PIC18F4450? [closed]

I'm looking for some tips and hints to move on. The 1KHz signal shouc exit the microcontroller at port RD0. Thanks in advance.
0
votes
1answer
42 views

Virtual terminal not showing data

I am new to PIC programming and I am doing an exercise with UART. After building the program the message is not being displayed. Can someone tell me where I am wrong. BAUDRATE = 9600, _XTAL_FREQ = ...
0
votes
1answer
46 views

PICkit3 MCLR to Vdd Pull-Up Resistor

I'll preempt this by saying that I'm a software person whose education (unfortunately) didn't even touch on the most basics of hardware or circuits. I'm attempting to program a PIC16f1709 microchip ...
-1
votes
2answers
73 views

“Not enough memory for stack (1040 bytes needed, 920 bytes available)”

I'm uploading my recent code into a PIC32MX575F512H-80I/PT and I'm getting this message: ...
0
votes
3answers
155 views

64k x 8 RAM what exactly does it mean

I'm looking at this microcontroller because it has the protocols that I want and a really interesting price. My doubt is related with this field: RAM Size 64K x 8. What exactly does it mean? I know ...
1
vote
1answer
41 views

PIC microcontroller DAC output incorrect

Using a PIC16F1825 microcontroller I was seeing incorrect values being output on the DACOUT pin. The setup stipulated using the fraction 8/32 * VREF+ where VREF+ was an external 2.5V reference. The ...
0
votes
1answer
70 views

PIC18F4520 failed using internal oscillator at 1MHz , please help thank you

I am wishing to use the internal oscillator of the pic18f4520 at a frequency of 1Mhz , what i wish to achieve in the end is to use to control a servo. ...
0
votes
0answers
36 views

PIC18: I2C with external triggered interrupt stuck in ISR

I am trying to implement a simple, external, pushbutton trigerred I2C communication between a PIC18F46K22 and a ST LSM330D MEMS sensor. I tried to find straightforward libraries for the easy ...
0
votes
2answers
80 views

PIC16F877 blink program uploads correctly but nothing happens - hardware or software mistake?

I made a custom board based on a PIC16F877 but for now I only soldered the minimum. I installed MPLABX and the XC8 compiler, connected the ICD3 to the board, adapted a "blink" example to RD0 where my ...
1
vote
1answer
41 views

How to use HX711 module with PIC microcontroller?

I'm trying to use the HX711 to capture the weight of a load cell using the PIC18F4520 microcontroller. According to the datasheet (http://www.dfrobot.com/image/data/SEN0160/hx711_english.pdf) if I ...
0
votes
1answer
75 views

Saving power between UART transmissions

I use PIC16F1825 to communicate via UART (async) with external device. Running on batteries I have to spend as little power as possible. Since my external device may transmit no data for minutes I ...
2
votes
2answers
118 views

PIC18 GPIO switch from input to output(dual mode)

I have always wondered if it is possible to switch the port direction of the PIC GPIO during the course of the program execution. So, for instance I start with a particular port set as an ...
5
votes
1answer
223 views

Does the STOP condition have any meaning on a single master I2C system?

I'm currently working on rewriting some of the code on my I2C driver, and I'm trying to figure out the exact purpose of the STOP condition. I believe that on a multi-master system, once a START ...
0
votes
0answers
33 views

USB streaming controller

I am developing an Audio codec using the TIs AIC3254 chip. For the interface, they have suggested a USB streaming controller which they no longer support and other alternatives are a full blown Audio ...
0
votes
0answers
43 views

PIC12LF1552 Device ID Does not Match; Fails to Program

I have setup this system: on a breadboard and a fabricated PCB. I have ensured that all the lines are equivalent and that all the components are placed in exactly the same (electrical) ...
2
votes
1answer
49 views

PIC18 High Priority Interrupt doesn't Interrupt the Low one (xc8)

I was trying to learn and implement the priority property of interrupts on PIC18F46K22 uC. I use MPLABX and XC8 compiler. In my code (transformed from a sample code), I have one external interrupt ...
0
votes
1answer
74 views

Recommended PIC for beginners?

I would like to start learning how to use microcontrollers and was wondering what PIC model would be good to start on? I'm planning on programming it through breadboard (fab later after trying it) ...
0
votes
1answer
36 views

PIC18 IO polling

I just recently decided to migrate an existing design which was based on Interrupt on change pins to standard IO polling due to some constraints in the part that I was using. I am trying to figure out ...
12
votes
3answers
896 views

Non-manufacturer microcontroller selection site?

I'm looking for a site which I can input my desired micro-controller characteristics. I have found the manufacturer websites...but those will only show their micro-controllers. I.E. there's a site ...
0
votes
0answers
22 views

PIC18 Interrupt on change vs polling

I am currently using a PIC16 part whose entire PORTB ports have the Interrupt on Change feature. I am forced to migrate to the PIC18 part as I gain more GPIOs but only the upper 4 bits of the PORT B ...
0
votes
0answers
14 views

PIC 18F8722 Potentiometer Settings

On PIC 18F8722, I connected potentiometer to ADC and then I reflect the value in ADRESH and ADRESL to LCD. When I turn right (ie from 0 to 1023) it increases very slow up to 10. Then, acceleration ...
0
votes
3answers
114 views

external crystal not working but internal clock worked normaly in PIC18F45K22

I have designed a PCB based on the PIC18F45K22 microcontroller. I want to use an external crystal (4Mhz crystal with two 22pF capacitors). I can successfully program the code but the PIC won't run. ...
1
vote
1answer
34 views

PIC - Accessing udata through pointer in another file

So I have a list of clockings in my udata in, let's say, clock.c. I have read that udata has to be accessed through a pointer, well okay, fair enough. Above ...
0
votes
0answers
61 views

Where do you get data sheets for ARM processor peripherals?Where

I'm fairly familiar with the 16-bit Microchip microcontrollers, and I thought it would be a good idea to learn a little bit about ARM based microcontrollers. I'm guessing that there is a much ...
2
votes
1answer
33 views

Understanding PIC32 watchdog timer operation

I'm new to uC development and have been fooling around with the PIC series for about 6 months now. I recently started working with the PIC32 and Microchip's XC32 C++ compiler. I don't know if I have a ...
1
vote
3answers
54 views

PIC32, XC32, timer interrupt vector not entered

I have the below timer 5 interrupt vector that is not entered, even when both the corresponding Interrupt enable bit for timer 5 is set, and the corresponding interrupt flag for timer 5 is set. Here ...
0
votes
1answer
52 views

PIC18f8722 interrupt problem

I did many research but couldn't find out what the problem it is. Actually my code as below. I am trying to implement a code in C with XC8 compiler. To enable a sentence on the LCD of the board ...
2
votes
1answer
72 views

Is my lookup table with 50,000 entries too big for MCU memory (dsPIC33EP256MC506)?

I want to implement a 2-input 1-output fuzzy logic controller using lookup table on the dsPIC33EP256MC506 microcontroller. I am comparing the lookup table and actual fuzzy logic controller side by ...
3
votes
5answers
194 views

Microcontrollers: What to do with unused non-IO pins?

There's plenty of information on what to do with unused IO-pins on a microcontroller. You can set them to a floating output, ground them, or pull them up to Vcc or down to ground. However I can't find ...
-3
votes
2answers
36 views

From timer interrupt to the rerun of main function (PIC16f877)

I'm working on a basic project for a security system with PIC16f877 in MikroC, and I had a problem concerning the timer interrupt. I want the interruption to be cancelled when a chosen amount of time ...
1
vote
1answer
66 views

PIC 16F887 and the mysterious System Clock Select bit (SCS)

I'm using a PIC 16F887 and I'd like to use the internal oscillator HFINTOSC. To accomplish this, I set the IRCF 2:0 bits to 110 (4Mhz prescaler) and the FOSC 2:0 config bits to INTOSC. Now I should ...
0
votes
1answer
58 views

Is my 16x2 LCD display broken?

I was programming my PIC microcontroller to the 16x2 LCD (Hitachi HD44780) to test out some codes, but when I tested my circuit again, my LCD started going haywire displaying some fuzzy or corrupted ...
2
votes
2answers
229 views

How many lines of C code (average) corresponds to 1Ko programmable memory?

I'd like to know how many lines of C code in average corresponds to 1Ko programmable memory for PIC18F microcontrollers Or how many lines of assembly instructions ?
1
vote
0answers
17 views

PIC18F8720 in word write mode and control signals on the EMI

I'm reading the datasheet of the PIC18F8720 and I'm stuck on the control signals diagram. Here it is. What I don't understand is the difference between ...
2
votes
2answers
104 views

What is the meaning of 16 Bit instruction format in 8 bit microcontroller?

While studying about PIC18 I came across this weird thing. I understand what instruction format means and I also know what '8 bit' means in case of 8 bit Microcontroller. But my doubt is that, "If the ...
0
votes
1answer
22 views

VDD Error with 18F24J10 after turning off XINST

I am using a PICKit2, pk2cmd, and SDCC to program a PIC18F24J10. In the course of troubleshooting some problems I was having with my code, I upgraded to SDCC 3.4.0. Compiling with the latest version ...
0
votes
1answer
69 views

Will one pic programmer program all pic chips? [closed]

If yes which one and where could i buy it and is there an inexpensive programmer for the chips?
0
votes
1answer
53 views

Measuring current using low side shunt method (MCLV-2 board)

I am trying to measure the current through the MOSFET switch M1 using low side shunt resistor method (on MCLV-2 dev. board). I can read the signal `Vout' on the analog input of a dsPIC33F MCU. I ...
1
vote
1answer
44 views

PIC18F Internal reference

I am currently in the middle of migrating a project from PIC16LF1947 to a PIC18F87K22 as I am in need of extra GPIOS and the PIC18 part fits the bill. There is one thing that is nagging me right now ...
0
votes
0answers
26 views

make hc-sr04 receive from another one

I have 3 ultrasonic Sensor (HC-SR04), i want to use one of them as transmitter, and the other as receiver, i want to let the first one send ultra Sonic waves and the other receive these waves from the ...
0
votes
0answers
12 views

switching between CCP capable ports

I am using PIC16f1788 it has 4 CCP ports two of them share the same CCP registers. I tried to switch between the ports using the following command : ...
0
votes
2answers
39 views

TRF7970A - (RFID reader) No field output?

Quite sure it's a hardware bug, going to replace the chips 21-4-2015... We've got two 'identical' set-ups with the same code on it... but they both act different... (None works) I'm currently working ...
6
votes
7answers
690 views

How does one know if an 8 bit MCU is sufficient or 16 bit MCU is needed? [closed]

16 bit micro controllers are more powerful than 8 bit ones and the 32 bit ones are on a whole different level. With that being said, while we can decided what peripherals we needed for an application ...
0
votes
1answer
66 views

TIMER0 in PIC18F4550

I am using PIC18F4550 I am trying to generate an interrupt every 1 sec, and by trial and error(i.e. just writing and simulating on hardware ) I am getting interrupt approx to 1 sec. Code for this ...
2
votes
2answers
97 views

Programming PIC from USB usign FT232

I have a PIC18F1330 which does not have native USB capabilities (see datasheet). I am planning to load it with a bootloader using my PICkit the first time and then programming from a USB port after ...