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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/01/05 00:47
Read: times


 
#100399 - Pinching a loaf
Responding to: ???'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            01/01/70 00:00      
   Lineks ?            01/01/70 00:00      
   UARTs and ASK            01/01/70 00:00      
      Software driven UART - Bit-banging            01/01/70 00:00      
         Channel coding            01/01/70 00:00      
            Yes but...            01/01/70 00:00      
               What is the hardware UART not doing?            01/01/70 00:00      
                  Hardware UART            01/01/70 00:00      
                     RF links pose challenges, but anyway...            01/01/70 00:00      
                     Spend the money or do the hard work?            01/01/70 00:00      
                        So many, so often, forget that design is            01/01/70 00:00      
   Rendering            01/01/70 00:00      
      Me too !            01/01/70 00:00      
      nope, just like any other (IE)            01/01/70 00:00      
         Disappointed!            01/01/70 00:00      
            What is the purpose of "learning" our co            01/01/70 00:00      
            Sorry but            01/01/70 00:00      
            End of wrong stick?            01/01/70 00:00      
            Learning? Dealing with disappoinment            01/01/70 00:00      
            What you need to learn            01/01/70 00:00      
               Apology            01/01/70 00:00      
                  Recommendation            01/01/70 00:00      
                  A short backgrounder            01/01/70 00:00      
                     Missing the point            01/01/70 00:00      
   The wise men have spoken            01/01/70 00:00      
   UARTs, the last word Mr. Joshi            01/01/70 00:00      
      *Groan* Here is my inital code            01/01/70 00:00      
         Does it work ?            01/01/70 00:00      
            Does it work at all?            01/01/70 00:00      
         The Point.            01/01/70 00:00      
            why analyze how deep the water is before            01/01/70 00:00      
         TF2 needs to be cleared in interrupt            01/01/70 00:00      
         the right way to get help definitely is            01/01/70 00:00      
         Pinching a loaf            01/01/70 00:00      

Back to Subject List