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?
PIC related Website
Re: PIC related Website
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)
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)
Re: PIC related Website
Thanks Dany!
I think that's all we can do at this MCU/SPI speed.
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
http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/
mail : florin@microelemente.ro
Re: PIC related Website
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.
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)
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)
Re: PIC related Website
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.
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
http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/
mail : florin@microelemente.ro
Re: PIC related Website
Thanks!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.
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)
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)
Re: PIC related Website
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!
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!
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)
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)
Re: PIC related Website
Thank you, Dany.
Re: PIC related Website
Hi,
Sorry, but initially the wrong Host Msd files were published. I hope that did not cause some inconvenience...
Sorry, but initially the wrong Host Msd files were published. I hope that did not cause some inconvenience...
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)
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)
Re: PIC related Website
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.
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)
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)
Re: PIC related Website
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.
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.
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)
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)
Re: PIC related Website
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.
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)
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)
Re: PIC related Website
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).
* 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)
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)
Re: PIC related Website
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.
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)
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)
Re: PIC related Website
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!
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!
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)
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)
Re: PIC related Website
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!
Screenshot:
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!
Screenshot:
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)
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)