PIC related Website

General discussion on mikroPascal PRO for dsPIC30/33 and PIC24.
Author
Message
Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

Re: PIC related Website

#46 Post by Dany » 28 Aug 2012 13:18

Hi Yo2lio,

Apparently something messed up my files of 10K (possibly the test with mE's Fat32 library), that was the problem with the inexplicable fast Fat32 library.

The final figures are:

0: 227 with buffercopy, 263 without buffercopy (only pure read activities)
1: 98
2: 82
3: 184
4: 87
5: 106

So, the raw speed seems to be 263 kbytes/second. Is that what you expected?
Last edited by Dany on 28 Aug 2012 18:23, 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)

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

Re: PIC related Website

#47 Post by yo2lio » 28 Aug 2012 18:08

Thanks Dany!

I think that's all we can do at this MCU/SPI speed.
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:

Re: PIC related Website

#48 Post by Dany » 28 Aug 2012 18:11

Hi Yo2Lio,

See previous post for the latest measurements.

I have seen that the result for method3 can be improved in the Fat32 library (upto 200 Kb/s). I do not know which method you plan to use actually? If it is method3 (reading whole logical file sectors from a file) then I am willing to adapt Fat32 fast.
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:

Re: PIC related Website

#49 Post by yo2lio » 29 Aug 2012 08:57

My plan is to use your library, on STM32 CORTEX M4 (187MIPS), SDCARD on SDIO interface, 4 bit mode.
I think, will be fast...

I will share the code here on the forum.
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:

Re: PIC related Website

#50 Post by Dany » 29 Aug 2012 10:45

yo2lio wrote:My plan is to use your library, on STM32 CORTEX M4 (187MIPS), SDCARD on SDIO interface, 4 bit mode.
I think, will be fast...
I will share the code here on the forum.
Thanks!
Just updated the Fat32 library both on my website and on Libstock: the routine "Fat32_Read_Sector" has been optimized for speed, in case you plan to use this method you can download it 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

#51 Post by Dany » 28 Sep 2012 13:15

Hi,

Just published an USB MSD Host Library for PIC24. See http://www.libstock.com/projects/view/4 ... st-library.

It is a library for making an USB host, capable of reading and writing sectors from/to USB memory sticks.
To read/write actual files from/to the USB memory stich you need e.g. a Fat16 or Fat32 library.

The library software assumes the USB memory stick is powered from an external source.

Tested with 2 brands of USB memory sticks and 1 brand of card reader.

Documentation: http://www.rosseeld.be/DRO/PIC/USB_MSD_Host.pdf

Added 2012-09-30: adapted the hardware driver for the Fat32 library of MikroElektronika to be able to handle the USB stick software, see http://www.rosseeld.be/DRO/PIC/__Lib_FAT32_Driver.mpas.

Have fun! :D
Last edited by Dany on 30 Sep 2012 19:03, 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)

VCC
Posts: 463
Joined: 08 Jun 2009 18:31
Location: Romania

Re: PIC related Website

#52 Post by VCC » 28 Sep 2012 16:04

Thank you, Dany. :D

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

Re: PIC related Website

#53 Post by Dany » 28 Sep 2012 16:20

Hi,
Sorry, but initially the wrong Host Msd files were published. I hope that did not cause some inconvenience... :oops: :oops:
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

#54 Post by Dany » 30 Sep 2012 19:05

Hi,

The possibility exists now to use the Fat32 library of mE together with the USB MSD host library (see http://www.mikroe.com/forum/viewtopic.p ... 50#p197339), making it possible to access files on a USB memory stick (sometimes also called "pendrive"):

Here is the adapted hardware driver for the Fat32 library of MikroElektronika including the USB stick drivers: http://www.rosseeld.be/DRO/PIC/__Lib_FAT32_Driver.mpas.
Last edited by Dany on 08 Oct 2012 13:51, 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

#55 Post by Dany » 03 Oct 2012 20:15

Hi,

I was obliged to rename the "Fat32" library (see http://www.rosseeld.be/DRO/PIC/index.htm#fat_units) into "Fat32_1" (next to the already existing "Fat32_2" lib) to avoid name clashes in the IDE's Library manager when also mE's "Fat32" library is used.

Sorry for the inconvenience. :oops:
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

#56 Post by Dany » 01 Mar 2013 12:33

Hi, an I2c LCD library has been published: "LCD_I2c", see http://www.libstock.com/projects/view/97/lcd.
It is meant for LCD's using the PCF2116 lcd driver.
Last edited by Dany on 12 Mar 2013 19:01, edited 2 times 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

#57 Post by Dany » 12 Mar 2013 18:59

Hi,

* A new package has been entered in Libstock: "Expanders" , see http://www.libstock.com/projects/view/603/expanders. For now only one library is present in it: "PCF8574" (I2c to/from 8 bits parallel). Can e.g. be used to drive an LCD via I2c (see below).

* An extra I2c LCD library has been published: "LCD_I2c_PCF8574" , see http://www.libstock.com/projects/view/97/lcd. This library drives a standard LCD via I2c with the help of an PCF8574 I/O expander. It uses the "PCF8574" library (see above).
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

#58 Post by Dany » 18 Mar 2013 14:46

Hi,

A new package has been added in Libstock: Keypad_I2c (see http://www.libstock.com/projects/view/610/keypad-i2c).

It permits to connect an 4x4 keypad to a PIC via I2c (using a PCF8574(A) I2c expander). This saves a lot of pins, this making a keypad also possible to connect to PIC's with low pin count.
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

#59 Post by Dany » 28 Mar 2013 20:12

Hi,

A new library has been added to the LCD package (http://www.libstock.com/projects/view/97/lcd): LCD_SPI_74Hc595.
This library drives a standard LCD via an SPI output expander (the 74HC595 or 74HCT595).

Have fun! :D
Last edited by Dany on 25 Apr 2013 20:40, 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

#60 Post by Dany » 22 Apr 2013 15:01

Hi, a new tool has been added to the website and LibStock: a mikroPascal to mikroBasic source convertor, see
http://www.libstock.com/projects/view/6 ... -convertor or http://www.rosseeld.be/DRO/PIC/index.ht ... _convertor.

This tool is a simple mikroPascal to mikroBasic source code convertor. The tool can convert complete mP units to mB modules and complete mP programs to mB programs.
Additionally the possibility exists to convert loose definitions and/or loose code (not embedded in a program or unit environment).

Documentation of the mP to mB convertor: http://www.rosseeld.be/DRO/PIC/Pascal_t ... vertor.pdf

Have fun!

Acknowledgement: Thanks to Janni for his testing effort, problem reports and improvement suggestions! :D :D

Screenshot:
Image
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 dsPIC30/33 and PIC24 General”