Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/14/06 06:29
Read: times


 
#127926 - fx2 serial port mode0
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

List of 44 messages in thread
TopicAuthorDate
fx2 serial port mode0            01/01/70 00:00      
   How to post legible code            01/01/70 00:00      
      I dunno            01/01/70 00:00      
      thanks            01/01/70 00:00      
         who is is this microresistor expert?            01/01/70 00:00      
         You, too, can be expert!            01/01/70 00:00      
            well, I did            01/01/70 00:00      
               But of course, you prefer to be obtuse            01/01/70 00:00      
                  no, I am not 'obtuse', just trying to get to the s            01/01/70 00:00      
   Legible code posted,please continue the discussion            01/01/70 00:00      
      That's better            01/01/70 00:00      
         rxd0out            01/01/70 00:00      
            REN_0            01/01/70 00:00      
         I'm puzzled            01/01/70 00:00      
            Bible Time!            01/01/70 00:00      
               Separate RXD0OUT pin            01/01/70 00:00      
                  Now I'm confused, too!            01/01/70 00:00      
                  data is not transmitting            01/01/70 00:00      
               OUCH!            01/01/70 00:00      
                  1Mhz clock            01/01/70 00:00      
                     reply            01/01/70 00:00      
   why no body is replying            01/01/70 00:00      
      Richard, where are you, he is using mode 0!            01/01/70 00:00      
         I didn't have anything to contribute ...            01/01/70 00:00      
      Because no particular error            01/01/70 00:00      
         RxD0out            01/01/70 00:00      
            Debug monitor?            01/01/70 00:00      
               connected to SI0-0            01/01/70 00:00      
                  Debug monitor!!            01/01/70 00:00      
                     mode1            01/01/70 00:00      
                        monitor switches the UART mode            01/01/70 00:00      
                           Tested with SIO-1            01/01/70 00:00      
                              Monitor comes from EEPROM?            01/01/70 00:00      
                                 problem solved            01/01/70 00:00      
                                    Not yet            01/01/70 00:00      
                                       12Mhz            01/01/70 00:00      
                                          Then what was the cause, after all?            01/01/70 00:00      
                                             Don't leave it unsolved            01/01/70 00:00      
                                                ALLOCATE_EXTERN??            01/01/70 00:00      
                                                   ALLOCATE_EXTERN fixes FX2 xdata registers addr            01/01/70 00:00      
                                                      EXTERN ALLOCATE            01/01/70 00:00      
                                                         ALLOCATE_EXTERN fixes PORTECFG address            01/01/70 00:00      
                                                            EXTERN_ALLOCATE            01/01/70 00:00      
                                                               Its ALLOCATE_EXTERN .not EXTERN_ALLOCATE            01/01/70 00:00      

Back to Subject List