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

Switching a relay through a wireless connection

I want to create a circuit which will wirelessly drive a relay. I only have a little experience with Arduino. I know what peripherals I need, but I don't know what micro-controller to use. I made a ...
1
vote
1answer
34 views

Reception without interrupt in USART of PIC18

I would like to know how to receive data without interrupts in the PIC18 controller. After setting the USART settings and baud rating, what things must be done so that USART receives properly without ...
1
vote
1answer
111 views

Is this current measurement solution okay?

One wishes to measure the RMS current (12A max.) drawn by an AC motor using a PIC16F887 at intervals of 1 second. One cost effective solution I am considering is using a current transformer, a bridge ...
0
votes
2answers
60 views

Run program directly with MPLAB X(PIC16F628A)

I want to blink LED with PIC16F628A and run it directly with the button make and program device main project of MPLAB X. to programing the PIC I did simple wiring ...
0
votes
1answer
52 views

Usart puzzle giving strange output on tx pins

I have tried working out usart peripheral of pic18f26j50 and it found out to be working very well. This one is for a pic18f26j50 in bread board with observing TX pin while transmitting in a loop. ...
1
vote
1answer
184 views

How to intitalize data in Program Memory

Im using MPLAB IDE & C18 compiler to program Pic18f2550. I have to initialize a const string in program memory to save space in RAM how do I do it ?
0
votes
1answer
80 views

Low-cost Up-Down Servo solution

I have a small project and I'm interested "upgrading" to a more produce-efficient design. Please note I'm no electrical engineer. I want to move a small servo (like this one ...
0
votes
2answers
58 views

5v tolerance on 3.3v PIC

Many PIC microcontrollers such as PIC24EP512GU810 have 5V tolerant pins. My question is how does this work. Do these devices have clamping diodes for ESD protection? Would clamping the input voltage ...
0
votes
0answers
30 views

UART PIC18F8722

I'm trying to connect a bluetooth module (the baudrate is 9600) with a PIC18F8722. The connection is with UART and I programmed this: ...
1
vote
2answers
125 views

Correct ways for implementing standard inbuilt watch dog timers

I'm bit new with using applications that use watch dog timers and i'm up to use one for the first time. I'm using pic18f26j50 and it got an internal watch dog timer which got a limit from 2ms and can ...
2
votes
1answer
41 views

PIC32 sleep mode with watchdog wakeup failing

I am in the process of trying to get a PIC32MX795F512L to run with lower power consumption. I'm trying to get it to enter sleep mode and then be woken by the watchdog timer. All pretty standard ...
3
votes
1answer
45 views

PIC datasheet is unclear on clearing framing error

On the PIC16F1829, FERR reflect the framing error status of the top byte in the two byte serial receive FIFO. Thus, assuming no new bytes arriving with framing ...
0
votes
1answer
64 views

Displaying different Data on 7 segment

I am Designing a Digital Stabilizer ,where I have to Use a Multiplexed 7 segment Display to Show Input Voltage & Output Voltage ,I have successfully able to see input voltage but I am unable to ...
1
vote
1answer
69 views

CAN BUS MESSAGES DESIGN SOFTWARE [closed]

I am currently designing with the PIC32 Micros and the 2 embedded CAN bus Controllers As the CAN bus architecture from node to node can be very complex with CAN messages, nodes filters, masks, CAN ...
0
votes
4answers
103 views

Best way of confirming system clock of controller

I would like to know the tricks or hints which could be used to find the system clock of 8 bit micro controllers. What are the cool ways in which we could find the system clock and can be verified ...
0
votes
2answers
53 views

Clamping Voltage without disturbing the power supply

I am using a circuit similar to the following, to clamp the input to my microcontroller to around 5 volts: How do I make sure that the (5V) power supply is not disturbed and stays regulated. I am ...
1
vote
1answer
28 views

pic16f628a internal oscillator setup error undefined symbol “INTOSC”

I want to set internal oscillator for pic16f628a, according to datasheet page 96, I have to set FOSC_INTOSC, but I get this error ...
0
votes
0answers
43 views

High baudrate UART on PIC24F

Working on a PIC24FJ256GB110 and trying to get a UART working at 115200. Using a scope, I see that the UART transmits the correct payloads when the baudrate is 9600 although not when I increase it... ...
0
votes
2answers
93 views

pic16f628a successfully programmed but not working

I want to blink led with pic16f628a using pickit2 I generated the hex file and successfully write it, according to code, RB are input, but when I put led between RB0,1,2,3.. and ground it turn on. all ...
1
vote
1answer
72 views

USART communication problem on PIC18F6722

I am trying to use enable USART communication on a PIC18F6722 microcontroller. More specifically enable the receiver and attach a receive interrupt to it. The datasheet describes the relevant bits ...
0
votes
2answers
46 views

Avoiding multiple defines by using side effect of PIC banking

This is more a question of style than anything else and might strike some as a bad thing to do. If I have a serial port pin on RC4, say, I can make some defines to help out: ...
1
vote
2answers
88 views

Linux-friendly PICs to timestamp an intermittent 4 µs long TTL pulse

I've got an experimental box of tricks -- the console of an MRI scanner -- that spits out a 4 µs long, +5V TTL about every 100 ms, when something interesting happens. I'd like to ultimately create a ...
2
votes
1answer
65 views

PIC12 TRIS Register not setting, No GP0 GP2 output

I originally asked the this question on Stack Overflow. I think here would have been a better audience. I'm trying to program a PIC12C508A to do a simple LED learning circuit. I've read some ...
2
votes
2answers
60 views

Tips for Cross checking baudrate of usart

I'm trying with blue tooth module HC05 with pic controller here and i would like to check my cross check my baud rate via scope or simulation. I would like to know the steps or good methods that you ...
1
vote
2answers
57 views

Porting MikroC code to MPLAB for PIC16F1508 adding extra noise to ADC

I decided to start using MPLAB with XC8 after I started reaching the 2k code size limit in MikroC. The problem is that since all the Mikroc libraries are proprietary and there are no libraries ...
1
vote
2answers
138 views

Executing code at diferent speeds, using one timer, and no extra RAM

I was wondering, will this actualy work? (when timer / prescaler set) It saves RAM by not using extra variables. Are the better ways of doing this? ...
0
votes
0answers
18 views

Strange bluetooth module behaviour and UART tips

I'm bit new trying out with bluetooth modules and I started using one. Bluebee Gold Bluetooth devicedevice link The first problem that I have is when is configure my controller(PIC) with setting RX ...
1
vote
4answers
106 views

Is it possible to run PIC16F88 at 3V?

I have notice that PICs have the 16F88 and 16LF88 version, after some researching i tought the LF is for chips that work at 3.3V, in other places it says i can still use the 16F88 at 3.3V, the ...
3
votes
2answers
121 views

Changing to relocatable code for PIC microcontrollers

I've come back to PIC programming after 10 years and I've been relearning everything. I'm looking at the section in the MPASM manual where it discusses relocatable code. And I've come to the ...
1
vote
2answers
130 views

Problem with USART programming

I have got a problem with an USART module I wrote in C for PIC12F1822, related to USART transmission. Everything happens to be fine when I debug in MPLAB with PICKIT3 (TXREG changes value and every ...
0
votes
0answers
25 views

USB Communication between PIC and PC always transfers zero irrespective of input

I have been trying to develop USB communication between a PIC micro controller (PIC18F4550) and PC. I have established the connection and my Development Board (EasyPIC6) terminal is successfully ...
-1
votes
1answer
60 views

Improper functioning of Timer1 in pic18

I'm using pic18f controller and i am supposed to get a delay of 1 sec.I'm using an external crystal of 16mhz and this is the configuration bits that i have used in it.I have configured the timer1 and ...
0
votes
2answers
66 views

rb4: rb7 on change interrupt

I am using a pic 6f628a and I want to use "on change" interrupt on pins RB4:RB7 I also want to use two different interrupts on pins RB4 & RB5 so when either of the pins have a valid change the ...
0
votes
0answers
61 views

Voltage Sag with PIC24 PWM Open-Drain Configuration

I'm experiencing some major voltage sag with an open-drain PWM output into an RC servo. I'm pulling up to +5V with an external pull-up resistor. I've tried using everything from a 1k-100kOhm resistor, ...
2
votes
4answers
120 views

Electrostatic charge changes crystal frequency

What are the reasons of this undesired effect: I have a PIC with RTC (Real time clock) connected to an external 32.768kHz crystal for auto-calibration (according to PIC Manual handbook). The crystal ...
0
votes
1answer
92 views

Reducing current consumption in deep sleep mode

This is in relation to the question I asked about deep sleep mode. I'm using PIC18F and it says in the datasheet that in deep sleep it would consume only few nA. But when I configured for deep sleep ...
4
votes
1answer
196 views

How to program the flash of multiple PIC controller

We have 6 dsPIC33F (16bit) controllers in the system and the system is quite big and complicated. All controllers are located on different PCBs and connected to each other through RS485 bus. First ...
1
vote
0answers
41 views

How can I stop MPLAB X from hanging between build and program?

I've been using MPLAB X and XC16 to build and program projects for a dsPIC 33EP128MC506 for about a year now. For the last two months, I've seen some new and unusual behavior on two separate machines. ...
28
votes
14answers
5k views

How can I measure RPM of a Frisbee?

I'd like to make a little device I can stick onto a Frisbee that could measure stats such as RPM/speed of the frisbee when thrown. First question is, would this be realistically possible? I was ...
9
votes
2answers
373 views

PIC programming through FPGA

I would like to know if there is a way to program a PIC for the first time (write in Flash) through an FPGA card. The PIC is already soldered to the FPGA and I can't remove it. No bootloader exists ...
2
votes
1answer
38 views

Using both PWM and Timer2 interrupt in PIC18F25k50

Background I'm working on lead-acid battery charger and experimenting with battery desulfation. I want to draw current vs time graph on graphic LCD and see: how high current spikes I have measure ...
0
votes
0answers
53 views

USB unrecognizable when burning MPLAB generated hex file using MikroProg Suite

I am trying to develop the USB interface with a PIC18F4550 using EasyPIC6 development board. I am using MPLAB v8.56. After looking through the USB device example (HID Device Custom) on Microchip ...
2
votes
0answers
112 views

What's up with my 74HC4052?

I am using a TI 74HC4052E to multiplex a TTL UART on a Microchip PIC32MX695F512 microcontroller. The expected behavior is for the TX and RX signals to pass through the switches unaffected; sadly ...
2
votes
1answer
114 views

Deep sleep mode consumption of PIC

I would like to know why my PIC which when I put in to deep sleep does consume more than what is specified by the datasheet. I have connected a precision current meter and found that when I load the ...
0
votes
0answers
67 views

Trying to use SPI to communicate between dsPIC (33EP) and LED driver (LT8500)

I'm trying to setup SPI to generate PWM signals on the LED driver LT8500. Below is my code: ...
0
votes
3answers
76 views

PIC18F25k50 - 10-bit PWM resolution with 8-bit timer?

Im messing around with PIC18F25k50 standard mode PWM. I found something weird. Datasheet says, that PWM is 10-bit, and timer is 8-bit. How that can be? Is that datasheet is wrong, or my english ...
-1
votes
1answer
49 views

Need Help to debug the program for pic 16f877a

I am a starter in PIC and I have done a program in pic c compiler for the following problem When PIC A0 receives an input of more than 4 v, it is converted into digital output and that is fed to a ...
1
vote
1answer
115 views

PIC18f45k20 ADC - always returns zero

I'm trying to read a value from a PIC18f45k20 ADC but I always get a zero. It has to be my config that is wrong but I can't see where. I've checked the data sheet and googled (lots of conflicting info ...
2
votes
2answers
110 views

Program memory question (working dispite insufficient memory)

I am writing this program to a Microchip PIC. ...
2
votes
1answer
56 views

PIC24 Open-Drain Config for 5V PWM Operation

I'm running a PIC24HJ series processor with a supply voltage of 3.3V. I need my PWM signal to be 0-5V, not 0-3.3V. Can I simply connect the PWM line to a 5V supply with a pull-up resistor? Or do I ...