<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Access indivisual bits in k60 MCU in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Access-indivisual-bits-in-k60-MCU/m-p/407314#M22834</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On CW, it only can us the method you mentioned "I2C0_C1 |= I2C_C1_MST_MASK;" ,&lt;/P&gt;&lt;P&gt;we can see that , in the header file "MK60D10.h" , it have not define the bits of the I2C_C1 register.&lt;/P&gt;&lt;P&gt;And why you need use the method of "&lt;SPAN style="color: #000000; font-size: 12pt; font-family: HelveticaLTStd-Bold;"&gt;&lt;EM&gt;I2C0_C1bits.MST = 1;&lt;/EM&gt;&lt;/SPAN&gt;"? If it must be us the method ,you can copy the difine to the header file .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jun 2015 06:21:39 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2015-06-17T06:21:39Z</dc:date>
    <item>
      <title>Access indivisual bits in k60 MCU</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Access-indivisual-bits-in-k60-MCU/m-p/407313#M22833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;This question is very basic.&lt;/P&gt;&lt;P&gt;I would like to know the syntax for accessing individual bits .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example Consider this register&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: HelveticaLTStd-Bold; font-size: 12pt; color: #000000; font-style: normal;"&gt;&lt;STRONG&gt;I2C&lt;/STRONG&gt;&lt;SPAN style="font-family: HelveticaLTStd-BoldObl; font-size: 12pt; color: #000000; font-style: normal;"&gt;&lt;STRONG&gt;&lt;EM&gt;0&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: HelveticaLTStd-Bold; font-size: 12pt; color: #000000; font-style: normal;"&gt;&lt;STRONG&gt;_C1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: HelveticaLTStd-Bold; font-style: normal;"&gt;I would like to access the MST bit in this register.I'm not sure how to code it in code warrior. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: HelveticaLTStd-Bold; font-style: normal;"&gt;For example in microchip's MPLAB IDE it is done like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #000000; font-size: 12pt; font-family: HelveticaLTStd-Bold;"&gt;&lt;EM&gt;I2C0_C1bits.MST = 1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //start command&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: HelveticaLTStd-Bold; font-style: normal;"&gt;Is there any equivalent syntax in freescale cw?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: HelveticaLTStd-Bold; font-style: normal;"&gt;I know i can OR a value to the I2C0_C1 register like this&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;I2C0_C1 |= I2C_C1_MST_MASK;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: HelveticaLTStd-Bold; font-style: normal;"&gt;,but that is another alternative.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: HelveticaLTStd-Bold; font-style: normal;"&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: HelveticaLTStd-Bold; font-style: normal;"&gt;AK&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 03:52:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Access-indivisual-bits-in-k60-MCU/m-p/407313#M22833</guid>
      <dc:creator>arunkumar1989</dc:creator>
      <dc:date>2015-06-17T03:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Access indivisual bits in k60 MCU</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Access-indivisual-bits-in-k60-MCU/m-p/407314#M22834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On CW, it only can us the method you mentioned "I2C0_C1 |= I2C_C1_MST_MASK;" ,&lt;/P&gt;&lt;P&gt;we can see that , in the header file "MK60D10.h" , it have not define the bits of the I2C_C1 register.&lt;/P&gt;&lt;P&gt;And why you need use the method of "&lt;SPAN style="color: #000000; font-size: 12pt; font-family: HelveticaLTStd-Bold;"&gt;&lt;EM&gt;I2C0_C1bits.MST = 1;&lt;/EM&gt;&lt;/SPAN&gt;"? If it must be us the method ,you can copy the difine to the header file .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 06:21:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Access-indivisual-bits-in-k60-MCU/m-p/407314#M22834</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-06-17T06:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Access indivisual bits in k60 MCU</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Access-indivisual-bits-in-k60-MCU/m-p/407315#M22835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alice,&lt;/P&gt;&lt;P&gt;Thanks for the reply.Yes i figured as much.&lt;/P&gt;&lt;P&gt;Its not a big issue but if there was any implementation of accessing the individual bits ,it would be very help,for example i could directly return the status with a single call like this:&lt;/P&gt;&lt;P&gt;int myfuction()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return &lt;SPAN style="color: #000000; font-size: 12pt; font-family: HelveticaLTStd-Bold;"&gt;&lt;EM&gt;I2C0_C1bits.MST;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 06:51:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Access-indivisual-bits-in-k60-MCU/m-p/407315#M22835</guid>
      <dc:creator>arunkumar1989</dc:creator>
      <dc:date>2015-06-17T06:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Access indivisual bits in k60 MCU</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Access-indivisual-bits-in-k60-MCU/m-p/407316#M22836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh Arun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can only define the bits on header file by yourself .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 07:04:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Access-indivisual-bits-in-k60-MCU/m-p/407316#M22836</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-06-17T07:04:48Z</dc:date>
    </item>
  </channel>
</rss>

