TOP Contributors

  1. MIKROE (2784 codes)
  2. Alcides Ramos (392 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (123 codes)
  5. Bugz Bensce (97 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (140544 times)
  2. FAT32 Library (73037 times)
  3. Network Ethernet Library (58043 times)
  4. USB Device Library (48215 times)
  5. Network WiFi Library (43826 times)
  6. FT800 Library (43295 times)
  7. GSM click (30359 times)
  8. mikroSDK (28990 times)
  9. PID Library (27116 times)
  10. microSD click (26721 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Library

Utilities

Rating:

26

Author: dany

Last Updated: 2018-02-25

Package Version: 1.0.0.0

Category: Other Codes

Downloaded: 7396 times

Followed by: 1 user

License: MIT license  

Several utility libraries:
- String Utilities,
- SDMMC Utilities,
- Bit Utilities,
- (standard) Pascal Funtions,
- Assert functions,
- UartUtils,
- Button utilities.
- CRC routines

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Utilities" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Utilities" changes.

Do you want to report abuse regarding "Utilities".

  • Information
  • Comments (10)

Library Blog

Libraries:

- StrngUtils

- SDMMC_Utils_mmc

- BitUtils

- PascalFunctions

- Asserts

- UartUtils

- Button utilities, see here for documentation.

- CRC routines

 

The zipfile has the same content as the package.

Have Fun!

--------------------------------------------------------------------------------------------------------------------------------------------------

2011-10-05: New version of "PascalFunctions" has been added in the PIC versions. Some functions were not present in the .mcl file.
Sorry for the inconvenience.

-------------------------------------------------------------------------------------------------------------------------------------------------
2012-06-01: The "StrngUtils" library has been replaced. The routines "...2Str" returned a wrong result with an input value of zero (they returned an empty string, not a single "0" as it should be).

Thanks to TurboProgger for the problem report!

------------------------------------------------------------------------------------------------------------------------------------------------
2012-06-08: The help section in the package and zip file has been updated.

-------------------------------------------------------------------------------------------------------------------------------------------------
2012-06-26: The library "StrngUtils" has been updated:
- the routine "Float2Str" does proper rounding now,
- the routine "Real2Str" has been added. The specifications are the same as in Janni's replacement libraries.

------------------------------------------------------------------------------------------------------------------------------------------------
2012-07-03: "Debug" has been updated, the size (e.g. byte size) dependant routines were added (they take less resources than the "generic" ones).

------------------------------------------------------------------------------------------------------------------------------------------------
2012-07-18: the "Button_utils" library has been added. Documentation here.

In short:

This library provides two “button” related types of behaviour that often are wanted in a project:
- Every time a button is pushed, something must happen once, or
- A button must be “autorepeating”: something must happen when the button is pushed and after
that something must happen every xxx milliseconds as long the button is pushed.

------------------------------------------------------------------------------------------------------------------------------------------------
2012-08-18: Added the "real" routines in the "Debug" library.

------------------------------------------------------------------------------------------------------------------------------------------------
2012-08-30: Corrected a small error in the "Uart_Dumpbuffer" routine in the "Debug" library.

-------------------------------------------------------------------------------------------------------------------------------------------------
2012-11-09: In the "Debug" library: removed errors of type "string underdimensioned". Sorry for any troubles caused...

------------------------------------------------------------------------------------------------------------------------------------------------
2012-11-12: The microBasic package(s) ha(s)(ve) been added.

Only the .mcl files are available as "library" files: they are copied from the mikroPascal version (the mP and mB .mcl files are compatible - luckely - ).

If you want to see some sources: look into the mP versions.

The example files are still in mP, not in mB. (I do not have an mB licence, so I can not compile them).

Some of the helpfiles are also still referring to mP, but all library "interfaces" are available in the mB language.

------------------------------------------------------------------------------------------------------------------------------------------------
2012-11-22: the "Button_Utils" library has been extended with "Timed" buttons:
A "timed" button has 2 different functions: one function when the key is pressed for a short time,
            another function when the key is pressed for a long time.

-------------------------------------------------------------------------------------------------------------------------------------------------
2012-12-07: The library "StrngUtils" was updated, now the file is compiled with SSA on (gave problems when used in mB).

------------------------------------------------------------------------------------------------------------------------------------------------
2013-02-07: Added the dsPIC packages.

---------------------------------------------------------------------------------------------------------------------------------------

2013-09-30: Updated the "SDMMC_Utils" library: added the "SDMMC_CardSize_Sectors" function.

-------------------------------------------------------------------------------------------------------------------------------------- 2014-03-12: - Changed the name of the "Val" routine in StrngUtils to "StrToVal". Reason: "Val" can not be used in mBasic.

----------------------------------------------------------------------------------------------------------------------------------------

2014-03-13: The mikroBasic files and zip files have been updated. All mB sources are present now (not tested if compilable though).

-------------------------------------------------------------------------------------------------------------------------------------

2014-08-16: renamed unit "Debug" to "UartUtils".


2015-01-04:

- Changed all versions of "PascalFunctions" and "StrngUtils" to make usage of the Active_Libs.pld file placed by LibSwitch (Janni's tool, see http://www.libstock.com/projects/view/1169/replacement-libraries-for-pic18-processors-mp-amp-mb-pro) in the compiler's uses directory.
The directives defined there are "__Libs_Original" and "__Libs_Replaced" depending on whether the original mE libs or replacement libs of Janni are used.

- Changed "UartUtils" so that there is only 1 source code for both P16 and P18 versions.

 


2015-01-26: Replaced the mB files: all mB files are compilable now (which e.g. means that all "with" statements are dealt with). I could however not link and test the libraries (no mB licence).


2015-02-13: Corrected a small error in "ButtonUtils" for PIC24.


2015-02-17: Added the mP for PIC32 libraries. Only compiled, not tested.

----------------------------------------------------------------------------------------------------------------------------
2017-02-16: Made StringUtils usable for mP/mB for PIC and dsPIC v7.00.

2018-02-23: Added the "CRC_Lib".

ALSO FROM THIS AUTHOR

RTC

16

For P16 and P18:RTC libraries for the PCF8583P and the DS1307, both for hardware I2c and software I2c. No alarm functions provided. Daylight Saving Time version available. For P24: RTCC routines (internal RTCC), including the alarm functions.

[Learn More]

Tool: Bootloader HOST (windows) for PIC

1

This is (for a change) not a bootloader firmware (the bootloader part present in the PIC), but a bootloader Host for control of the PIC bootloader. It is compatible with the bootloader firmwares from mikroElektronika, and is capable of handling all PIC types. Original development: Joop Beunders.

[Learn More]

I2c non blocking

10

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. Implemented also the code for controllers with 2 I2c's (e.g. P18F27K40).

[Learn More]