We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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.
main() {
PORTECFG=0x08; //Turn on uart pin rxd0out SCON0 = 0x13; //Mode 0, baud 24/12, enable receive,TI=1;RI=1; // CKCON &= 0xF8; //Set stretch 0*/
while(1) { TI = FALSE; SBUF0='B';//spi_Data; // for(i=0;i<1000;i++); while(!TI); }
}
please help me to solve this issue.
Regards, smitha
Please see the instructions for how to post legible code:
http://www.keil.com/forum/tips.asp
Note that this information was clearly provided when you made your post - both on the initial form, and in the preview - it's right there between the 'Summary' box and the 'Message' box. It always makes sense to read the instructions first!
main() { PORTECFG=0x08; //Turn on uart pin rxd0out SCON0 = 0x13; //Mode 0, baud 24/12, enable receive,TI=1;RI=1; // CKCON &= 0xF8; //Set stretch 0*/ while(1) { TI = FALSE; SBUF0='B';//spi_Data; // for(i=0;i<1000;i++); while(!TI); } }
please help me to solve this issue. Regards, smitha
please help me to solve the issue