A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [pic]

PIC is a brand of 8, 16, and 32 bit RISC microcontrollers manufactured by Microchip. "PIC" originally was an acronym for "Peripheral Interface Controller".

204 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
1answer
638 views

Is it possible to use Microchip's ZCD (Zero cross detect) circuitry in an isolated SMPS?

Let's say you have a device which is fed by AC line voltage and features an isolated SMPS. The switcher outputs 5 VDC, and that powers a PIC micro. I'm curious how is the Microchip's ZCD (Zero cross ...
3
votes
0answers
425 views

OLED display using dspic33f i2c

I am trying to use OLED display in a dspic33f microchip. I've successfully initialized and sent data using I2C to OLED. I managed to display a small font(8pt) on the OLED. However, when I tried a ...
3
votes
0answers
497 views

dsPIC: Link assembler project with XC16 in command line mode

I have an assembler project that compiles and links fine with MPLABX. Now I am trying to build it from the command line. Attempt to use the command line from MPLABX fails. When I am calling: C:\...
3
votes
1answer
2k views

I2C Raspberry Pi to PIC24F

I'm new to PIC's and PIC programming but I'm working on a little project to try get a PIC24F32KA301 to communicate with a Raspberry Pi using I2C. The Raspberry Pi is the master and the PIC is the ...
2
votes
1answer
100 views

How to properly step down the voltage of a DC+AC signal that then goes inside a pin of a PIC?

The reason of the question is because i don't know if this is the correct way of regulating a signal that goes inside the pin of a PIC that accepts a signal that goes till 3V3. In the following image ...
2
votes
1answer
74 views

PIC32 having multiple PORTB's “high” at the same time

I am trying to set a couple of PORTBbits to "high" (1) at the same time for that I am using the following code: I am using thePIC32MX695F512H ...
2
votes
1answer
217 views

Interfacing with a truck's internal CAN bus system

I'm currently exploring different ways by which I can communicate with a truck's internal CAN bus system and would like some advice on the most appropriate solution for me. I have overviewed the CAN ...
2
votes
0answers
637 views

Dumping contents of read-protected PIC

I have a need to read out the flash memory of a read-protected PIC16F57 (this is for legal purposes). From my basic research, there appears to be no way of doing this short of decapping it and reading ...
2
votes
1answer
108 views

PIC16 - MSSP Peripheral I2C Master Halting In Middle of Clock Sequence?

I'm using a single PIC16F18857 as an I2C master to talk to five PIC16F1615's on the bus. All is working great, for the most part, however, I've been experiencing a "lock up" where the master is stuck ...
2
votes
0answers
277 views

dspic30F2020 read two ADC channels

I'm working on dsPIC30F2020 to read two analog channels sequentially on AN0 and AN1. But all I got is only the value from AN1, so what's wrong with my codes below? Thank you very much for the help <...
2
votes
1answer
242 views

PIC16F1783 Inclinometer Project using Accelerometer 12-bit ADC issue

I am working on an inclinometer project using an accelerometer, MMA1220KEG and a PIC16F1783, it is designed to switch a relay when the angle of inclination is below 15 degrees and illuminates a series ...
2
votes
1answer
429 views

Microchip PIC24's DMA doesn't work as expected

I am trying to configure the DMA in Microchip's PIC24FJ1024, DMA channel will transfer Data, from Source to Destination, every time the program trigger the DMA Channel. One Shot Mode SRC increments ...
2
votes
0answers
107 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 ...
2
votes
0answers
229 views

PIC 16F877A interface with glcd LM12864DDY

I'm using the CCS C Compiler to program my PIC 16F877A to display results of a voltage measurement. I'm using TOPWAY's LM12864DDY. I used the functions that were available in the glcd.c file in the "...
2
votes
0answers
156 views

Best device to read/write memory on multiple architectures?

tl;dr: I want to read/write memory from a PIC MCU and an EEPROM, both of which are soldered to an experiment board. I would like to explore programming and debugging ARM in the near future. Which ...
2
votes
0answers
1k 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
0answers
373 views

pic24fj128ga310 uart not working in application, but works with PuTTY

I'm trying to connect a PIC24FJ128GA310 mounted on an Explorer 16 board with an embedded wireless module. I have been able to set up both to communicate perfectly well with PuTTY (an equivalent to ...
2
votes
1answer
137 views

UART stop bit baud timing error

On PIC micro controller UART, Baud rate was set to 38400 (No parity,, 8 data bits), ...
2
votes
1answer
470 views

Can half-bridge current limitation in BLDC Motor controller cause MOSFET destruction?

I’m developing a motor controller based on a dsPIC33EP64MC504 from Microchip. The motor is a brushless permanent magnet synchronous motor of about 500W on 50V. The controller is based on an SVM ...
2
votes
1answer
593 views

PIC32MX can't get 80 MHz Clock from Internal RC OSC

I am using PIC32MX795F512L with the internal RC oscillator. By changing the settings of the config, I can get to 60 MHz max. But I can't get to 80 MHz. When I change the config for 80&#...
1
vote
0answers
85 views

PIC ADC Protection

I am working on a project that samples a 1 kHz signal @ 20 kHz, the signal is 5Vpp biased on +2.5V that way everything is fine. I want to make a protection schematics to work along my offset. I am ...
1
vote
0answers
84 views

Can't decide: PIC24 or PIC32

I've been in the PIC-world for 12 years but only been using PIC10/12/16. For the next (one of-)project I will need a PIC with USB Host-mode, which means 24 or 32. Both architectures are ridiculously ...
1
vote
0answers
133 views

PIC18F4550 - Display 16X4 and menu with more than 4 items

I need to print a list of items of a menu in a 16x4 LCD using a PIC18F4550. I already did it using MPLABX and XC8 compiler and it worked fine, however, I need to migrate it to mikroC environment. But, ...
1
vote
1answer
190 views

Programming of ADC in PIC12F675: Not Working Properly

I'm new to embedded systems and I want to program a PIC12F675 for a project. So, the idea is that there is a switch. If the switch is off, the microcontroller normally outputs a clock signal, which ...
1
vote
0answers
67 views

How to specify in the project or firmware of the application, where to start writing the code?

I have a bootloader to PIC18F4550 that was written using Mikro C for PIC and I have two firmware applications, one was written using Mikro C for PIC and the other using MPLAB X with XC8 compiler. With ...
1
vote
0answers
32 views

How do you get the call ringing response after sending ATD from gsm module?

I have a gsm module. I want to know which AT command can tell me if the target phone is ringing or not. I want to count time between start of ringing and user response Example: atd12345 ...
1
vote
0answers
69 views

ZCD with PIC 18LF45K40

I want to implement phase angle control for a single phase ac fan. To achieve that we need a ZCD circuit interfaced with a microcontroller to get a pulse at zero crossing. As our circuit has some ...
1
vote
0answers
86 views

SMBus Read Word Protocol

I want to communicate with a device that is using SMBus. I use PIC18F26K83. I am inexperienced but before that I implemented I2C communication. In I2C communication, what I do in order to write to ...
1
vote
0answers
140 views

PIC10F222 Failed to program device

Every time I try to program my hex file I get an error: The following memory area(s) will be programmed: program memory: start address = 0x0, end address = 0x3b configuration memory program memory ...
1
vote
0answers
89 views

How to make use of Internal Oscillator in PIC16F676?

Im a beginner in PIC and using PIC16F676 for making an LED blinking program. But every tutorial uses an external oscillator. I want to make use of the internal oscillator to do this, so can anyone ...
1
vote
0answers
33 views

Initial values of the dsPIC30F registers under the ICD3 debugger

Ok, I created a simple project that consists of just a few assembler files and it is not using any libraries. What is it doing is not important here. After that I have put breakpoint in ICD3 right on ...
1
vote
1answer
262 views

PIC32MX UART Interrupt Not working

I am writing a program to send data from one microcontroller and receive the data using on another PIC32 microcontroller and display the received data on LCD. I am using UART2 of both PIC32MX to send ...
1
vote
1answer
90 views

Which UART is used on the Explorer 16 development board with PIC32?

I am trying to use "PIC32mz2048ech100" on "explorer16" to get "UART" communication. Can anyone let me know which uart channel(from 1 to 6)of PIC32 microcontroller is connected to explorer 16.
1
vote
0answers
409 views

FIR filter in dsPIC with DSP Library

I have to make a digital filter with a dsPIC30F, but I don't know much about it. I've read part of the documentation about the dsPIC30F and the DSP Library, and I found a page on Microchip website ...
1
vote
0answers
147 views

PIC assembly: express integer constant as string at build time

One of my engineers came to me with a question that I can't answer. This is for a project using a PIC16F controller, all written in assembler. He is defining a constant that he wants his program to ...
1
vote
0answers
149 views

Why more codes do not work with PIC microcontroller when RAM and ROM have free spaces

I code for reading EEPROM and edit those EEPROM data and work with those data. Normally I am coding something and upload to PIC and check that code. When I am code more than some point it is not ...
1
vote
1answer
213 views

Append Two String to LCD Using MikroC and Proteus

I tried to read EEPROM values and display that value with a string. This is my MikroC code: ...
1
vote
1answer
87 views

PIC16LF1786 change PWM pin on CCP3 with APFCON1

PIC16(L)F1786 has 3 CCP modules. I need a PWM signal on RB5 pin which belongs to CCP3 module, as well as RC6 pin. BUT, when I am setting up the PWM according to the datasheet (page 277), I am getting ...
1
vote
0answers
72 views

How does ADC rate affect this filtration circuit?

I'm doing some theoretical design for a simple dsPIC-based ADC circuit. Both the device specsheet DS70000657H-page 30 and application note Analog and Interface Guide say that: AVdd and Vdd can be ...
1
vote
0answers
57 views

Daisy chaining power through mcu modules

I am really sorry if the following question is too obvious and basic, I am trying to understand how I can do this right. I have five 5V PIC custom modules that I am trying to power, using a daisy ...
1
vote
0answers
70 views

Migrating from C18 to XC8 ADC Conversion Issue

I'm working with Pic18f6622 and migrating my program into XC8 compiler. Before I'm using the C18 compiler ADC conversion was working just fine, but in new compiler ADC returns me 11 bits value and the ...
1
vote
0answers
89 views

CCP PWM Strange behavior - Brief failing

I am trying generate a PWM using CCP and change its frequency on the fly, going from 1.15KHz to 3.28kHz in 180ms. I am using: PIC: 16F887 Frequency: 4MHz (internal) Compiler: CCS PCM C ...
1
vote
0answers
75 views

How can firmware loaded into a PIC16F87XA detect if Program Memory Code Protection is enabled?

The PIC's (PIC16F87XA) firmware can be programmed by an external programmer and have the Flash Program Memory Code Protection bit set or cleared. How can the firmware check that the protection is ...
1
vote
1answer
959 views

Two PIC 18f4620 , one as master & the second is slave I2C communication problem

Link for PIC microcontroller 18F4620 datasheet if you may need it I use "Mikroc for PIC pro 6.0" as a compiler and I write a program to communicate between two 18f4620 one is master and the other is ...
1
vote
0answers
422 views

dsPIC33 Fcy is half the desired frequency

I'm working on a dsPIC33EP64GS502 trying to make it work at 70 MIPS with the internal oscillator. This is my code: ...
1
vote
0answers
297 views

Serial Flash always returning 0x00 while reading after writing

Could someone look into the code and tell me the mistake in the code I am trying to Interface PIC16F877a and AT25SF041 serial flash. I have pulled up CS pin to 5V using 1K resistor The flash is ...
1
vote
1answer
157 views

Issues with SPI slave select on PIC18F4321

I'm trying to get 3 PIC18F4321s to communicate using SPI, with one of them in master mode and the other 2 setup as slaves. We first got it working with just 2 devices and no SS (slave select) signal ...
1
vote
1answer
922 views

PIC24F MPLAB X MCC Microchip Code Configurator SPI driver issue

Currently doing a project using a PIC24F communicating with a HSC Honeywell pressure sensor (Honeywell pressure sensors SPI protocol document) Due to time restraints and this being the first time I'm ...
1
vote
0answers
66 views

dsPIC33EP512GP502 -> ADPCM?

It seems that ADPCM is all but non-existant anymore. But I'd like to use this to compress six high-quality audio channels into a smaller bit-stream with little overhead. There seems to be a dsPIC G....
1
vote
0answers
64 views

Initialization problem with 16F877A in C

I have some experience with PIC micro controllers ASM. But decided to move on to C. Having installed MPLABX IDE V3.55 and with the C compiler XC8. I now try to realize a program for PIC16F877A. After ...