Hello, I am trying to build an RS232 Keypad. I'm using a 74C922 16-Keys
Encoder to convert the keypad input to 4bits data. I then pass it to
the 6402 UART to convert the data from parallel to serial.
I'm using the circuit found here
http://www.beyondlogic.org/serial/serial3.htm to the exception that I
run the circuit with a 20Mhz crystal (so I use Q5 on the 74HC4060).
It's not perfect as I would need 19.6608Mhz for 19200bps but iirc the
UART has a 3% margin. I've also noticed that Y pins on the 74C922 are
inverted from what they should be. The UART runs with no parity, 8bits
word, 1 stop bit and at 19200bps. Now I do get some data sent through
but the words are very weird. They appear something like 0 # 0 #, where
# is some odd number and not 0 to 16 as it should be. I know it is not
the MAX232 as it's output is connected to a VFD and that works fine.
I've tried replacing the UART to no avail, same for the 74C4060. I
haven't tried to change the 74C922 as it's quiet expensive and I only
have one but anyway I get similar data if I just tie pins low/high
manually. I've tried using a different, slower crystal at 14400bps, no
go. The best I get is scrambled data or simply invalid data (sometimes
with only pin one is high it output 3 instead of 1!!!). I really don't
understand why, any help would be appreciated!
Matth
Encoder to convert the keypad input to 4bits data. I then pass it to
the 6402 UART to convert the data from parallel to serial.
I'm using the circuit found here
http://www.beyondlogic.org/serial/serial3.htm to the exception that I
run the circuit with a 20Mhz crystal (so I use Q5 on the 74HC4060).
It's not perfect as I would need 19.6608Mhz for 19200bps but iirc the
UART has a 3% margin. I've also noticed that Y pins on the 74C922 are
inverted from what they should be. The UART runs with no parity, 8bits
word, 1 stop bit and at 19200bps. Now I do get some data sent through
but the words are very weird. They appear something like 0 # 0 #, where
# is some odd number and not 0 to 16 as it should be. I know it is not
the MAX232 as it's output is connected to a VFD and that works fine.
I've tried replacing the UART to no avail, same for the 74C4060. I
haven't tried to change the 74C922 as it's quiet expensive and I only
have one but anyway I get similar data if I just tie pins low/high
manually. I've tried using a different, slower crystal at 14400bps, no
go. The best I get is scrambled data or simply invalid data (sometimes
with only pin one is high it output 3 instead of 1!!!). I really don't
understand why, any help would be appreciated!
Matth