gnupic: Troubles with PCON
Subject:
Troubles with PCON
From:
"Nestor A. Marchesini" ####@####.####
Date:
21 Jul 2001 08:59:23 -0000
Message-Id: <000e01c111c2$e763f5a0$ccff2dc8@Marchesini>
Hi Gnupic
processor 16f877
gpsim 0.20.1 in .i386..rpm
RedHat 7.1 core 2.4.2-2
GUI KDE
PIII at 700Mhz
assembler gpasm 0.9.8-1.i386.rpm
me code:
;
Start
;
;/* Check reset POR = 0 */
;
bsf STATUS,RP0 ;Bank 1
bcf STATUS,RP1 ;
btfss PCON,NOT_POR ;? Power = On ?
goto PowerOn ;Not
;
;/* Check if ocurrió a reset by drop of tension BOR = 0 */
;
btfss PCON,NOT_BOR ;¿ Drop tension in the +5 Volts ?
goto PowerOn ;Yes
the error displayed by gpsim in the terminal
16F877 0x0496 0x1683 bsf status,5
read: 0x7c from status
wrote: 0x3c to status
cycle: 0x026
16F877 0x0497 0x1303 bcf status,6
read: 0x7c from status
wrote: 0x3c to status
cycle: 0x027
attempt read from invalid file register
16F877 0x0498 0x1C8E btfss TMR1L,1
read: 0x00 from indf
cycle: 0x028
I try to install gpsim 0.20.9 in .tar.gz and get errors.
Is support the register PCON by gpsim 0.20.1 ?
thanks in advance.
:)
Nestor A. Marchesini
Chajari-Entre Rios-Argentina
ICQ # 50983752 nick colo
####@####.####