piclist 2002\09\13\103114a >
Thread: F84 does fine episode ii: the attack of the code
www.piclist.com/techref/microchip/devices.htm?key=pic
flavicon
face BY : Hernán Freschiemail (remove spam text)



Hello everyone. The code I used for my previous post was designed for
C54 (read microchip’s an590), but I also made another program, that
doesn’t work either: it enables all outputs for 6 hours and disables
them for 18:


I didn’t add “ORG 0” before this and “ORG 1FF, GOTO SETUP” at the end.
Could THAT be the problem? Doesn’t the processor cycle the program? Or
does it stop the execution at the end of the program? Does the
oscillator stop at that time? If so, is there a way to add that last
line to an already programmed pic? (I’m asking that because they are now
REALLY expensive in my country – Argentina).


APAGADO equ 0x00

ENCENDIDO equ 0xff


           cblock 0x0D

           d1

           d2

           d3

           d4

           d5

           d6

           endc


SETUP movlw 0x00      
           tris PORTA

           tris PORTB                  
           clrf PORTA

           clrf PORTB


INICIO   movlw ENCENDIDO

           movwf PORTA

           movwf PORTB

           call delay6

           movlw APAGADO

           movwf PORTA

           movwf PORTB

           call delay18

           goto INICIO


delay6 and delay18 are standard delays (generated by the code generator
on piclist.com)

Thanks in advance.


--
http://www.piclist.com hint: To leave the PICList
spampiclist-unsubscribe-requestspam_OUTspamspammitvma.mit.edu



seeking: application notes
<000001c25b31$e5f41920$192a2a0a@hernan> quoted-printable

See also: www.piclist.com/techref/microchip/devices.htm?key=pic
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) F84 does fine episode ii: the attack of the code

month overview.

new search...