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
41 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 ...
0
votes
0answers
31 views

No clock signal on SCL pin of PIC16F1618

I have been trying to configure I2C on PIC16F1618 microcontroller. I am using MPLAB X IDE, along with xc8 compiler. The MSSP code is being generated through MPLAB code configurator. I have set the ...
-3
votes
0answers
18 views

rs485 interrupt problem in slave reception pic 16f1805

I'm doing a project with communication RS485, I have used the library RS485 in micro C for PIC. I need to use interrupt in reception slave when I simulate with proteus the data is transmitting by ...
0
votes
1answer
29 views

dsPic33f : How to interface ECAN with CAN High/Low Signal

I want to start communication between (dsPic33f) ECAN_Module & PCAN-USB ADAPTER I have downloaded a demo code AN1249 from microchip website. I am using Explorer-16 board for Testing. Now the ...
0
votes
1answer
34 views

What is the highest pulse rate possible using PIC12F683 measuring the period of a square wave

What is the highest pulse rate possible using PIC12F683 measuring the period of a square wave? In Chapter 3 tip#1 of Microchip Tips and Tricks, it provides a great tip on how measure the period of a ...
0
votes
1answer
37 views

pic24 UART receive data is invalid

Hello i m writng a program for UART receive interrupt for PIC24FJ64GA306 i m receiving a data which is in format of 0xAAXXXXXXXX, where data after AA can be anything... the data transmityted through ...
0
votes
0answers
29 views

How to generate 1min timer interrupt in PIC24F

I m trying to generate a 1 minute interrupt using pic24F seires... To be specific PIC24Fj64GA306 Here is the code snippet ...
0
votes
1answer
52 views

Can I dim my LEDs even more?

I have a PIC16F1828. I am using PWM in order to control brightness of bunch of LEDs. My goal is to dim those LEDs to the maximum point. Currently they are not dim enough. System clock runs at ...
2
votes
1answer
787 views

Can some body help me understand some parts of a schematic circuit?

I have circuit schematic, and I do not understand what are the parts in red circles and what do they do. The schematics are from a movement sensor using a PIC micro controller, infrared LED and an ...
0
votes
1answer
48 views

CAN protocol : How to start with CAN interface with Microcontroller [closed]

I want to communicate with VFD (variable frequency drive) via CAN open protocol. I have never used CAN before. So can anyone Guide me from where Should I start with ? Any link or Suggestions would ...
-1
votes
1answer
46 views

Can I use external clock as SCK in master mode (dspic33e)?

I am using a dspic33ep512mc806 and I want to use two different SPI modules with the same clock (not only at the same frequency but one clock shared by both modules) and both modules have to be master ...
1
vote
1answer
93 views

Why do we need a pull-up resistor when there is a floating connection at the base of a transistor?

Let's say that the base is connected to any normal PIC. My teacher was talking something like, "There will be a floating output at the base when nothing is connected so we use the R7 (10k) for ...
1
vote
1answer
32 views

How to add header file for PIC24F08KL401 in MPLAB on MAC

How can I add header file for PIC24F08KL401 in MPLAB X IDE on MAC? I have found few tutorials how \ where to find these files ('PIC24F08KL401.h') for example on windows, but none on how to do it on ...
0
votes
2answers
57 views

Can Putty be used to send serial data from the PC to the PIC? How?

I am looking for a simple program that can send data down the serial to the PIC. I have used Putty with USB-UART converter on my laptop. I have made the PIC->PC communiation work which is frankly a ...
0
votes
0answers
30 views

PIC 12f683 comparator reference voltage setup

I'm currently trying to set up my PIC 12f683 to run an interrupt when receiving a voltage over 0.2V from an amplified microphone input using the comparator module. Microphone aside, I have lined up a ...
-1
votes
1answer
45 views

Using other pic microcontrollers instead of the PIC12C508 (arcade monitor protection circuit [closed]

I want to use another microcontroller because the PIC12C508 isn't available in my country (philippines) I want to use the PIC16f628a or PIC12F510 but I don't know what pins to use and if they're ...
6
votes
2answers
169 views

Is anything besides rx and tx actually used in rs232 nowadays?

Whenever I come across a PIC or even a FPGA project that is communicating over the serial port with a PC; only Rx, Tx and power are connected on the 9 pin connector and the other pins/signals are ...
0
votes
0answers
67 views

BLDC Motor : Control Speed digitally using Microcontroller

I am stuck with a logic to control the speed of BLDC Motor via Microcotroller. I have a BLDC Motor with Electronic fitted. It requires following signal to drive : +24v 0v or GND Enable ...
1
vote
1answer
42 views

PIC10F200 internal clock

I am trying to calibrate the internal clock to turn on a output once for 3 seconds every 7 days within a few minutes accuracy. I was able to accomplish this using the OSCCAL register in the chip. The ...
0
votes
1answer
82 views

How to disable a microcontroller port once enabled?

I'm using MP430 series microcontroller. The functionality of the code is to do a specific task and then don't do anything (sense the tilt and glow an LED in a fixed amount of time). But due to some ...
0
votes
1answer
54 views

PIC18F2550 PWM Square wave generator

I am trying to generate a square wave on 50% Duty Cycle using my PIC18F2550. The signal is to be outputted through a loudspeaker. The frequency does not really matter, as long as it is in the hearing ...
0
votes
3answers
67 views

How to connect a dsPic30f2010 to pickit3 icsp

I recently bought a pickit3, I have a development board for the dsPIC30f but it the pickit3 doesn't seem to be able to read the chip. When I try to connect to the chip, I have the error: Target ...
0
votes
1answer
59 views

Variations in pulses generated and read by a uC

I have a 2 uC's(LPC1778 and a PIC), that perform 2 separate functions. The PIC generates pulses that are coded,where each bit of the code has a pulse duration of 1ms and a complete code is 8 bits ...
0
votes
0answers
5 views

Send Photo with Arduino Uno [migrated]

I'm new at Arduino projects. I googled but I couldn't get quite answer. I've got: Arduino Uno R3 Clone 4 pin push button 3 color RGB LED Module HC06 Bluetooth-Serial Module Card Arduino PIC ...
3
votes
1answer
66 views

SPI: How does communication work with a device that has multiplexed SDO and SDI signals?

Yes this question is related to MCP4131 which is a 8 pin digital potentiometer. I have never seen/heard/used multiplexed SPI before so am trying to clear some confusions. The datasheet shows ...
0
votes
1answer
32 views

Programming USB OTG PIC32 through USB in MPLAB

I have a PIC32 that has USB OTG. How would I program it through a USB cable in MPLAB? Does it work out of the box of does it need additional software.
1
vote
1answer
68 views

Pull high in software

I was porting Arduino library ps/2 mouse to pic and I wondered why pull high works when declaring the pin as an input and then making it high and that worked for pic and Arduino alike, but when I ...
0
votes
2answers
96 views

PIC16f877A: Working in Debug mode not working in Release mode

I am facing an Issue with my PIC16f877A controller. Its working in Debug mode with PicKit3 connected. But when I program the device for release mode, It gives no sign of working. I am using MPLAB X ...
2
votes
3answers
81 views

wav file audio samples are signed, how does DAC deal with signed numbers when it does not have negative supply?

I was looking into wav audio file specification, they may hold the pulse coded modulation data as signed our unsigned integers as well as floating point values. How does a DAC deal with signed ...
-6
votes
1answer
77 views

How does I2C work? [closed]

WARNING: I HAVE NEVER DONE I2C BEFORE. Hi. I need to connect 2 I2C devices to a PIC microcontroller with a single I2C port. I saw this answer where two I2C devices were connected to an Arduino. ...
0
votes
0answers
25 views

PICkit 3 Programs, Erases but fails on other functions

I recently bought pickit 3 with pic32 microcontroller, however I'm struggling to resolve some issues. I hooked up the PIC32MX320F064H in similar manner shown below, the picture belongs to the ...
0
votes
1answer
20 views

PIC24 Reset Issue

I am working with the PIC24FV16KM202. I am encountering resets while implementing Dispatch, which is a serial protocol that I'm working on that grew out of a project. The example that I'm working on ...
-2
votes
1answer
53 views

What is the difference between “FS Device”, “FS Device/Host/OTG”, and “HS Device/Host/OTG”?

I'm going to buy a PIC32 which has inbuilt USB support. What is the difference between "FS Device", "FS Device/Host/OTG", and "HS Device/Host/OTG"? Am I right in thinking that the "OTG" aka "on the ...
-1
votes
2answers
82 views

Why is an 80MHz PIC32 using an 8MHz AND a 32,768Hz crystal?

I saw this schematic, and they are using a PIC32 microprocessor that can do 80MHz, but they are using an 8MHz crystal on OSC1 and OSC2. Are they running the processor at 8MHz or is there some sort of ...
7
votes
3answers
352 views

SPI bus connections - to loop or not to loop?

I have a question regarding the physical connection of an SPI bus. I have an SPI master (a PIC32 device) and a number of slaves (in this case PIC16 devices). I'm only writing to the slaves, and the ...
0
votes
0answers
56 views

Convert RTC date and time to Seconds in Pic24f?

I am building an application with PIC24f where it needs to send data to server for every 120s .I have used time interrupt to do this task but internally it gives some problem so i would like to move ...
0
votes
2answers
79 views

Integer division and scaling an input

I'm trying to get my head around integer division. I'm entering a decimal number between 100 and 6300 into my program, I then need to scale this number by 100 and output the result as a 6-bit number. ...
5
votes
3answers
380 views

Writing to pins on a port without affecting other pins on that port

I'm outputting a 6-bit number on PORTA (RA0-RA5), how do I write to those bits without messing up what is already on RA6 and RA7? For example if I want to output 0x3F on bits RA0-RA5. If I use ...
0
votes
0answers
37 views

PIC24F UART PROBLEM

I am using PIC24F uart module, but it is not working properly. I have enabled the interrupt but it is not going into ISR, as I glow the leds in ISR routine on purpose to know if the program is going ...
3
votes
1answer
42 views

Cannot debug project using “MPLAB X IDE” on “PIC32 Bluetooth Audio Development Kit” with “PICkit 3 In-Circuit Debugger”

I have "PIC32 Bluetooth Audio Development Kit" (DV320032) board (with on-board PIC32MX470F512L) connected to a PC via "PICkit 3 In-Circuit Debugger" (PG164130). After some experimentation I found out ...
0
votes
1answer
79 views

SIM900A Strange Problem

Please refer to above circuit. I have a SIM900A module connected with the UART of a PIC. D1 toggles every second, using timer interrupt, to indicate that while loop is running satisfactorily. D2 ...
0
votes
1answer
36 views

pic32 debug char pointer declaration

I'm working with a PIC32MX564F128H in MPLABX 2.35 with pickit3. I'm trying to parse a message from UART. The character is received properly, but I'm stalling when I attempt to copy a character to a ...
10
votes
6answers
1k views

What is the purpose of a microcontroller bootloader? [duplicate]

From my understanding, for a common microcontroller (e.g. AVR, PIC), there are generally two methods of programming its flash memory. Using a programmer: In-Circuit Serial Programming (or some ...
1
vote
3answers
140 views

SPI between MCUs

As a newcomer to PIC programming, I am looking for some thoughts on how to implement SPI between a master and slave MCU the most efficient way. The purpose of this system is to provide an extremely ...
0
votes
0answers
28 views

PIC18F66K80 conflict via ADC (RA0) and initialize ECAN-module

right now i am quite familiar with the can-bus communication via labview and the pic. I startet to merge the pure data acquisition on the pic (e. g. temperature) with the can communication. At this ...
0
votes
0answers
36 views

conversion of kp,ki values

I have tuned a pi controller with kp, ki values in integer form using matlab simulink tool.To implement the pi on dsPIC33f it a requires fractional pi controller.How to convert conventional pi values ...
0
votes
1answer
36 views

can't figure out why dsPIC digital input is not working

Having trouble getting a basic digital input to work correctly. Just trying to use it as an additional condition for an LED flasher to work. Right now their example code works just fine but when I ...
1
vote
1answer
97 views

Why can I read accelerometer and gyroscope data on the LSM9DS1 with SPI, but not the magnetometer data on the same device?

I'm currently working on a device that uses the LSM9DS1, a 9-axis motion sensor by ST Microelectronics. I’m using a PIC24FJ128GB202 microcontroller by Microchip, and communicating with the sensor ...
0
votes
4answers
130 views

How to design Current Amplifier circuit to amplify the signal current to 1A

I am trying to design a current amplifier circuit to amplify a signal current to 1A. Application : I am generating a signal using microcontroller (for ex : Pic16f877A). This signal is 5v having 10mA ...
0
votes
3answers
53 views

PIC PWM output port

I am just starting to learn how to program a pic. I'm pretty much teaching myself this. I'm using the pic16f1829. I'm playing around with the examples and trying to do PWM. Obviously, it works and the ...