I wish I could say it works. but I have two 8201s here. One with a low battery and one without. Both show 208 when I try print inp(216)
It was worth a try. I'd be interested if anyone else figures this out. Kurt On Thu, Jun 28, 2018, at 11:53 AM, MikeS wrote: > > Yeah; how could we have missed that /LPS signal all this time... > > Thanks, Kurt! >> ----- Original Message ----- >> *From:* Stephen Adolph[1] >> *To:* [email protected] >> *Sent:* Thursday, June 28, 2018 1:58 PM >> *Subject:* Re: [M100] Low power check >> >> Wow. Very nice. Learn something new every day. >> >> On Thursday, June 28, 2018, Kurt McCullum <[email protected]> wrote:>> >>> __ >>> Will, >>> >>> Found it in the Robert Covington's M100 ports/registers file. Port >>> D0 (208) is where the low power signal is. The file indicates this >>> is the same for both the 100 and 200.>>> >>> PRINT INP(208) >>> >>> That command should give you the status of the power. Bit 7 is the >>> indicator so the value will change by 128.>>> >>> Kurt >>> >>> >>> On Thu, Jun 28, 2018, at 10:32 AM, Kurt McCullum wrote: >>>> It's actually a INP(216) command not a PEEK(216). I didn't realize >>>> that when I first posted. But the memory locations on the 200 would >>>> be different than the NEC.>>>> >>>> So for the NEC, in BASIC the following command would show the >>>> value:>>>> PRINT INP(216) >>>> >>>> Kurt >>>> >>>> >>>> On Thu, Jun 28, 2018, at 9:53 AM, William Winter wrote: >>>>> FYI... I just tried the PEEK (216) on my Model 100 and it returned >>>>> 85 with both the battery light on and off.>>>>> >>>>> -Will >>>>> >>>>> On Thu, Jun 28, 2018 at 12:42 PM Kurt McCullum >>>>> <[email protected]> wrote:>>>>>> __ >>>>>> That's what I was afraid of. However, I did find something that >>>>>> is worth a try when I get home tonight. In the NEC 8201 technical >>>>>> manual (yes I read these things) on page 256, it looks like bit 7 >>>>>> of memory location D8 (216) is set when there is a low power >>>>>> signal. If that is correct, a PEAK(216) which returns a value >>>>>> greater than 127 should indicate a low power state. But I'll have >>>>>> to test this later since I am not in front of the machine.>>>>>> >>>>>> Kurt >>>>>> >>>>>> >>>>>> On Thu, Jun 28, 2018, at 9:16 AM, Stephen Adolph wrote: >>>>>>> no, I don't think so. there is no A/D function or alarm point >>>>>>> that is readable. would have been a good idea.>>>>>>> >>>>>>> On Thu, Jun 28, 2018 at 12:11 PM, Kurt McCullum >>>>>>> <[email protected]> wrote:>>>>>>>> __ >>>>>>>> Is there a PEEK I can do in BASIC to see if the low power light >>>>>>>> is on. I would assume that the 100/200/NEC all have different >>>>>>>> locations in memory but is this possible?>>>>>>>> >>>>>>>> >>>>>>>> Kurt >>>>>>>> >>>>>> >>>> >>> Links: 1. mailto:[email protected]
