libyantiger
Member level 5
devce deaign using polling for switch scann seems useless "waching machine "
If I wanted to design for example washing machine where the 0 button is flush ..second is drying spinner
It seems that pulling is of no value …by the time we reach goto job and start
The motor and water inside the machine we have to make some sort of delay so
That the machine stays in this condition till spectfic time
After that it go to drying automatically
But if the user press buttom while the machine is doing the wash action
the machine wont respond because is still busy making first job and it never reach to the line btfsc portb,1
i mean it is making job that is too long so the scanning action is now disabled !
If wanted to make the job using a pic16f84 which have only one pin of interrupt it seems that the waching machine turn into a “mission impossible “ sort of thing
Any hints?!
Code:
Btfsc port b,0
Goto job / washer
Btfsc portb ,1
Goto second 2thjob / spinner
If I wanted to design for example washing machine where the 0 button is flush ..second is drying spinner
It seems that pulling is of no value …by the time we reach goto job and start
The motor and water inside the machine we have to make some sort of delay so
That the machine stays in this condition till spectfic time
After that it go to drying automatically
But if the user press buttom while the machine is doing the wash action
the machine wont respond because is still busy making first job and it never reach to the line btfsc portb,1
i mean it is making job that is too long so the scanning action is now disabled !
If wanted to make the job using a pic16f84 which have only one pin of interrupt it seems that the waching machine turn into a “mission impossible “ sort of thing
Any hints?!
Last edited by a moderator: