Archive for May 2011

RTC Module (Part 6)

Part 1, 2, 3, 4, 5, 6, 7 Here are some pieces of code which has been updated from my previous PlainRTC library. A new specific PlainRTC1394 has been created; this library is also compatible with the fully revamped PlainSPI. Firstly, lets have a look to the header file: /* PlainRTC1394 library, Real Time Clock driver library MAXIM DALLAS DS1394 driver Copyright […]

RTC Module (Part 5)

Part 1, 2, 3, 4, 5, 6, 7 In the previous posts, I described a MAXIM DALLAS DS1306 based module which proved to be easy to set up and to program. However, the DS1306 has one major drawback (and a minor one) which really puzzled me while wiring multiple SPI devices on the same port. Two from the four SPI modes are […]

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 (10)

Previous T&T I could have named this one: welcome to the world of C! The most common error made by green horn C programmers consists in skipping the semi colon at the end of each instruction. The other frequent error consists in using the = sign to compare two values. I recently fell in one […]