PIC related website

General discussion on mikroPascal PRO for PIC.
Author
Message
Megahurts
Posts: 900
Joined: 01 Oct 2009 22:48
Location: Rocky Mountains, USA.

Re: PIC related website

#706 Post by Megahurts » 03 Jun 2014 00:03

Hi Dany,

Congrats on the LibStock award! :D

A BIG Thank You for the support you provide and additional resources on your web site.

Well deserved honors, Robert.
HW: easyPIC5|PICFlash2|easyBT|smartGSM|easyGSM|PICPLC16|mmWorkStation|FT800 Eve|PIC Clicker/2|
MMBs:PIC18F,PIC33EP,PIC32|CLICKs:DAC,ADC,GPS L10,Thermo,8x8B LED,Stepper,W/B OLED,9DOF,GPS3,tRF,Hall I|

SW: mP for PIC|mB for PIC-dsPIC-PIC32|Visual-TFT|

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

Re: PIC related website

#707 Post by Dany » 12 Jul 2014 18:49

Hi,

A new library has been added to the RTC package (http://www.libstock.com/projects/view/98/rtc): RTC_DS1307_Advanced.

In this "advanced" version the DST (DayLight Saving Time) functionality (among others) has been added.

With thanks to aCkO for his very simple/efficient C version of the DST check algorithm (see http://www.mikroe.com/forum/viewtopic.p ... 65&start=2)

Have fun!
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:

Re: PIC related website

#708 Post by Dany » 24 Jul 2014 12:22

Hi, A new package has been added to LibStock: the I2c_Timeout package, see http://www.libstock.com/projects/view/1 ... th-timeout.

It contains replacement routines for I2c1_Rd and I2c1_Wr but here with timeout, so no blocking any more when a device one tries to access is not present. The mE I2c library is still needed for the remaining I2c routines.
For the moment only for P16 and P18 Pic's with only one HW I2c module.

Usage (e.g. in mP):

Code: Select all

  ...
  I2c1_Wr_TimeOut(Data_, 250); // Write “Data_” with a timeout of 2500 microseconds (2.5 millisecs)
  If (I2cTimeOut > 0)       // Test if TimeOut
  then …                    // OK
  else …                    // timeout error
  ...
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)

MaGiK
Posts: 897
Joined: 19 Apr 2013 10:00

Re: PIC related website

#709 Post by MaGiK » 25 Jul 2014 19:06

Thank you so much for this :D

Best Regards

Edited part below:
Can you please tell me what are the tools you used to create your website?
My hobby is collecting MikroElektronika products.
Gotta catch them all!

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

Re: PIC related website

#710 Post by Dany » 11 Aug 2014 15:39

Hi,

Posted a small article about "Ram Corruption", see http://www.libstock.com/projects/view/1 ... -mp-and-mb.

Purpose of this article: Make people aware about the ways of working that can introduce ram corruption (and of course how to avoid it). In this document the many ways where it goes right are not mentioned, only the danger areas are highlighted.

The document in .pdf format: http://www.rosseeld.be/DRO/PIC/RAMCorru ... Concat.pdf.

Please forward your suggestions or additions via the "comments" tab. The article is most possible not complete. All suggestions are wellcome!
Thanks in advance!
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:

Re: PIC related website

#711 Post by Dany » 13 Aug 2014 12:16

See previous post.

Added to "sources of ram corruption" to the document http://www.libstock.com/projects/view/1 ... -mp-and-mb:
- forgetting about the terminating zero of strings when manipulating them wthout use of the string routines (e.g. with memcpy)
- the "SizeOf" result when used on external items.
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:

Re: PIC related website

#712 Post by Dany » 22 Aug 2014 15:47

Dany wrote:See previous post.
Added also the mikroBasic examples code now.
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:

Re: PIC related website

#713 Post by Dany » 28 Aug 2014 11:29

Hi, a new article has been published: http://www.rosseeld.be/DRO/PIC/PicKit2_Usage.pdf or http://www.libstock.com/projects/view/1 ... programmer about how to control a PicKit2 (MicroChip) programmer from within the IDE.

Thanks Rainer for the PicKit2 present!

Have fun! :D
Last edited by Dany on 31 Aug 2014 11:36, edited 1 time in total.
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:

Re: PIC related website

#714 Post by Dany » 28 Aug 2014 20:21

See above post. Added a small part about "isolation" between the MCU and the rest of the circuit using the PicKit2 programmer.
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)

chimimic
Posts: 178
Joined: 29 Sep 2007 14:35
Location: France
Contact:

Re: PIC related website

#715 Post by chimimic » 28 Aug 2014 22:19

Thanks Dany ! :D

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

Re: PIC related website

#716 Post by Dany » 31 Aug 2014 11:35

Ref: http://www.rosseeld.be/DRO/PIC/PicKit2_Usage.pdf or http://www.libstock.com/projects/view/1 ... programmer: changed the content of the batchfile to prevent programming errors unnoticed.
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:

Re: PIC related website

#717 Post by Dany » 09 Sep 2014 11:52

An extra version of the "Wattmeter" project (see http://www.libstock.com/projects/view/7 ... ower-meter) has been added: WattMeter_Interrupt.

This version does the measurements (ADC readings) under timer interrupt. The accuracy of the measurement timing is no longer influenced by the main loop speed here.
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:

Re: PIC related website

#718 Post by Dany » 09 Sep 2014 11:57

MaGiK wrote:Edited part below:
Can you please tell me what are the tools you used to create your website?
Sorry for my late answer, I did not see this edited part for some reason.
The answer to your question: no special tools: only a text editor and FireFTP (add-in of FireFox) to transfer the files to my provider.
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)

MaGiK
Posts: 897
Joined: 19 Apr 2013 10:00

Re: PIC related website

#719 Post by MaGiK » 09 Sep 2014 14:07

Thanks a lot for answering :D
Best Regards
My hobby is collecting MikroElektronika products.
Gotta catch them all!

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

Re: PIC related website

#720 Post by Dany » 03 Nov 2014 16:21

Hi, a new code snippet has been added to the website: http://www.rosseeld.be/DRO/PIC/Walk_Dir_Tree.mpas.

Walk trough the directory tree with the usage of Fat32_1/Fat32_2 library (see http://www.libstock.com/projects/view/58/fat).
The code is actually for Fat32_1, but can be used with Fat32_2 with minor modifications.

Content:
The routine "WalkTree" that visits recursively (without using recursion) all subdirs (starting from the current directory) on e.g. an SDMMC card.

In each (sub)dir a user routine "UserProc" is called with as parameters the current level (0 being the starting level in the dir tree) and the possibility to stop the walk through.
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)

Post Reply

Return to “mikroPascal PRO for PIC General”