Mercurial > public > hwos_code
view src/mcp.asm @ 642:a9a0188091e4
fix rare upgrade issue with OSTC sport 2019 hardware
author | heinrichsweikamp |
---|---|
date | Thu, 14 Jan 2021 16:24:07 +0100 |
parents | 4050675965ea |
children | 75e90cd0c2c3 |
line wrap: on
line source
;============================================================================= ; ; File mcp.asm * combined next generation V3.06.1 ; ; Basic routines for RX circuity ; ; Copyright (c) 2012, JD Gascuel, HeinrichsWeikamp, all right reserved. ;============================================================================= ; HISTORY ; 2012-08-12 : [mH] Creation #include "hwos.inc" #include "wait.inc" ;============================================================================= mcp code ;============================================================================= ;----------------------------------------------------------------------------- ; Disable IR Receiver ; global mcp_sleep mcp_sleep: bcf INTCON3,INT3IE ; disable INT3 bcf mcp_power ; power down IR receiver btfsc mcp_power ; power drained down? bra $-6 ; NO - loop waiting return ; YES - done ;----------------------------------------------------------------------------- END