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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/06/06 21:49
Modified:
  01/06/06 21:52

Read: times


 
#106734 - not really
Responding to: ???'s previous message
Does this mean that I can set S0C0N to 10111000B for odd parity
in mode 3
and S0C0N to 10110000B for even parity in mode 3?


not really, it means that you need to set TB8 if the 8 data bits have even parity to make the transmitted parity odd and clear TB8 if the 8 data bits have odd parity. Opposite if you want even parity

if even transmitted parity wanted
-if data even, clear TB8
-else set TB8
else if odd transmitted parity wanted
-if data even, set TB8
-else clear TB8

assembler for parity
move the byte to be transmitted to the accumulator
clr TB8
jb P,ParityOk ;oppositr (jnb) if other parity
setb TB8
ParityOk: mov SBUF,a

Erik



List of 11 messages in thread
TopicAuthorDate
Parity settings in 89LPC952            01/01/70 00:00      
   If the 952 has changed ther meaning of S            01/01/70 00:00      
      Parity 89LPC952            01/01/70 00:00      
         yes            01/01/70 00:00      
            parity            01/01/70 00:00      
               not really            01/01/70 00:00      
                  parity code            01/01/70 00:00      
                     how do you know that the character is in            01/01/70 00:00      
   For Philips            01/01/70 00:00      
      so, REN is ren            01/01/70 00:00      
         Search            01/01/70 00:00      

Back to Subject List