Mercurial > public > hwos_code
diff src/mcp.asm @ 623:c40025d8e750
3.03 beta released
author | heinrichsweikamp |
---|---|
date | Mon, 03 Jun 2019 14:01:48 +0200 |
parents | ca4556fb60b9 |
children | cd58f7fc86db |
line wrap: on
line diff
--- a/src/mcp.asm Wed Apr 10 10:51:07 2019 +0200 +++ b/src/mcp.asm Mon Jun 03 14:01:48 2019 +0200 @@ -1,6 +1,6 @@ ;============================================================================= ; -; File mcp.asm +; File mcp.asm combined next generation V3.03.1 ; ; Basic routines for RX circuity ; @@ -15,12 +15,20 @@ mcp code +;============================================================================= + + IFDEF _external_sensor + global mcp_sleep mcp_sleep: bcf INTCON3,INT3IE ; disable INT3 - bcf mcp_power ; RX off - btfsc mcp_power - bra $-4 - return + bcf mcp_power ; request IR receiver off + btfsc mcp_power ; off confirmed? + bra $-4 ; NO - loop waiting + return ; YES - done + + ENDIF + +;============================================================================= END