Mercurial > public > hwos_code
diff src/external_flash.asm @ 416:4389fe9673b2
NEW: Support for new logbook memory chip (minor hardware change)
BUGFIX: Button sensitivity was not reset after update in some cases
author | heinrichsweikamp |
---|---|
date | Mon, 18 Apr 2016 14:34:57 +0200 |
parents | 35bdfd89323c |
children | 789230298511 |
line wrap: on
line diff
--- a/src/external_flash.asm Sun Apr 10 11:46:55 2016 +0200 +++ b/src/external_flash.asm Mon Apr 18 14:34:57 2016 +0200 @@ -212,7 +212,7 @@ bsf flash_ncs ; CS=1 ; unlock new memory - bsf flash_ncs ; CS=1 +; bsf flash_ncs ; CS=1 movlw 0x06 ; WREN command rcall write_spi bsf flash_ncs ; CS=1 @@ -233,7 +233,7 @@ rcall write_spi movlw b'00011100' ; New status (Write protect on) rcall write_spi - bsf flash_ncs ; CS=1 +; bsf flash_ncs ; CS=1 ; lock new memory bsf flash_ncs ; CS=1 @@ -265,7 +265,7 @@ bsf flash_ncs ; CS=1 ; bra ext_flash_wait_write ; Wait for write... and return ext_flash_wait_write: - WAITMS d'1' ; TBE=25ms... + WAITMS d'5' ; TBE/TSE=25ms... movlw 0x05 ; RDSR command rcall write_spi ; Read status rcall write_spi ; Read status into WREG