Pretty much exactly the same as the 10F200 version, just a different config section, which MPLAB can generate for you (as shown in this lesson). In the next lesson I'll switch to a different PIC (12F509), and that will demonstrate changing the config, but the procedure is same as shown in this one.
Gooligum Electronics this is code built and simulate and flash but not working on hardware..pls suggest.. #include // PIC12F510 Configuration Bit Settings // 'C' source line config statements #include // #pragma config statements should precede project file includes. // Use project enums instead of #define for ON and OFF. // CONFIG #pragma config OSC = IntRC // Oscillator Select (INTOSC with 1.125 ms DRT) #pragma config WDT = OFF // Watchdog Timer Enable bit (WDT disabled) #pragma config CP = OFF // Code Protect (Code protection off) #pragma config MCLRE = ON // Master Clear Enable bit (GP3/MCLR Functions as MCLR) #pragma config IOSCFS = ON // Internal Oscillator Frequency Select bit (8 MHz INTOSC Speed) #define _XTAL_FREQ 8000000 #define LED1 GPIObits.GP0 void main() { TRISGPIO= 0x00; GPIO = 0x00;
Can someone explain what is 0b0010 ? is that a byte ? how do i learn this? All of this video is kinda pointless , i already have an ide and i already program in C , but i do not understand this type of code, is it asci? or just binary in a way?
b means binary, x means hexadecimal. 8 bits = 1 byte. 0 means configure as output, 1 means configure as input (configured as input by default, I think). This chip only has 4 available pins. Hence, TRIS = 0b1101 (bit3 bit2 bit1 bit0, where bit1 corresponds to GP1). A binary can only be 0 or 1 (base 2). Similarly, GPIO = 0b0010 (bit3 bit2 bit1 bit0) means you are setting bit 1 as HIGH, which means it will provide a voltage to drive that pin (maybe 3.3V) and this will basically provide power to turn ON the LED. And other 3 pins are driven LOW. You can search on UA-cam for further tutorials. ua-cam.com/play/PLjueKcCvkvtpE8GoDSWoej_mh3gAIV150.html
Sorry you've had that experience. I can only say that the videos are real, i.e. no tricks. What worked for me should work for you if you follow along closely.
@@GooligumElectronics just want to drop a tip, PIC10F204 & PIC10F206 have a comparator, if not disabled (put all 0) no pin would work, I learned it the hard way
This is hands down the best tutorial I have found to get started with mplab x, thank you so much!
Thanks for making these videos to accompany the lessons!
Your students are lucky to be there teacher.
Mate, this is a fantastic tutorial. Thanks
Excellent tutorial ! Thanks GT!
2:08 "Sign your life away to Microchip" lol. Nice video though. Thank you!
Amazing content! Helped me a lot. Thank you!
Wow. What an amazing tutorial!
Great job, I struggled with Moab x
"Sign your life to Microchip" LOL
Hi David, Excellent tutorial, Thank you very much
i have been trying to program a pic12f683 using mplab x but i get builder fail can you make a video on this
There is no pic10f200.h file in mac xc8/v2.45/include folder.Is there any new changes?
sir i am using explorer 8 kit with pic18f87k22 i am unable to blink a simple led
can u pls guide me
What is the 0b1101?
Hi I love your video I need to do two input and two output with two push button ,You could help me a Code Optimizing C Compilers for Microchip PIC
// #pragma config statements should precede project file includes.
I see you did not do this. Does it have any negative effect?
No negative effect that I can detect - no compiler warnings, code seems to work perfectly.
Good one.
Use flowchart to code converter for firmware designing and auto code conversion.
Please make a tutorial flash an led on pic12f510 in embedded c
Pretty much exactly the same as the 10F200 version, just a different config section, which MPLAB can generate for you (as shown in this lesson). In the next lesson I'll switch to a different PIC (12F509), and that will demonstrate changing the config, but the procedure is same as shown in this one.
Gooligum Electronics this is code built and simulate and flash but not working on hardware..pls suggest..
#include
// PIC12F510 Configuration Bit Settings
// 'C' source line config statements
#include
// #pragma config statements should precede project file includes.
// Use project enums instead of #define for ON and OFF.
// CONFIG
#pragma config OSC = IntRC // Oscillator Select (INTOSC with 1.125 ms DRT)
#pragma config WDT = OFF // Watchdog Timer Enable bit (WDT disabled)
#pragma config CP = OFF // Code Protect (Code protection off)
#pragma config MCLRE = ON // Master Clear Enable bit (GP3/MCLR Functions as MCLR)
#pragma config IOSCFS = ON // Internal Oscillator Frequency Select bit (8 MHz INTOSC Speed)
#define _XTAL_FREQ 8000000
#define LED1 GPIObits.GP0
void main()
{
TRISGPIO= 0x00;
GPIO = 0x00;
while(1)
{
LED1=1;
__delay_ms(4000);
LED1=0;
__delay_ms(4000);
}
}
Sir, Thank you very much.
very good
2:08 LOL
There is a buzzing noise when you use the microphone
Thanks for letting me know - but improved in the later videos, I think?
Can someone explain what is 0b0010 ? is that a byte ? how do i learn this? All of this video is kinda pointless , i already have an ide and i already program in C , but i do not understand this type of code, is it asci? or just binary in a way?
b means binary, x means hexadecimal. 8 bits = 1 byte. 0 means configure as output, 1 means configure as input (configured as input by default, I think). This chip only has 4 available pins. Hence, TRIS = 0b1101 (bit3 bit2 bit1 bit0, where bit1 corresponds to GP1). A binary can only be 0 or 1 (base 2). Similarly, GPIO = 0b0010 (bit3 bit2 bit1 bit0) means you are setting bit 1 as HIGH, which means it will provide a voltage to drive that pin (maybe 3.3V) and this will basically provide power to turn ON the LED. And other 3 pins are driven LOW. You can search on UA-cam for further tutorials.
ua-cam.com/play/PLjueKcCvkvtpE8GoDSWoej_mh3gAIV150.html
@@mkhaled23 okay ty for clarifying. now it makes a little more sense . No one seems to explain this basic stuff
Thank you
Pic microcontroller's programing in ccs pic c compiler video link:m.ua-cam.com/video/psG88sLUSv4/v-deo.html
Personally, I would prefer not to have the background music, but nice tutorial
Thank you!!!!!
This is probably the fifth or sixth tutorial I followed and couldn't run. Nothing but errors.
Sorry you've had that experience. I can only say that the videos are real, i.e. no tricks. What worked for me should work for you if you follow along closely.
@@GooligumElectronics just want to drop a tip, PIC10F204 & PIC10F206 have a comparator, if not disabled (put all 0) no pin would work, I learned it the hard way
Sign your life away 😂😂😂
Sad but true..