Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 21:08 12 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : MMBasic SetTick vs INPUT

Author Message
Mark
Regular Member

Joined: 26/11/2022
Location: United States
Posts: 85
Posted: 11:01pm 24 Dec 2024
Copy link to clipboard 
Print this post

It appears that during the MMBasic INPUT processing, SetTick interrupts are disabled (or at least they aren't working for me ).

I wrote a program that on a SetTick interrupt updates a time display at the bottom right of the screen, but while in the INPUT routine, the time isn't being updated.

Mark
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6269
Posted: 11:18pm 24 Dec 2024
Copy link to clipboard 
Print this post

From the manual
page 47
Interrupts
  Quote  Interrupts are only checked by MMBasic at the completion of each command, and they are not latched by
the hardware. This means that an interrupt that lasts for a short time can be missed, especially when the
program is executing commands that take some time to execute. Most commands will execute in under
15μs however some commands such as the TEMPR() function can take up to 200ms so it is possible for
an interrupt to occur and vanish within this window and thus not be recognised.

VK7JH
MMedit
 
Mark
Regular Member

Joined: 26/11/2022
Location: United States
Posts: 85
Posted: 01:51am 25 Dec 2024
Copy link to clipboard 
Print this post

Thanks.  I suspect that the INPUT command lasts until the user hits ENTER so it certainly will miss interrupts. I have my updated timer sort of working using INKEY$. The problem is getting an underscore cursor to display.

Mark
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7869
Posted: 08:36am 25 Dec 2024
Copy link to clipboard 
Print this post

Cheat! Blank it during input. :)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
twofingers

Guru

Joined: 02/06/2014
Location: Germany
Posts: 1576
Posted: 11:43am 25 Dec 2024
Copy link to clipboard 
Print this post

  Mark said  ... I have my updated timer sort of working using INKEY$. The problem is getting an underscore cursor to display.

Mark

Why don't you write your own function for this? Similar to this.
Kind regards
Michael
causality ≠ correlation ≠ coincidence
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025