Hello all:
I've purchased a CFA-635-TML-KL LCD module, and having trouble getting it to work.
My final goal is to connect this module to a PIC18F microcontroller (not using any accessories, e.g. FSCAB, ATX; all I need is the display screen, buttons, and backlight), but I first tried to communicate with the module from a PC via the "cftest" program. I'm using a USB-serial converter (TTL-232RG-VIP-WE https://www.ftdichip.com/Support/Documents/DataSheets/Cables/DS_TTL-232RG_CABLES.pdf). This cable has a pin for the circuit to supply the voltage level to be used for signals. I've used this cable succesfully for many other applications (mostly with PIC MCUs).
First try:
Connections:
'H1' pin 1 - FTDI cable 'Tx' pin
'H1' pin 2 - FTDI cable 'Rx' pin
'H1' pin 15 - Ground
'H1' pin 16 - +5 VDC
+5 VDC - FTDI cable 'Vcc' pin
Questions:
- Startup behavior
When power is applied, there's a brief flash of a block of multicolored lines on the right-hand part of the screen (about a fourth of it), then it goes dark. (Also no LEDs are lit).
Should there be some 'boot screen' at startup, or is a dark screen normal? Should the LCD module be sending anything to the host when it starts?
- Baud rate
What is the correct default baud rate 'out of the box'?
Datasheet states (Section 9. Host Communications, page 21):
"The port settings are 115200 baud, 8 data bits, no parity, 1 stop bit by default. The speed can be set to 19200 baud under software control"
Yet later in the datasheet (9.4. Command Codes, page 41), I find:
"The factory default baud rate is 19200."
So which is it? Obviously, I won't get far without knowing correct baud rate to use.
(I did try both 19200 and 115200 with same result).
- Jumpers:
From the datasheet (3.2. Jumper Locations and Functions (All Interfaces), 3.3. Valid Jumper Settings), I determine that the interface type is selected with JP7, JP9/RJP9, and JP10/RJP10. My module, whose part no. ends with 'L', should be 'logic level serial.' My module was shipped with:
JP7 : open
JP9 : open
RJP9 : populated with 0-ohm resistor
JP10 : open
RJP10 : populated with 0-ohm resistor
Datasheet Section 3.3 (Page 12) contains text:
Function: USB interface, module powered by USB (not useful for -KL or -KS)
- JP7: Open
- JP9/RJP9: Closed
- JP10/RJP10: Closed
Function: Serial interface, module powered by H1 (default setting for -KL & -KS)
- JP7: Open
- JP9/RJP9: Closed
- JP10/RJP10: Open
So unless I misunderstand, this module seems to be configured for USB. There's no silk or label on the module indicating which interface, and I double-checked the invoice part no, which shows the one I wanted: CFA-635-TML-KL (logic level serial). Should these jumpers have been set for me, or am I expected to adjust jumpers myself? If the latter, that seems to obviate having a distinct part number for each interface type. Did I possibly get shipped the wrong unit?
Datasheet Section 2.2 (Page 11) contains text:
"The CFA635-xxx-KL has three jumpers. To open a jumper, remove the solder ball AND de-populate
the corresponding resistor. To close a jumper, melt a ball of solder across the gap OR populate the
corresponding resistor location with an 0603 0-ohm resistor."
This tells me that for JP9 and JP10, either soldering across the gap or installing the 0-ohm resistor will work. That also seems to confirm my suspicion that this module is jumpered for a USB interface.
I also did try wiring Tx/Rx directly to a PICs UART, and wrote code to light an LED when any character is received. I got essentially the same result: no LCD response (I did make sure my code worked by sending characters from a PC, and LED lit as expected.)
I suspect that perhaps I'm not undertanding correctly, or making invalid assumptions. I think I need better undertanding before I fire up the soldering iron and possibly dig myself deeper into trouble. Can anyone help me?
Thanks,
-Mike
I've purchased a CFA-635-TML-KL LCD module, and having trouble getting it to work.
My final goal is to connect this module to a PIC18F microcontroller (not using any accessories, e.g. FSCAB, ATX; all I need is the display screen, buttons, and backlight), but I first tried to communicate with the module from a PC via the "cftest" program. I'm using a USB-serial converter (TTL-232RG-VIP-WE https://www.ftdichip.com/Support/Documents/DataSheets/Cables/DS_TTL-232RG_CABLES.pdf). This cable has a pin for the circuit to supply the voltage level to be used for signals. I've used this cable succesfully for many other applications (mostly with PIC MCUs).
First try:
Connections:
'H1' pin 1 - FTDI cable 'Tx' pin
'H1' pin 2 - FTDI cable 'Rx' pin
'H1' pin 15 - Ground
'H1' pin 16 - +5 VDC
+5 VDC - FTDI cable 'Vcc' pin
Questions:
- Startup behavior
When power is applied, there's a brief flash of a block of multicolored lines on the right-hand part of the screen (about a fourth of it), then it goes dark. (Also no LEDs are lit).
Should there be some 'boot screen' at startup, or is a dark screen normal? Should the LCD module be sending anything to the host when it starts?
- Baud rate
What is the correct default baud rate 'out of the box'?
Datasheet states (Section 9. Host Communications, page 21):
"The port settings are 115200 baud, 8 data bits, no parity, 1 stop bit by default. The speed can be set to 19200 baud under software control"
Yet later in the datasheet (9.4. Command Codes, page 41), I find:
"The factory default baud rate is 19200."
So which is it? Obviously, I won't get far without knowing correct baud rate to use.
(I did try both 19200 and 115200 with same result).
- Jumpers:
From the datasheet (3.2. Jumper Locations and Functions (All Interfaces), 3.3. Valid Jumper Settings), I determine that the interface type is selected with JP7, JP9/RJP9, and JP10/RJP10. My module, whose part no. ends with 'L', should be 'logic level serial.' My module was shipped with:
JP7 : open
JP9 : open
RJP9 : populated with 0-ohm resistor
JP10 : open
RJP10 : populated with 0-ohm resistor
Datasheet Section 3.3 (Page 12) contains text:
Function: USB interface, module powered by USB (not useful for -KL or -KS)
- JP7: Open
- JP9/RJP9: Closed
- JP10/RJP10: Closed
Function: Serial interface, module powered by H1 (default setting for -KL & -KS)
- JP7: Open
- JP9/RJP9: Closed
- JP10/RJP10: Open
So unless I misunderstand, this module seems to be configured for USB. There's no silk or label on the module indicating which interface, and I double-checked the invoice part no, which shows the one I wanted: CFA-635-TML-KL (logic level serial). Should these jumpers have been set for me, or am I expected to adjust jumpers myself? If the latter, that seems to obviate having a distinct part number for each interface type. Did I possibly get shipped the wrong unit?
Datasheet Section 2.2 (Page 11) contains text:
"The CFA635-xxx-KL has three jumpers. To open a jumper, remove the solder ball AND de-populate
the corresponding resistor. To close a jumper, melt a ball of solder across the gap OR populate the
corresponding resistor location with an 0603 0-ohm resistor."
This tells me that for JP9 and JP10, either soldering across the gap or installing the 0-ohm resistor will work. That also seems to confirm my suspicion that this module is jumpered for a USB interface.
I also did try wiring Tx/Rx directly to a PICs UART, and wrote code to light an LED when any character is received. I got essentially the same result: no LCD response (I did make sure my code worked by sending characters from a PC, and LED lit as expected.)
I suspect that perhaps I'm not undertanding correctly, or making invalid assumptions. I think I need better undertanding before I fire up the soldering iron and possibly dig myself deeper into trouble. Can anyone help me?
Thanks,
-Mike
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.