comparison src/mcp.asm @ 623:c40025d8e750

3.03 beta released
author heinrichsweikamp
date Mon, 03 Jun 2019 14:01:48 +0200
parents ca4556fb60b9
children cd58f7fc86db
comparison
equal deleted inserted replaced
622:02d1386429a6 623:c40025d8e750
1 ;============================================================================= 1 ;=============================================================================
2 ; 2 ;
3 ; File mcp.asm 3 ; File mcp.asm combined next generation V3.03.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 ;=============================================================================
13 #include "hwos.inc" 13 #include "hwos.inc"
14 #include "wait.inc" 14 #include "wait.inc"
15 15
16 mcp code 16 mcp code
17 17
18 ;=============================================================================
19
20 IFDEF _external_sensor
21
18 global mcp_sleep 22 global mcp_sleep
19 mcp_sleep: 23 mcp_sleep:
20 bcf INTCON3,INT3IE ; disable INT3 24 bcf INTCON3,INT3IE ; disable INT3
21 bcf mcp_power ; RX off 25 bcf mcp_power ; request IR receiver off
22 btfsc mcp_power 26 btfsc mcp_power ; off confirmed?
23 bra $-4 27 bra $-4 ; NO - loop waiting
24 return 28 return ; YES - done
29
30 ENDIF
31
32 ;=============================================================================
25 33
26 END 34 END