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
1answer
27 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 ...
8
votes
3answers
540 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
19 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 ...
-3
votes
1answer
49 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
2answers
80 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
31 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
57 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
23 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
42 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
44 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 ...
0
votes
1answer
56 views

how to generte a variable duty cycle based on the feedback?

i need to generate a pwm for boost converter , here is my code in mikro C it is correct ? , i test it on real circuit but i have a troube dc output best regards $ ...
2
votes
1answer
64 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
190 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
31 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
48 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
48 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
212 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
15 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
99 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
19 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
65 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
48 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
40 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
18 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
34 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
656 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
55 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
76 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 ...
0
votes
2answers
93 views

USB to Ethernet broadcaster

I have an industrial breathalysers that outputs its status via a USB 2.0 OTG port. What might be a suitable combination of processor and perhaps Ethernet chipset. I have not played with the modern ...
0
votes
3answers
41 views

How To use ANDWF in Microchip PIC18fxxxx Assembly Language

ASSEMBLY LANGUAGE MPLAB PIC18f2550 I am trying to "AND" 2 Variables "If Variable_1 = 0 AND Variable_2 = 1 then" "DO WHAT IS NEEDED." "End If" This below makes no sense used as a "AND" Logic ...
1
vote
1answer
24 views

Using TIMER 1 without enabling interrupt in C on dsPIC33E

I am trying to decipher a C code in which Timer1 is being used for measuring the period of a digital signal, using dsPIC33EP256MC506. The timer interrupt is not ...
0
votes
1answer
19 views

Error: PIN_B0 undeclared in XC16

I am attempting to write some code for a PIC24FJ64GB002 using X16. I am not a software developer, so very much a "noob" here. I am trying to make RB0 (pin 4) go low on an event using the code: ...
-2
votes
1answer
53 views

pic debugging vs programming

I'm using a Microchip ICD 3 to connect to my PIC chip and read the memory. When I connect the ICD 3 as a "programmer" and then select "read" (from the "programmer" menu) and then "View-->"File ...
0
votes
0answers
16 views

Using the ADC on Cerebot mx7ck Pic32

I'm looking to use the ADC on the cerebot mx7ck (pic32) dev board to sample 3 input sine waves on three separate channels. However when I run my code, it appears as if I get the same sine wave from ...
1
vote
1answer
48 views

PWM bahaving OPPOSITELY as expected on dsPIC33EP256MC506

The PWM module on my dsPIC33EP256MC506 is behaving opposite as it should. When I set the duty cycle equal to the PWM period i.e. 100%, the duty cycle is treated as ...
0
votes
1answer
52 views

FTDI ft232rl 3.3V logic interfacing PIC microcontroller

I want to interface a ft232 with PIC16F73. I am using the circuit below: VCCIO is connected with VCC which is 5V. Then I think all logics from TXD,RXD will be 5V, isn't it? If I connect VCCIO with ...
0
votes
1answer
56 views

Measure frequency of a square wave using capture module

I wrote the following code to measure the frequency of a square wave using the capture module of the PIC16f1788. I wrote the code by following step by step what is required in the datasheet of this ...
0
votes
0answers
29 views

Analog to digital converter for PIC18F2420

I am trying to get digital value in PIC18F2420 from analog input. The analog input is connected to RA0 port. Following is the code. I am getting 0 value for my interger "myvariable" when i look in ...
0
votes
0answers
69 views

How to use printf(), scanf(), gets() etc with *both* USART's?

I'm using a PIC18F26K22. It has two USARTS. The compiler provides a printf() function, and the user provides the underlying getch() and putch() functions. However, using Microchip Code Configurator, ...
1
vote
4answers
119 views

What does a reset of a PIC microcontroller via MCLR actually clear?

I'm working on a project that uses a PIC18F26K22 microcontroller, and it's behaving oddly. Basically, sometimes if you kind of "bounce" on the reset line (I have a button on it, and I just kind of ...
0
votes
1answer
65 views

Problem with I2C on PIC18F25K80

I am trying to configure an I2C protocol between a PIC18F25k80 and a barometric pressure sensor (the link for the datasheet is provided below). I can't figure out what the problem is. Initially it ...
2
votes
2answers
205 views

How to protect a MAX232 from PIC programming high voltages?

This question is derived from this Board review thread, I thought it would be preferable to make it a standalone question. I want to be able to reset a PIC remotely using the only communication port ...
0
votes
1answer
47 views

Question on dsPIC33F PWM Period and Duty Cycle Calculation

On the Microchip dsPIC33F family, the PWM period PTPER is calculated as: PTPER = (FCY/FPWM)*(PTMR Prescaler Value) - 1 where PTMR is the input clock to the PWM and FCY = Fosc/2, FCY being the ...
0
votes
1answer
75 views

Board review: is this PIC16F877 RS232+ICSP board correct/robust?

I want to make my own development board based on a PIC, to make a RS232 bootloader from scratch. It's been a while I haven't used a PIC, and it was on a ready made development board. I've looked ...
0
votes
3answers
109 views

C18 RAM c-string - Withouth copying

In my C18 compiler (PIC, PIC18F66K22) The following code: char *message = "Test"; Leads to an empty string. It's because "Test" would be saved in ROM, learned ...
0
votes
1answer
40 views

can't get PORTB value in pic18f2550

I'm trying to send The PORTB to the serial port and receiving the data on pickit2 UART mode.. ...
2
votes
1answer
97 views

Inserting compile date/time into the code in XC8

I'm in the process of writing code for a real time clock, and I want to compile the code with constants for the date/time of compilation to burn onto the clock immediately upon programming. I believe ...
0
votes
1answer
135 views

How to interface PWM output from a microcontroller with power MOSFET?

How to interface PWM output from a dsPIC30F6012 microcontroller with power MOSFET TrenchFET like SiE818DF? I want use PWM to control the brightness of the LEDs. Four PWM channels, one PWM per channel. ...
0
votes
1answer
33 views

How do implement my pic24 onto a pcb board?

I have a microstick development board for the pic24, shown here. The microstick contains many other components and parts other than the pic24 that are used for voltage regulating, debuggers, etc. In ...