flowcode sample .fcf
Dear Members
I have written this pedestrian crossing, the one that I uploaded earlier.There is a problem when I send it to the PIC.
It does not work as it is suppose to-the simulation is a flowcode simulation and it work perfectly.
Included is the fcf file,hex, .asm, lst file.
I had to change:
_option_register to opt (see example)
pclath equ 0x0a ;1
intcon equ 0x0b ;1
opt equ 0x81 ;1
trisa equ 0x85 ;1
trisb equ 0x86
movlw D'192'
bsf STATUS, RP0
movwf OPT
label_0006
bsf STATUS, RP0
AND FCV_KEY equ 0x12 ;1
WAS _FCV_KEY equ 0x12 ;1
FCV_COUNT2 equ 0x10 ;1
FCV_WAIT equ 0x11 ;1
FCV_KEY equ 0x12 ;1
FCV_POLL equ 0x13 ;1
clrw
movwf FCV_KEY
movf FCV_KEY, W
btfsc STATUS, Z
Now the lights change without the button.
I use a MPASM assembler / programmer.I want to program a PIC16F84A.
The person that helps me will be thanked properly.
Thanks in advance.
Johan