0
|
1 ;=============================================================================
|
|
2 ;
|
629
|
3 ; File mcp.asm combined next generation V3.06.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
|
604
|
20 global mcp_sleep
|
28
|
21 mcp_sleep:
|
604
|
22 bcf INTCON3,INT3IE ; disable INT3
|
623
|
23 bcf mcp_power ; request IR receiver off
|
|
24 btfsc mcp_power ; off confirmed?
|
628
|
25 bra $-6 ; NO - loop waiting
|
623
|
26 return ; YES - done
|
|
27
|
|
28 ;=============================================================================
|
28
|
29
|
604
|
30 END
|