Hi all, I am learning to write c language for PIC microcontroller. The PIC i am using is 16F628a.
May i know any where i can learn all the library command like when do i need to call certain library?
I have no clue on that. I am currently using MikroC which do not need that, but i wish to learn that for proper programming.
Don't use libraries. Write your own. It is a good start for beginers. Otherwise you will never understand how it works.
Only think you realy need is datasheet.
I am using MikroC. I usually include all the libraries file but i don't think that that is the good way to do it. I often see those people write something like " #pragma config" in their coding. i wish to learn that.
Don't use libraries. Write your own. It is a good start for beginers. Otherwise you will never understand how it works.
Only think you realy need is datasheet.
You can't write code for CONFIG settings in code for mikroC Compiler. Also mikroC doesn't allow #pragma derectives.
You can write your own .h and .c files add add it to project and use #include for the .h file and use it. If you write LCD library which has similar function prototypes as mikroC LCD library functions then you have to uncheck all LCD Library related library items from the library manager.
You can't write code for CONFIG settings in code for mikroC Compiler. Also mikroC doesn't allow #pragma derectives.
You can write your own .h and .c files add add it to project and use #include for the .h file and use it. If you write LCD library which has similar function prototypes as mikroC LCD library functions then you have to uncheck all LCD Library related library items from the library manager.
I see... so it is like sub program ?
actually i want to know about the setting of PIC. like off the watchdog timer or others. i dont know where i can learn all this setting. i usually include all the library file when i write with MikroC and i think it is not very efficient. i wish to know more detail about that.