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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
03/09/12 14:55
Read: 601 times

#186543 - Response
Responding to: Robert Revens's previous message
Hi Robert,

I am using Acc and SCON1 to check RI bit because my MCU has 2 serial ports and has 2 TI's (TI1/TI0) and RI's (RI1/RI0) also. I am using UART1 so RI1 and TI1 are suppose to operate with this. But when I put RI1/TI1 in my code I get errors, because only RI and TI (without the 1 or 0 at end) are defined in the header file for SCON0 @ 98H (SCON 0.0 and SCON 0.1) which is provided by Silabs. SCON1 is @ F1H and RI and TI are not defined for this SFR. So i need to trigger the bits in SCON1 in order to set/clear TI/RI. Hope that explains it ok.

No, I am not allowing for 0.7 seconds of a boot up time, I have no delay involved in my writing/reading of bytes. Would that cause it not to transmit due to sending the bytes too early? It says in the appendix "Boot-up time means the total time consumed by FIM5360 after system power up and /Reset are supplied" So would that mean that it takes .7 seconds after its plugged in or 0.7 seconds after I send my first command to it?

As for my code, it gets to TEST_RI after it is done writing to serial and loops there because the RI flag isnt set so there is no data in the SBUF1.

I have sent bytes from Realterm to check my read serial and it seems to function correctly, I wrote 7E, it entered SBUF1 and then it was stored in RAM.


List of 17 messages in thread
Serial coms, bytes not matching in serial capture      Dave McNamara      03/07/12 10:22      
   Couple of things at first glance...      Robert Revens      03/07/12 12:52      
      Response      Dave McNamara      03/07/12 13:13      
         OK      Robert Revens      03/07/12 14:09      
   what does the instruction spell out      Erik Malund      03/07/12 13:46      
      Instruction says      Dave McNamara      03/07/12 14:17      
         Got it      Dave McNamara      03/07/12 14:29      
            have a good read      Erik Malund      03/08/12 07:16      
               Nitgen FIM5360 module      Dave McNamara      03/09/12 11:46      
                  Not familiar with the module...      Robert Revens      03/09/12 14:03      
                     Boot up time...      Robert Revens      03/09/12 14:15      
                     Response      Dave McNamara      03/09/12 14:55      
                        Isn't boot time always time from reset or time from power-on      Per Westermark      03/09/12 15:10      
                           Ok      Dave McNamara      03/09/12 15:18      
                        SCON1...      Robert Revens      03/10/12 05:24      
                           Jumping from RET to Jump Start      Dave McNamara      03/10/12 07:43      
   Please Ignore last post, issue resolved      Dave McNamara      03/10/12 10:30      

Back to Subject List