0
|
1 ;=============================================================================
|
|
2 ;
|
634
|
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
|
|
16
|
623
|
17 ;=============================================================================
|
634
|
18 mcp code
|
|
19 ;=============================================================================
|
623
|
20
|
634
|
21
|
|
22 ;-----------------------------------------------------------------------------
|
|
23 ; Disable IR Receiver
|
|
24 ;
|
604
|
25 global mcp_sleep
|
28
|
26 mcp_sleep:
|
604
|
27 bcf INTCON3,INT3IE ; disable INT3
|
634
|
28 bcf mcp_power ; power down IR receiver
|
|
29 btfsc mcp_power ; power drained down?
|
628
|
30 bra $-6 ; NO - loop waiting
|
623
|
31 return ; YES - done
|
|
32
|
634
|
33 ;-----------------------------------------------------------------------------
|
28
|
34
|
604
|
35 END
|