
; Set SlaveADR
	movlw 0        ; can be 0 or 1
	banksel iislaveadr
	movwf iislaveadr

; Set Clock Mode
	movlw 0        ; Address 0 - control
	banksel iiadr
	movwf iiadr

	movlw B'00000000' ; Control byte, see Datasheet
	banksel iidata
	movwf iidata

	call PCF8583WriteByte

; Get current time
	call PCF8583ReadClock

