If you found this video useful, please give it a thumbs up 👍 and subscribe to the channel. Also, let me know what topics you want me to cover in future videos by commenting below. By simply liking the video or a short comment like Thanks, helps this video in UA-cam algorithm to be found by others. It helps us a lot.
thanks for your tutorial, but can we call a function with lcd and eeprom write in external interupts, it shows me reenterence is not allowed, caan you guide me....
Hi. It's not a good idea to write functions inside an interrupt service routine. Just set a flag variable when an interrupt occurs than in your main code, check if that flag is true, then call your functions. Please read this discussion: forum.mikroe.com/viewtopic.php?f=88&t=24108
Hello. I am on a pcb design projet with my team. I have issues triggering interruptions with uart. I saw yours with pic18f but me I am using pic16. Pls is there any link in which I can find a good tutorial? I have been trying it for long now but non of my code are working
Can you give more information? The PIC you are using, compiler, and the exact problem. What you are trying to achieve. With mikroC the steps are more or less the same for PIC16 and PIC18. This video should help you.
Here is my code, int flag = 0; void interrupt() { if (PIR1.RCIF) { // test the interrupt for uart rx flag=1; } // end if (PIR1.RCIF) } // end interrupt void main () { INTCON.GIE = 1; INTCON.PEIE = 1; PIE1.RCIE = 1; //enable interrupt. PIR1.RCIF = 0; . Uart1_Init(19200); Uart1_Write_text("good tene but contiunue"); uart1_write (13); while(1) { // Begin endless loop if (flag) { Uart1_Write_text("good tene"); flag = 0; } // end if (flag) } // end while } // end main it compiles with no problem in mikroc but the interrupt function does not work when i simulate with proteus.
How are you testing in Proteus to conclude that it's not working? Are you sending something to your PIC? How? How is your connection? What is connected to your PIC Tx and Rx pins?
+manmadha gorjana which information? We can only assist you with the code you have. Unfortunately we can't do everything for you. We won't have time to attend to each request. We advised to use a 32bit because of the task you are doing. 8-bit won't have enough resources for that.
Student Companion i am writing code for my project if i have any doubts further, please provide me your contact information for connecting you (mail or WhatsApp number), thank you sir.
+manmadha gorjana you can ask your questions here on UA-cam or in the Forum on our website. We don't reply on private emails or whatsapp on matter related to tutorials. Forum: www.studentcompanion.co.za/forums/
+manmadha gorjana i don't think you'll be able to achieve that with an 8-bit (PIC18F4550). Pendrive functions are best handled in USB host not slave. PIC18F4550 can only be used as USB slave. You'll need a 32bit microcontroller to achieve that.
Student Companion sir we are using a vdip2 module which can handle two pendrives .and by using pic microcontroller we have to send the proper commands to vdip2 module using UART to transfer the data
Student Companion i have the firm ware manual of vdip2 in that so many commands are there but i am not a good programmer so i am not able to understand those commands
If you found this video useful, please give it a thumbs up 👍 and subscribe to the channel. Also, let me know what topics you want me to cover in future videos by commenting below.
By simply liking the video or a short comment like Thanks, helps this video in UA-cam algorithm to be found by others. It helps us a lot.
Great. The best and simplest yo understand interrupt tutorial. Keep ut up guys
keshena naidu thank you for your feedback.
Thank you for your tutorials in youtube,we are getting cleared many doubts from those tutorials.
+manmadha gorjana you are welcome!
Thank you. Great tutorial
tota896 thank you.
thanks for your tutorial, but can we call a function with lcd and eeprom write in external interupts, it shows me reenterence is not allowed, caan you guide me....
Hi. It's not a good idea to write functions inside an interrupt service routine. Just set a flag variable when an interrupt occurs than in your main code, check if that flag is true, then call your functions.
Please read this discussion: forum.mikroe.com/viewtopic.php?f=88&t=24108
Hello. I am on a pcb design projet with my team. I have issues triggering interruptions with uart. I saw yours with pic18f but me I am using pic16. Pls is there any link in which I can find a good tutorial? I have been trying it for long now but non of my code are working
Can you give more information? The PIC you are using, compiler, and the exact problem. What you are trying to achieve. With mikroC the steps are more or less the same for PIC16 and PIC18. This video should help you.
@@StudentCompanion I am using 16f877a with mikroc pro. I want to trigger an interruption when it receive a character on it rx pin
You didn't explain what issues you are facing. The procedure should be more or less the same as in this video
Here is my code,
int flag = 0;
void interrupt() {
if (PIR1.RCIF) { // test the interrupt for uart rx
flag=1;
} // end if (PIR1.RCIF)
} // end interrupt
void main () {
INTCON.GIE = 1;
INTCON.PEIE = 1;
PIE1.RCIE = 1; //enable interrupt.
PIR1.RCIF = 0; .
Uart1_Init(19200);
Uart1_Write_text("good tene but contiunue");
uart1_write (13);
while(1) { // Begin endless loop
if (flag) {
Uart1_Write_text("good tene");
flag = 0;
} // end if (flag)
} // end while
} // end main
it compiles with no problem in mikroc but the interrupt function does not work
when i simulate with proteus.
How are you testing in Proteus to conclude that it's not working? Are you sending something to your PIC? How? How is your connection? What is connected to your PIC Tx and Rx pins?
If we can make this application with 32 bit microcontroller pleaase provide that information sir thank you
+manmadha gorjana which information? We can only assist you with the code you have. Unfortunately we can't do everything for you. We won't have time to attend to each request.
We advised to use a 32bit because of the task you are doing. 8-bit won't have enough resources for that.
Student Companion it's ok sir
+manmadha gorjana you are welcome!
Student Companion i am writing code for my project if i have any doubts further, please provide me your contact information for connecting you (mail or WhatsApp number), thank you sir.
+manmadha gorjana you can ask your questions here on UA-cam or in the Forum on our website. We don't reply on private emails or whatsapp on matter related to tutorials. Forum: www.studentcompanion.co.za/forums/
Ok sir
sir kindly help me to write code for the project "PENDRIVE TO PENDRIVE DATA TRANSFER" using PIC18f4550 and VDIP2 Module and 20x4 lcd
+manmadha gorjana i don't think you'll be able to achieve that with an 8-bit (PIC18F4550). Pendrive functions are best handled in USB host not slave. PIC18F4550 can only be used as USB slave. You'll need a 32bit microcontroller to achieve that.
Student Companion sir we are using a vdip2 module which can handle two pendrives .and by using pic microcontroller we have to send the proper commands to vdip2 module using UART to transfer the data
Student Companion but i need to access the each file in the pendrive so i need help in that
Student Companion i have the firm ware manual of vdip2 in that so many commands are there but i am not a good programmer so i am not able to understand those commands
Student Companion kindly provide me your e-mail id i can send those documents then you can help me
Blink_ interrupt function not isr... That is normal function not interrupt isr
thanks man Great Tutorial.