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
6 views

Adapt fatFS library to PIC32

I'm developing an application with PIC32MX, that record 3 WAV sounds and store theme into SD. Unfortunately the speed that I have reach is 155 kB/s and is insufficient for my application. Then I have ...
1
vote
1answer
42 views

Okay for USB to send data without specific OUT command first?

I have been going back and forth between writing software for my device and the PC application trying to get the protocol right. I have a pic18f4550 talking over interrupt transfers. It needs to ...
0
votes
2answers
36 views

PIC18f45J50 2nd Serial port?

I am working on a GPS tracker Project where i need to interface with a GPS module and a UMTS module for 3g connectivity. with this i need 2 serial ports on a single microcontroller. For this ...
0
votes
2answers
29 views

No data from XPORT (<- USART) to TELNET

hobbyist and students, [TL:DR] - Can't send (uart) chars from my PIC through my xport to my telnet connection (and can't receive)? [Software] MBLAB X IDE Lantronix DeviceInstaller XC8 compiler ...
0
votes
1answer
30 views

Can't seem to determine quadrature encoder resolution

I'm currently working on an autonomous terrain-mapping rover, and I've run into problems in the seemingly most straight-forward area: processing quadrature encoder data. For any unfamiliar, a ...
2
votes
1answer
34 views

Using different putch() function in a library

I'm writing a C library for PIC18 microcontrollers that will communicate with the ESP8266 chip over the UART bus. I would like to use the printf() function to send ...
1
vote
1answer
55 views

PIC12F683 or PIC16F688 assembly or C blinking LED example with XC8 compiler, MPASM or gputils

Hello I am new to PIC programming and I finally have got my dev environment working, I downloaded the XC8 compiler from microchip and also as backup I downloaded the gputils assembler. I have not been ...
2
votes
1answer
179 views

Why to use special purpose dsPIC?

I have found that the dsPIC are classified in some specific areas, like motor control or energy processing, but the datasheet of both models looks quite similar, I can't see what is the advantage of ...
0
votes
0answers
28 views

Pic debugging not working with PicBASIC pro compiler, mplab x 2.26 and pick kit 2

I'm trying to get debugging working using mplab x v2.26 ide and PicBASIC pro compiler. I have successfully configured the ide to use the compiler, but when I try to debug (I have set a breakpoint in ...
1
vote
0answers
21 views

program resets after ISR for TIMER 2 on pic24F

I am trying to configure the timer2, but every time that an interrupt occurs, the microcontroller goes to the ISR and then starts the main() function again. This are the functions: ...
0
votes
0answers
31 views

PIC16f88 interfacing with LED Matrix

I am trying to interface my PIC16f88 with 8*8 LED MATRIX display with 4017 IC and ULN2803 in Proteus 8.1, so that I can create a Binary clock display. The hardware connection is simple LED ...
1
vote
0answers
24 views

PIC M-Stack “add . to include” confusion

I am experimenting with the open source USB stack called M-Stack for the first time. I decided to start by building the HID mouse sample application, but I had to create my own project configuration ...
1
vote
1answer
83 views

Blinking an LED as a function of signal frequency

I wrote a function for interacting with my 'PIC16F1788'. The code sends pulses out the 'RC4' port at a specific frequency, to make an LED blink according to that frequency. So the LED will blink ...
1
vote
1answer
59 views

float to short conversion error in c

I implemented dc motor speed control project but there is one problem which i am not able to figure out .The problem is that my pid output which is float when assigned to short data type gives ...
1
vote
3answers
97 views

Automatic agricultural robot using 8051 [closed]

I want to build a automatic agricultural robot for my final year diploma project. The basic idea is to program 8051 to drive the robot in a fixed path in farm for ploughing the farm which i am ...
2
votes
1answer
38 views

Frequency measurement using PIC

I am trying to write a program that measures the frequency of a signal. So I think a way to do it is to set the timer0 interrupt at every rising edge then record that value and subtract two successive ...
2
votes
0answers
43 views

Can't seem to write to spi flash

Well I've been stuck on this for a while, maybe 2-3 weeks at this point. I'm just not sure what I'm doing wrong. I'm trying to write to this spi flash part, and now I'm just running routines to ...
1
vote
1answer
58 views

Low Pass IIR filter attenuating all frequencies

I am trying to make a Low pass IIR filter in dsPIC(dsPIC33FJ12MC202) using mikroC compiler. I have generated filter coefficients using Filter Design Tool. My filter specifications are as follows: LPF, ...
0
votes
1answer
32 views

Output of TMR0 register in pic16f877A

I wrote a simple frequency counter program in which TMR0 is 500ms timer and TMR1 as counter. Everything is working fine but what i din't understand is that TMR1 register output is hexadecimal or is ...
0
votes
0answers
32 views

implemented feedback loop to count pulses but loop doesn't work

I am implementing feedback loop which count number of pulses from optical encoder and convert it to rpm(speed). But i noticed that number of pulse count remains same irrrespect of the motor speed. I ...
0
votes
1answer
48 views

Programming 16F84A With K8048 software & a custom Hardware (With CH340 USB2Ser)

After reading Manoj's Work about how to program some PICs with USB to Serial Adapter, I decided to try myself to program the 16F84A with my CH340 USB-SERIAL adapter Materials : Software : Cygwin + ...
-2
votes
0answers
62 views

Counter working in Proteus despite misconfiguration - how is it possible?

I wrote a simple code in which TMR0 is working as a counter. It simply counts the pulses supplied from a square wave generator. By mistake I set the ...
0
votes
0answers
33 views

DIY JDM pic programmer voltages

I have a ftdi usb->ttl chip and some resistors lying around and want to program some pics without spending loads on a programmer. As far as I can tell the only pin here that needs to be shifted to 12V ...
-1
votes
1answer
64 views

frequency counter code error in pic

Below is my code to count the pulses at RC0 pin of pic16f877A . I applied a square wave at rc0 to count pulses. i used TMR0 as 500ms timer and TMR1 as counter . but the problem is that tmr1 doesn't ...
-3
votes
2answers
59 views

PIC microcontroller - port b working [closed]

Can someone please explain to me how this port works?
0
votes
0answers
76 views

TMR1H and TMR1L does not increment

I wrote a feedback function which counts pulses from optical encoder for duration of 500ms. i used timer0 as 500ms timer and timer1 as counter. but the problem is even though timer0 is working, timer1 ...
0
votes
1answer
48 views

pic16f877A timer not working

i wrote a code in mikroc for pic16f877A in which i have used a timer0 and timer1. i debug my code and found that timer0 is not working but i am not able to understand the reason behind it. I even ...
1
vote
1answer
117 views

Using an External interrupt from any pin PIC16F873A

I'm trying to use an interrupt, which will occur on a rising edge of a signal coming from my LSM303DLHC accelerometer. The accelerometer has a Data Ready (DRDY) signal that fires every time new data ...
1
vote
1answer
66 views

Current transformer

I just made a current transformer with 250 turns secondary, with a toroidal ferrite core (2cm inner diameter). I want to measure ac current consumed by a 60W bulb. Now Ip = 60/220V = 0.2727Amps.. will ...
0
votes
1answer
78 views

Optical encoder in Proteus

I am working on dc motor speed control project in proteus and for the feedback i am using optical encoder.Dc motor speed is calculated by counting pulses from encoder. But i wanted to know what is ...
-1
votes
1answer
44 views

Functions in Mikroc [closed]

Below is my code it gives error as "all functions and variables not defined" Please help I wrote a program for speed control of dc motor for pic18f8722 In Mikroc Please help ...
0
votes
1answer
80 views

What does RA1 stands for in PIC microcontroller?

TI and Freescale designate PA1 as Port A bit 1. But Microchip uses RA1 to refer to the same meaning. So what exactly does R stand for ?
8
votes
2answers
436 views

Choosing and biasing a MOSFET controlled by a microcontroller, does current matter?

I need some help choosing a MOSFET for the circuit that I described here, which I originally designed using a BJT but decided that FETs make more sense in this case. The FET will be controlled by a ...
0
votes
1answer
61 views

LCD shows strange behavior upon micro-controller reset

I have written a code for the 'PIC18F4550' micro-controller (20MHz xtal) which shows "Speed = xxx RPMs" on an HD44780 LCD in 4-bit mode, where the xxx is the value contained in the variable called ...
0
votes
2answers
36 views

Which programmer circuit works with PIC16f877A?

I'm having the PIC16F877A microntroller.I dont have the programing hardware.I want to make it on my own.For that I need the programmer circuit.Please help me construct my own programmer else suggest ...
0
votes
0answers
50 views

what is the diffrence between hid and cdc usb device?

I was not able to get the difference after much googling.I am a newbie in microcontrollers and doing a project on Temperature controlled fan using LabVIEW and PIC18F4550. I need to know how ...
1
vote
1answer
46 views

Adding High Byte and Low Byte of LSM303DLHC Accelerometer Output

Interpreting LSM303DLHC Accelerometer Output Hi all, This is my first StackExchange question ever, so I will do my best to be specific and offer as much reference as possible. I'm currently ...
1
vote
1answer
47 views

Can not set up ISR for PIC24F08KA101

I have a problem setting up Interrupt Service Routine for PIC24F08KA101. I have successfully initialized IE,IF,IP for interrupts which I need to use. Part of the code which initializes these: ...
-1
votes
0answers
48 views

porting a linux driver to PIC

alright, basically, i want to use a SnadPIC, a 32-bit PIC MCU with OTG powered board (http://easypickit.weebly.com/) to interface with RTL8188SU, a single chip implementing 802.11gb/g/n, with ...
1
vote
0answers
28 views

Is there a stride setting for PIC32MX DMA?

I'm reading the registers in the user guide for the DMA and I don't see one, but I wanted to make sure. I was hoping that in addition to cell size there was a stride size as well. So for instance ...
0
votes
1answer
22 views

How do I get the value of 0b011 from the primary oscillator with PLL in a DSPIC33FJ128GP710A

http://ww1.microchip.com/downloads/en/DeviceDoc/70593d.pdf, here is the link for the data sheet it explains in section 9 as to configure COSC<2:0> of OSCCON register to one of the following. I am ...
0
votes
5answers
86 views

Vias in footprint with no thermal relief?

I'm making a small board for a PIC18F26K22 microcontroller and the provided footprint in Microchip's Altium Vault is shown below: I'm assuming the polygon under the IC is a GND pad, but am not 100% ...
0
votes
1answer
46 views

PIC24 I2C status bits not set

I am working with PIC24FJ192GB106 (64 pin package), and the I2C module is driving me crazy. here is the code: ...
-4
votes
0answers
25 views

what does 0b011 represents in oscillator configuration, and what's its use

I am working with dsPIC33, I have a doubt what does OSCCONbits.COSC!=0b011 represents. Why it is taken as 0b011.
4
votes
1answer
206 views

What are the advantages of single-supply (low voltage) programming over high voltage programming?

I'm a student designing a simple board for a PIC18 microcontroller and am trying to determine how the ICSP circuit should be designed. The datasheet explains how there are two different programming ...
1
vote
3answers
62 views

PIC24 - testing I2C module dead/alive

I got PIC24FJ192GB106 (64 pin package) and I cannot get the I2C module working at all. What is the easiest and most straight forward way of testing, whether the module is OK? I am using I2C1 module, ...
3
votes
2answers
91 views

Can I use the 32.768 kHz output from a RTC instead of an external oscillator on a PIC MCU?

Using the 28 pin PIC18(L)F2X/4XK22 and a DS3231S real time clock. The MCU has input and output pins for an external secondary oscillator and the original schematic has no RTC, but an oscillator ...
0
votes
3answers
84 views

Detailed explanation for PIC boot sequence

I have doubts about the boot sequence of about every microcontroller but since I own a PIC I figure I should start with those first. I would like someone to explain how the PIC's boot sequence ...
0
votes
1answer
30 views

Reception of data using pic12f1822 UART

This is the code ...
0
votes
1answer
68 views

need help making a c program that reads flow meter

For the past week, i've just started my first ever project to make a C program for a PIC16F877A under MikroC, where I would get pulses in from the flow meter and calculate the flow rate, then output ...