part 1 669 bytes content-type:TEXT/PLAIN; charset=US-ASCII
Where are you SX-listers? , I'll made another try, with flashing led code
attached. Please take a look.
On Fri, 11 May 2001, Vasile Surducan wrote:
{Quote hidden}> Hi everyone,
> A friend of mine has built his own SX52BD programmer.
> As he claimed everything it works ok with programming sequence but
> he can't do a led to flash.
> If there are experienced users of SX52BD can someone mail a functional
> flashing led program on RA7 with internal osc ?
> BTW, simulation is ok on UMPS
> Thanks in advance.
> Vasile
>
> --
>
http://www.piclist.com hint: To leave the PICList
>
.....piclist-unsubscribe-requestKILLspam
@spam@mitvma.mit.edu
>
>
part 2 1859 bytes content-type:TEXT/PLAIN; charset=US-ASCII; name="stefled1.asm"
(decoded base64)
;Assembler file modified and tested by ing. Albert Stefan
;Date - 2001.apr.26.
;This file was generated by P2C-plus compiler version 2.00.6e
;************************************************************
org $0
param00_delay_ms equ 10 ;general RAM
param00_delay_s equ 12 ;general RAM
org _Reset
jmp Start ;set reset jump address
org 0
reti
Start
jmp start__code
_delay_s
jmp _delay_s__code
_delay_ms
jmp _delay_ms__code
start__code
_main__code
mov w, #29
mov m, w
mov w, #128
mov !ra, w
mov w, #30
mov m, w
mov w, #255
mov !ra, w
mov w, #31
mov m, w
mov w, #$7F
mov !ra, w
label_0000
setb RA.7
mov w, #1
mov param00_delay_s, w
call _delay_s
; page 0
clrb RA.7
mov w, #1
mov param00_delay_s, w
call _delay_s
; page 0
jmp label_0000
label_0001
_main__end
_delay_s__code
label_0002
mov w, #250
mov param00_delay_ms, w
call _delay_ms
; page 0
mov w, #250
mov param00_delay_ms, w
call _delay_ms
; page 0
mov w, #250
mov param00_delay_ms, w
call _delay_ms
; page 0
mov w, #250
mov param00_delay_ms, w
call _delay_ms
; page 0
decsz param00_delay_s
jmp label_0002
retp
_delay_s__end
_delay_ms__code
label_0003
mov w, #2
mov param00_delay_ms+1, w
nop
label_0004
nop
nop
nop
nop
nop
nop
nop
nop
nop
decsz param00_delay_ms+1
jmp label_0004
nop
decsz param00_delay_ms
jmp label_0003
nop
retp
_delay_ms__end
;end
part 3 131 bytes
--
http://www.piclist.com hint: The PICList is archived three different
ways. See http://www.piclist.com/#archives for details.