SparkFun Forums 

Where electronics enthusiasts find answers.

Discussions on the software and hardware for Atmel's STK standard.
By dkvasnic
#103051
Hello,

Does anyone have sample code for writing to an SD card through the ATxmega128A1 microcontroller? The sample code provided on the sparkfun website is incomplete and I've been having lots of trouble trying to get it to work. At this point, I'm just trying to initalize the SD card however it does not respond. I had this working no problem on an ATMega16. Any help would be appreciated! Thanks,

David
By Liencouer
#103098
Without having actually looked at the code, it shouldn't be much of an exercise to modify the M16 code to make it work on the XM128A1. The differences should just be at the hardware interface level (IO access/timer functions), while the base code should be functionally the same.