I managed to get the RTC working with LPO while in PEE mode (24MHz). But still no joy with ERCLK or IRCLK. Below is the code that works. But any value other than 00 for RTCLK does not work ( there is no interupt).
Rob
* RTC test
rtct jsr InitRTC
cli
rt jsr tg3 ; toggle bit for CRO display
wait
bra rt
*************************************************
* Initialise RTC for 1 second period
InitRTC
mov #0,RTCMOD
mov #%00011111,RTCSC
rts
****************************************************
* RTC Interupt Service Routine.
RTC_isr
bset RTCSC_RTIF,RTCSC
rti