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
@SMtrainingacademy2 жыл бұрын
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
@KamranKhan-co6ox3 жыл бұрын
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?
@SMtrainingacademy3 жыл бұрын
Can you check the printing section code on lcd
@KamranKhan-co6ox3 жыл бұрын
@@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.
@SMtrainingacademy3 жыл бұрын
@@KamranKhan-co6ox can you share me the code to smtrainingacademy@gmail.com i will check and tell
@KamranKhan-co6ox3 жыл бұрын
@@SMtrainingacademy I've sent you the mail sir. Thank you for your efforts sir...🙏🙏
@SMtrainingacademy3 жыл бұрын
@@KamranKhan-co6ox No probs man
@jaikrish502 жыл бұрын
Sir ccs compiler hum use panunga sir
@SMtrainingacademy2 жыл бұрын
is there any difficulty in mplab x ide ..? sorry for late reply
@jaikrish502 жыл бұрын
@@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.
@SMtrainingacademy2 жыл бұрын
@@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
@jaikrish502 жыл бұрын
@@SMtrainingacademy okay sir here after i will start learn hitech c compiler, thanks a lot sir for your replay.