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
0answers
22 views

Transformerless Realtime Clock Issue

I have an issue with designing a Real Time Clock by using Transformerless power supply. I don't use RTC IC but I use Microchip PIC instead and 32kHz clock. I use battery of 3.3V for backup supply. The ...
0
votes
2answers
16 views

Debouncing/Stabilizing power supply rocker switch?

I'm having trouble with the power signal out of my Rocker Switch (https://www.sparkfun.com/products/8837 for reference). My PIC18F4550 + 16x2 character LCD screen project was running fine until I ...
0
votes
0answers
12 views

PIC10F202 configuration bits MCPU and IOSCFS_4Mhz

So I have the following code which orginally had the __CONFIG line uncommented apparently this is depreciated in recent versions of the XC8 compiler from Microchip. I found the #pragma config ...
0
votes
2answers
36 views

Read and Write Protection to pic18f4520?

I am working on pic18f4520 using MPLAB C18 compiler. I have just completed a project (Asked questions about it earlier,see my other posts) and now I want to lock the data of the micro-controller so ...
0
votes
2answers
41 views

AT commands for GSM

I'am trying to interface a GSM module with flowcode for PIC and the Tutorial I'am following suggests a module SmartGM862 which is not available in my market but instead some other SIM900 series module ...
0
votes
0answers
23 views

PIC32 and I2C EEPROM interface problems

I am writing code for a PIC32MX250F128B to interface with the Microchip 24LC02B EEPROM with I2C interface. I have followed the datasheet of the EEPROM, the PIC32 and section 24 of the PIC32 family ...
0
votes
0answers
12 views

PIC18 and RTCC combination

I'm quite new in the microcontroller world, since I work on it only for my internship. But I have a problem in my main project. I was implementing an automaton based on a PIC18F46J50, and we printed ...
-4
votes
1answer
30 views

MPLABX PIC32MZ can erase but cannot read or program [on hold]

MPLABX PIC32MZ2048ECM144 Can connect and ID processor via ICD3. Can erase processor. Cannot read Cannot program Have no idea how to get MPLABX to tell me any details of the problem -- am willing to ...
0
votes
1answer
30 views

How to use mikroC oscillator frequency in my code?

I am using mikroC pro for PIC. In the "Edit Project" window there is an option for setting oscillator frequency. I want to use that value in my code. I think it can be used like something that is ...
1
vote
1answer
46 views

PIC16F628A: 500ms delay (w/Timer 1) not as expected

TL;DR: See the last few lines (and the quote) at the bottom. Just a word about my background: I learned microcontrollers last semester with the 8051 and have been learning PIC microcontrollers over ...
0
votes
2answers
151 views

How to blink LEDs with different frequency?

I have a pic32mx and three LEDs. [datasheet pic32mx] (http://hades.mech.northwestern.edu/images/2/21/61132B_PIC32ReferenceManual.pdf) I need a function that gets the number of LEDs and frequency, and ...
2
votes
1answer
54 views

Controlling a 8A DC pump with a PIC

I need to activate a 12VDC, 8A diaphragm pump with the output of a PIC16F628 (5VDC, 0.025A maximum). The standard way to do it, as I learned in college, is to saturate a transistor that will drive a ...
0
votes
1answer
50 views

Check content of EEPROM during run-time like Visual Studio

In Visual Studio, when we try to read memory location, we add breakpoints and run step by step to see what is getting read or written to a memory location. Is there a similar way, we can do it in ...
-1
votes
2answers
50 views

PIC18 starter kit

I wanted to measure my output voltage on a pic18f46j50 starter kit, but when I touched the C23 capacitor, the two led of my board switched off, the power and the debugger, and now it won't work... ...
0
votes
0answers
36 views

Circuit diagram for a variable frequency magnetic pulser

This question is following on from my previous question. I'm attempting to build a small PIC-controlled magnetic pulse device. The device is similar to this patent mentioned in this similar ...
0
votes
1answer
56 views

Avoid Overrun Error in PIC18F46K80

I am using PIC18F46K80, at a baud rate of 115200, a Stop Bit of 1 and no parity. I am sending data from a C# application(Baud Rate 115200, Stop Bit-1 and No Parity) to the PIC. After send some bytes ...
1
vote
2answers
49 views

Building a variable frequency magnetic pulser

I'm starting a little project that will run a square wave through a copper coil to make magnetic pulses. I imagine the project would be quite straight forward if I were a little more experienced with ...
0
votes
0answers
38 views

Pic24F: #define I/O pins?

I am trying to #define Pic24f I/O Pins with user defined Name. here is the part of my code : ...
0
votes
0answers
36 views

Trouble Setting Up RF Link System

I'm trying to send a number from 1 to 4 over an rf link using 2 microcontrollers, but I keep getting some really weird "interference"? On the sending end, I press a button and it outputs a 5 ms ...
1
vote
0answers
51 views

Pic18f65k22 writing 2 bytes to a un unsigned char when assigning a value

I am using pic18f65k22 and mplabx with pic kit 3. I have an unsigned char variable sim_reg. When i assign it a value of 0x01 it writes to two consecutive bytes instead of 1 .so it over writes my ...
0
votes
0answers
19 views

Question about CG\CG2 Xbox 360 Controllers and Trigger Pulls

I'm working on a basic mod chip, but not exactly for gaming; more for robotics. I'm using the new common ground (CG\CG2) controllers. I'd like to make my chip as much like the XMOD chip as possible ...
0
votes
1answer
27 views

PIC reset with PWM

I'm using a PIC18F4550 to control a DC motor with PWM. When I use a PWM of above 50% it works well, but when it starts to go below 50% the PIC resets. I have separated supplies for the PIC and the DC ...
0
votes
1answer
36 views

PIC Kit 3 - PIC32 memory mismatch error

after I worked for a while with the PIC16 microcontrollers, I wanted to get known to PIC32 microcontrollers. But I have a problem. If I try to run a simple program on the PIC32MX110F016B or on the ...
1
vote
1answer
59 views

Phase Sequencer

I have 3 phase voltages entering into my PIC ADC (3 different channels ) through a voltage down scaling circuit and I have successfully calculated their rms values inside my controller.Know I want to ...
1
vote
1answer
37 views

PIC16 only runs on debugger

I'm running a Hello World that toggles RB7: ...
0
votes
1answer
93 views

PIC24f: How to Generate Start condition using SPI for I2C device?

I am trying to communicate with the device having internal communication as I2C while externally it has two different pin for Input & Output along with a separate pin for Clock. Here is the link. ...
-1
votes
2answers
71 views

Do we need MAX232/ADM3203 for UART communication with PIC32MX795F512L [closed]

I am trying to communicate UART with PIC32MX795F512L. I am really confused with this thing that we should use MAX232/ADM3202 or pins will directly commnicate. Because in some microcontroller, it is ...
1
vote
3answers
177 views

PIC32 does not have Memory Managment Unit, why would a high end microcontroller not have such a peripheral

MMU is needed to run Linux and perhaps for other tasks related to OS. However, the PIC32 does not have one of these. Why would someone make a high end microcontroller and not include a MMU? It may ...
0
votes
0answers
32 views

how to solder pins on pic32 io expansion board?

I have purchased a PIC32 ethernet starter kit along with its Input Output Expansion Board. Unfortunately IO expansion board ...
0
votes
0answers
41 views

Hi-Tech PICC 9.81 and MPLABX

I have a license for - the now rather old - Hi-Tech PIC C-compiler (PIC10/12/16). I have used this compiler for many years integrated with MPLAB 8 with full success. Today I upgraded to MPLAB-X but I ...
2
votes
3answers
115 views

Why do I have to disconnect and reconnect the Microchip ICD3 after every programming?

I'm having a problem with the Microchip ICD3 programmer. I'm getting connection problems, connecting to the programmer itself, even when using the selftest mode with the Microchip-provided selftest ...
0
votes
1answer
31 views

PIC18F45J50 UART remappable problem

Hello i need help with the Remappable UART communication on pic18f45j50. so here is my code compiled using Mikroc Pro for pic ...
3
votes
0answers
63 views

FSInit() - “CE_BAD_PARTITION”

I am using a PIC18F26K80 and an XC8 compiler. I am trying to initialise an SD card and create a file. I have simply formatted the SD card on Windows to have a "FAT32" file system and an "Allocation ...
0
votes
0answers
33 views

Multiple bytes of data not being read from PIC18F46K80

I am trying to receive multiple bytes of data from the hyper terminal to PIC18F46K80. This is my source code ...
0
votes
0answers
39 views

ADC_Read function customized not working

I'm Writing code in C to read ADC voltage for dsPIC30F4013. It is 16-bit Micro-controller. I have initialized all the ADC related control registers and checked my code's working up to acquisition of ...
0
votes
3answers
104 views

calculate battery voltage using pic ADC

I need to calculate battery voltage using my PIC's ADC. My battery voltage is 24V and ADC has a 12 bit resolution, the PIC operating voltage is 3.3V. I am using the PIC's internal Vref+ and Vref- ...
0
votes
1answer
50 views

Pic 18F452 / push button

I want to write program with " MPLAB IDE v8.50>>Pic18f452 " by 1) low level pulse & 2)Rising edge . but, how?(without interupt & micro C,maybe!) I wrote this program with falling edge. Thanks ...
0
votes
2answers
78 views

A/D conversion loop infinitly

I'm quit new one PIC microcontroller, and i'm stuck with a new problem. I was using the A/D converter of my PIC18F46j50 to catch 4 push buttons on 1 PIN (RB2), and it worked well. But since I ...
1
vote
2answers
100 views

NEED HELP: Oscillator Error and PIC24F stopped working

I have a 30MHz Crystal Oscillator to clock a PIC24FJ128GC010 Controller. I am programming in MPLAB X. My idea is to generate a pulse on one of the I/O pin toggling. But unfortunately, I cannot do so. ...
-1
votes
1answer
89 views
1
vote
0answers
93 views

Send a file to an SD card over SPI

I am using a PIC18F4620 and an XC8 compiler. I am trying to create a file and send it to the SD card. I am using the MDD library from the MLA Legacy. My main is: ...
0
votes
2answers
66 views

Choice of bypass capacitors for PIC18F4455

Does anyone know how many and what values of bypass capacitors I need for a PIC18F4455? The datasheet does not provide any information on this and I don't want to use more than what I strictly need, ...
1
vote
3answers
99 views

Breaking a 16-bit long int to write into eeprom?

I am writing data to eeprom AT24C16 using PIC microcontroller pic18f4520. Every address of this eeprom can hold 8-bits while I am using long int's to store data that are 16-bit in size. How to break ...
4
votes
4answers
970 views

Checking when a car horn is pressed?

I want to detect when a car horn is pressed. The only way I can detect it currently is using the voltage on its line. When the car is turned on, there is always 12V being supplied to the horn through ...
7
votes
5answers
1k views

What do I need to put my code onto a microcontroller?

I learned about coding a controller, but never actually put the code on the physical device. I am trying to figure out what I need to order to start developing a basic embedded system. For example, ...
0
votes
0answers
33 views

Check status of a manually actuated valve

I am currently developing a cheap water leak detection system using a PIC. I need to be able to know if there's a leak in a water tank, and ensure that this leak is not intentionally caused (i.e ...
0
votes
0answers
45 views

FSIO.c:8344: error: (1089) recursive function call to “_WriteFAT”

I am using a PIC18F25K80 and an XC8 compiler. I am currently trying to use the MDD library from the MLA legacy version (http://www.microchip.com/pagehandler/en-us/devtools/mla/legacy-mla.html). It was ...
0
votes
1answer
48 views

_asm TBLRDPOSTINC _endasm,

I am using a PIC18f25K80 and an XC8 compiler. I have included the files from the MDD library. However, after compiling I get the following in the "FSIO.c" file: ...
1
vote
1answer
72 views

Send alert tone to pc from microcontroller via serial communication

I am learning microcontroller for couple of weeks. Yesterday, I have learned how to establish serial communication between PC and microcontroller. I can send texts to pc's hyperterminal from mcu and ...
2
votes
2answers
124 views

Timer PIC16 not working.. is it my code?

I'm new here as an OP, but I have been visiting this site for years. This time, just looking at other problems hasn't helped me. Hence, I sign up and just ask! I'm creating a countdown timer with 30 ...