diff src/hwos.asm @ 648:aeca5717d9eb

3.17 / 10.72 release
author heinrichs weikamp
date Fri, 04 Mar 2022 08:29:36 +0100
parents 357341239438
children ef2ed7e3a895
line wrap: on
line diff
--- a/src/hwos.asm	Thu Oct 14 12:04:12 2021 +0200
+++ b/src/hwos.asm	Fri Mar 04 08:29:36 2022 +0100
@@ -463,8 +463,10 @@
 	global	power_up_switches
 power_up_switches:
 	bsf		power_sw1			; switch on power supply for switch 1
-	btfss	power_sw1			; power established?
-	bra		$-4					; NO - wait
+	
+	; power_sw1 not available in less pin CPU, do not use
+;	btfss	power_sw1			; power established?
+;	bra		$-4					; NO - wait
 
 	bsf		power_sw2			; switch on power supply for switch 2
 	btfss	power_sw2			; power established?
@@ -618,7 +620,9 @@
 	movwf	TBLPTRH					; ...
 	movlw	0x3F					; ...
 	movwf	TBLPTRU					; ...
-	TBLRD*+							; read DEVID1 byte
+	TBLRD*+						; read DEVID1 byte
+	btfss	TABLAT,6
+	bsf	less_io_cpu				; Less I/O CPU found
 	movlw	b'00011111'				; load mask for silicon version
 	andwf	TABLAT,W				; apply mask and store result in WREG 
 	return							; done