Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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".

0
votes
0answers
10 views

PIC32MZ: Changing the I2S baud rate on the fly

I am using the I2S driver on PIC32MZ1024EFE064. I want to change the baud rate of the I2S after some timeout (say 64000Hz for 10 seconds, then switch to 16000Hz for next 10 seconds and so on...) The ...
0
votes
1answer
60 views

PIC microcontroller not working without PICKIT3

I was trying to program a PIC microcontroller with MPLabX 5.1 and PICKIT3. I'm having a weird problem. After flashing the program, with PICKIT connected, the MCU works fine but after disconnecting it ...
0
votes
0answers
24 views

GPS to PIC Microcontroller to XBEEPRO S3. Data from GPS becomes distorted after passing XBEE

We are using XBEE S3 as a transmitter of data taken from the GPS. The GPS data passes the system this way: GPS-PIC-XBEE. The GPS data that we are receiving on the other receiverXBEE becomes distorted ...
0
votes
0answers
19 views

how to implement Pic18f97j60 with PoE Ethernet

I am a beginner when it comes to mcu and electronics design, I did some projects on Arduino and other ready made microchip boards. However this is my first time building something from scratch. I ...
0
votes
0answers
59 views

Phototransistor interface to PIC

simulate this circuit – Schematic created using CircuitLab Electronical novice (but Advanced Idiot) here. Trying to interface a phototransistor to a Microchip PIC I/O pin. Per the ...
1
vote
1answer
28 views

dsPIC system configuration bits in MPLAB X project vs the same config bits in the code

I can setup system configuration bits (fuses) in the MPLAB X project and/or in the code directly: I understand that the ones on the Configutaion Bits tab are ...
0
votes
2answers
68 views

Problem designing a PIC to just print on the LCD hello world

I have programmed a PIC before. The function of this PIC was to display Temperature based on an NTC, my little cousin yesterday messed with the wires and now it is not printing anything on the screen, ...
3
votes
3answers
208 views

Choosing the right microcontroller [closed]

How do you choose a micro-controller for your project? My hardware requirements are : I2c SPI ADC channels SMD package 3.3V operating voltage A few GPIOs. There are so many microcontrollers ...
1
vote
0answers
29 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
36 views

can't read push button value in dsPIC33

This is the first time I work with a PIC microcontroller. I am using the Clicker 2 for dsPIC33 board (dsPIC33EP512MU810), and so far I am trying to implement a basic programme for testing the board. ...
0
votes
1answer
26 views

PIC QEI encouter values being weird

I'm getting weird values when using the QEI on the dspic33. The QEI counter goes up to about 32700 then goes to negative 32650 and starts decrementing to 0 where it starts from 32700 and starts ...
1
vote
2answers
239 views

What does the number of “ single-word instructions ” mean on a MCU's memory specifications?

I have copied the following sentence from a PIC MCU datasheet: "PIC18(L)F26K22, PIC18(L)F46K22: 64 Kbytes of Flash Memory, up to 37,768 single-word instructions." the question is what does " 37,768 ...
0
votes
2answers
46 views

USB EC vs PIC MCU [closed]

I'm trying to make a peripheral with an embedded USB hub, which will include USB-C 3.1. As I've been researching USB I've found that Microchip has a whole slew of embedded controllers dedicated to USB,...
0
votes
1answer
35 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 ...
0
votes
2answers
75 views

PIC interface with Relay

I am interfacing a PIC16F877 with a 5V DC relay. I hooked up the relay to the same 5v that power up my PIC with the appropriate transistor, diode, voltage to power up an LED to NC and LED to NO, I ...
0
votes
1answer
46 views

GP4 on a PIC12F683 microcontroller not functioning correctly

I am attempting to make a project wherein I have some LED's on pins GP2 and GP4 of a Microchip PIC12F683 microcontroller flashing in a simple pattern. The problem is that I cannot write to GP4 ...
0
votes
1answer
39 views

CT measuring circuit with PIC

I am using external CT to measure Current parameter. I am using PIC16F1938 to measure analog . Now here i am looking for circuit and calculation involved to get proper current rating datasheet Min ...
1
vote
1answer
66 views

Facing Issue to interface switch relay & potentiometer with PIC16F877a

I am trying to operate switch relay when Resistance is at peak value (1Mohm) using PIC16F877A. Now the issue is as below, When i run the same code with Proteus , Its working fine. But when i run the ...
0
votes
1answer
50 views

GPIO input state with undefined voltage

I am using PIC32MX350 series controller, on one GPIO , that is defined as input , and input that pin goes form one SMPS (PN : - PSC35 , IO Name :- AC out). Since SMPS IO is open drain we add a pull up ...
0
votes
2answers
70 views

PIC simple LED ON not working

I have been trying really hard to just get a PIC to turn on an LED, i know its super simple but for some reason i just cant figure out, its not turning ON! I am using an old fashion PIC16F877, I am ...
0
votes
1answer
69 views

AD7798 ADC data read problem

I'm facing problem when reading data register. The SPI communication works perfect, all the registers can be write/read. The data register show -1 (which in datasheet indicates that there is a problem ...
0
votes
0answers
11 views

PIC32 mplab interrupt harmony

I am trying to use interrupt for PIC32MZ2048ECH100 microcontroller mounted on explorer 16. ...
1
vote
1answer
67 views

CAN Controller + PIC32

I have been trying to design a functional board which combines the hardware of the Elecrow Arduino Uno CAN bus shield with a microcontroller board, which functions like an Arduino except with ...
1
vote
1answer
76 views

Copy protect program code in PIC microcontroller

I'm trying to copy protect my code which i program in my PIC16F886 microcontroller. I've set the below CONFIG options in MPLABX and compiled it, got the output hex code. But no matter i set it, i'm ...
0
votes
0answers
28 views

PIC18F26K22 interrupt INT0

I use to work with PIC18F1320, with nearly all interrupts and it works fine. I have a new project that needs some more pins and I2C. So I decided to use PIC18F26K22 (the board is done). But on that ...
0
votes
1answer
40 views

Write collision for multiple reads - PIC24 I2C

I am trying to poll a CAP188 sensor so I'm sending it read commands in a while loop, but the first read works and then on the second read when I send the slave address it detects a write collision. ...
-1
votes
0answers
32 views

Multiple Reads Not working- PIC24 I2C

I'm trying to read from a register on a CAP1188 using my PIC24FJ64GA002 multiple times (will be polling it) and it only reads the correct data once and then on the second read it gets stuck waiting ...
0
votes
0answers
66 views

Going from PIC to ARM

I've been wanting to expand my embedded skillset with ARM MCUs after spending a few months working with pic24 devices but I've hit a roadblock. I wanted to start programming ARM more "on the metal" ...
2
votes
2answers
42 views

PIC24 DATA EEPROM Emulation __builtin_tblpage error

I am using PIC24fj256ga702 controller in my project. I wanted to store some bytes data in a non-volatile memory in case if there is a power loss. so i wrote some functions following http://...
-1
votes
0answers
24 views

Serial interface / AT response check between MCU and SIM808/SIM800C modules

I have two boards which uses a PIC32MX [470F512L, running at 100MHz] microcontroller, one have a SIM808 (GPRS+GPS) and the other have a SIM800C (GPRS only) module. The microcontroller uses 2 serial ...
1
vote
2answers
40 views

PIC32MZ, MPLAB Harmony with I2S hangs after adding extra function

I have referred http://microchipdeveloper.com/harmony:i2s-tutorial and am able to configure the I2S and read continuous data from a microphone. I am facing issue with the microphone data, and have ...
1
vote
1answer
65 views

PIC32 receives/transmits improper data on serial port

I have referred http://microchipdeveloper.com/harmony:example-usart-dynamic-wf32 to configure the UART and send/receive data between PC(Putty) and my PIC32MZ. The demo program in the link receives ...
0
votes
0answers
16 views

UART Current in PIC18F46K22 & 7404 Input Current

I am currently making a decision to invert the UART signal from my PIC18F46K22 and have 2 choices to either use 74LS04 and 74HC04 but there is a difference between the LS and HC that the LS can output ...
-2
votes
1answer
30 views

Sensors for PIC microcontrollers [closed]

I recently started working with PIC Micro-controllers and I am thinking of working on a project to get a hands-on experience. I am looking to interface a few sensors with the PIC via the EUSART and ...
1
vote
1answer
48 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
1answer
57 views

PIC32MZ: MSB of I2S data from digital microphone is always high

I have interfaced a I2S digital microphone to PIC32MZ controller. I am able to read the digital output from the microphone over I2S-DMA transfer. Following are the details of my set-up:- Controller:-...
-1
votes
0answers
80 views

I2C SCL high and SDA low

I have been trying to debug my I2C on the dspic33 and right now I'm not sending anything over the I2C and have it in IDLE mode. I only see the SCL being high and SDA being low. Does this mean that the ...
0
votes
1answer
53 views

PIC micro controller oscillator frequency

The internal clock (Q1–Q4) of PIC Micro controller runs at a quarter of the oscillator frequency (FOSC/4). My question is if i divide the frequency with 4 Then the timer period of each clock pulse ...
-1
votes
0answers
38 views

PIC I2C not working

I'm trying to get I2C working on a dspic33. Right now I have the ODCDbits for the SDA and SCL pins set as open drain. When i try to use the I2C it gets stuck after the start condition and the MI2C1IF ...
0
votes
2answers
60 views

Am I on the right track with the 16F1704?

I am 100% new to PICs and I know I have a lot to learn. My end goal is to have a DC motor controller that will operate a motor in one direction only and with the push of one button have the motor run ...
0
votes
1answer
65 views

Six monthly service timer with indicator

I have been requested to look at a project. The first half of the project is complete, but I am struggling with the second half of the requested specification. For the second half of the project, I ...
1
vote
0answers
76 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
1answer
57 views

DSP Library not working in MPLAB X

I have to make a digital filter with a dsPIC30F4011 (I'm completely new to microcontrollers). I was reading the documentation about the DSP Library to figure out how to use it. I created a simple C ...
0
votes
1answer
41 views

regarding the sampling frequence

In my project I am using PIC32MX250F128B controller and 23LC1024 SRAM. I have written a code to sample the analog signal from the vibration sensor. For this I am triggering my ADC with the help of ...
-1
votes
0answers
36 views

PIC QEI module overflowing

I'm using a dspic33ep512mu814 with an encoder. The issue i have is that when I go into the overflow region the pic starts giving 2's complement or negative values and then goes back to positive and ...
-1
votes
0answers
41 views

Read HB100's signal frequency with microcontroller PIC18F46K22

I'm trying to read the frequency of the signal generated by the HB100 sensor with the PIC18F46K22. As shown in the picture, the wiring scheme is composed of an amplifier module made with the OPA2365 ...
-3
votes
1answer
71 views

PIC 10F200 MCLR PIN as Output

I need To use MCLR pin to make led blinking using this configuration but I conn't write the code for that
0
votes
1answer
85 views

ModBus Timeout Error

Anyone very experienced with Modbus & RS-485??? My task is to control a DC motor using micro PIC24. The motor setting like the angle, delay, start/stop, duty cycle, etc will be sent from PC using ...
1
vote
2answers
82 views

MicroSD raw write/read mode. After sector write once, can't write more sectors and read always 0's

I am doing, for the first time, the interface between a microcontroller (PIC32MX) and a microSD card through SPI. The cards I'm using are initializing correctly. The sector/block size is fixed at 512 ...
0
votes
1answer
106 views

How to get 50 Hz sine wave from inverter bridge driving PWM pins of MCU

I am using this circuit to see the sine wave coming from a DsPIC Pins to check the shape of sine wave created from my sine table. PWM frequency is 18 kHz But the sine wave does not seem to be ...