c programming

  1. abcmann

    Creating a PWM-signal that works properly

    Hello guys, I am currently working with a mircocontroller for the first time. My goal is to achieve a PWM-signal (1kHz). While trying to generate the signal I encountered the problem that my signal seems to be moving horizontal due to inconsistancy in time up to 100 µs. The goal was to...
  2. A


    Hail to thee; I'm utterly beginner in C programming, and i made two codes using MikroC PRO, and i'm seeking out your help to make the two of them working in the main time. the first code is just an A/D conversion and display the result on an LCD. with some conditions on account of commanding a...
  3. Z

    PIC- making potentiometer match second potentiometer not working

    I'm tryng to make a DC motor into a servo motor. The motor axle has a gear that is in sync with a gear on a potentiometer (MOTORPOT in the code) and I have another potentiometer that works as an input that the motor potentiometer should match in position however I set this pot(CONTROLPOT in...
  4. M

    How To Store Multiple Keys in Arrays?

    Hi all, I'm new to microcontroller programming. I would like to ask how do I display multiple keys on my LCD display. An example is I want to show "123456". Below is the codes I'm using. I am using PIC18F4520 and this is my LCD datasheet. Thanks in advance! #include <xc.h> void...