pic microcontroller

  1. meshcurrent

    why ccp set_pwm1_duty(250) does not work for servo.

    I am using PIC16F877a microcontroller. My aim is control the servo motor with pwm signal. I can create the pwm signal with RB0 pin with ccs c code. I have tried the ccp1 module to create pwm signal but I could'nt. Why does not work. And I have a question about these two ways to create pwm...
  2. T

    Pic microcontrolers IO max current?

    Hi I am using the pic 16f18313 and have an LED with 220 Ohm resistor on a GPIO pin. So drawing about 15mA. I am looking to add a buzzer(active) to same pin as an audible resource if your not looking at LED. The buzzer with 82-100 Ohm resistor draws 15-18mA (measured) witch brings the current...
  3. nhuttinger

    WS2812s with PIC24FJ128GA010 - Having Issues with controlling an LED

    Hey there, I have been trying for 3 weeks now and have had no success with controlling the WS2812s with a PIC24FJ128GA010. Here is my current code #include "mcc_generated_files/system.h" #define DATA _RA15 void one() { LATAbits.LATA15 = 1; Nop(); Nop(); Nop(); Nop(); Nop(); Nop()...
  4. Ely Ondo Ekogha

    External interrupt RB0/INT not working on PIC16f627A

    Hello Everyone I'm having a problem with my external interrupt on RB0 which is not firing when I tested it physically but it works well when I simulate the project on PROTEUS 7. Basically the PIC is connected to a 74C922 encoder with DA pin connected to RB0 to trigger the interrupt and read the...
  5. sidd342

    Using HT1626 as an LCD Driver to drive my LCD

    Hey, I'm using the attached LCD driver to drive my LCD. The driver mentions that it has an option of 32Khz in built oscillator that it can use. In terms of programming, does it mean that the clock and the data output that I give to the driver need to be at 32Khz? Additionally, in an LCD driver...
  6. dmarciano84

    DC Fan PWM/Speed Sense

    I am working on a project (based on the PIC16F18877) to which I am planning on adding a PWM DC brushless fan. However, I have never had to work with PWM before (or even DC fans) so there are a few things I am not clear on that I am hoping to get clarification on. I just want to make sure I...
  7. S

    NOP instruction how much time it will take

    I'm writting some code for PIC uC using XC compiler, we can use macro NOP() for an empty instruction to execute, I believe it will take one cycle? if uC is configured with 4Mhz clock how can I calculate duration that NOP instruction may take?
  8. S

    Best practice, writting software based SPI and I2C

    I'm going to write software SPI and I2C for PIC 8 bit MCU where I need to write command and read sensor data. I want to know what is the best practice to write such library. As we can use delay statement for clock high and low state but its not a good practice (sounds to me) because delay...
  9. MrNams

    How to replace PIC16F676 with Arduino/ESP32?

    Hello All, I have auto switch for 3 Phase DOL starter with current sensor (using CT) and is working fine, i.e. is sense current and stop motor if it takes more current, it stops motor one phase failure, it working as expected, i just want to control it using ESP32 so that I read values and send...
  10. U

    pic16f690 - LCD works in proteus but not on breadboard

    Hello everyone. Im have some trouble getting an LCD to work with a 4*4 keypad and pic16f690. The code works in proteus, but when i test on the breadboard, will all the same connections, it does not display anything. What could be the problem? I have attached the code and circuit design below...
  11. levi22

    PIC assembly switch statement

    I am quite new to assembly programming and I am trying to create a switch statement. I was using the Microchips example but it does not seem to work in my simulation. Here is my code. It supposed to go to label2 but it skips all the conditions. Any help will be appreciated Mod: wrapped your...
  12. A

    USB not recognized for pic18F14K50

    Hello I am trying to make USB connection to PIC18f14k50. Following are connections :- Pin 1 (Vdd)------>5V Pin 2 & 3 -------->External crystal oscillator (20MHz) Pin 4 (MCLR)------------->Pulled high with 10K Pin 20 -------------------->GND Pin 17---------------------> capacitor (0.1UF)...
  13. M

    Temperature indicator Project

    I am creating a project of temperature indication using thermistor with pic16f877A. and 4 channel 7 segment Display. The problem I am facing is Using timer to read adc values and converting to Celcius makes my 4 channel 7 segment display to blink after every 2 Seconds. At ln0 line the display...
  14. vishweshgm

    Interfacing MCP41HVX1 with PIC16F

    Hello, I am trying to replace a potentiometer in my project with MCP41HVX1 so that I can control the output voltage of LM317 regulator. My current LM317 circuit is as below: I use 2pins of J2 POT (between ground and wiper) to vary the voltage output of LM317 regulator. When POT has 0Ω...
  15. Khisraw

    Using AN3 on PIC12F1571

    Hi all, I am trying to program the PIC12F1571. It has 4 channel ADC but I can only enable the AN1. The rest just doesn't work. Even using CCG which you can enable the physical pins, you can not enable any of the other channels. Does anyone else have come across such an issue? Every video on...
  16. R

    PIC24FJ128GB202 connecting USB ON-THE-GO to newer laptop with USB 3.0 (ss ports)

    I've recently been design a PIC development board with USB and other peripherals, I've got the board working, got code running on the board and managed to test all of the peripherals that worked great, until it came to USB. The issue isn't the USB circuity its self, I've recently brought a new...
  17. D1NG0

    Programming a Digital Current and Power Monitor on PIC18F26K80

    Hi, I'm on a project where I would like to measure a battery voltage. For that, I have to use a Digital Current and Power Monitor, called INA260. I already have a board made and it's functional because I've already tested it with the arduino, but I'm not able to do the programming on the...
  18. W

    Power factor correction circuit with PIC16F887

    I have made a circuit in Proteus with the PIC16F887 for measuring the voltage, current , power and also power factor and display them on the LCD. In the circuit, the L1 and R5 can be any value as it is just a value for the load connected to the circuit. I was wondering if I were to place some...
  19. E

    Alternative to pic16 Series

    I am using PIC16F18875 controller in my design but i am planning to switch to a higher clock pic from pic18f series. I was looking for microchip product selector but I want suggestion before picking up randomely.
  20. Q

    PIC8F67K22 .hex

    hello Everyone, Iam new in Microchips system, we looking for Microchips Professionals to help us with our problem. We have a project that needs to be developed and modified, but we could not because we do not have the source for development, All we could do was extract a .hex file from our...
Top