For SD-cards and SDHC cards (works also with ATXMEGA !):
Getting started with an ATMEGA and ATXMEGA with MMCSD_HC.LIB:
The mmcsd_hc.lib can be found in the ...BASCOM-AVR\LIB folder.
This library support:
• SD-Cards (also known as SDSC Cards = Secure Digital Standard-Capacity usually up to 2 GByte (also microSD)
• SDHC cards (Secure Digital High Capacity) cards start at 2Gbyte up to 32GByte. You can also use micro SDHC cards.
• It works with ATMEGA and ATXMEGA chips.