comparison src/mcp.asm @ 634:4050675965ea

3.10 stable release
author heinrichsweikamp
date Tue, 28 Apr 2020 17:34:31 +0200
parents 237931377539
children 75e90cd0c2c3
comparison
equal deleted inserted replaced
633:690c48db7b5b 634:4050675965ea
1 ;============================================================================= 1 ;=============================================================================
2 ; 2 ;
3 ; File mcp.asm combined next generation V3.06.1 3 ; File mcp.asm * combined next generation V3.06.1
4 ; 4 ;
5 ; Basic routines for RX circuity 5 ; Basic routines for RX circuity
6 ; 6 ;
7 ; Copyright (c) 2012, JD Gascuel, HeinrichsWeikamp, all right reserved. 7 ; Copyright (c) 2012, JD Gascuel, HeinrichsWeikamp, all right reserved.
8 ;============================================================================= 8 ;=============================================================================
11 11
12 12
13 #include "hwos.inc" 13 #include "hwos.inc"
14 #include "wait.inc" 14 #include "wait.inc"
15 15
16 mcp code
17 16
18 ;============================================================================= 17 ;=============================================================================
18 mcp code
19 ;=============================================================================
19 20
21
22 ;-----------------------------------------------------------------------------
23 ; Disable IR Receiver
24 ;
20 global mcp_sleep 25 global mcp_sleep
21 mcp_sleep: 26 mcp_sleep:
22 bcf INTCON3,INT3IE ; disable INT3 27 bcf INTCON3,INT3IE ; disable INT3
23 bcf mcp_power ; request IR receiver off 28 bcf mcp_power ; power down IR receiver
24 btfsc mcp_power ; off confirmed? 29 btfsc mcp_power ; power drained down?
25 bra $-6 ; NO - loop waiting 30 bra $-6 ; NO - loop waiting
26 return ; YES - done 31 return ; YES - done
27 32
28 ;============================================================================= 33 ;-----------------------------------------------------------------------------
29 34
30 END 35 END