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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/10/05 15:27
Read: times


 
#84669 - parity and stop
Responding to: ???'s previous message
My problem is on the UART configuration. MODBUS requires to set the parity bit and to use 2 STOP bits. I havn't found in datasheets how to configure the 8051 UART do to this ?
Is it possible to configure parity and stop bits on the hardware UART ?


The 9 bit modes gives you parity if 8+p, or second stopbit if 7+p.

If 8+p start a 1 bit time timer at TI to achieve the extra stop bit (stop and idle is the same). In that case beware, if you have a derivative with double buffered SBUF (I do not recall which, but do recall that such exist)

Erik



List of 7 messages in thread
TopicAuthorDate
MODBUS on UART (parity & stop bits?)            01/01/70 00:00      
   parity and stop            01/01/70 00:00      
      parity and stop            01/01/70 00:00      
         2 Stop Bits            01/01/70 00:00      
         stop bit            01/01/70 00:00      
            Beware - early ti/ri flags!            01/01/70 00:00      
               Modbus            01/01/70 00:00      

Back to Subject List