Sending commands via 'C' printf
-
- LCD?
- Posts: 9
- Joined: Fri Jun 19, 2009 11:20 pm
Sending commands via 'C' printf
Hello. I am trying to set up an LK204-24 for 1200 baud (I'd prefer 300, but 1200 is the lowest)
I can print to the display e.g. 'hello Jason' with no problems at 19200 (display default) - so all this side of things are working
I'm sending the change baud rate command via a printf statement from a uController but it does not seem to work.
printf("%X%X%X",0xFE,0x39,0x53)
Can anyone point me in th e right direction here?
Thanks
Jason
I can print to the display e.g. 'hello Jason' with no problems at 19200 (display default) - so all this side of things are working
I'm sending the change baud rate command via a printf statement from a uController but it does not seem to work.
printf("%X%X%X",0xFE,0x39,0x53)
Can anyone point me in th e right direction here?
Thanks
Jason
-
- LCD?
- Posts: 9
- Joined: Fri Jun 19, 2009 11:20 pm
-
- LCD?
- Posts: 9
- Joined: Fri Jun 19, 2009 11:20 pm
-
- LCD?
- Posts: 9
- Joined: Fri Jun 19, 2009 11:20 pm
-
- LCD?
- Posts: 9
- Joined: Fri Jun 19, 2009 11:20 pm
-
- LCD?
- Posts: 9
- Joined: Fri Jun 19, 2009 11:20 pm
Hello Jason,
The RS232 port settings are: 8 data bits, 1 stop bit, no parity, no flow control and 19200 default baud, which you should be able to change to 1200 with the command 0xFE 0x39 <baud>.
Now depending on the board you have, <baud> could be 0x53 or 0xFF.
You mentioned you have an LK204-24 and later mentioned PLED. Maybe you have a PK202-24-USB or a PK202-25?
Thanks,
The RS232 port settings are: 8 data bits, 1 stop bit, no parity, no flow control and 19200 default baud, which you should be able to change to 1200 with the command 0xFE 0x39 <baud>.
Now depending on the board you have, <baud> could be 0x53 or 0xFF.
You mentioned you have an LK204-24 and later mentioned PLED. Maybe you have a PK202-24-USB or a PK202-25?
Thanks,
Raquel Malinis
Design and Development
Matrix Orbital
Design and Development
Matrix Orbital
-
- LCD?
- Posts: 9
- Joined: Fri Jun 19, 2009 11:20 pm
Hi Jason,
Sorry but the part number you mentioned does not seem to be right (specially when you mentioned that the display is red). Is it possible for you to please take a picture of the display module's front (powered on) and back?
Anywho, have you tried 0xFF or 0x53 as parameter for the command 0xFE 0x39?
edit:
After sending the command, wait for about 100 ms delay and start communicating in 1200 baud. The change is effective (almost) immediately.
Thanks,
Sorry but the part number you mentioned does not seem to be right (specially when you mentioned that the display is red). Is it possible for you to please take a picture of the display module's front (powered on) and back?
Anywho, have you tried 0xFF or 0x53 as parameter for the command 0xFE 0x39?
edit:
After sending the command, wait for about 100 ms delay and start communicating in 1200 baud. The change is effective (almost) immediately.
Thanks,
Raquel Malinis
Design and Development
Matrix Orbital
Design and Development
Matrix Orbital
-
- LCD?
- Posts: 9
- Joined: Fri Jun 19, 2009 11:20 pm