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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/28/09 01:55
Modified:
  03/28/09 02:01

Read: times


 
#163915 - Found the crystal!
Responding to: ???'s previous message
Hi again... I made a simple application to try to find a crystal to make 31.250 and 250.000
The after activated the application, the answer "magically" appeared in the screen in 3.265 seconds!
Just one occurrence between 1mhz and 40mhz, and a comercial value (luck? very much luck?)



WELL VERY NICE! The application calculated it right, this crystal is easy to find, and I have one at home!

Now I think I have a small problem to solve.
8 bit and 9 bit serial data.

Midi is 8bit.
And as I learned to RECEIVE DMX is a 9bit technick

With 8 bit:
To receive Midi should be no problem.
To send DMX, will need one more bit, will work if I wait 4 microseconds after sending a byte?

With 9 bit:
I BELIEVE, if midi command come with a small spacing between bytes it will work, but if they come very near, it wont, I think there is nothing to do.
DMX should be fine.


Also, I never worked with dual baud rates, and duplex mode, how should I make the ISR routine? When should I clear TI and RI? In example, will make an interruption for TI while a RI interruption is running?
What happens when a TI ISR is running then a RI arrives?

There is some problem if during RI ISR I send a byte by serial (MOV Sbuf,...)? (being TX idle of course)



Thanks a lot!


PS: "magically" ... LOL

List of 53 messages in thread
TopicAuthorDate
Is possible? AT89S52 with dual serial baud rate            01/01/70 00:00      
   yes...            01/01/70 00:00      
   Use Timer 2...            01/01/70 00:00      
      Can I have both at same time?            01/01/70 00:00      
         you can't have different baudrates...            01/01/70 00:00      
         YES            01/01/70 00:00      
         No, unless...            01/01/70 00:00      
            what registers?            01/01/70 00:00      
               Split-speed common in older times            01/01/70 00:00      
               Timer 2 registers of AT89S52            01/01/70 00:00      
   Where can I read...            01/01/70 00:00      
      Well, in the datasheet!            01/01/70 00:00      
      Tutorials; FAQs            01/01/70 00:00      
   You have two UART's ... Does that give you any ideas?            01/01/70 00:00      
   Timer2 baudrate            01/01/70 00:00      
      unconfuse yourself            01/01/70 00:00      
      What's wrong with page 15 of datasheet?            01/01/70 00:00      
      Trying this...            01/01/70 00:00      
         Have a look at this code example...            01/01/70 00:00      
            This damn 52 think it is a 51 !!!            01/01/70 00:00      
               counterfeit chip?            01/01/70 00:00      
   It is for a Midi to DMX project... new trouble            01/01/70 00:00      
      Alternatives            01/01/70 00:00      
         examples            01/01/70 00:00      
            Options            01/01/70 00:00      
   Found the crystal!            01/01/70 00:00      
      Let's see ... What is wanted here ...            01/01/70 00:00      
         He is already using two timers            01/01/70 00:00      
            Independent UARTs            01/01/70 00:00      
               Crystal seens OK - Could receive Midi.. "partially" send DMX            01/01/70 00:00      
                  Well done!            01/01/70 00:00      
                  Russel Bull... Can you please take a look in my code?            01/01/70 00:00      
                  I wouldn't use serial transmission interrupts            01/01/70 00:00      
                     Makes sense!            01/01/70 00:00      
                        Give this a try...            01/01/70 00:00      
                           Hard to find a place to test.            01/01/70 00:00      
                              Runtime of LCALL...            01/01/70 00:00      
                           stop bits            01/01/70 00:00      
                              TI flag is set at the begin of (first) stop bit!            01/01/70 00:00      
                                 TI/RI setting time            01/01/70 00:00      
                                    TI and RI details...            01/01/70 00:00      
   TI/RI question            01/01/70 00:00      
      what causes a serial int?            01/01/70 00:00      
      More things will happen...            01/01/70 00:00      
         If....            01/01/70 00:00      
            Yes            01/01/70 00:00      
   YEAAAAAAAAH! IT WORKED            01/01/70 00:00      
      Congrats!            01/01/70 00:00      
         Thanks really a lot!            01/01/70 00:00      
   A new challenge! The inverse way!            01/01/70 00:00      
      BREAK detection is lousy!            01/01/70 00:00      
         RB8            01/01/70 00:00      
            RB8 details...            01/01/70 00:00      

Back to Subject List