Stack Exchange Network

Stack Exchange network consists of 175 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".

-1
votes
2answers
51 views

PIC32 Real Time Clock and Calender. What is a use case?

I have observed that some PIC32MX micro-controllers have an inbuilt RTCC peripherial. The first feeling i had when i saw this was joy, as it meant i could eliminate a component of my PCB. However ...
1
vote
2answers
44 views

Rs485 to UART convension

I need to send data from one PIC to another PIC by using RS485. As a protocol I use UART. However, I cannot be sure about RS485 transceiver and its circuit. I will be able to supply 5 V and according ...
-1
votes
0answers
57 views

Using a coin vibrator on a PIC18 MCU

I was wondering how could I add a vibration to a PIC18F45 MCU so that when you touch a key, it would vibrator? I would like to use a dedicated pin from the MCU. Here is an example of a vibrator ...
0
votes
1answer
49 views

Visualise a bit pattern

My objective is to send a bit pattern of 1000 bits from one microcontroller (PIC or Atmel) to another one using the SPI method. How can I visualize the bit pattern so I can find the errors of ...
0
votes
0answers
19 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
1answer
53 views

UART TO RS-232 convension

I am working on a project and I use several PIC18F26K83's for this project. For communication between PIC's I use UART. Now I also need to send data with RS232 to the user. As I have understood the ...
0
votes
1answer
28 views

When to monitor UxSTAbits.TRMT and UxSTAbits.UTXBF

According to the reference manual on UART for PIC here(page 7), the UxSTA register have two read-only bits; TRMT and UTXBF. While writing a simple transmission program over UART, I didn't notice any ...
0
votes
0answers
11 views

In PIC18F4550,But CCP1 Compare Interrput using Timer1 is not working in Relaese Mode but works if use debug mode with pause & Start

I am using PIC18f4550. I am using Timer0 for time keeping which alone works fine. I have tested CCP1 interrput using TImer1 for pulse generation. It also works fine. When I mergred Timer0 time ...
0
votes
1answer
43 views

PIC18F26K20 PWM Configuration

I am working with PIC18F26K20 and MPLABX IDE. I wrote some code for configuring and running the PWM. However, The output I get is at 50 percent duty Cycle no matter what duty cycle I provide the ...
2
votes
0answers
52 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 ...
0
votes
1answer
50 views

MPLAB X __delay_ms() hangs on PIC16F77A

I'm trying to use the __delay_ms() function to make an LED blink on the PIC16F77A. The reason I think it stalls on the __delay_ms() function is because whatever I set RB0 to before the delay ...
0
votes
1answer
31 views

Proteus simulation problem (beginner) - “Power rails 'VCC/VDD' and 'GND' are interconnected in net GND” errors

I'm a beginner to microcontroller programming and the Proteus simulator. I'm following this "PIC MicroController Volume Adjuster Program(Proteus 8 Stimulation)" Instructables project. When I pressed ...
0
votes
1answer
38 views

RETLW 0 and RETURN command on PIC10F222 microcontroller

When I am building a code in MPLAB X IDE v5.15 I get an Warning "Substituting RETLW 0 for RETURN pseudo-op". As I have researched the PIC10 series don't have return command so it changes to RETLW 0. ...
1
vote
2answers
36 views

DSPIC33EP AN1307 application note source code

I've downloaded source code of an application note from Microchip's web site (AN1307). In order to try it, I created a new project in MPLABX. Then I added all source and header files that I've ...
1
vote
0answers
66 views

PIC10F222 Failed to program device please help

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 ...
3
votes
3answers
222 views

How to define 14-bit lookup table for PIC/XC8 (if it's possible to do without assembly)?

I'm writing the firmware for a simple testing device that would need to store a very large lookup table (I need 13500 entries with values 0..100 decimal). The target PIC MCU is PIC16F1829 (8K words of ...
0
votes
2answers
60 views

PIC12F675 micro controller programming

I want to use PIC12F675 to control a relay such that when a switch is pressed, it should generate an output signal which should be ON for 2 seconds and then OFF for 15 seconds. This should continue ...
-7
votes
0answers
31 views
0
votes
1answer
51 views

PIC MCU and LCD display 16x2 - strange behavior

I have a LCD display 16x2 connected to a PIC32MX470F512L. On PIC32 I configure all the 6 pins used to interface with the LCD as open drain outputs on 5V tolerant pins, I have 4.7K pull-up on each line ...
0
votes
3answers
140 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
1answer
37 views

Trying to interface a simple push button with PIC12F675 controller in Proteus, but not getting output

I am trying to interface a PIC12F675 controller with a simple push button as input and a LED as output. I am trying to simulate this on Proteus to save time. Although my code works perfectly fine with ...
-1
votes
1answer
39 views
0
votes
2answers
111 views

Would SPI work in a system that may have EMI, distance =~ 60 cm

for a project I will be using 2 microcontrollers communicating with SPI 100 kbps. Distance between them will be approximately 60-70 cm but these microcontrollers will be in a case with a 24 V battery ...
0
votes
0answers
41 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 ...
0
votes
1answer
64 views

Problem with SPI wiring?

Searching for images of SPI wiring between Master and Slaves, I found that some of them connect MOSI/SDI of master to MOSI/SDI of slaves and so MISO/SDO of master with MISO/SDO of slaves, meanwhile ...
1
vote
1answer
108 views

PICkit 2 VPP voltage level error. Check target & retry operation. Error in PICkit 2

We are using PICkit 2 (STL035V2.0 See here ) to program a PIC 16F676. We got the error : PICkit 2 VPP voltage level error. Check target & retry operation. Error in PICkit 2. We also ...
0
votes
0answers
39 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
61 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 ...
0
votes
0answers
39 views

USART displays only half values when VCC is plugged in and repeats the same after VCC is removed [duplicate]

I'm trying to interface mpu6050 module with pic16f886 microcontroller. But, nothing's getting displayed on serial monitor. USART code works fine when used separately, but when added with the i2c and ...
0
votes
0answers
51 views

Using 2N2222A transistor to switch on/off NodeMCU board

I was trying to make a battery powered project by using a NodeMCU board. To avoid desoldering some parts to achieve low consumption (Like the regulator or the UART chip) I intended to use a small ...
0
votes
1answer
71 views

Starting point for DC/AC-inverter

What I have: 5VDC and / or 12VDC, a PIC micro What I want: Floating 9VAC 50Hz, able to output 1A. Googling details for this kind of inverter seemed to be a tricky case. There are a few DIY-pages ...
0
votes
0answers
32 views

Nothing seen on serial monitor - MPU6050 with pic16f886 [duplicate]

I'm trying to interface mpu6050 module with pic16f886 microcontroller. But, nothing's getting displayed on serial monitor. Been stuck here since many days. USART code works fine. I've tried that ...
0
votes
1answer
47 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
1answer
47 views

Weird behavior of pwm controlled servo motor?

Hello there I have experienced some really weird behavior from servo motor wheni try to control it with pwm. I am using dspic30f4013 and servo motor sg90 tower mini. I configured my pic with 10Mhz ...
0
votes
1answer
46 views

Serial port framing error

I'm new to pic and uart. Just trying out simple uart transmission. I'm using mplab IDE and coolterm for serial monitoring. I'm getting serial framing error. I also used PuTTY and it was printing junk ...
0
votes
1answer
39 views

Understanding PWM period and frequency calculation on dsPIC30F4013?

i am working on a project of my own, making a RC CAR. I want to my motor to be controlled with PWM. I understand the basics of basics for PWM but still I get confused with calculation. What is the ...
0
votes
2answers
130 views

Interrupt works only once - PIC16F877a

In my code, I have two interruptions, one is coming from the overflow of the TMR0, and the other one is when a button is pressed. this is the code in MikroC : ...
-4
votes
1answer
52 views

PIC10f200 does it have NVRAM available for persistant changeable data? [closed]

I have seen other PIC32xx have nvram available for permanent storage/retrival of data. Any knowledge of PIC10F200 has it as well ? Any excample would be welcome. I am looking for a way to store 4 ...
1
vote
1answer
55 views

PIC16F18877: Using I2C to read sensor (LSM9DS0) value

Every time I go through the code step-by-step in debug mode, I end up having the same value in SSP1BUF even after changing the orientation of the sensor. I send ...
0
votes
1answer
101 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
1answer
38 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
75 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
55 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
74 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
212 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
32 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
40 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
32 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
248 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
52 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,...