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

Back to Subject List

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


 
#111174 - i read about putchar()
Responding to: ???'s previous message
ok...I read the putchar() C code of C51. and found that it uses XON/XOFF ...thats good for me since I wont need to do any additional protocol or extra hand/shk wires...but is this (XON/XOFF)also supported by _getkey() Code? (I could not locate the _getkey.c file or getchar.c file)...or do we need to do our own XON/XOFF when using _getkey()? and yes..I decided to do for putchar() like

//send data to computer
TI=1; //for 1st byte
putchar(firstchar); //first byte
putchar(secchar); //second
........
putchar(tenthchar); //last one
while(!TI); //wait until all ten bytes are done...


this (putchar() ) will save me additional coding for handshaking "XON/XOFF" or pins (for HW handshkg)...

List of 24 messages in thread
TopicAuthorDate
putchar C51 serial communication problem            01/01/70 00:00      
   Keil putchar source            01/01/70 00:00      
   putchar() reworded            01/01/70 00:00      
      TI            01/01/70 00:00      
         thanks and here is my C code of asm...            01/01/70 00:00      
            should be obvious            01/01/70 00:00      
               To be fair            01/01/70 00:00      
            C gives higher performance!            01/01/70 00:00      
               Initial conditions            01/01/70 00:00      
                  waiting better than uninten effcy            01/01/70 00:00      
                     Better?            01/01/70 00:00      
                     Math?            01/01/70 00:00      
                     What?????            01/01/70 00:00      
                        no work to do unitl bytes send            01/01/70 00:00      
   OK            01/01/70 00:00      
      or...            01/01/70 00:00      
         That is better            01/01/70 00:00      
            i read about putchar()            01/01/70 00:00      
               Try \Keil\C51\LIB\getkey.c            01/01/70 00:00      
               Keil Library Source Files            01/01/70 00:00      
                  ok            01/01/70 00:00      
                     No and Yes            01/01/70 00:00      
                        but what about AT cmd            01/01/70 00:00      
                           No            01/01/70 00:00      

Back to Subject List