Searching \ for 'Please help me' 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/index.htm?key=please+help
Search entire site for: 'Please help me'.

Truncated match.
PICList Thread
'Please help me'
1997\08\04@030631 by Johnny van Aardt

flavicon
face
Hi,

I am new to PIC's and i need some help. I use a PIC 16c84. All PortB lines
are used.
My problem is the following :

I wrote a short program as shown below

       org 0
START   goto MAIN

       org 4
interr  retfie


MAIN    goto init

main0   nop
       nop
       ;loop here forever
       goto main0

init ;here i inintialize some variables
       MOVLW   0xFF
       MOVWF   PORTB
       MOVLW   0x7D
       BANK_1          ;BSF     STATUS,RP0
       MOVWF   TRISB
       BANK_0          ;BCF     STATUS,RP0
;---------------------------------------------------------------
;Initialise RTCC - setup RTCC for /256 of (OSC/4)
;---------------------------------------------------------------
       MOVLW   0xC7
       CLRWDT
       BANK_1
       MOVWF   OPTION_REG
       BANK_0
;---------------------------------------------------------------
;Bit7 -RBPU = 1 - disable RB pullups
;Bit6 -INTEDG = 1 - RB0 rising edge INT
;Bit5 -RTS = 0 - Internal Clock
;Bit4 -RTE = 0 - INC  low->high
;Bit3 -PSA = 0 - RTCC (not WDT)
;Bit2 -PS2 \
;Bit1 -PS1  = 111 - 1:256
;Bit0 -PS0 /
;---------------------------------------------------------------
       CLRWDT
;---------------------------------------------------------------
; Initialize registers
;---------------------------------------------------------------
       MOVF    PORTB     , W
       ANDLW   0xF0
       MOVWF   0x2C

       CALL SENDONE
;-------------------------------------------------------------
; call SENDONE pull RB6 down for a while and the release the
; the line again. At this stage i use this for debugging. I can
; see this on a logic analyzer
;
;       ____    ____________
;           |___|
;-------------------------------------------------------------
       CLRF    SECH                    ;0x1A
       CLRF    SECM                    ;0x1B
       CLRF    SECL                    ;0x1C
       CLRF    SECONDS                 ;0x15
       CLRF    MINUTES                 ;0x14
       CLRF    HOURS                   ;0x13
       CLRF    KMCNTL                  ;0x0F
       CLRF    KMCNTM                  ;0x0E
       CLRF    KMCNTH                  ;0x0D
       MOVLW   0x01
       MOVWF   DAYS                    ;0x12
       MOVWF   MONTHS                  ;0x11
       CLRF    SWDT                    ;0x10
       CLRF    STATUSH                 ;0x1E
       CLRF    STATUSL                 ;0x1F
;--------------------------------------------------------------
; Initialise Interrupts
;---------------------------------------------------------------
       movlw   0x18                    ;enable INT & RBIF
       movwf   INTCON                  ;see OPTION reg bits 6 & 7
;---------------------------------------------------------------
; Enable Interrupts
;---------------------------------------------------------------
       BSF     INTCON    , INTE
       BSF     INTCON    , RBIE
       BCF     INTCON    , RBIF
       BSF     INTCON    , GIE

       goto main0

Now : my problem is that the program keep starting from a address 0.
This
means it keeps on going thru init.


THANKS
       Johnny

1997\08\04@111405 by Mike Keitz

picon face
On Mon, 4 Aug 1997 08:58:19 +0200 Johnny van Aardt
<spam_OUTjvaardtTakeThisOuTspamAVITRONICS.CO.ZA> writes:
>Hi,
>
>I am new to PIC's and i need some help. I use a PIC 16c84. All PortB
>lines
>are used.
>My problem is the following :
>
>I wrote a short program as shown below
[program deleted]
>Now : my problem is that the program keep starting from a address 0.
>This
>means it keeps on going thru init.

You do not have CLRWDT instructions anywhere except in init.  Once the
program starts, the WDT will time out and reset the chip.  Either place a
CLRWDT in you main loop (placing it in the interrupt routine is generally
not a good idea) or select WDT:Off on your programmer.  A CLRWDT
instruction does not permanantly disable the WDT, it only keeps it happy
for a while.  The only way to disable the WDT is to set the EEPROM fuse
for it when you program the chip.

1997\08\04@153405 by Steve Smith

picon face
I belive that u are letting the WDT time out as when your program reaches
_main0 it goes into an endless loop without a clear wdt statement hence
continually restarts  form 0 every WDT period as specified in the option
register.

Try 1.     Turn off the WDT
     2.     clear WDT in _main0

Cheers Steve.....

1997\08\05@201106 by Alex I. Torres

flavicon
face
b> From: Johnny van Aardt <.....jvaardtKILLspamspam@spam@AVITRONICS.CO.ZA>
b> Subject:      Please help me
b> To: PICLISTspamKILLspamMITVMA.MIT.EDU
b>
b> Hi,
b>
b> I am new to PIC's and i need some help. I use a PIC
b> 16c84.
b> All PortB lines are used. My problem is the following:
b>
b> I wrote a short program as shown below
b>
b>         org 0
b> START   goto MAIN
b>
b>         org 4
b> interr  retfie

<skiped>

b> ; Enable Interrupts
b> ;------------------------------------------------
b>         BSF     INTCON    , INTE
b>         BSF     INTCON    , RBIE
b>         BCF     INTCON    , RBIF
b>         BSF     INTCON    , GIE
b>
b>         goto main0
b>
b> Now : my problem is that the program keep starting
b> from a address 0. This means it keeps on going thru
b> init.

You must check the interrupt source in INTCON (in
interrupt routine) and clear the corresponding bit
in INTCON !


  Best Wishes, Alex Torres.
  Kharkov, Ukraine, exUSSR.
  E-Mail To : .....altorKILLspamspam.....cook.kharkov.ua   via InterNet
              or 2:461/28             via FidoNet

--- GoldED 2.50.A0531+


'Please help me'
2000\02\08@191933 by Tom Stathes
flavicon
face
Hello All

I have a few questions regarding the programing of the pic 12c508.

I need a reliable method to copy the contense of one 12c508 to another.

I built the PIC2 progerammer and i cant seem to get a good copy.

1. Does anyone know where i can get or can someone send me a copy of the
adapter for the "ludipipo" pic progeammer so i can program the 12c508?

2.  Does anyone know where i can get or can someone send me the plans to
build a 12c508 copier?

3. Can someone suggest a better / easier way?

Cost IS an issue, so i want something that i will be able to build, i dont
want to buy a programmer.

Thanks
--Tom



______________________________________________________
Get your free web-based email at http://www.xoom.com
Birthday? Anniversary? Send FREE animated greeting
cards for any occasion at http://greetings.xoom.com

2000\02\08@193010 by Tom Stathes

flavicon
face
Hello All

I have a few questions regarding the programing of the pic 12c508.

I need a reliable method to copy the contense of one 12c508 to another.

I built the PIC2 progerammer and i cant seem to get a good copy.

1. Does anyone know where i can get or can someone send me a copy of the
adapter for the "ludipipo" pic progeammer so i can program the 12c508?

2.  Does anyone know where i can get or can someone send me the plans to
build a 12c508 copier?

3. Can someone suggest a better / easier way?

Cost IS an issue, so i want something that i will be able to build, i dont
want to buy a programmer.

Thanks
--Tom


______________________________________________________
Get your free web-based email at http://www.xoom.com
Birthday? Anniversary? Send FREE animated greeting
cards for any occasion at http://greetings.xoom.com

2000\02\08@193357 by Don McKenzie

flavicon
face
Tom Stathes wrote:
>
> Hello All
>
> I have a few questions regarding the programing of the pic 12c508.
>
> I need a reliable method to copy the contense of one 12c508 to another.
>
> I built the PIC2 progerammer and i cant seem to get a good copy.

is the device copy protected?

> 2.  Does anyone know where i can get or can someone send me the plans to
> build a 12c508 copier?

have a look at:
http://www.dontronics.com/diyk96.html
this will lead you to the schematics to build your own if that is what
you wish to do.
But it will read a device, and write a device, which is a lot different
to what you may need.
It won't read a copy protected micro.

Don McKenzie    EraseMEdonspam_OUTspamTakeThisOuTdontronics.com      http://www.dontronics.com

World's Largest Range of Atmel/AVR and  PICmicro Hardware and  Software.
Free Basic Compiler and Programmer http://www.dontronics.com/runavr.html

2000\02\08@232910 by James Cameron

flavicon
face
Your subject should have indicated something about 12C508 programming.

On Tue, Feb 08, 2000 at 04:28:26PM -0800, Tom Stathes wrote:
> I built the PIC2 progerammer and i cant seem to get a good copy.

Why not?  What do you see?
What is the PIC2 programmer?
Is it connected to a PC or is it standalone?

--
James Cameron   quozlspamspam_OUTus.netrek.org   http://quozl.us.netrek.org/

2000\02\09@030843 by Graham North

flavicon
face
I guess your trying to copy a Playstation Mod Chip to make your own.

If so then don't waste your time trying to copy a chip which is probably
protected.  The code can be got for free on the web.

If I am correct, and you have difficulty finding the code mail me and I will
help.  (Think I have it here somewhere!)

Graham

       ----------
       From:  Don McKenzie [SMTP:@spam@donKILLspamspamDONTRONICS.COM]
       Sent:  09 February 2000 00:30
       To:  KILLspamPICLISTKILLspamspamMITVMA.MIT.EDU
       Subject:  Re: Please help me

       Tom Stathes wrote:
       >
       > Hello All
       >
       > I have a few questions regarding the programing of the pic 12c508.
       >
       > I need a reliable method to copy the contense of one 12c508 to
another.
       >
       > I built the PIC2 progerammer and i cant seem to get a good copy.

       is the device copy protected?

       > 2.  Does anyone know where i can get or can someone send me the
plans to
       > build a 12c508 copier?

       have a look at:
       http://www.dontronics.com/diyk96.html
       this will lead you to the schematics to build your own if that is
what
       you wish to do.
       But it will read a device, and write a device, which is a lot
different
       to what you may need.
       It won't read a copy protected micro.

       Don McKenzie    RemoveMEdonTakeThisOuTspamdontronics.com
http://www.dontronics.com

       World's Largest Range of Atmel/AVR and  PICmicro Hardware and
Software.
       Free Basic Compiler and Programmer
http://www.dontronics.com/runavr.html

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