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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/21/06 18:16
Read: times


 
#128377 - Because no particular error
Responding to: ???'s previous message
why no body is replying

Because no particular error was found on your code.
I can see data on RXD0OUT pin, clock on TXD0 pin with this code on my FX2.
This code is almost same as yours.

Does the RXD0OUT is connected to other device?
When RXD0OUT pin is free, can you see the signal?

Tsuneo

void TD_Init(void)              // Called once at startup
{
    ...
                          // UART0 setup
    PORTECFG  =  0x08;    // enable RXD0OUT
    SCON0     =  0x13;    // mode 0, receive enabled, baud: CLKOUT/12, TI = RI = 1
}

void TD_Poll(void)              // Called repeatedly while the device is idle
{
   int i;

    if ( TI ){            // UART0 test
        TI = 0;
        SBUF0 = 0x55;
    }
    ...
}



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