Posts Tagged ‘SPI’

Memory (Part 6)

Part 1, 2, 3, 4, 5, 6, 7 Previous posts on the same subject showed that it is possible to significantly increase the amount of memory for a moderate price and little hardware and software works. This post is now about the use we can do of this extra memory. The idea here is to record and then display large amounts of […]

SD Cards (Part 5)

Other posts on same subject Part 1, 2, 3, 4, 5, 6 Erratum! While building a professional grade application I realized that I made a stupid mistake in the Blocks function from my PlainSDC library. Firstly, here is a nice table showing the content of the CARD SPECIFIC DATA REGISTER: It is taken from the ‘APPLICATION NOTE 3969: SD Media Format Expands […]

Tips and tricks (5)

Previous T&T This trick does not deal with interrupts for a change! The problem arose when I wanted to run two SPI driven modules (RTC and SDCard) from the same SPI port, using different Slave Select lines. While both modules where running perfectly using PORTB2, PORTB3, PORTB4 and PORTB5, respectively SS, MOSI, MISO and CLK. […]

RTC Module (Part 2)

Part 1, 2, 3, 4, 5, 6, 7 After the hardware description of the module, I will describe here the code required for driving it with Arduino. Firstly, we need to establish a SPI communication between Arduino (the master) and DS1306 (the slave). And here is the initialization routine for the SPI void spi_init(void) { // Initialize SPI port // Input pin […]