Close

RTC Time

A project log for Merlin

68000 Retro Super Computer

matthew-pearceMatthew Pearce 07/07/2021 at 16:030 Comments

The merlin bios has support for an mcp79410 RTC clock on the i2c pins of the Arty. The FATFS filing system has now been updated to include accurate timestamps in the directory listing.

The time and date is available at these locations in memory:

	volatile uint8_t *secs = (uint8_t *)0xf30041;

	volatile uint16_t *mins = (uint16_t *)0xf30040;

	volatile uint8_t *hours = (uint8_t *)0xf30043;

	volatile uint8_t *day = (uint8_t *)0xf30045;

	volatile uint16_t *month = (uint16_t *)0xf30044;

	volatile uint8_t *year = (uint8_t *)0xf30047;

The directory listing now updates the FAT32 timestamp correctly 

Discussions