I just finished assembling the AXE133Y OLED and it seems to be basically working but is has some problems. I tested it by sending inverted 2400 bps data from my PC and it worked pretty good, but occasionally a character would be scrambled. I was able to fix that occasional scrambling by specifying the PC to send two stop bits instead of one.
So I then connected it to my Picaxe 20x2 and the data the 20x2 sent was badly scrambled on the OLED screen. After experimenting a little it seems that some types of the serout command work without error, but other types have bad errors. For example, serout B.6, n2400, ("hello world") seems to work perfectly. However serout B.6, n2400, (">",#parameter1, #parameter2) almost always produces a few garbage characters after sending the first 2 or 3 characters perfectly. I don't know if two stop bits can be configured in the 20x2, but if it can that may solve the problem like it did above with my PC configured with two stop bits.
I'm guessing that the clock frequency of the Picaxe chip in the OLED is slightly off frequency, and maybe somehow the small timing difference caused by the 20x2 having to convert the variable to ASCII characters is causing errors on the OLED. Just a wild guess.
I tried hooking up the input of my PC serial port in parallel with the OLED so that both devices read the same data stream simultaneously. The PC displays the characters perfectly while the OLED shows the same data stream with garbage characters similar to above.
I looked through the Pixace manual to see if there is a way to specify 2 stop bits in my 20x2, but didn't see any way to do that.
Anybody have any suggestions? Can the clock in the 20x2 or in the OLED Picaxe chip be adjusted somehow?
P.S. The AXE133y gets it's power from the same supply as the 20x2.
So I then connected it to my Picaxe 20x2 and the data the 20x2 sent was badly scrambled on the OLED screen. After experimenting a little it seems that some types of the serout command work without error, but other types have bad errors. For example, serout B.6, n2400, ("hello world") seems to work perfectly. However serout B.6, n2400, (">",#parameter1, #parameter2) almost always produces a few garbage characters after sending the first 2 or 3 characters perfectly. I don't know if two stop bits can be configured in the 20x2, but if it can that may solve the problem like it did above with my PC configured with two stop bits.
I'm guessing that the clock frequency of the Picaxe chip in the OLED is slightly off frequency, and maybe somehow the small timing difference caused by the 20x2 having to convert the variable to ASCII characters is causing errors on the OLED. Just a wild guess.
I tried hooking up the input of my PC serial port in parallel with the OLED so that both devices read the same data stream simultaneously. The PC displays the characters perfectly while the OLED shows the same data stream with garbage characters similar to above.
I looked through the Pixace manual to see if there is a way to specify 2 stop bits in my 20x2, but didn't see any way to do that.
Anybody have any suggestions? Can the clock in the 20x2 or in the OLED Picaxe chip be adjusted somehow?
P.S. The AXE133y gets it's power from the same supply as the 20x2.