Subversion Repositories svn.mios

Rev

Rev 149 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 149 Rev 360
Line 1... Line 1...
1
; $Id: sid_ext.inc 149 2008-03-01 14:35:40Z tk $
1
; $Id: sid_ext.inc 360 2008-06-21 20:03:46Z tk $
2
;
2
;
3
; AOUT and Gate pin handler
3
; AOUT and Gate pin handler
4
; 
4
; 
5
; ==========================================================================
5
; ==========================================================================
6
;
6
;
Line 33... Line 33...
33
	;; store new state
33
	;; store new state
34
	movff	GATES, GATES_LAST
34
	movff	GATES, GATES_LAST
35

35

36
	;; forward digital pins to AOUT driver (only relevant for MAX525 based MBHP_AOUT module)
36
	;; forward digital pins to AOUT driver (only relevant for MAX525 based MBHP_AOUT module)
37
	movf	GATES, W, BANKED
37
	movf	GATES, W, BANKED
-
 
38
#if 0
-
 
39
	xorlw	0x03		; optional inversion of digital pins
-
 
40
#endif
38
	call	AOUT_DigitalPinsSet
41
	call	AOUT_DigitalPinsSet
39
42
40
	;; optionally forward to DOUT
43
	;; optionally forward to DOUT
41
#if DEFAULT_EXT_SWITCH_DOUT
44
#if DEFAULT_EXT_SWITCH_DOUT
42
	movff	GATES, MIOS_PARAMETER1
45
	movff	GATES, MIOS_PARAMETER1
Line 46... Line 49...
46
49
47
	;; optionally forward to J5
50
	;; optionally forward to J5
48
#if DEFAULT_J5_FUNCTION == 3
51
#if DEFAULT_J5_FUNCTION == 3
49
	SET_BSR	GATES
52
	SET_BSR	GATES
50
	movf	GATES, W, BANKED
53
	movf	GATES, W, BANKED
-
 
54
#if 0
-
 
55
	xorlw	0x03		; optional inversion of digital pins
-
 
56
#endif
51
	call	J5_IO_Set
57
	call	J5_IO_Set
52
#endif
58
#endif
53
59
54
SID_EXT_Update_Gates_Skip
60
SID_EXT_Update_Gates_Skip
55
61