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

Filter by
Sorted by
Tagged with
1
vote
1answer
256 views

How to synchronize PIC PWM clocks?

I'm considering a design which has multiple PIC-based controllers producing PWM signals at 31 kHz. Sometimes, under a well-defined "handover" condition, some pair of PWM power feeds will be connected ...
2
votes
2answers
43 views

PWM use in dsPIC3EV - XC16

I'm learning to use dsPIC33EV and XC16 for a project where I need 4 PWM outputs, but I'm not sure if the PWM outputs of this uC are independent because they are named like PWM1H and PWM1L. Can I use ...
0
votes
2answers
604 views

PIC32 UART TX working perfectly RX not

I am using PIC32MM0064GPL028 to drive RGB+W LEDs via TLC57911 LED drivers. The idea is - data from python script -> Easysync USB to RS-485 -> ST485ECDR transceiver -> PIC32MM0064GPL028 -> TLC57911 -> ...
0
votes
2answers
56 views

How is the minimum resolution that pic 18f458 can work?

I'm reading an analogic signal (0-5v) with a pic 18f458 by an0. I'm setting an3 as vref+ and used a 3.3V Zenner. I'm changing the signal with a potentiometer. I've used a multimeter to check the ...
1
vote
3answers
495 views

PIC18LF24K40 I2C read and write using Polling method

I'm trying to implement read and write routines using Polling method for a PIC18LF24K40, write seems to work, but not read. I cannot figure out what i am doing wrong. EDIT: Reading a byte stored in a ...
0
votes
2answers
229 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 ...
2
votes
1answer
670 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
1answer
151 views

Issues with OLIMEX PIC18F4550

I am having issue with my OLIMEX PIC18F4550 (link). I am not able to view any tools in my IPE. I am using PICkit 3 from Microchip. I think the issue might be that OLIMEX isn't powering up. I have ...
3
votes
1answer
153 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
3answers
2k views

MPLAB XC16 compiler outputting 8-bit HEX files for PIC24?

I am trying to understand a HEX file I compiled with Microchip MPLAB X IDE using the Microchip MPLAB XC16 Compiler. Concerning the MCU, I am targeting the PIC24EP512GU814. However the scope of this ...
1
vote
1answer
801 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 ...
0
votes
0answers
34 views

Replacement DAC for MCP4922

I have designed a circuit for controlling a device in the lab, using a Microchip PIC32MX Microcontroller, connecting via SPI to a pair MCP4922 DAC, the output is then adjusted with an operational ...
0
votes
1answer
46 views

How to implement POE on PIC18

I am trying to create a PCB containing a PIC18F66J60. I want to power the board using POE. For the POE i plan to use the TPS2375PW. The two IC's have two quite different refferent schematics in their ...
1
vote
1answer
175 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 ...
0
votes
1answer
349 views

How to read potentiometer input from dsPICDEM MCLV-2 Dev Board - dspic33

I have very little microcontroller knowledge so please bear with me. I am trying to figure out how to use all of the inputs on the dsPICDEM MCLV-2 Dev Board. Specifically, how do I read the ...
0
votes
1answer
189 views

PIC18F26J50: how to use printf in C18

I'm trying to use the printf family of functions in C18 for a PIC18F26J50. In my system, the output should go through the UART and show up in RealTerm. Here is my ...
0
votes
2answers
693 views

HC12 Serial RF Transceiver with PIC16F886 Microcontroller

I'm trying to do a wireless communication between two PIC microcontrollers (PIC16F886) using the TX/RX lines using HC-12 RF transceiver modules (datasheet link below). https://statics3.seeedstudio....
1
vote
1answer
1k 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 ...
0
votes
1answer
60 views

Correct design for Pickit 3 ICSP

I am a software engineer messing with some electronics I can't figure out why I can't program with my PicKit 3. I need some help understanding why I can't program my microcontroller. I am able to ...
0
votes
2answers
161 views

PIC12F675 - 2 input 2 output 'XOR' output

I am facing a peculiar problem or this is known to others which you can help educate me. I'm running the below code on a PIC12F675, but the conditions never seem to work. Tried it on hardware, and ...
1
vote
1answer
317 views

No change in MPU6050 values when interfaced with PIC. Why?

I'm trying to interface mpu6050 module with pic16f886 microcontroller. But, i'm getting x-axis, y-axis and z-axis as 0. Why is there no change in readings even when i move my mpu? edit: This is the ...
3
votes
1answer
4k views

What better options are there than the LM1893 for powerline communications?

I'm looking to build a home automation system which uses the powerline to carry the data between nodes. I have an old design based on a combination of LM1893, HC123 and 8748, but the slave board is ...
2
votes
1answer
583 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 ...
5
votes
3answers
224 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 ...
0
votes
3answers
280 views

PIC16f88 not debugging

Disclaimer, i am more or a hardware designer and not so much a coder, i can code but i'm not the most proficient at it. I have a project I'm working on that has a portion of the code that appears to ...
0
votes
2answers
75 views

24V Bridge Rectified Relay Circuit blowing L7805 & PIC18F

I've got a circuit which is powered using a 24VAC transformer fed into a KBU606G full bridge rectifier to generate 24VDC. Originally there was a 470uF smoothing capacitor, however I was unaware that ...
3
votes
2answers
3k views

My code tries to configure the CAN device, but it never leaves configuration mode. Why?

I'm using a PIC32MX534F064L, and I just started working with the CAN module. The first thing I tried was using the examples from Microchip. None of them worked. The basic problem is these lines: <...
0
votes
1answer
145 views

Attenuator Input Voltage Problem

simulate this circuit – Schematic created using CircuitLab I'm trying to use an attenuator with a PIC32 microcontroller. Basic idea is that; 1) I enter attenuation value through computer 2) ...
-2
votes
1answer
39 views

What is the difference between dsPIC30F 2023 and dsPIC30F 2023-30I/PT

I am new to PCB design and microcontroller programming. I want to start a project of a digital SMPS for the bench and I have chosen the DSPIC30F2023 as a controller for this purpose, but I cannot ...
0
votes
1answer
55 views

Drone ESC causes motor to twitch and beep when powered and PWM signal applied [closed]

I'm trying to make a drone from scratch, and have bought four of these ESCs and motors from Ebay. Now, I've got one of the ESCs hooked up to a 7.4V lipo battery, and the 3 pin cable running to a PIC ...
0
votes
1answer
263 views

Earth& neutral voltage detection

Can someone suggest me circuit to detect the earth to neutral voltage. I would like to trip relay coil using microcontroller if earth to neutral voltage exceeds 3v. There are device RCB and RCBO ...
0
votes
1answer
70 views

Strange behaviour of PIC18F14K50 EUSART. it only works when the logic analyzer probe is connected

I'm using a PIC18F14K50 and a RS485 bus transceiver (ADM3485) to communicate with a Modbus RTU sensor network. the PCB is not designed by me, (and it has a very foolish/compact design, so it makes it ...
-4
votes
1answer
97 views

PIC16F18446 ADC says 12 bit but max value is 3ff which is only 10 bits? [closed]

What am I missing? For a 12 bit value I'd expect the range to be 000 to FFF, but I see 000 to 3FF. Is the doco wrong or am I misunderstanding?
0
votes
2answers
62 views

PIC16F18446 Tristate output pins controlled by the value of another pin

In many 74xx chips the high impedance state of pins is controlled by a OE pin. I want a similar functionality for my PIC device. I understand that I could use code to flip the config bits to make the ...
0
votes
1answer
187 views

Add Ethernet Switch chip to project based on PIC18F97J60

We developed an Ethernet-connected device that uses the Microchip PIC18F97J60 controller. This particular PIC contains the PHY that allows us to simply connect the chip to Ethernet magnetics and then ...
2
votes
1answer
330 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 ...
3
votes
2answers
483 views

Having a problem programming the UART and the PPS for my PIC24F

I want to do a simple project with my PIC24FJ1024GB610, where I use the UART1 module and transmit character 'a', the Transmitter pin is connected to the Receiver pin of the PIC24F, if the receiver ...
0
votes
1answer
44 views

Which pins should I connect to program a PIC chip using the SNAP programmer?

this seems like this question has an obvious answer but despite looking through the datasheet of the PIC MCU I'm going to be using (the PIC18F45K22), and the SNAP programmer user guide, I can't find ...
0
votes
3answers
3k views

Using 16 x 4 Alphanumeric LCD with MikroC Pro for PIC compiler

I am trying to interface a 16x4 LCD to a PIC16F877 MCU. The project is just a digital clock showing date and time from a DS1307 RTC. The display works correctly when I use a 16x2 LCD. But if I try to ...
0
votes
3answers
103 views

LEDs combinational circuit series and parallel

I have a project involving lighting up 12 dual LEDs using a 9-Volt DC Power Adapter with Max current of 500 mA According to the datasheet Dual LEDs datasheet the forward voltage is about 2 V at 20 mA. ...
0
votes
1answer
238 views

How to Update firmware of microcontroller using DALI lines of a DALI slave module?

I have developed a DALI slave module with PIC 16F18326 microcontroller. Now, I want to make a Bootloader for this PIC. But the problem is, I don't have a serial communication or USB connection with ...
0
votes
0answers
85 views

Assembly Code for my Microcontrollers Class

I am trying to write some assembly code for my Microcontrollers Class. Here is the assignment: Make a program that converts a 4-bit binary number in one hexadecimal number (0-F). The output value ...
0
votes
1answer
848 views

My MPLAB X IDE debugger gives me an error whenever I try to debug my PIC24 Explorer 16/32 Development Board

I am doing a simple program for my PIC24FJ1024GB610 Microcontroller from Microchip, using the Explorer 16/32 Development Board, it has it's own PKOB (Pikit On Board circuitry). My IDE is: MPLAB X IDE ...
0
votes
1answer
567 views

MPLABX with PIC18F4550 Debug and programming are not working

First I used MikroC for PIC to modify a firmware to a PIC18F4550. I was programming the device using MPLAB IPE and the PICKit3 programmer, everything was ok. Now, I need to change to MPLABX XC8 ...
1
vote
3answers
4k views

How to build the simplest assembly file in MPLabX IDE 5.4

I just started learning assembly coding in MPLabX IDE 5.4. Without connecting any hardware, simulator or debugger, I simply want to build an object code file and generate a listing file from an ...
1
vote
1answer
258 views

Differential CVD waveform in PIC18F45K50

I am using PIC18f45K50 for capacitive touch button using a differential CVD. My capacitive button works. However I am not able to get the standard differential CVD waveform suggested by Microchip. Has ...
0
votes
1answer
192 views

Specifying relay for breaking injection molding control circuit

I have an application which requires me to break a 24v signal running with low current (60ma being the absolute max). The signal stays on allowing a large hydraulic motor to close a mold with great ...
0
votes
1answer
171 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.
0
votes
1answer
387 views

pic18f4550 header file error

I am working on eeprom, i am getting the error as follow In file included from spi.c:65: C:\Program Files (x86)\Microchip\xc8\v2.10\pic\include\pic18f4550.h:1726:3: error: typedef redefinition with ...

1
2 3 4 5
53