{"id":1402,"date":"2023-09-14T16:39:24","date_gmt":"2023-09-14T15:39:24","guid":{"rendered":"https:\/\/ibex.tech\/embedded\/?p=1402"},"modified":"2023-09-14T16:40:25","modified_gmt":"2023-09-14T15:40:25","slug":"16bit-read-and-write","status":"publish","type":"post","link":"https:\/\/ibex.tech\/embedded\/microchip\/pic32\/xc32\/memory-registers\/16bit-read-and-write","title":{"rendered":"16bit Read and Write"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Writing 16bits of a 32bit register<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>\t\/\/Writing specific value to only upper 16 bits of WDTCON register clears WDT counter\n\t\/\/This only writes to the upper 16 bits of the register when clearing.\n\tvolatile uint16_t * wdtclrkey = ( (volatile uint16_t *)&amp;WDTCON ) + 1;\n\t*wdtclrkey = 0x5743;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Writing 16bits of a 32bit register<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[84],"tags":[],"class_list":["post-1402","post","type-post","status-publish","format-standard","hentry","category-memory-registers"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts\/1402","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/comments?post=1402"}],"version-history":[{"count":1,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts\/1402\/revisions"}],"predecessor-version":[{"id":1403,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts\/1402\/revisions\/1403"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/media?parent=1402"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/categories?post=1402"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/tags?post=1402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}