|
|
I've started a preliminary driver for the above platform and have a game up and running. I am currently working on the RTC, the board uses a DS1287 Dallas RTC chip.
There is a PIA-6821 adapter which provides various output signals to other devices including the RTC. I've discovered the address mapping for the RTC 0x5380 - 0x5381. If I simply just return 0x01 from my read_handler it sets the time,date and year to 01:01:01 01 JAN 01.
I may need to implement a proper handler for the RTC so that the random number generator will generate the correct reel stops.
MAME has a ds1302 driver but I have no idea how to use it and nobody seems to be using it for anything.
Available functions are.
extern void DS1302_RST(UINT8 val); extern void DS1302_DAT(UINT8 val); extern void DS1302_CLK(running_machine *machine, UINT8 val); extern UINT8 DS1302_RD(void);
I could always get the time/date from the PC system and return that from my read handler but I guess that is almost cheating ?
Would appreciate any input.
[ATTACHED IMAGE - CLICK FOR FULL SIZE]
Edited by palindrome (05/18/09 04:00 PM)
|
|