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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Dan Henry
08/31/05 18:47
Read: 901 times
Boulder, Co
U.s.a.


 
#100399 - Pinching a loaf
Responding to: Manoz Joshi's previous message
Groan?

Type this out during your morning constitutional, did you?

I have developed my bit-banging code in C...

When the start bit occurs, the first delay will be generated bitwidth/2 (208uS). The Interrupt Service Routine activates which repeats at 8 times for every 416us in order to capture the data bits because i want to detect the data bit in the middle of data bit'speriod.


Well, I'd have hoped that you would have developed an understanding or at least some notion as to why the UART was not performing so well. You know, identifying the problem that you think a software UART will solve.

As for your code, I'll just assume that it works -- at this point, it's not really important whether it does or doesn't. What's important is that you have described the algorithm above. Studying the 8051 databooks, datasheets, etc., you see that the hardware UART has a 16x sampling clock, and samples three times at mid-bit. Have you determined that for your particular RF link, the decoding is enhanced by instead sampling only once using the software UART?

Anyway, by describing in a narrative form what you believe the problem to be (which you have not yet done) and then likewise describing an algorithm to solve that problem (well, you've described your algorithm, at least) -- that discipline to describe an algorithm rather than just hack one out is a step in the right direction.

List of 34 messages in thread
TopicAuthorDate
Serial RF with AT89C51 to AT89C51      Manoz Joshi      08/28/05 07:35      
   Lineks ?      Steve M. Taylor      08/28/05 09:31      
   UARTs and ASK      Dan Henry      08/28/05 09:54      
      Software driven UART - Bit-banging      Manoz Joshi      08/28/05 17:23      
         Channel coding        Dan Henry      08/29/05 07:16      
            Yes but...      Manoz Joshi      08/29/05 13:47      
               What is the hardware UART not doing?      Dan Henry      08/29/05 14:27      
                  Hardware UART      Manoz Joshi      08/29/05 19:08      
                     RF links pose challenges, but anyway...      Dan Henry      08/29/05 20:58      
                     Spend the money or do the hard work?      Andy Neil      08/30/05 00:56      
                        So many, so often, forget that design is      Erik Malund      08/30/05 07:10      
   Rendering      Steve M. Taylor      08/30/05 09:06      
      Me too !      Farshid Jafari Harandi      08/30/05 09:21      
      nope, just like any other (IE)      Erik Malund      08/30/05 11:13      
         Disappointed!      Manoz Joshi      08/30/05 13:58      
            What is the purpose of "learning" our co      Erik Malund      08/30/05 14:40      
            Sorry but      Steve M. Taylor      08/30/05 14:43      
            End of wrong stick?      Andy Neil      08/30/05 16:42      
            Learning? Dealing with disappoinment      Dan Henry      08/30/05 18:01      
            What you need to learn      Andy Neil      08/31/05 03:31      
               Apology      Manoz Joshi      08/31/05 08:03      
                  Recommendation      Andy Neil      08/31/05 09:25      
                  A short backgrounder      Dan Henry      08/31/05 11:26      
                     Missing the point      Russell Bull      09/01/05 03:50      
   The wise men have spoken      Dan Henry      08/30/05 18:09      
   UARTs, the last word Mr. Joshi      Dan Henry      08/30/05 18:13      
      *Groan* Here is my inital code      Manoz Joshi      08/31/05 01:39      
         Does it work ?      Steve M. Taylor      08/31/05 01:53      
            Does it work at all?      Andy Neil      08/31/05 03:53      
         The Point.      Andy Neil      08/31/05 03:46      
            why analyze how deep the water is before      Erik Malund      08/31/05 07:14      
         TF2 needs to be cleared in interrupt      Charles Bannister      08/31/05 04:54      
         the right way to get help definitely is      Erik Malund      08/31/05 07:05      
         Pinching a loaf      Dan Henry      08/31/05 18:47      

Back to Subject List