Additional library for MikroPascal PRO 2009

General discussion on mikroPascal PRO for PIC.
Author
Message
yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

#16 Post by yo2lio » 08 Jul 2009 22:16

Library updated ! 08-July-2009

It's strongly recommended to reinstall MP_PRO_Library_V1_3
Best regards, Florin Andrei Medrea.

http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/

mail : florin@microelemente.ro

Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

#17 Post by Dany » 09 Jul 2009 08:14

yo2lio wrote:Library updated ! 08-July-2009
It's strongly recommended to reinstall MP_PRO_Library_V1_3
Thanks! :D
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

#18 Post by yo2lio » 15 Sep 2009 15:51

Library updated.

Additional library for MikroPascal PRO 2009 are available here :
http://www.microelemente.ro/MikroPascal ... y_V1_3.zip

added SaveAll procedure in pic_additional_string_library.

call this routine in main and interrupt routine, if you want to save FSRx and PRODx registers in interrupt.
Best regards, Florin Andrei Medrea.

http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/

mail : florin@microelemente.ro

Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

#19 Post by Dany » 15 Sep 2009 21:14

Thanks! :D
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

#20 Post by yo2lio » 03 Oct 2009 15:08

Library updated, recompiled all files with 3.0 version.

http://www.microelemente.ro/MikroPascal ... y_V1_3.zip

Example and documentations updated, changed SDMMC and Sensirion library.

http://www.microelemente.ro/MikroPascal ... xample.zip
Best regards, Florin Andrei Medrea.

http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/

mail : florin@microelemente.ro

Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

#21 Post by Dany » 03 Oct 2009 15:23

Thanks! :D
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

#22 Post by Dany » 06 Oct 2009 10:27

yo2lio wrote:Added SaveAll procedure in pic_additional_string_library.
call this routine in main and interrupt routine, if you want to save FSRx and PRODx registers in interrupt.
Is just placing a call to SaveAll and in the interrupt routine doing the job?
Is this needed when using your MP Pro libraries?
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

#23 Post by yo2lio » 06 Oct 2009 11:21

Dany wrote:
yo2lio wrote:Added SaveAll procedure in pic_additional_string_library.
call this routine in main and interrupt routine, if you want to save FSRx and PRODx registers in interrupt.
Is just placing a call to SaveAll and in the interrupt routine doing the job?
Is this needed when using your MP Pro libraries?
Unfortunately, yes.

This depend of interrupt code.

If interrupt routine don't use any FSR's registers you can not use this.
Best regards, Florin Andrei Medrea.

http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/

mail : florin@microelemente.ro

Donald Shimoda
Posts: 553
Joined: 27 Feb 2006 17:00
Location: Argentina
Contact:

#24 Post by Donald Shimoda » 06 Oct 2009 13:28

yo2lio wrote: If interrupt routine don't use any FSR's registers you can not use this.
Im confused.

You mind cannot use or dont need?

Best Regards.
Donald Shimoda.

yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

#25 Post by yo2lio » 06 Oct 2009 13:50

Donald Shimoda wrote:
yo2lio wrote: If interrupt routine don't use any FSR's registers you can not use this.
Im confused.

You mind cannot use or dont need?

Best Regards.
If you stay in Pascal, all is OK.

If you use pointers also all is OK.

If you use ASM code, all is OK.

If you use FSR register, in this way:

Code: Select all

FSR1 := @variable;
POSTINC1 := 45;
etc;
then you must tell this to compiler... and this only in some particular cases, when compiler don't use FSRx registers itself.

For this I create SaveAll routine. This, must be called somewhere in Interrupt and in main routine. Only for P18.
Best regards, Florin Andrei Medrea.

http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/

mail : florin@microelemente.ro

Donald Shimoda
Posts: 553
Joined: 27 Feb 2006 17:00
Location: Argentina
Contact:

#26 Post by Donald Shimoda » 06 Oct 2009 14:21

yo2lio wrote:

Code: Select all

FSR1 := @variable;
POSTINC1 := 45;
etc;
then you must tell this to compiler... and this only in some particular cases, when compiler don't use FSRx registers itself.

For this I create SaveAll routine. This, must be called somewhere in Interrupt and in main routine. Only for P18.
And what happens when i use thirdy party libraries like yours? i must call SaveAll in my code?
Donald Shimoda.

yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

#27 Post by yo2lio » 06 Oct 2009 15:40

Donald Shimoda wrote: And what happens when i use thirdy party libraries like yours? i must call SaveAll in my code?
Only if you want!
Best regards, Florin Andrei Medrea.

http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/

mail : florin@microelemente.ro

Donald Shimoda
Posts: 553
Joined: 27 Feb 2006 17:00
Location: Argentina
Contact:

#28 Post by Donald Shimoda » 06 Oct 2009 16:03

yo2lio wrote:
Donald Shimoda wrote: And what happens when i use thirdy party libraries like yours? i must call SaveAll in my code?
Only if you want!
Ok, so my interrupt routines dont use FSR i dont need to call SaveAll. is clear now.


TIA
Donald Shimoda.

yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

#29 Post by yo2lio » 12 Oct 2009 10:13

New version available.

Additional library for MikroPascal PRO 2009 are available here :
http://www.microelemente.ro/MikroPascal ... y_V1_4.zip

Added Fat32_SPI1 and Fat32_SPI2 library, thanks to Dany.

All about this new Fat32 library you will found here: http://users.edpnet.be/rosseel01/DRO/PIC/index.htm

Example, available soon.
Best regards, Florin Andrei Medrea.

http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/

mail : florin@microelemente.ro

yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

#30 Post by yo2lio » 14 Jan 2010 14:10

All libraries and example updated.

In Ethernet library hardware check sum is not used any more, this according with ERRATA.

Enjoy!
Best regards, Florin Andrei Medrea.

http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/

mail : florin@microelemente.ro

Post Reply

Return to “mikroPascal PRO for PIC General”