comparison src/mcp.asm @ 629:237931377539

3.07 stable release
author heinrichsweikamp
date Fri, 29 Nov 2019 18:48:11 +0100
parents cd58f7fc86db
children 4050675965ea
comparison
equal deleted inserted replaced
628:cd58f7fc86db 629:237931377539
1 ;============================================================================= 1 ;=============================================================================
2 ; 2 ;
3 ; File mcp.asm combined next generation V3.03.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 ;=============================================================================
15 15
16 mcp code 16 mcp code
17 17
18 ;============================================================================= 18 ;=============================================================================
19 19
20 IFDEF _external_sensor
21
22 global mcp_sleep 20 global mcp_sleep
23 mcp_sleep: 21 mcp_sleep:
24 bcf INTCON3,INT3IE ; disable INT3 22 bcf INTCON3,INT3IE ; disable INT3
25 bcf mcp_power ; request IR receiver off 23 bcf mcp_power ; request IR receiver off
26 btfsc mcp_power ; off confirmed? 24 btfsc mcp_power ; off confirmed?
27 bra $-6 ; NO - loop waiting 25 bra $-6 ; NO - loop waiting
28 return ; YES - done 26 return ; YES - done
29 27
30 ENDIF
31
32 ;============================================================================= 28 ;=============================================================================
33 29
34 END 30 END