annotate src/mcp.asm @ 627:bf5fee575701

minor cleanup, reset rx circuity
author heinrichsweikamp
date Sun, 30 Jun 2019 23:22:32 +0200
parents c40025d8e750
children cd58f7fc86db
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
heinrichsweikamp
parents:
diff changeset
1 ;=============================================================================
heinrichsweikamp
parents:
diff changeset
2 ;
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 604
diff changeset
3 ; File mcp.asm combined next generation V3.03.1
0
heinrichsweikamp
parents:
diff changeset
4 ;
heinrichsweikamp
parents:
diff changeset
5 ; Basic routines for RX circuity
heinrichsweikamp
parents:
diff changeset
6 ;
heinrichsweikamp
parents:
diff changeset
7 ; Copyright (c) 2012, JD Gascuel, HeinrichsWeikamp, all right reserved.
heinrichsweikamp
parents:
diff changeset
8 ;=============================================================================
heinrichsweikamp
parents:
diff changeset
9 ; HISTORY
heinrichsweikamp
parents:
diff changeset
10 ; 2012-08-12 : [mH] Creation
heinrichsweikamp
parents:
diff changeset
11
heinrichsweikamp
parents:
diff changeset
12
275
653a3ab08062 rename into hwOS
heinrichsweikamp
parents: 98
diff changeset
13 #include "hwos.inc"
0
heinrichsweikamp
parents:
diff changeset
14 #include "wait.inc"
heinrichsweikamp
parents:
diff changeset
15
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 275
diff changeset
16 mcp code
0
heinrichsweikamp
parents:
diff changeset
17
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 604
diff changeset
18 ;=============================================================================
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 604
diff changeset
19
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 604
diff changeset
20 IFDEF _external_sensor
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 604
diff changeset
21
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 275
diff changeset
22 global mcp_sleep
28
heinrichsweikamp
parents: 0
diff changeset
23 mcp_sleep:
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 275
diff changeset
24 bcf INTCON3,INT3IE ; disable INT3
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 604
diff changeset
25 bcf mcp_power ; request IR receiver off
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 604
diff changeset
26 btfsc mcp_power ; off confirmed?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 604
diff changeset
27 bra $-4 ; NO - loop waiting
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 604
diff changeset
28 return ; YES - done
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 604
diff changeset
29
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 604
diff changeset
30 ENDIF
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 604
diff changeset
31
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 604
diff changeset
32 ;=============================================================================
28
heinrichsweikamp
parents: 0
diff changeset
33
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 275
diff changeset
34 END