{"id":663,"date":"2015-05-26T12:09:45","date_gmt":"2015-05-26T10:09:45","guid":{"rendered":"https:\/\/www.livediesel.de\/?p=663"},"modified":"2015-05-26T14:35:50","modified_gmt":"2015-05-26T12:35:50","slug":"msp432-clock-system-speed","status":"publish","type":"post","link":"https:\/\/www.livediesel.de\/?p=663","title":{"rendered":"MSP432\u2122 Clock System speed"},"content":{"rendered":"<p>Changing the Clock Speed of the MSP432\u2122 is a bit tricky. First you have to unlock the registers, then you can change the DCO speed. You can ajust the clock using the following DCO values.<\/p>\n<table>\n<tbody>\n<tr>\n<td>DCORSEL<\/td>\n<td>min MHz<\/td>\n<td>normal (DCOTUNE = 0) MHz<\/td>\n<td>max MHz<\/td>\n<\/tr>\n<tr>\n<td>DCORSEL_0<\/td>\n<td>1<\/td>\n<td>1.5<\/td>\n<td>2<\/td>\n<\/tr>\n<tr>\n<td>DCORSEL_1<\/td>\n<td>2<\/td>\n<td>3<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td>DCORSEL_2<\/td>\n<td>4<\/td>\n<td>6<\/td>\n<td>8<\/td>\n<\/tr>\n<tr>\n<td>DCORSEL_3<\/td>\n<td>8<\/td>\n<td>12<\/td>\n<td>16<\/td>\n<\/tr>\n<tr>\n<td>DCORSEL_4<\/td>\n<td>16<\/td>\n<td>24<\/td>\n<td>32<\/td>\n<\/tr>\n<tr>\n<td>DCORSEL_5<\/td>\n<td>32<\/td>\n<td>48<\/td>\n<td>64<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>Read more in document\u00a0<strong><a href=\"http:\/\/www.ti.com\/lit\/pdf\/slau356a\" target=\"_blank\">SLAU356A<\/a><\/strong>\u00a0(MSP432P4xx Family Technical Reference Manual) version\u00a0<strong>2015-04<\/strong>\u00a0section <strong>5.3<\/strong>.<\/p>\n<p>You can increase or decrease the speed using the DCOTUNE Register to any value between min and max. For the correct values of DCOTUNE consult the document <strong><a href=\"http:\/\/www.ti.com\/lit\/pdf\/slaa658\" target=\"_blank\">SLAA658<\/a><\/strong>\u00a0(Multi-Frequency Range and Tunable DCO on MSP432P4xx) version <strong>2015-03<\/strong>. These values can be obtained from the TLV.<\/p>\n<pre lang=\"c\">TLV-&gt;rDCOIR_MAXNEGTUNE_RSEL04; \/\/ DCO IR mode: Max Negative Tune for DCORSEL 0 to 4\r\nTLV-&gt;rDCOIR_MAXPOSTUNE_RSEL04; \/\/ DCO IR mode: Max Positive Tune for DCORSEL 0 to 4\r\nTLV-&gt;rDCOIR_MAXNEGTUNE_RSEL5; \/\/ DCO IR mode: Max Negative Tune for DCORSEL 5\r\nTLV-&gt;rDCOIR_MAXPOSTUNE_RSEL5; \/\/ DCO IR mode: Max Positive Tune for DCORSEL 5\r\n<\/pre>\n<p>The CSKEY register is described as CSACC in the documentation, but in Code Composer Studio the register has still the name CSKEY.<\/p>\n<p>Example change DCO to IR and 48MHz:<\/p>\n<pre lang=\"c\">CSKEY = 0x695A; \/\/ unlock CS registers\r\nCSCTL0 = 0; \/\/ reset DCO settings\r\nCSCTL0 = DCORSEL_5; \/\/ select DCO 5 (48MHz)\r\nCSCTL1 = SELA__REFOCLK | SELS__DCOCLK | SELM__DCOCLK; \/\/ ACLK = REFOCLK, SMCLK = MCLK = DCOCLK\r\nCSKEY = 0; \/\/ lock CS registers\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Changing the Clock Speed of the MSP432\u2122 is a bit tricky. First you have to unlock the registers, then you can change the DCO speed. You can ajust the clock using the following DCO values. DCORSEL min MHz normal (DCOTUNE = 0) MHz max MHz DCORSEL_0 1 1.5 2 DCORSEL_1 2 3 4 DCORSEL_2 4 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,64],"tags":[66,52,65,67,51],"class_list":["post-663","post","type-post","status-publish","format-standard","hentry","category-mikrocontroller","category-msp432","tag-lauchpad","tag-msp","tag-msp432","tag-msp432p401r","tag-ti"],"_links":{"self":[{"href":"https:\/\/www.livediesel.de\/index.php?rest_route=\/wp\/v2\/posts\/663","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.livediesel.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.livediesel.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.livediesel.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.livediesel.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=663"}],"version-history":[{"count":15,"href":"https:\/\/www.livediesel.de\/index.php?rest_route=\/wp\/v2\/posts\/663\/revisions"}],"predecessor-version":[{"id":686,"href":"https:\/\/www.livediesel.de\/index.php?rest_route=\/wp\/v2\/posts\/663\/revisions\/686"}],"wp:attachment":[{"href":"https:\/\/www.livediesel.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=663"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.livediesel.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=663"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.livediesel.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=663"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}