@Mister_e,
Yesterday, I made a lot of try in order to find a way for using the button. I have to tell you the result is still neagtive.
First of all I used Tiemout and label and tried from 1 ms up to 250 ms. If I put 1 ms the button working very well but meanwhile serin does not receive any data. If use 2 ms. serin starts to receive datas and the button is working randomly. It means you push the button (continuously on) it is not working but if you make continuously on/off one moment the button is working.
All other figures from 3-250 ms. does not work.
I tried to use also RB0 interrupt for the serial input. In this way the serin is working very well but button again does not work.
I was using 16F628 pic and it has USART and I decided to use also HSERIN it is also not working. I was so nervous and finally I stop the work and I put mechanical switch to my system.
I gave this information just for your information.
Thanks
ERO
Bookmarks