Searching \ for 'PIC16C84 problem, again' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/devices.htm?key=16C
Search entire site for: 'PIC16C84 problem, again'.

Truncated match.
PICList Thread
'PIC16C84 problem, again'
1998\10\23@054007 by Radoni Calin

flavicon
face
SORRY for previeows HTML format of this !
The message again.


Hi to all !
   Recently I buy two pic16c84 and I have some problems with them, in
fact I think that my
micros goes in reset and stay there if they execute a CLRWDT instruction
or if they execute an
operation with OPTION register.
   To be clear, following there are three extremely simple programs,
first is Ok and the
others not.
   Can someone help me ?
   Thanks,
       Calin.

-------------------

   Sistem description :
       I build a little system with a PIC16C84, an XT oscillator, and
five LED's connected on
the RB0-RB4 lines.
       In configuration word WDT is NOT enabled.

-------------------

This program works well
   LIST P=16C84
   __CONFIG 0x3FF9
   #include "p16c84.inc"
   #define bank0 bcf STATUS,RP0
   #define bank1 bsf STATUS,RP0
   ORG 0
start:
   clrf PORTB
   bank1
   clrf TRISB^0x80
   movlw 0x1F
   movf TRISA^0x80
   bank0
   movlw 0xEE
   movwf PORTB
loop:
   goto loop
   END

-------------------

This program works BAD ! (it lights the whole five LED's)
   LIST P=16C84
   __CONFIG 0x3FF9
   #include "p16c84.inc"
   #define bank0 bcf STATUS,RP0
   #define bank1 bsf STATUS,RP0
   ORG 0
start:
   clrwdt
   clrf PORTB
   bank1
   clrf TRISB^0x80
   movlw 0x1F
   movf TRISA^0x80
   bank0
   movlw 0xEE
   movwf PORTB
loop:
   goto loop
   END

-------------------

This program also works BAD ! (it lights the whole 5 LED's)
   LIST P=16C84
   __CONFIG 0x3FF9
   #include "p16c84.inc"
   #define bank0 bcf STATUS,RP0
   #define bank1 bsf STATUS,RP0
   ORG 0
start:
   clrf PORTB
   bank1
   clrf TRISB^0x80
   movlw 0x1F
   movf TRISA^0x80
   bcf OPTION_REG,PSA
   bank0
   movlw 0xEE
   movwf PORTB
loop:
   goto loop
END

---------- Message end ---

1998\10\23@101651 by Tom Rowley

flavicon
face
You didn't mention pullup a resistor on the MCLR line. This line MUST be
held up to avoid weird behavior.

               {Original Message removed}

1998\10\25@044316 by Radoni Calin

flavicon
face
Hi Tom,
   Thanks for your time, I have a reset circuit connected to the system.
       Calin.


Tom Rowley wrote:

> You didn't mention pullup a resistor on the MCLR line. This line MUST be
> held up to avoid weird behavior.
>
>                 -----Original Message-----
>                 From:   Radoni Calin [spam_OUTcalinTakeThisOuTspamDEVA.IIRUC.RO]
>                 Sent:   Wednesday, July 01, 1998 2:36 AM
>                 To:     .....PICLISTKILLspamspam@spam@MITVMA.MIT.EDU
>                 Subject:        PIC16C84 problem, again
>

1998\10\26@111636 by Brian Watson

flavicon
face
Hi Radoni

I had a DS1233 as an external reset on a PIC16F84 project.  The MCLR and
DS1233 were holding each other in the reset condition.  Everything worked
fine when I disconnected the DS1233.

Brian Watson

{Original Message removed}

More... (looser matching)
- Last day of these posts
- In 1998 , 1999 only
- Today
- New search...