{"id":1420,"date":"2025-04-11T04:38:12","date_gmt":"2025-04-11T04:38:12","guid":{"rendered":"https:\/\/webprojects.cloud\/wordpress\/splatco\/?post_type=spl_knowledgebase&#038;p=1420"},"modified":"2025-04-28T08:48:26","modified_gmt":"2025-04-28T08:48:26","slug":"cpu-altering-supertimer-10ms-timebase-d20","status":"publish","type":"spl_knowledgebase","link":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/hmi430-700-product-documentation\/system-calls-the-cpu-device\/cpu-altering-supertimer-10ms-timebase-d20\/","title":{"rendered":"CPU: Altering SuperTimer 10mS timebase [D>=20]"},"content":{"rendered":"\n<p>In dialects 20 or later you can change the basic 10mS SuperTimer clock interval to some other value. Set U0 to the required value in mS and then execute a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><br>   Pause          100                                 ;pause for 100 * 10ms = 1 second<br>...<br>   SetU           0,1                                 ;load U[0] with 1, representing 1ms<br>   SPxCmd1        1,!CPU                              ;set the timer tick to 1ms<br>...<br>   Pause          100                                 ;now pause for 100 * 1ms = 100ms<br><\/pre>\n\n\n\n<p>On an ARM based SPLat contrller (black PCB) this instruction only affects the multi-track task that executed it.&nbsp; All other tasks will continue to use the 10ms tick unless they also change their timebase too.&nbsp; However on a classic 8 bit SPLat controller (the green PCB) executing this instruction impacts&nbsp;<strong>every<\/strong>&nbsp;task as they all have the same tick timebase.<\/p>\n\n\n\n<p>Regardless of the controller type, this instruction affects all timers that use the SuperTimer mechanism, which is any timer that can have a duration counter up to 16,777,215 (<code><a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/fasttrack-instructions\/pause-tttt\/\">Pause<\/a><\/code>,\u00a0<code><a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/timing-instructions\/elapsed-timers\/system-timer\/fsttimesince-aa-d16\/\">fSTTimeSince<\/a><\/code>,\u00a0<code><a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/timing-instructions\/waitont-iitttt\/\">WaitOnT<\/a><\/code>, etc). If you set the interval to 1, the timing will run on a 1ms tick, this being 10 times faster than normal. If you set it to 256, the timing will run a 256ms tick, being 25.6 times\u00a0<em>slower<\/em>\u00a0than normal and giving you a timing range of 49.7 days.\u00a0 If U0=0 it reverts to the default 10mS.<\/p>\n\n\n\n<p>Due to the resolution of the internal math, the re-scaling will produce an error of up to 0.2% at the slow end of the scale. The actual error will be the error produced by rounding 65,536\/U0 to the nearest integer.<\/p>\n\n\n\n<p><strong>Note<\/strong>\u00a0that altering the SuperTimer timebase does not affect the\u00a0<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/timing-instructions\/countdown-timers\/\">Countdown timers<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In dialects 20 or later you can change the basic 10mS SuperTimer clock interval to some other value. Set U0 to the required value in&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1408,"menu_order":11,"template":"","class_list":["post-1420","spl_knowledgebase","type-spl_knowledgebase","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>CPU: Altering SuperTimer 10mS timebase [D&gt;=20] - SPLat Controls<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CPU: Altering SuperTimer 10mS timebase [D&gt;=20] - SPLat Controls\" \/>\n<meta property=\"og:description\" content=\"In dialects 20 or later you can change the basic 10mS SuperTimer clock interval to some other value. Set U0 to the required value in...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/hmi430-700-product-documentation\/system-calls-the-cpu-device\/cpu-altering-supertimer-10ms-timebase-d20\/\" \/>\n<meta property=\"og:site_name\" content=\"SPLat Controls\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-28T08:48:26+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/hmi430-700-product-documentation\/system-calls-the-cpu-device\/cpu-altering-supertimer-10ms-timebase-d20\/\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/hmi430-700-product-documentation\/system-calls-the-cpu-device\/cpu-altering-supertimer-10ms-timebase-d20\/\",\"name\":\"CPU: Altering SuperTimer 10mS timebase [D>=20] - SPLat Controls\",\"isPartOf\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website\"},\"datePublished\":\"2025-04-11T04:38:12+00:00\",\"dateModified\":\"2025-04-28T08:48:26+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/hmi430-700-product-documentation\/system-calls-the-cpu-device\/cpu-altering-supertimer-10ms-timebase-d20\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/hmi430-700-product-documentation\/system-calls-the-cpu-device\/cpu-altering-supertimer-10ms-timebase-d20\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/hmi430-700-product-documentation\/system-calls-the-cpu-device\/cpu-altering-supertimer-10ms-timebase-d20\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Product documentation\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Product documentation: Controllers\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"HMI430\/700 product documentation\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/hmi430-700-product-documentation\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"System Calls (The CPU device)\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/hmi430-700-product-documentation\/system-calls-the-cpu-device\/\"},{\"@type\":\"ListItem\",\"position\":6,\"name\":\"CPU: Altering SuperTimer 10mS timebase [D>=20]\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/\",\"name\":\"SPLat Controls\",\"description\":\"OEM Embedded Machine Controllers\",\"publisher\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#organization\",\"name\":\"SPLat Controls\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2024\/10\/logo.svg\",\"contentUrl\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2024\/10\/logo.svg\",\"caption\":\"SPLat Controls\"},\"image\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CPU: Altering SuperTimer 10mS timebase [D>=20] - SPLat Controls","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"CPU: Altering SuperTimer 10mS timebase [D>=20] - SPLat Controls","og_description":"In dialects 20 or later you can change the basic 10mS SuperTimer clock interval to some other value. Set U0 to the required value in...","og_url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/hmi430-700-product-documentation\/system-calls-the-cpu-device\/cpu-altering-supertimer-10ms-timebase-d20\/","og_site_name":"SPLat Controls","article_modified_time":"2025-04-28T08:48:26+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/hmi430-700-product-documentation\/system-calls-the-cpu-device\/cpu-altering-supertimer-10ms-timebase-d20\/","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/hmi430-700-product-documentation\/system-calls-the-cpu-device\/cpu-altering-supertimer-10ms-timebase-d20\/","name":"CPU: Altering SuperTimer 10mS timebase [D>=20] - SPLat Controls","isPartOf":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website"},"datePublished":"2025-04-11T04:38:12+00:00","dateModified":"2025-04-28T08:48:26+00:00","breadcrumb":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/hmi430-700-product-documentation\/system-calls-the-cpu-device\/cpu-altering-supertimer-10ms-timebase-d20\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/hmi430-700-product-documentation\/system-calls-the-cpu-device\/cpu-altering-supertimer-10ms-timebase-d20\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/hmi430-700-product-documentation\/system-calls-the-cpu-device\/cpu-altering-supertimer-10ms-timebase-d20\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/"},{"@type":"ListItem","position":2,"name":"Product documentation","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/"},{"@type":"ListItem","position":3,"name":"Product documentation: Controllers","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/"},{"@type":"ListItem","position":4,"name":"HMI430\/700 product documentation","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/hmi430-700-product-documentation\/"},{"@type":"ListItem","position":5,"name":"System Calls (The CPU device)","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/product-documentation\/product-documentation-controllers\/hmi430-700-product-documentation\/system-calls-the-cpu-device\/"},{"@type":"ListItem","position":6,"name":"CPU: Altering SuperTimer 10mS timebase [D>=20]"}]},{"@type":"WebSite","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/","name":"SPLat Controls","description":"OEM Embedded Machine Controllers","publisher":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webprojects.cloud\/wordpress\/splatco\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#organization","name":"SPLat Controls","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#\/schema\/logo\/image\/","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2024\/10\/logo.svg","contentUrl":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2024\/10\/logo.svg","caption":"SPLat Controls"},"image":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/spl_knowledgebase\/1420","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/spl_knowledgebase"}],"about":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/types\/spl_knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/users\/1"}],"up":[{"embeddable":true,"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/spl_knowledgebase\/1408"}],"wp:attachment":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/media?parent=1420"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}