I download a proteus 7.5 .DSN file for a 12F675 Timer. It has one input switch and one LED in the output. I already have the hex code. Not the source code..
My hex file is works like:-
1. Power on the System the LED will ON.
2. When press the switch, LED will OFF.
3. If switch is pressed, The LED will OFF
4. If the switch is relese, The LED will ON for 5 Seconds and turn OFF.
In my needs, only change in the first state. ie, Power on the System the LED will be OFF.
any help would be appriciated.... Thank you so much
What pin is the LED on? Which pin is the switch? (cannot read the .DSN file) Not that I can help, but anyone looking at the hex code, and dis-assembling it, needs to look at which pin is being set to turn on the LED on power on...
This is the schematics extracted from the zip file.
I disassembled the hex file and it was confirmed the source was not written in ASM. It uses timer 1 for the delay and 7 bytes for scratch vars from 0x20 to 0x26.
So I think the best is to follow Max advice and write a new program in C or BAS for the job.
In case someome wants to see the ASM codes, it is attached.
I am trying Allen... But time is very important. But I am working in a government sector (Kerala State Electricity Board, India) and I need to spend more time to the field. When I get free time, I am trying to make some hobby electronics work. Its only for my use, Not for sale. In this circuit, I can use it with a mechanical 6 minute timer switch of a washing machine. Normally its OFF position. But we turn the knobe, Its contacts are closed. whenever the knobe return to its normal position, Its again OFF. I need to activate the circuit only when the contact OPEN and its only for 5 Seconds. Now its working Fine.
and one more thing...
how to extend the time or how to set the delay time 5 seconds to 10 seconds?
Which line I need change the .asm file, if I want....?
I know, You can do it....
If not done, I can use BS170, 470uF capacitor and 150K resistor to setup a autopower OFF circuit. Its Okey....
But how to extend the time or how to change the delay time 5 seconds to 10 seconds?
Because an asm program compiled from a C program is very long and difficult to understand. If the program was originally written in ASM and coverted to HEX. It would be much easier to understand after dis-assembled.
You may try also. I think it should be the part involving the Timer1. The timer1 in the program has a counting time of 31 mS...