TS-7250-V3 LCD Header: Difference between revisions
From embeddedTS Manuals
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
The LCD header is a 0.1" pitch 2x7 header including GPIO. This is designed around compatibility with the HD44780 LCD controller which includes our [https://www.embeddedarm.com/parts/LCD-LED LCD-LED]. The LCD Data pins (7-14) are 5V tolerant. These will output up to 3.3V, and the remaining control IO and PWM are 3.3V tolerant. | The LCD header is a 0.1" pitch 2x7 header including GPIO. This is designed around compatibility with the HD44780 LCD controller which includes our [https://www.embeddedarm.com/parts/LCD-LED LCD-LED]. The LCD Data pins (7-14) are 5V tolerant. These will output up to 3.3V, and the remaining control IO and PWM are 3.3V tolerant. The TS-7250-V3 Debian images include a command [https://github.com/embeddedarm/ts7100-utils/blob/master/src/lcdmesg.c lcdmesg]. This can be used to write to our [https://www.embeddedarm.com/parts/LCD-LED LCD-LED] display. | ||
For example, this would write to the display: | |||
<source lang=bash> | |||
lcdmesg "line 1" "line 2" | |||
# Messages can also be piped to lcdmesg: | |||
echo -e "line 1\nline 2\n" | lcdmesg | |||
</source> | |||
For example, running: | |||
<source lang=bash> | |||
lcdmesg Technologic Systems | |||
</source> | |||
will display: | |||
[[File:LCD LED example.jpg|500px]] | |||
Pin 4, the LCD_BIAS pin, is used to set the contrast on the LCD. | |||
<source lang=bash> | |||
tshwctl --address 0x1c --poke16 0x0 # Writes minimum | |||
tshwctl --address 0x1c --poke16 0xf # Writes maximum | |||
</source> | |||
{| | {| | ||
Line 21: | Line 42: | ||
|- | |- | ||
| 4 | | 4 | ||
| LCD_BIAS | | LCD_BIAS <ref>PWM duty cycle controlled by [[#FPGA Syscon|FPGA Syscon reg 0x1c]]. This may need to be tuned depending on the environment or altitude where the display is used.</ref> | ||
|- | |- | ||
| 5 | | 5 | ||
Line 58: | Line 79: | ||
<References /> | <References /> | ||
Revision as of 11:00, 12 July 2021
The LCD header is a 0.1" pitch 2x7 header including GPIO. This is designed around compatibility with the HD44780 LCD controller which includes our LCD-LED. The LCD Data pins (7-14) are 5V tolerant. These will output up to 3.3V, and the remaining control IO and PWM are 3.3V tolerant. The TS-7250-V3 Debian images include a command lcdmesg. This can be used to write to our LCD-LED display.
For example, this would write to the display:
lcdmesg "line 1" "line 2"
# Messages can also be piped to lcdmesg:
echo -e "line 1\nline 2\n" | lcdmesg
For example, running:
lcdmesg Technologic Systems
will display:
Pin 4, the LCD_BIAS pin, is used to set the contrast on the LCD.
tshwctl --address 0x1c --poke16 0x0 # Writes minimum
tshwctl --address 0x1c --poke16 0xf # Writes maximum
Signals | Pin Layout | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
- ↑ PWM duty cycle controlled by FPGA Syscon reg 0x1c. This may need to be tuned depending on the environment or altitude where the display is used.