0
|
1 ;=============================================================================
|
|
2 ;
|
623
|
3 ; File mcp.asm combined next generation V3.03.1
|
0
|
4 ;
|
|
5 ; Basic routines for RX circuity
|
|
6 ;
|
|
7 ; Copyright (c) 2012, JD Gascuel, HeinrichsWeikamp, all right reserved.
|
|
8 ;=============================================================================
|
|
9 ; HISTORY
|
|
10 ; 2012-08-12 : [mH] Creation
|
|
11
|
|
12
|
275
|
13 #include "hwos.inc"
|
0
|
14 #include "wait.inc"
|
|
15
|
604
|
16 mcp code
|
0
|
17
|
623
|
18 ;=============================================================================
|
|
19
|
|
20 IFDEF _external_sensor
|
|
21
|
604
|
22 global mcp_sleep
|
28
|
23 mcp_sleep:
|
604
|
24 bcf INTCON3,INT3IE ; disable INT3
|
623
|
25 bcf mcp_power ; request IR receiver off
|
|
26 btfsc mcp_power ; off confirmed?
|
628
|
27 bra $-6 ; NO - loop waiting
|
623
|
28 return ; YES - done
|
|
29
|
|
30 ENDIF
|
|
31
|
|
32 ;=============================================================================
|
28
|
33
|
604
|
34 END
|