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)

1
vote
1answer
20 views

Pic18F2550 Assembly xt_xt

I am trying to set up a Serial Port for a PIC18F2550 Microchip. I am using MPLAB. In the 18F2550TMPO.ASM Template the statement CONFIG FOSC = XT_XT ;XT oscillator, XT used by USB. I need to change ...
4
votes
1answer
310 views

Why are there more than one programming channels on PIC32?

Previously, I was working with PIC16 and PIC18 series, and none of them provided multiple channels for programming. Now, I am designing my first PIC32 circuit, and I'm very confused with these ...
1
vote
1answer
36 views

Does any MPLAB compiler e.g XC8 have built in functions to control PIC peripherals like in CCS PIC C

The CCS compiler provides a lot of built-in functions to access and use the PIC microcontroller's peripherals. This makes it very easy for the users to configure and use the peripherals without going ...
1
vote
1answer
42 views

Problems with using 20Mhz crystal withPIC18f2420

I am using PIC18f2420 to generate PWM. I am using Timer 2 with 4MHZ crystal, which works perfectly by giving me PWM. I need to get 100KHZ of frequency for PWM, for which, 4MHZ crystal is not enough as ...
0
votes
1answer
24 views

Unable to use ICD3 with CCS C Compiler

I have recently bought ICD3 since I think that being able to debug a microcontroller program requires that we be able to see what is happening inside it. I really want to learn this stuff :) I have a ...
1
vote
2answers
55 views

Why does MPLAB IDE has so many compilers?

I have learnt that the MPLAB IDE has different compilers like C18, XC8 and HI-Tech. I want to know the following things: Why are there different compilers when one can do the job? Are certain ...
0
votes
1answer
67 views

No output or invalid output on a 74HC595 shift register

I have a PIC18F2550 microcontroller on one board with three daisy chained 74HC595 chips. These are driving 7-segment displays and everything is working fine. 7-segment displays are connected with a ...
1
vote
0answers
25 views

PIC12F simulator: Why isn't the oscillator running?

I have written firmware for a PIC12LF1572 that I am testing in the MPLAB X simulator. The program runs and correctly responds to stimuli, except when it needs to wait for a timer interrupt. After a ...
1
vote
1answer
83 views

Very bad performance with PIC32

I am encountering a problem with very bad performance in my PIC32 code. For example, I have this ISR which is servicing a few different interrupt sources: ...
2
votes
1answer
40 views

Target Device ID (0x0) does not match expected Device ID (0x18620000). dsPIC33

i have a problem with dsPIC33EP256MU810. I using PICkit3 and after i want to load the program to the mcu, mplab show message: Target Device ID (0x0) does not match expected Device ID (0x18620000). I ...
1
vote
4answers
106 views

What's a production programmer for PIC

I have a PICKit 3, but I understand these aren't for production. What does a production workflow look like? PC -> Programmer -> Chip. Do people usually verify that the chip copied properly, or is ...
2
votes
1answer
23 views

PIC18F66K22 - RTCC with external crystal

Project details: (though I'm more interested in theoretical answers) MCU: PIC18F66K22 IDE: MPLAB X IDE Programmer: PICKit 3 Compiler: C18 Project: Real Time Calendar Clock I've started on ...
2
votes
1answer
140 views

Input impedance of PIC32 ADC pin

I want to measure temperature of an oven using a thermocouple. The maximum change in the temperature will be 1oC/s. The amplifier section will already contain a low pass filter, but I want to put an ...
1
vote
0answers
39 views

PIC16F57 Won't startup (MCLR?)

This problem has me defeated! I've created a binary clock for a scout merit badge project. About 10 have been built and work but one scout's does not. It appears to be related to proper startup of ...
2
votes
1answer
98 views

Ohmmeter not working as expected

I am trying to build a simple ohmmeter by creating a voltage divider and then using an analog pin on a PIC18F2550 to read the output voltage and determine the ohmic value of one of the resistors. I ...
1
vote
0answers
52 views

pic16f877A bootloader error

I have installed bootloader into my pic16f877A and now i am trying to write a program into pic.But after connecting to my computer it gives error as ...
-1
votes
0answers
50 views

Using Pic18F timer for external pulse count assembly code

I am new to using a Pic18f2550 micro-controller. I have been searching for examples on how to setup and use the 16 bit timer Tmr1 and Tmr2 to count the number of pulses from an external motor opto. ...
2
votes
0answers
54 views

PIC EEPROM after re-programming

I was trying to get my EEPROM read/write working on my PIC. I first programmed a write cycle, and then reprogrammed it to read it out. (To avoid writing every time I start the program/pic) But I ...
3
votes
1answer
50 views

PIC pin state change reset the PIC

I am trying to collect data from analog sensors (temperature and relative humidity) with a PIC microcontroller (PIC18F14K50). In order to save battery, the supply voltage of the sensors is turned ON ...
0
votes
1answer
52 views

12 bit ADC conversion simple code not working as expected

I posted a couple days ago a couple of functions that I wrote to do 10-bit ADC. the problem is I couldn't figure out what was wrong with my code so I wrote a much simpler single function that does a ...
1
vote
2answers
35 views

pic18f2420 pwm frequency

I am generating PWM using timer 2 of PIC18f2420. I have 4MHz external clock crystal. The maximum frequency I can get from the PWM is 3.9KHZ with 1:1prescaler and postscaler. I need to get 100KHZ, any ...
4
votes
1answer
222 views

Measure PIC's own VDD-in voltage with ADC

Processor: PIC18F66K22 Compiler: C18 (XC8 is fine also) I've just made (and succesfully tested) code to measure the voltage on AN4 analog pin. Now I want to try something else, not quite sure if ...
1
vote
2answers
105 views

ADC Read function not working properly

I am working on a school project where I need to read a bunch of analog values and convert them to digital with PIC16F1788(datasheet). I wrote the function using C and xc8 compiler. The problem is ...
0
votes
2answers
60 views

timer2 in pic16f877A to be used for pwm as well as uart

I am doing a project on pic16f877A to control dc motor speed control. I am working for the first time with pic microcontrollers . In my project i am generating pwm signals and to generate pwm pic uses ...
0
votes
1answer
38 views

PIC:What is the difference of SPI module of PIC18F4685 and PIC18F66K22?

I want to configure SPI module in Slave mode for PIC18F66K22. Can we use common SPI library for both MCU?
0
votes
1answer
44 views

Using PSMC instead of CCP

Hi I am building a motor controller and I decided to use PSMC instead of CCP to create my PWM, my decision was based on the fact that I dont have enough CCP ports on my pic 16f1788 for the project. I ...
1
vote
3answers
103 views

How does the Arduino compare to PIC and AVR for serious learners

I'm trying to get into microcontrollers, but as you might guess, choosing the first microcontroller to start with is a difficult task due to the many great choices available. I have studied ...
1
vote
0answers
33 views

Designing implementation-inspecific PIC32MZ communication classes in C++

Alright everyone, that title may seem like a significant amount of technobabble, so let me explain what I'm trying to do. I'm starting to break into the PIC32 family, specifically the PIC32MZ series, ...
0
votes
0answers
19 views

PIC18F66K22:How to configure SPI in slave mode?

I have PIC18F66K22 microcontroller.I want to use SPI in slave mode. How to configure SPI in slave mode? If any demo code is available then it is better for me. Thank you.
-1
votes
1answer
19 views

testing 3 port bit values and Anding the values

i am flashing an led, but if i detect that 3 port pins all have 0 on them, Anding the result all to zero, i wish the led to stop flashing. But why doesnt his work? ...
1
vote
1answer
39 views

port masking and ports in pic

i have data at portb on microprocessor (pic), i need to compress three bits rb3,rb4, and rb5, the other pins are various IO on port b, i wish to compress that info held in those three pins on port b, ...
0
votes
0answers
11 views

New commands for Eibotboard firmware

My project involves an Eibotboard with slightly modified firmware to act as a polarisation controller for optical fiber. Here is the current initialisation script that is sent via USB with ucon: ...
2
votes
1answer
22 views

Clock switching hangs when switching back to original source

MIGRATED TO EE.SE http://electronics.stackexchange.com/q/159634/69868 I am currently working on a project where the clock needs switching between the Primary Oscillator with PLL (POSCPLL) to the FRC ...
0
votes
3answers
72 views

PIC18F26K20 cannot set internal oscillator to high speed

I have a project using a PIC18F26K20, and I am trying to use the internal Oscillator at 16 MHz. But no matter what I do it always runs at 32 kHz. My configuration is: ...
0
votes
0answers
13 views

PIC18F26K20 cannot set internal oscillator to high speed

I have a project using a PIC18F26K20, and I am trying to use the internal Oscillator at 16Mhz. But no matter what I do it always runs at 32 khz. My configuration is: ...
0
votes
1answer
8 views

PIC18 EEPROM fails to write

I am working on a project using a PIC18F26K20. I need to store several value in EEPROM, but it does not store any data, all I evers get back is 0xff. Here is the code I am using: ...
1
vote
1answer
90 views

What is the difference between Microchip and ICD and PICKit?

I understand that Microchip has In-Circuit debuggers (ICD) which gives insight into a running PIC (or dsPIC for that matter) in real time. Then we have the ICE which goes a step ahead by replacing the ...
1
vote
0answers
29 views

Port A digital output set up on pic16lf1827

I am having difficulty moving my code from port b to port a on pic. I am looking at adc disabling and also comparator disabling, but not having much joy. Anyone see what I'm doing wrong? ...
0
votes
3answers
44 views

Can the EasyPIC PRO™ v7 from mikroe be used with CCS compiler or MPLAB

I am not aware if any developments have taken place here. Is it possible for me to use my EasyPIC PRO™ v7 PIC development board (http://www.mikroe.com/easypic-pro/#mikroprog) with Microchip's MPLAB or ...
1
vote
0answers
78 views

Programming PIC24FJ64GB004

Hello all, I am trying to run simple LED blink program on PIC24FJ64GB004 using PICKit3 programmer, I tried multiple codes but all give same response. When i write a 0 to GPIO it remains at logic 0, ...
1
vote
0answers
74 views

Pic to Pic Communication with 434mhz wireless module?

I want to transmit Data From one Pic18f2550 to Another using a cheap 434mhz wireless module. but its not working at all. Following are the circuits for Tx and Rx respectively. the code for Tx ...
0
votes
1answer
37 views

read and write error in matlab

I am trying to send a data=40 from matlab gui to pic16f877A via serial communication. To crosscheck value is properly transmitted to pic i also transmitted back that data from pic to matlab and ...
1
vote
3answers
106 views

How to split a floating point number into individual digits?

I am helping a friend with a small electronics project using a PIC microcontroller 16F877 (A) which I am programming with mikroC. I have run into a problem which is that I have a floating point ...
2
votes
2answers
94 views

PIC - ADC - Negative value? - Wrong settings?

I'm trying to read an analog input with my PIC18F66K22 using ADC. But the supposingly 10-bit value often comes to values like 63.241. I found out that a negative value (printing as unsigned) results ...
2
votes
2answers
101 views

Is there stack available in PIC ISRs?

I'm trying to better understand the interaction between the foreground (interrupt) and background (while (1)) loops in a PIC microcontroller. Specifically, a ...
0
votes
1answer
69 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 ...
2
votes
1answer
53 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 ...
-1
votes
2answers
46 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
38 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
35 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 ...