in my mplab its showing error when i build...the is type of ( exit value 2, total time: 6s)....what to do helping me.
@ammuzzrainbow9823
11 ай бұрын
Very good presentation.... can you does for a combined video of potentiometer and temperature control ?
@SMtrainingacademy
11 ай бұрын
Will do it soon thank you
@nileshpathak9443
3 жыл бұрын
thanx brother good work
@zainiwais1209
Жыл бұрын
How can I add TDS sensor with pic16f877a microcontroller?
@SMtrainingacademy
Жыл бұрын
Can you specify full part name of sensor..? @Zain
@zainiwais1209
Жыл бұрын
TDS Sensor detects the Total Dissolved Solids (TDS) levels in the water which can be used to indicate the water quality. I am doing a project using the tds sensor and pic16f877a and your video is very useful for me
@youtuberzp6665
4 жыл бұрын
sir i am getting error while building this program it is asking delaration for a,b,c,adc etc.
@SMtrainingacademy
4 жыл бұрын
@youtuberz P If so you can declare those variable above main function Eg: unsigned int a,b,c,adc;
@zainiwais1209
Жыл бұрын
Hello sir, I need to use one push button to make the led on and off. How can I do. If I press the push button it should turn ON and If I press it again it should turn off.
@SMtrainingacademy
Жыл бұрын
You can do it easily take a variable and count it inside button press condition based on variable value process the led state for clarity write down to me at smtrainingacademy@gmail.com
@sivarajramakrishnan7407
Жыл бұрын
hi sir , why we are doing ADCON 0 value OR with 0x40 .. what is the purpose of doing this.. why we do not give the value ADCON0=0x45 directly to enable the GO DONE bit
@SMtrainingacademy
Жыл бұрын
Yes we can do it but sometimes this bit won’t set when we do like that moreover that or operation is a good practise for setting bits in a register I will try to make one video regarding that and sorry for late reply this comment went done and it was un noticed
@sivarajramakrishnan7407
Жыл бұрын
@@SMtrainingacademy thanks bro..
@nohanprashanth6319
2 жыл бұрын
Hi sir,after i build the project ,its throwing 2 errors at this line :void interrupt adc_conv() . 1) error: variable has incomplete type 'void' void interrupt adc_conv() ^ 2) error: expected ';' after top level declarator void interrupt adc_conv() ^ please help.
@SMtrainingacademy
2 жыл бұрын
You must actually change the standard of C In mplab x to C90 from C99 becoz C99 has different syntax for interrupt isr function
@zainiwais1209
Жыл бұрын
Hello sir, TDS Sensor detects the Total Dissolved Solids (TDS) levels in the water which can be used to indicate the water quality. I am doing a project using the tds sensor and pic16f877a and your video is very useful for me. I have to add tds sensor to pic16f877a. I'm using hightch c with mplab. Could you please help me. Thanks
@SMtrainingacademy
Жыл бұрын
Yes I can help you please write to me your requirement to smtrainingacademy@gmail.com
@fatiswealth7865
3 жыл бұрын
Hi for the LCD part, do we need to add any header files configuration to it? Or we can just code everything from a new source file?
@SMtrainingacademy
3 жыл бұрын
Hai @FAT IS WEALTH Sorry for late reply you just want to copy and paste the lcd function that I explained in the lcd lecture (or) you can put them in some .c and .h files and then you can add it to the project
@fatiswealth7865
3 жыл бұрын
@@SMtrainingacademy hi, so do I just save the entire lcd lecture from tutorial 13 as a .h file?
@SMtrainingacademy
3 жыл бұрын
Just copy and paste the lcd functions in lcd lecture above void main() But you can download the source code for each lecture by visiting our website : smtrainingacademy.com
@fatiswealth7865
3 жыл бұрын
@@SMtrainingacademy Hi, I created an account into your website, but i cant find the source code???
@SMtrainingacademy
3 жыл бұрын
@@fatiswealth7865 Every Lecture page will be having { Download Course code and chapter content } button for particular lecture content , or you can write to smtrainingacademy@gmail.com for required code
@gosalaramaiah306
3 жыл бұрын
Dear sir plz explain- what is chr (f+0x30); it is showing error
@SMtrainingacademy
3 жыл бұрын
Actually I’m converting decimal number into ascii format by adding 0x30 to the decimal number
@SportsGyan_
3 жыл бұрын
how adc is 16 bit register??????...can anyone help me.......this is variable or register...according to program its a variable but acc.to concept it should be a register.
@SMtrainingacademy
3 жыл бұрын
actually ADC is not 16bit, But the data register of ADC is having two registers ADCL and ADCH which is 16Bit to store the 10bit value
@sd8412
2 жыл бұрын
During simulation in protius i get the error transient GMIN stepping time 9.53748 how i can resolve it
@SMtrainingacademy
2 жыл бұрын
Do you get it as soon as you start the simulation or after sometime..?
@sd8412
2 жыл бұрын
As i start and also get the error of stack overflow
@SMtrainingacademy
2 жыл бұрын
@@sd8412 maybe can you share the program to smtrainingacadmey@gmail.com so that I can take a look
@ranganathanrajaram2121
3 жыл бұрын
How to connect external adc like 12 bit and programming sir
@SMtrainingacademy
3 жыл бұрын
Yes you can but mostly it comes in separate IC’s that can be interfaced with protocols like I2C and SPI for which I have made separate tutorials
@prabhatkumar3547
3 жыл бұрын
sir can you share the code i am little confuse , and please explain chr(f+0x30)
@SMtrainingacademy
3 жыл бұрын
You can download the code and all the course contents by visiting smtrainingacademy.com
@prabhatkumar3547
3 жыл бұрын
@@SMtrainingacademy i already did sir but i am not getting
@SMtrainingacademy
3 жыл бұрын
You just want to go to the corresponding lecture to download the content ,Ok I will send you the link within today
Hi janani you can download everything in Udemy Link:www.udemy.com/user/sm-training-academy/
@wfbeni8996
Жыл бұрын
Hello sir can you share the source code please
@tranbao3595
Жыл бұрын
hello sir, can you explain this code and why we use this void delay(unsigned int i) { while(i--); } thank sir
@onurolce
8 ай бұрын
it is a way to make CPU busy by decremanting a value 1 until it reaches to zero. for example delay(10) will eat 10 cycle from CPU and it is waste of time and in that way it will be a DELAY.
@longanang6218
10 күн бұрын
@@onurolce why don't he using function __delay_ms(); ??
@Thimas14
Жыл бұрын
Hey, I copy pasted the code in XC version 2.4 but it gave me this error "make[1]: * No rule to make target '.build-subprojects', needed by '.build-conf'. Stop." and I created a new project in version 1.41 then it compiled and working. However when I copy the code from version 1.41 to version 2.4 then it is as mentioned above. However I typed the same code by looking from video it didn't work and I couldn't find typing mistakes(However my typed code don't work in both versions). Questions 1. Reason its not working on newer version? 2. Any idea why my typed code don't work in any of the versions Here is my typed code #include #define _XTAL_FREQ 20000000 #define RS PORTDbits.RD0 #define RW PORTDbits.RD1 #define EN PORTDbits.RD2 // CONFIG #pragma config FOSC = HS // Oscillator Selection bits (HS oscillator) #pragma config WDTE = OFF // Watchdog Timer Enable bit (WDT disabled) #pragma config PWRTE = OFF // Power-up Timer Enable bit (PWRT disabled) #pragma config BOREN = OFF // Brown-out Reset Enable bit (BOR disabled) #pragma config LVP = ON // Low-Voltage (Single-Supply) In-Circuit Serial Programming Enable bit (RB3/PGM pin has PGM function; low-voltage programming enabled) #pragma config CPD = OFF // Data EEPROM Memory Code Protection bit (Data EEPROM code protection off) #pragma config WRT = OFF // Flash Program Memory Write Enable bits (Write protection off; all program memory may be written to by EECON control) #pragma config CP = OFF // Flash Program Memory Code Protection bit (Code protection off) unsigned int a,b,c,d,e,f; unsigned int temp,adc; float temperature, adc1; void delay(unsigned int i) { while(i--); } void lcd_command(unsigned char a) { PORTC =a; EN =1; RS=0; RW =0; delay(500); EN=0; } void chr(unsigned char b) { PORTC =b; EN =1; RS =1; RW =0; delay(500); EN =0; } void str(const char *d,char n) { char o; for (o=0;o
@SMtrainingacademy
Жыл бұрын
Ok 1, some updates would have been provided for new version but I don’t see any major changes that can be done in a update may be you try installing the newer version again and check 2. When you typed the code to 2.4 what was the error thrown If no error thrown and compiled is it worked in simulation..?
@Thimas14
Жыл бұрын
I mentioned the error, code doesn't build successfully to try in simulation. I will try to reinstall the newer version again, if i was able to identify the problem or solve the problem i will let you know
Пікірлер: 49