ADC register configuration for PIC16F877A microcontroller

Поделиться
HTML-код
  • Опубликовано: 4 дек 2024

Комментарии • 15

  • @Toturials
    @Toturials 2 года назад +1

    Hi thanks for the nice videos, I have A question Please, in this Microcontroller Controller Analog Output Can be Configure? for example if need to open a actuator valve 0-100% with respect to(0-5V) how to achieve this. Thanks

    • @SMtrainingacademy
      @SMtrainingacademy  2 года назад

      No analog output is not available in this microcontroller you can use external analog output ic's like mcp4921 (DAC IC) with this microcontroller for achieving the voltage what you want

  • @jaikrish50
    @jaikrish50 2 года назад +1

    Sir ccs compiler hum use panunga sir

    • @SMtrainingacademy
      @SMtrainingacademy  2 года назад +1

      is there any difficulty in mplab x ide
      ..? sorry for late reply

    • @jaikrish50
      @jaikrish50 2 года назад +1

      @@SMtrainingacademy no sir but im started learn in ccs compiler in a year ago so im little bit confused which compiler should i go to learn in depth either ccs or mplab or hi tech c.

    • @SMtrainingacademy
      @SMtrainingacademy  2 года назад +1

      @@jaikrish50 you can learn anyone but according to my suggestion mplab x would be more advanced one as it is the latest one from the microchip although i have thought you almost everything you need in mplab xc8 and hitech C

    • @jaikrish50
      @jaikrish50 2 года назад +1

      @@SMtrainingacademy okay sir here after i will start learn hitech c compiler, thanks a lot sir for your replay.

  • @kaushikjames5623
    @kaushikjames5623 2 года назад +1

    useful

  • @KamranKhan-co6ox
    @KamranKhan-co6ox 3 года назад +1

    Sir I followed the video and coded the ADC module without using interrupt, that is using the go/done bit. In Proteus software I used potentiometer (5v and GND) to get values from 0 to 1023. But I've a problem, it works fine till 1023 but then when I decrease the resistance it starts showing 9990 instead of 999 and so on. An extra 0 is getting added to all valued below 1000. Any idead why that could be happening?

    • @SMtrainingacademy
      @SMtrainingacademy  3 года назад

      Can you check the printing section code on lcd

    • @KamranKhan-co6ox
      @KamranKhan-co6ox 3 года назад +1

      @@SMtrainingacademy I followed your method to get adresh:adresl value to an integer variable. Then I send that value to a function which separates the variable bit by bit using modulo/divide and display it to the LCD. I know there's a minor issue in printing but it happens only when the value goes below 1000. For eg it shows proper from 0-1023 full range but when I decrease below 1000 it adds an extra zero.

    • @SMtrainingacademy
      @SMtrainingacademy  3 года назад

      @@KamranKhan-co6ox can you share me the code to smtrainingacademy@gmail.com
      i will check and tell

    • @KamranKhan-co6ox
      @KamranKhan-co6ox 3 года назад +1

      @@SMtrainingacademy I've sent you the mail sir. Thank you for your efforts sir...🙏🙏

    • @SMtrainingacademy
      @SMtrainingacademy  3 года назад +1

      @@KamranKhan-co6ox No probs man