<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>fx2 serial mode0</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/37065/fx2-serial-mode0</link><description> 
Hi, 
i am working on CY7C68013 chip.I am trying to implement SPI using
mode0.1Mhz clock is generating,but data is not
generating.(CLOCKOUT=24Mhz.I used SM2=0 i.e 24 mhz/12Mhz)I have to
get 2 Mhz clock .Below i have attached piece of code which i
tried</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: fx2 serial mode0</title><link>https://community.arm.com/thread/98653?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2006 03:39:47 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b3611ccc-9588-44cc-940b-aef9fbc76a10</guid><dc:creator>smitha Shankar</dc:creator><description>&lt;p&gt;&lt;p&gt;
please help me to solve the issue&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fx2 serial mode0</title><link>https://community.arm.com/thread/74544?ContentTypeID=1</link><pubDate>Thu, 16 Nov 2006 00:07:07 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3a53fc4d-b8df-4a40-a480-8857d7520bc9</guid><dc:creator>smitha Shankar</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi,&lt;br /&gt;
i am working on CY7C68013 chip.I am trying to implement SPI using
mode0.1Mhz clock is generating,but data is not
generating.(CLOCKOUT=24Mhz.I used SM2=0 i.e 24 mhz/12Mhz)I have to
get 2 Mhz clock .Below i have attached piece of code which i
tried.&lt;/p&gt;

&lt;pre&gt;
main()
{

PORTECFG=0x08; //Turn on uart pin rxd0out
SCON0 = 0x13; //Mode 0, baud 24/12, enable receive,TI=1;RI=1;
// CKCON &amp;amp;= 0xF8; //Set stretch 0*/

while(1)
{ TI = FALSE;
SBUF0=&amp;#39;B&amp;#39;;//spi_Data;
// for(i=0;i&amp;lt;1000;i++);
while(!TI);
}

}
&lt;/pre&gt;

&lt;p&gt;
&lt;br /&gt;
please help me to solve this issue. Regards, smitha&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fx2 serial mode0</title><link>https://community.arm.com/thread/47210?ContentTypeID=1</link><pubDate>Tue, 14 Nov 2006 03:20:54 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:998bd263-cfb7-4815-acf6-c335d7b67c6e</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Please see the instructions for how to post &lt;i&gt;&lt;b&gt;legible&lt;/b&gt;&lt;/i&gt;
code:&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.keil.com/forum/tips.asp"&gt;http://www.keil.com/forum/tips.asp&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
Note that this information was clearly provided when you made your
post - both on the initial form, and in the preview - it&amp;#39;s right
there between the &amp;#39;&lt;b&gt;Summary&lt;/b&gt;&amp;#39; box and the &amp;#39;&lt;b&gt;Message&lt;/b&gt;&amp;#39;
box.&lt;br /&gt;
It always makes sense to read the instructions
&lt;i&gt;&lt;b&gt;first&lt;/b&gt;&lt;/i&gt;!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>