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

270 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
2answers
607 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
0answers
126 views

PIC timer1 interrupt never occurs

I am trying to use timer1 interrupt on PIC18F26K83. I use Micro C as compiler. So I set my timer for 30 ms and after that 30 ms, it is supposed to enter an interrupt and light the LED. But it never ...
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 ...
0
votes
0answers
66 views

PIC I2C clock related problem

I am trying to make an I2C communication with a device by using PIC18F26K83. I use 8 MHz MCU clock. While trying to set I2C clock these options: Use 8 MHz MCU clock & HFINTOSC for I2CxCLK ...
0
votes
0answers
109 views

Interfacing Audio ADC CS5381 with PICMX250128B

I want a 24 bit resolution AD conversion, so I am using an audio ADC CS5385. I am not in any way working with audio signal, but I just want to get the digital values from the ADC via the I2S interface....
0
votes
0answers
166 views

SMBus Address and BaudRate

Hello I need to communicate with some batteries ( BT-70791CK from BrenTronics). They use SMBus ver 1.1 for communication, but in datasheet of the batteries there is no information about the SMBus ...
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
0answers
130 views

EMWIN Keil LCD display shows half the screen completely!

I have written one project in Keil for STM32F103RE && ILI9325 2.8" TFT LCD, So my problem is this, the GUI_SetBkColor(GUI_BLUE); Function only fill only ...
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
326 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 ...
0
votes
1answer
120 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 ...
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 ...
0
votes
0answers
81 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" ...
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
67 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 ...
0
votes
1answer
532 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 ...
0
votes
1answer
66 views

PIC16F1827 Capacitive Touch Sensor not Incrementing Timer?

So I have a PIC16F1827 on a breadboard and was trying to get a simple demo working where I touch a wire to turn on an LED using the Capacitive Sensing Module. I was primarily going off this example I ...
0
votes
1answer
853 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
105 views

EEPROM 25LC1024 issue with PIC32MX OLIMEX board

I am trying to read the status register for the EEPROM following the instructions in this Application Note. I wanted to have the opinion of the community on the signals I am getting. They don't seem ...
0
votes
1answer
86 views

PIC18f46K40 Datasheet/MCC discrepancy

I have found a problem with the PIC18f46K40 datasheet or a problem in MCC - I am using the 44-pin TQFP package. In the datasheet, the pin layout for the PIC18f46K40 is given below: The MCC (MPLABX ...
0
votes
0answers
419 views

PIC32 and MPLAB Harmony, USART driver

I am trying to output some ADC readings from a potentiometer over USART using the PIC32MX220F032B. I have the hardware all setup and working and i've set up a new project using MPLAB harmony and have ...
0
votes
1answer
266 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
0answers
495 views

Interrupt on falling edge PIC16F877

The PIC is supplied at 3.3V and clocked at 16kHz. For this part of the design I need the external interrupt to trigger on the falling edge of a 100Hz square wave signal on RB0 and toggle the state of ...
0
votes
0answers
60 views

is there any different characteristic between these two crystal?

I have two 12MHz crystal with through-hole package. It is intended to use for MCU crystal. On top of the crystal, one is written "12.000" and the other is written "E12.000AKDI". Anybody know what is ...
0
votes
0answers
59 views

Need a circuit to find Pulsers per revolution for a rotory Encoder

Need to find Pulses per revolution for a Renco rotary encoder P/N 77822-224 (No longer manufacture by Renco). Supply voltage: 5.0v Current: 70ma Code: Incremental and once around Pulse Marker Output ...
0
votes
0answers
311 views

How to change PIC watch dog expiration duration in run time?

In one of my application using PIC18F25K20, I set the Watchdog Timer Postscale Select bits as following for the CONFIG2H register at the beginning of the c code under configuration bits. pragma config ...
0
votes
0answers
174 views

ICSP, Debugging, UART and SPI on same pins, dsPIC30F4011

In my project I plan to use SPI1 module of the dsPIC30F4011 (datasheet pdf) micro-controller. The pin-out makes pins 1 and 44 both PGC/PGD and serial COM pins for UART1 and also SPI1 modules. I can ...
0
votes
1answer
1k views

Using I2C on a dsPIC33E

I'm having a problem using I2C on a dsPIC33EP512MU810 . I use the peripheral library for PIC24 and dsPIC33 in order to manage the registers but also wrote some functions myself. Here are the functions ...
0
votes
1answer
41 views

Low voltage signal passing through microcontroller

Can microcontroller work like switches for low voltage analog signal. I mean when press the button signal (less than 300 mV, very low amperage) pass unchanged through microcontroller (one analog ...
0
votes
0answers
532 views

EEPROM read/write problems on PIC16F18877

For a reason not clear to me I can not write to the EEPROM of the PIC16F18877. Programming is done with the XC8 compiler. Debugging with PICKIT3 The function works well in the simulator but fails to ...
0
votes
1answer
52 views

Upload Mp3/Database files from PEN DRIVE to SD CARD problem with speed

I am using a PIC32MZ2048EFH144 micro controller in my project with Microchip harmony. I am using USB for the pen-drive and SPI protocol for the SD card. Everything was working properly when I uploaded ...
0
votes
0answers
61 views

Measuring direction of a three phase motor (400VAC, 50 Hz) within a 5V-circuit

I've got a lot of motor controller boards, without the actual motor, and I'm interested in measuring at the output terminals (U,V, W) to see if there's any voltage. This to just check rudimentally if ...
0
votes
1answer
72 views

writing on external interrupt pin

I have connected 7segment display to PORTB (RB1-RB7), RB0 is external interrupt pin which is turned on to display number 8, I wrote 0b11111110, so what will happen to external interrupt when I write ...
0
votes
0answers
178 views

pic bitbang SPI library with variable frame lenght

Im trying to send an SPI frame that is 12 bits long using a pic 16F1455. Im afraid i cant do this using the hardware SPI module , which has a fixed lenght of 8 bits. I think i can do this with ...
0
votes
0answers
86 views

12 bit asyncronous USART using pic (rx)

I need to implement an asynchronous receiver USART. The length of the frame is 12 bits. I looked into implementing this with a pic 16F1455 but it only supports 8-9 bits: "Programmable 8-bit or 9-bit ...
0
votes
2answers
85 views

PIC18 LCD Screen troublshooting

I am trying to initialize a 4x20 LCD using a PIC18 in 8bit serial interface. This is an LCD I found lying around in the lab and I cant find a datasheet for this exact one. I am struggling to get it ...
0
votes
0answers
196 views

High side driver schematic

I'm working on an android controlled input/output/gauges manager for cars based on a pic24 micro controller. I'm really not an electronics expert so I had someone working on the schematics but he has ...
0
votes
0answers
49 views

Switching a sensor on/off; high vs low sided for low power consumption when connected to micro

I'm modding a PCB that has a CO2 sensor on it, powered by a battery (via a linear reg that also supplies the micro). The sensor is turned on and off to preserve battery power and the micro goes to ...
0
votes
1answer
95 views

Using ADC of PIC18F4520 to convert full-wave rectified analog signal to digital

I am building a AC voltage and current (50 Hz) data logger and I have built and tested the measuring circuit and it works fine. I used an ideal full-wave rectifier to reflect the negative voltages to ...
0
votes
0answers
182 views

RN42 Bluetooth Module - Entering command mode from C code

I am using a PIC32MX795F12 microcontroller together with a RN42 bluetooth to UART module. I can send text to the UART with no problem at 115200 baud. Using Putty I can also enter the command $$$ to ...
0
votes
0answers
138 views

I/O initialisation. Curious for the reason PIC16F18877

For the initialisation of an I/O in the pic the datasheet indicates to clear set the TRIS correctly and clear both PORT and LAT bits. I thought I understood why and the program works. When looking at ...
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) ...
0
votes
0answers
43 views

How to set PIN to variable?

I have multiple temperature sensor connected to microcontroller PIC16F887. How can I assign single PIN to a variable? Is it possible? ...
0
votes
0answers
194 views

Pic32MZ - ADC/Multiplexing?

Using PIC32MZ2048EFH144 MCU. Datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/60001320D.pdf 12 Bit ADC The board has 8 DMA Channels(Programmable/Dedicated). I am interfacing 10 ...
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 ...
0
votes
0answers
489 views

PIC18 Reading from TCS34725 Colour Sensor

I am trying to read from my TCS34725 Colour Sensor (datasheet) however I am not having much luck actually getting data back. When I make my call to read from the sensor, the values that I am getting ...
0
votes
1answer
72 views

UART: Only receiving mess on RasberryPi when connected to a PIC18

I have a PIC18LF27J53 running properly and I'm able to make an LED blink. FOSC is at 8MHz (which is confirmed through the LED). Now, I want to make the PIC send some bytes to the RaspberryPi via UART ...
0
votes
0answers
360 views

How to increase max output voltage on CCP pin using PWM on PIC16F882?

I am trying to replicate a circuit containing PIC16F882 that I found in an electronic appliance. I wrote code in MikroC that perfectly follows that logic, but the peak voltage of the CCP pin that I'm ...
0
votes
0answers
238 views

PIC 16F648A memory getting corrupted some time after programming

While learning PIC programming I suddenly encounter the problem that the programmed information from the .hex files gets corrupted after a while. After reprogramming everything works fine but after a ...
0
votes
1answer
85 views

Is it possible to access Emulating Data EEPROM of PIC32 using another PIC microcontroller?

I tried to use Flash memory of PIC32MX as eeprom (some address) to store data using microchip library , Is it possible to access created eeprom using another PIC32 microcontroller(i2c) or ARM ?