Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Where can I learn about PIC libraries?

Status
Not open for further replies.

alpha91

Full Member level 3
Full Member level 3
Joined
Sep 23, 2011
Messages
168
Helped
1
Reputation
2
Reaction score
2
Trophy points
1,298
Visit site
Activity points
2,625
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.
 

Hi,


Which IDE you are using?

If you are using MPLAB you can see "pic16F628a.h" , pic.h etc .

Also these files will be found at your local drive:

..\Program Files (x86)\Microchip\xc8\v1.36\include\..



Amit
 
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.
 
Hi,


Which IDE you are using?

If you are using MPLAB you can see "pic16F628a.h" , pic.h etc .

Also these files will be found at your local drive:

..\Program Files (x86)\Microchip\xc8\v1.36\include\..



Amit

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.


but there is certain setting we need to call for libraries right? for example, off the watchdog timer.
 

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.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top