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

How to wait for '>' in SIM900 message format

Hello all I am trying to send sms using SIM900 and PIC18F2520. I have button attached to pin of MCU. So whenever the button is ...
0
votes
0answers
27 views

Getting started with PIC / PICAXE [on hold]

I am having more trouble than I'd like to admit getting started with MCU programming. I can't seem to find the right information about how to get started programming PIC / PICAXE / Atmel MCUs. I have ...
1
vote
0answers
45 views

Error sending SMS to SIM900 in PIC

I am trying to interface SIM900 with PIC18F2520. I need to send SMS to a particular cell number. According to AT commands, ...
1
vote
1answer
31 views

1 sec delay using PIC18F TImer 0

I am trying to generate a 1 s delay using Timer0 of PIC18F2520. I am using the internal 8 MHz oscillator. The timer ...
0
votes
0answers
18 views

PIC18F2550 and DS1307 i2c RTC MPLAB assembly code. Have to loop for seconds,mins,hrs

PIC18F2550 and DS1307 i2c RTC MPLAB assembly code. I am using a PIC18f2550 to get time,date,etc from DS1307. I am able to get the seconds,minutes, hours, etc by repeatly CALLing GET_TIME with ...
0
votes
1answer
67 views

PIC Microcontroller - __delay_ms() no effect

I am newbie to C programming on a pic microcontroller. I am slowly working my way through the various tutorials and literature available to try and apply my knowledge. I am currently trying to blink ...
1
vote
2answers
112 views

How to use UART rx data from ISR to main loop?

I am using PIC18F and currently trying to interface it with SIM900. I am using UART Rx interrupt. ISR is working correctly but I wonder how to get data in main loop. Lets say : ...
-1
votes
1answer
51 views

Blinking Led with PIC18F. Debugging vs programming

I have a PIC18F2520 MCU. I am just trying to blink an Led with it. I have made the circuit on breadboard. I have connected 5v to VDD and VSS to gnd. I have ...
1
vote
1answer
36 views

PIC12F675 wakes immediately from sleep command

I'm trying to build a power controller for a battery operated device. I choose PIC12F675. The idea is putting pic in sleep mode. Wake it up with Watchdod timer approx each second. Check pin states, ...
0
votes
0answers
58 views

one character is wrongly transmitted in uart communication [closed]

I am trying to interface a wifi module ESP8266 to a PIC18f4550 8-bit microcontroller with uart communication. I want to receive data from ESP8266 and show it on a LCD (2*16). The problem is that ...
1
vote
1answer
50 views

PIC16f84A Unable to delay properly

It was one of my first experiments related to embedded systems.I was following this document : http://groups.csail.mit.edu/lbr/stack/pic/pic-prog-assembly.pdf Problem emerged at Tutorial 6.I was ...
2
votes
1answer
58 views

XC32 optimizes vaiable used for register reading

I am facing a problem with XC32 compiler's optimization. Whenever I write a function to read something from register, XC32 optimizes (read: Removes) the variable which holds the return value. I have ...
0
votes
1answer
46 views

Rs485 receiving problem in Pic microocontroller?

I started to work on Rs485 (Sp3485c) which is interfaced with Pic24fj128ga202 microcotroller IC. This controller has 4 uart's one is connected to pc through max3232 ic ,gps,gsm and another for rs485....
0
votes
2answers
87 views

How to prevent false trigger to PIC chip input

I am trying to use an off the shelf battery operated device in a larger project. The device was powered from 4 AA batteries which I've replace with a +5V power source. The device uses a 16F505 PIC ...
-5
votes
1answer
46 views

count pulses on port pin of pic microcontroller

I want to connect more than one flow sensor to PIC microcontroller. so i want to use GPIO Pins for counting the pulses from the sensor and I cant find the logic. please help.
1
vote
0answers
20 views

EEPROM in Simulator for Microchip Pic18f

When programming a Microcontroller from Microchip using Pic18F and using XC8 Compiler, can i use Simulator to test / verify it ? ...
0
votes
0answers
17 views

Need help with dsPIC33EP512MU810 usb module

I want to use the USB module of this microcontroller to transmit data gathered from the ADC to the computer. I want the module to work in "device-mode" and to work with maximum efficiency and at "Full-...
0
votes
0answers
14 views

creating port pin's Array in Hi-tech C

I am using pic16f887 microcontroller and using Hi-tech C compiler. I want to implement port pin's Array in Hi-tech but it is not allowing me to do so. What is the correct way to access pin address ...
0
votes
0answers
23 views

Can't write to USART in PIC18F26J50

I can't write to USART in PIC18F26J50. Here is my setup: Clock is 48MHz; I'm using a RS485-driver (SN65HVD1781) in half-duplex mode. Direction PIN for this is connected to RA2; I'm using a USB to ...
3
votes
1answer
173 views

PIC outputs while programming

Does anyone know what the state of the PORT pins are on a PIC when flashing the part? I am running a PIC 16F916 with an ICD3 programmer, and the IO pins are performing various functions, and need to ...
0
votes
1answer
51 views

Simple Servo Control Issues with PIC and ICSP

simulate this circuit – Schematic created using CircuitLab I have a project in which I am controlling/trying to control a Carson CMS-1 servo using a PIC. I have a board set up with a 7.5v 1A ...
0
votes
0answers
29 views

Simple assembly bit banging on PIC12f683 working reg issue

Trying to control a ring of addressable LEDs (see datasheet below) by bit banging data using assembly language on a PIC 12f683 as it only accepts data at sub uS speeds, plus it feels like a good ...
0
votes
0answers
47 views

Writing a simple boot loader in C for PIC

Say you have a device that you can read from that contains the new code. What I want to implement is the following: Check time stamp and checksum of current code in the pic Check time stamp and ...
0
votes
1answer
76 views

Connecting two different microcontroller outputs together to drive a single device?

I am interfacing with an existing product. This product uses a PIC16F54 uC and is ultimately driving a solenoid. This device is a black box to me and I have no input into the software running on the ...
0
votes
1answer
42 views

Relation or difference between Input clamp current and Sink current

I want to take input from external peripherals to PIC micro-controller(PIC18F66K22) through buffer IC(74HC541). My problem is o/p of buffer source current is +/-35mA and i/p of PIC18F66K22 PORTF pin ...
2
votes
1answer
24 views

I2C Implementation on PIC error

I am referencing this project: http://www.8051projects.net/wiki/I2C_Implementation_on_PIC I am using PIC16F1847 and XC8 as opposed to PIC16F877 and HiTech C so I've had to make a few changes to the ...
0
votes
0answers
11 views

Converting IMU (MPU6050) raw data for a single axis and gyro init

I am looking to use the MPU6050 on a self balancing bicycle. I am using a PIC micro as the interfacing MCU. I am only interested in the angle in one axis (I'm only interested in roll). I have some ...
0
votes
1answer
68 views

ADC with DMA not working

I am using dsPIC33EP512MU810 to simultaneous sample 4 signals from a mic and display the samples on the on-board tft screen on the EasyPIC Fusion v7 development board. I was successful in acheiving ...
1
vote
1answer
49 views

Problem with pic24f code

I'm trying to write some code that waits for a pin to change before continuing but it doesn't work. The code that I already have is: ...
0
votes
1answer
72 views

sleep mode in pic16f1618/19

I am trying to reduce the power consumed by microcontroller pic16f1618, and hence I thought of using SLEEP(). All interrupts such as timer, and pin are disabled. The code is generated with the help of ...
1
vote
0answers
81 views

How to read Pic16F1703 program memory (With custom PIC programmer)

Context Following a tutorial, I build a simple PIC programmer hardware using the Raspberry Pi (google: rpp programmer). I tested it with the provided software for a ...
-3
votes
1answer
80 views

Pic24f microcontrller often restarts when placed in metal box

I have developed a vehicle tracking application , everything works fine nothing wrong in wrong condition. I want to check out the signal strength of the modem so i placed the modem in a Metal box , a ...
2
votes
0answers
73 views

XC8 pointer issue

I am struggling with the following code: ...
0
votes
3answers
73 views

Does several PIC12F683 pull-ups cause short circuit

I am connecting several PICs together by GP4 and GP5 pins, and I used their internal pull-ups to make pins high by default. If in all PICs pull-ups are enabled. Does connecting a lot of PICs together (...
3
votes
2answers
152 views

How does this PIC board achieve RS-232 communication without a line driver?

All the develooment boards I have seen yet with serial communication support usually have MAX232 line trasceiver. However, I have come across this Olimex PIC-LCD development board that does not have ...
1
vote
1answer
37 views

How to use multiple input ports for internal ADC of PIC18F4550?

Is it possible to use setChannel() command to switch between the inputs for the internal ADC of PIC18F4550 at the end of each conversion, e.g. from AN0 to AN1 and back, or register initialisation is ...
4
votes
3answers
75 views

PIC On-the-fly software updates over radio

I plan to run one of the 8-bit PIC microcontrollers (like PIC16F1938) connected to the radio-module (NRF24L01+). Suppose, that I use less, than a half of the available program memory, would it be ...
1
vote
1answer
213 views

Is it possible to use an opamp to generate 13V VPP for ICSP?

I have used a 34063 DC boost converter to generate a 13V VPP voltage for a PIC ICSP programmer, but would it be possible to use an opamp instead? The circuit pictured below seems to generate 13V (...
-1
votes
1answer
72 views

PIC reset on power off

Attached is the block diagram of my circuit. Input is 230 VAC. A SMPS module converts it to 14 VDC. The on board regulator then converts it further to 3.3 V. I have observed that many times when I ...
1
vote
0answers
30 views

Bootloader for PIC33FJ64GP706A - AN1094

I am trying to use AN1094 application Target source code and x86 source code for the target PIC33FJ64GP706A. In given source code example linker file attached 710 series uC. Replaced with 710.gld with ...
0
votes
1answer
73 views

Incorrect Manchester encoding from PIC microcontroller

I have written a C program for the PIC18F4620. My PIC works as an encoder, which encodes a data stream in Manchester code. My output is rd7, where it should appear the Manchester code, but only ...
1
vote
3answers
59 views

PIC Breadboard Circuit Question

Noob question inbound: I'm getting into PIC programming, and I'm using a kit to build a microcontroller setup on a breadboard. Following the instructions here: http://www.bypic.co.uk/index.php/...
0
votes
0answers
54 views

Programming an MCU pic16f1703, what mean: Begin internally/externally timed programming ?

Context: In the process of programming an MCU of type PIC16F1703, I started by having a read of the memory programming specification. Due probably to my leak of ...
0
votes
2answers
50 views

Bit shifting and PORT value on PIC18F4520

I am working on a PIC18f4520. To do my test, I have connected a led to the pic. The following items are the steps I would like to do : Save the value of the port set for the LED (which blinks ...
1
vote
1answer
72 views

MPLAB 8.9 won't launch

I am running windows 7 professional 64-bit and up until this week was running MPLAB 8.92 IDE. Now I get a brief look at the splash screen and the IDE refuses to launch. I downloaded and ran the ...
2
votes
0answers
51 views

PIC32MX350F256 Errata , IO open Drain Issue

In one of our Product we used Microchip micro controller “ PIC32MX350F256L”. Attached image is small part of circuit showing uC interfacing with a SPI device. We are using bit banging communication ...
0
votes
0answers
38 views

ISIS Simulation “is not running in real time due to excessive CPU load”

Here is an animation showing the problem in action : https://gfycat.com/ImmaterialNextGermanshorthairedpointer I press Play, it works, I stop and play again, it stops working until I remove the ...
0
votes
1answer
50 views

Loading a HEX file with PICkit 2

I'm trying to upload a hex file, generated from multiple C source files with xc8 in Proteus, into a PIC18F4520. Usually, I don't have any problems doing this but ...
2
votes
2answers
192 views

PIC18F1220 production build of C code not working

I have this simple code which I wrote to test that my programming circuitry works properly and compiles fine on xc8 pic c compiler: ...
0
votes
0answers
53 views

PIC18 strange bug

I am experimenting with the PIC18F46K80 in assembler with MPLAB 3.30 and MPASM 5.67. While execute some simple programs I noticed a strange bug which made it impossible for me to use the PIC in any ...