gnupic: Troubles with PCON


Previous by date: 21 Jul 2001 15:35:45 -0000 Troubles with PCON, Nestor A. Marchesini
Next by date: 21 Jul 2001 15:35:45 -0000 Re: Troubles with PCON, Nestor A. Marchesini
Previous in thread: 21 Jul 2001 15:35:45 -0000 Troubles with PCON, Nestor A. Marchesini
Next in thread: 21 Jul 2001 15:35:45 -0000 Re: Troubles with PCON, Nestor A. Marchesini

Subject: Re: Troubles with PCON
From: Scott Dattalo ####@####.####
Date: 21 Jul 2001 15:35:45 -0000
Message-Id: <Pine.LNX.4.33.0107211031170.25855-100000@tempest.blackhat.net>


On Sat, 21 Jul 2001, Nestor A. Marchesini wrote:

> 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 ?

First, the PCON register is not supported in gpsim. The good news is I
just added it and will try to get a 0.20.10 out within 24hrs with the
change. gpsim doesn't fully simulate the reset conditions, so the POR
and BOR bits will essentially be general purpose bits. (Upon startup,
both bits will be cleared. After a reset, they'll also [improperly] be
cleared).

I'm going to try to get an RPM built to simplify the install problems
everyone is having with gpsim.

Scott


Previous by date: 21 Jul 2001 15:35:45 -0000 Troubles with PCON, Nestor A. Marchesini
Next by date: 21 Jul 2001 15:35:45 -0000 Re: Troubles with PCON, Nestor A. Marchesini
Previous in thread: 21 Jul 2001 15:35:45 -0000 Troubles with PCON, Nestor A. Marchesini
Next in thread: 21 Jul 2001 15:35:45 -0000 Re: Troubles with PCON, Nestor A. Marchesini


Powered by ezmlm-browse 0.20.