ATMEGA2560: which registers for the MMC ?
hi guys,
i got mmc_fat.h file github project (https://github.com/thseiler/embedded/tree/master/avr/2boots).
and know correct configuration atmega2560 these defines (currently it's default values atmega328):
//port & pin definitions.
//settings below recommended mega168 , mega328
#define spi_port portb
#define spi_ddr ddrb
#define spi_miso pb4 //dataout of mmc
#define spi_mosi pb3 //datain of mmc
#define spi_clk pb5 //clock of mmc
#define spi_ss pb2 //ss pin of spi interface
// these define pin, port , ddr of chip select mmc...
// used defined here, in makefile
#define mmc_cs pb2 //also change mmc_port , mmc_ddr acordingly
#define mmc_port portb
#define mmc_ddr ddrb
thank guys!
anthony
i got mmc_fat.h file github project (https://github.com/thseiler/embedded/tree/master/avr/2boots).
and know correct configuration atmega2560 these defines (currently it's default values atmega328):
//port & pin definitions.
//settings below recommended mega168 , mega328
#define spi_port portb
#define spi_ddr ddrb
#define spi_miso pb4 //dataout of mmc
#define spi_mosi pb3 //datain of mmc
#define spi_clk pb5 //clock of mmc
#define spi_ss pb2 //ss pin of spi interface
// these define pin, port , ddr of chip select mmc...
// used defined here, in makefile
#define mmc_cs pb2 //also change mmc_port , mmc_ddr acordingly
#define mmc_port portb
#define mmc_ddr ddrb
thank guys!
anthony
Arduino Forum > Using Arduino > Storage > ATMEGA2560: which registers for the MMC ?
arduino
Comments
Post a Comment