Re: [Sdcc-user] Simple Port input not being read after first time. Your Help needed!

2019-11-08 Thread Shivakumar R via Sdcc-user
Yes, it would, thanks for that. :-)Another miss in a long line of misses :-/ Thanks and Warm Regards Shiv Smart Microsystems On Saturday, November 9, 2019, 02:35:51 AM GMT+5:30, Erlo Haugen wrote: A diff would show you.. br Erlo On 25/10/2019 08.19, Shivakumar R via Sdcc-user wrot

Re: [Sdcc-user] Simple Port input not being read after first time. Your Help needed!

2019-11-08 Thread Erlo Haugen
A diff would show you.. br Erlo On 25/10/2019 08.19, Shivakumar R via Sdcc-user wrote: > Thank you Bob! > In all my efforts, I did not once comment the second and third if > statements in the not working code, so yes, I missed this blunder. > > Thanks and Warm Regards > Shiv > > > On Friday, Oc

Re: [Sdcc-user] Simple Port input not being read after first time. Your Help needed!

2019-10-24 Thread Shivakumar R via Sdcc-user
Thank you Bob!In all my efforts, I did not once comment the second and third if statements in the not working code, so yes, I missed this blunder. Thanks and Warm Regards Shiv On Friday, October 25, 2019, 11:38:39 AM GMT+5:30, Bob Dunlop wrote: Hi, On Fri, Oct 25 at 03:32, Shivakuma

Re: [Sdcc-user] Simple Port input not being read after first time. Your Help needed!

2019-10-24 Thread Bob Dunlop
Hi, On Fri, Oct 25 at 03:32, Shivakumar R via Sdcc-user wrote: > Perhaps you're right. Maybe I did. Maybe I just couldn't find it.?? Second big if statement in NOT WORKING code. if((PC_IDR &= (1 << DnKey_Pin))==0) Note &= rather than & As a consequence you are turning off a lot

Re: [Sdcc-user] Simple Port input not being read after first time. Your Help needed!

2019-10-24 Thread Shivakumar R via Sdcc-user
Perhaps you're right. Maybe I did. Maybe I just couldn't find it.  Here is the code, both old and new, with changes in font and highlight added in my email. If you could spare a little time, please tell me where, because I am just not able to get it. Neither did the compiler. I'll be happy to wid

Re: [Sdcc-user] Simple Port input not being read after first time. Your Help needed!

2019-10-24 Thread Philipp Klaus Krause
Am 24.10.19 um 16:02 schrieb Shivakumar R via Sdcc-user: > Hi Philipp > > My Problem is no more! :-) > > I am using Notepad++ as my code editor, and compiling and running > 'packihx' in a Dosbox. My pcb is a custom one that has been running > since about a month. > I had checked, rechecked and re

Re: [Sdcc-user] Simple Port input not being read after first time. Your Help needed!

2019-10-24 Thread Shivakumar R via Sdcc-user
Hi Philipp My Problem is no more! :-) I am using Notepad++ as my code editor, and compiling and running 'packihx' in a Dosbox. My pcb is a custom one that has been running since about a month.I had checked, rechecked and re-re-re-re-re checked the source, list file and hex file in Notepad++ as w

Re: [Sdcc-user] Simple Port input not being read after first time. Your Help needed!

2019-10-23 Thread Shivakumar R via Sdcc-user
Hi PhilippThank you for the input and the heads up on the volatile keyword. I Have changed all interrupt modified variables as "char volatile" and checked again. However, my problem is not yet solved. The input port bit is not being read after the first time. At the lines you pointed, the loop

Re: [Sdcc-user] Simple Port input not being read after first time. Your Help needed!

2019-10-23 Thread Philipp Klaus Krause
Am 23.10.19 um 10:14 schrieb Shivakumar R via Sdcc-user: > Hi > I have been using STM8 and SDCC for about 2 months now. > I'm facing an issue these last two days that I can't seem to figure out.  > The code is supposed to read an input port, confirm the key is pressed > for 8 seconds, then call ano