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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/16/06 19:33
Read: times


 
#110181 - You're right, but what that means is ...
Responding to: ???'s previous message
The serial port on the 805x is NOT just a UART. Your analogy to the 74595/74597 (double-buffered) devices is sound where Mode 0 is concerned. It does transmit and receive over the same pin, but there are cases in which that is quite useful.

I'm of the belief that the Mode-0 is unpopular because, until the advent of the four-clockers and one-clockers, it was pretty difficult to exploit. Since it transmits one bit for every twelve oscillator cycles, it transmits one bit for every instruction cycle, and many instructions require two or three of these. If you have only eight instruction cycles per byte, you don't have much time to do anything with the data. That limits its usefulness, particularly if it's supposed to be in an ISR.

Now, however, we have the opportunity to use mode 0 to receive or transmit sampled serial data and the associate clock as part of an ISR or any other sort of routine. The MCU transmits the shift clock and either receives or transmits data in synchronization with that clock, but the MCU executes an instruction in up to three oscillator cycles, so there's plenty of time to manupulate the data between interrupts.

It seems to me that there's plenty of opportunity to exploit this. It just requires a bit of thought. Any closely-coupled synchronous communication application will put tight restrictions on the crystal frequency that can be used, though.

IIRC, I quoted you, at one time, as saying that any conventional asynchronous baud clock for 4800 baud and higher could be derived from 12 MHz by using timer 2. Is that no longer the case?

RE





List of 49 messages in thread
TopicAuthorDate
UART not used or UART mode 0            01/01/70 00:00      
   me neither            01/01/70 00:00      
   mode 0            01/01/70 00:00      
   Maybe you'd best go back and reread ...            01/01/70 00:00      
      Well,            01/01/70 00:00      
   mode 0 totally different !            01/01/70 00:00      
      You're right, but what that means is ...            01/01/70 00:00      
         Why on earth?            01/01/70 00:00      
            You've lost me here ...            01/01/70 00:00      
               SPI meaning            01/01/70 00:00      
                  Yes, I knew that, but ...            01/01/70 00:00      
                     MODE 0 is "SPI"            01/01/70 00:00      
                        in fact            01/01/70 00:00      
               UART?            01/01/70 00:00      
               It is not about what you use.            01/01/70 00:00      
                  You give 'em what they want ...            01/01/70 00:00      
                     I never argued against using mode 0            01/01/70 00:00      
                        That was never a topic of discussion.            01/01/70 00:00      
                           you do not get it, do you            01/01/70 00:00      
                              Why is T2 able to do that if ...            01/01/70 00:00      
                                 This is getting real tiresome you keep r            01/01/70 00:00      
                                    Well ... maybe you should look at one            01/01/70 00:00      
                                       neither have I            01/01/70 00:00      
                                          It's the DA15 connector.            01/01/70 00:00      
                                             I have had enough vitamins            01/01/70 00:00      
                                                Oh! Now I get it ...            01/01/70 00:00      
                                                   I have said in virtually every post in t            01/01/70 00:00      
                                                      Async isn't the only way to do it.            01/01/70 00:00      
                                                         Oh boy            01/01/70 00:00      
                                                            What on earth is your definition            01/01/70 00:00      
                                                               what in the world does that matter?            01/01/70 00:00      
                                                                  can't have it both ways ...            01/01/70 00:00      
                                                                     I do not have illusions of grandeur and            01/01/70 00:00      
                                                                        OK ...            01/01/70 00:00      
                                                                           more oranges            01/01/70 00:00      
                                                                              It depends on where it fits            01/01/70 00:00      
                                                                                 Horsefeathers, there is nothing "relativ            01/01/70 00:00      
                                                                                    Not exactly ...            01/01/70 00:00      
                                                                                       Talking out of both sides of the mouth            01/01/70 00:00      
                                                                                          Consider this ...            01/01/70 00:00      
                                                                                             Just one thing, please, when stating thi            01/01/70 00:00      
                                                                                                It's always a tradeoff ...            01/01/70 00:00      
                           look forward, not backward !            01/01/70 00:00      
   Debugging            01/01/70 00:00      
      the ICEman cometh            01/01/70 00:00      
   Never mode 0            01/01/70 00:00      
      I think that's a narrow view.            01/01/70 00:00      
         what is narrow???            01/01/70 00:00      
   uart mode 0 application            01/01/70 00:00      

Back to Subject List