Hi Just got Question Why you didn't use ATCON1 in the example on your website for PIC18F45K22? Both LED connected to AN12 and AN10 Dont we need to turn analog to digital converter off?
+OnGround1 hi. Thanks for watching our videos. I guess you meant ADCON and not ATCON. we should have used the ANSELx to disable the analog functions on these PORTS but in this case it won't make much difference because we have configured our PORTB as output. analog functions work only if a port/pin is configured as input .
+OnGround1 hi. Thanks for watching our videos. I guess you meant ADCON and not ATCON. we should have used the ANSELx to disable the analog functions on these PORTS but in this case it won't make much difference because we have configured our PORTB as output. analog functions work only if a port/pin is configured as input .
HI. Can you be more specific, your question is not clear. What do you want to set up? Have you watched tutorial 1: ua-cam.com/video/jQ8ddVYNlKU/v-deo.html It shows you step by step how to set up and and write code for a simple project.
Student Companion SA thanks for quick reply. I try to use pic16f6887 as a processor but mikroc doesn't accept porta.a0 and lat command I just wonder why.
It depends on how you write your commands. Most PIC16F don't have the LAT register, so you must use the PORT to read and to write. The LAT register is used if you are using a PIC18F Write PORTA.B0 or PORTA.F0 for pin RA0. Don't write PORTA.A0 and don't use LAT.
NO. You can't. The pin will be floating. A microcontroller needs to read the exact status of a switch either it's high or low (to ground), that is why a pull-up or pull-down resistor is used. If you don't want to use external resistors, you can activate internal pull-up resistors.
Hi. What kind of guidance do you need? This video explains how to use a switch and an LED. This one explains how to use the LCD: ua-cam.com/video/_ujw_tuQDTY/v-deo.html The only difference with the PIC, instead of using LAT register when you are switching an LED, use the PORT register for PIC16F877 or any PIC16F series.
Thank you so much sir. but I have one more question I'm now trying to do same experiment as in the video but I can't compile LATB.B0 = 1; I use the same pic as you so I don't know what is the problem.
+OnGround1 in the meantime you can read the article on our website: www.studentcompanion.net/en/interfacing-7-segment-display-with-pic-microcontroller-mikroc/
Very Good explanation.
+Abhishek Kadri thank you.
very good my fiend, Manuel Mastropietro is your big fan
Great stuff. Keep it up guys...
+tota896 Thanks
Thanks ...... It's a nice tutorial on how to Read a particular pin.....
+Mantoo Kaibarta thank you for watching our videos and we appreciate your feedback.
Nice tutorials sir... Really appreciate
Thank you
Hi
Just got Question
Why you didn't use ATCON1 in the example on your website for PIC18F45K22?
Both LED connected to AN12 and AN10 Dont we need to turn analog to digital converter off?
+OnGround1 hi. Thanks for watching our videos. I guess you meant ADCON and not ATCON. we should have used the ANSELx to disable the analog functions on these PORTS but in this case it won't make much difference because we have configured our PORTB as output. analog functions work only if a port/pin is configured as input .
+OnGround1 hi. Thanks for watching our videos. I guess you meant ADCON and not ATCON. we should have used the ANSELx to disable the analog functions on these PORTS but in this case it won't make much difference because we have configured our PORTB as output. analog functions work only if a port/pin is configured as input .
Sorry its ADCON
+OnGround1 ok. Great!
THIS IS GOOD. THANKS !
you are welcome!
is pickit 2 can be used on PIC18F microcontroller?
+marhsall 27777 I am sure it should support them. Check if you are using the latest pickit 2 firmware
thank you..I found that MikroC is easier than MPLAB..am I right?
+marhsall 27777 Yeah mikroC is much easier, it has also its programmer, mikroProg. It's very easy to use.
thank you for the tutorial .....how can use tags in microc pro?
hi, what kind of tags you are talking about?
Hey could you please tell me that do I need to set something up before I write the code after void main. Thank you.
HI. Can you be more specific, your question is not clear. What do you want to set up?
Have you watched tutorial 1: ua-cam.com/video/jQ8ddVYNlKU/v-deo.html
It shows you step by step how to set up and and write code for a simple project.
Student Companion SA thanks for quick reply. I try to use pic16f6887 as a processor but mikroc doesn't accept porta.a0 and lat command I just wonder why.
It depends on how you write your commands. Most PIC16F don't have the LAT register, so you must use the PORT to read and to write. The LAT register is used if you are using a PIC18F
Write PORTA.B0 or PORTA.F0 for pin RA0. Don't write PORTA.A0 and don't use LAT.
Thank you so much It help alot .
+Chetsadawut Ruangrojn you are welcome!
thanks a lot for this tutorial.
You are welcome!
Hello, i have a question. Is it okay to just place the switch between the five volts and the pin? If not, how come?
Thank you!
NO. You can't. The pin will be floating. A microcontroller needs to read the exact status of a switch either it's high or low (to ground), that is why a pull-up or pull-down resistor is used. If you don't want to use external resistors, you can activate internal pull-up resistors.
Student Companion SA thank you!!! This help alot! Love this series, i would be helpless without it!
+Philip Kim thank you. We appreciate your feedback.
HI...the coding that is given on the website..it shows error after build...help me!!!!!
+Sansitaa Sasekala Hi what error are you getting?
It says illegal character
+Sansitaa Sasekala then they must be something else wrong . Can you post your code and the line number of the error message.
thank you again
+Clavelle Rioux you are welcome.
+Clavelle Rioux You Are welcome. Thanks for watching our videos.
Hello sir, I want to interface switch button with LCD and LED both by using pic16f877 could you please guide me
Hi. What kind of guidance do you need? This video explains how to use a switch and an LED. This one explains how to use the LCD: ua-cam.com/video/_ujw_tuQDTY/v-deo.html
The only difference with the PIC, instead of using LAT register when you are switching an LED, use the PORT register for PIC16F877 or any PIC16F series.
If you don't know hoe to setup your PIC, start with this video: ua-cam.com/video/jQ8ddVYNlKU/v-deo.html
Thank you so much sir. but I have one more question I'm now trying to do same experiment as in the video but I can't compile LATB.B0 = 1; I use the same pic as you so I don't know what is the problem.
+Chetsadawut Ruangrojn if you used same pic then it should compile. Can you post the full error message
It said undeclared indentifier 'LATB' in expression
ACTIVA TODOS LOS SUBTÍTULOS PARA TODOS LOS VIDEOS, MUCHAS GRACIAS!
UA-cam is now auto generating subtitles. Thank you
Thanks
you are welcome!
sir can i have next part of this tutorial part 4
Hi. What part 4 you are looking for? This video is tutorial 3 and has not part 1, 2 3 or 4.
Thanks bri
You are welcome!
Tutorial -4 Please
+OnGround1 thank you for watching our videos. Tutorial 4 is interfacing 7-Segment display. We will upload it soon.
+OnGround1 in the meantime you can read the article on our website: www.studentcompanion.net/en/interfacing-7-segment-display-with-pic-microcontroller-mikroc/
Thanks so much
+OnGround1 you are welcome.