📄 color_lcd.txt
字号:
*************************************************************************
******************* COLOR LCD INFO - HOW TO ******************
*************************************************************************
!!! PLEASE READ WHOLE TEXT BEFORE YOU DO ANYTHING !!!
I. What you need to use colour LCD with yampp-7
================================================
-a yampp-7 board Revision C or newer, with ATmega162 CPU
-a PHILIPS controller based Colour LCD display from Nokia6610 phone
-SPI programmer cable
-SPI programmer software like YAAP in version 0.6
-One additional crystal with frequency about 12MHz (10-13MHz)
If you really not have any crystal, you can ommited change, but this is
not recommended.
-New firmware (this package)
-Backlight step-up converter for powering the display white LED
-------------------------------------------------------------------------
II. Hardware modifications
============================
1. If you have installed ATmega161L CPU, change it to ATmega162L.
2. Change CPU crystal from 4.0Mhz to about 10-13Mhz. Higher is better, but
not to more :-). You may insert 12.288Mhz Crystal - the same type as
for VS1001. If you not have any new crystal, you may use internal 8MHz
CPU clock generator without any crystal change, but this is not
recommended.
3. Display connections:
If you have display with PHILIPS controller, at back site of display
after remove paper stick you should see 11 goldpads. You can solder
wires directly to these goldpads. Use first 10 counting from left
(connector up). If your display not have goldpads - this is probably
EPSON controller based display. EPSON displays have poor contrast control
block, and need supply voltage about 3V. This mean that it can't be used
directly with y7. You need additionaly voltage regulator and signal level
converter. If you connect it directly, you see too high contrast,
and contrast conrtol not work.
Connect the wires from display to yampp onboard J2 connector in this way:
y7 J2 - LCD Pad - Signal Name
1 ----- 1+6 - VCC
2 ----- 4 - SCK
3 ----- 3 - MOSI
5 ----- 5 - SCE (CS)
6 ----- 8 - GND
8 ----- 2 - RESET
Pad number 7 from LCD - Free (not connect)
Pad 9 and 10 from LCD are backlight LED's connections.
9 is LED- and 10 is LED+.
4. Backlight powering:
The white LED backlight need a supply voltage about 6.5V at 15mA of LED
current. You can't use it directly with yampp-7 board, and you need
additional step-up converter for powering display LED's.
The best way is using converter based at Linear Technology LT1937 chip.
You can build it yourself with standard application described in LT1937
datasheet, or wait for avaliablity in Jelu WebShop.
--------------------------------------------------------------------------
III. Software modifications
============================
1. Run yaap or other SPI programmer, connect SPI programmer cable.
2. If you replace the 4MHz crystal with 10-13MHz, change the CPU fuses to:
- CKDIV8 fuse PROGRAMMED,
- BOOTRST fuse PROGRAMMED,
- BOOTSZ1 fuse PROGRAMMED, (or UNPROGRAMMED for bootloader v.5)
- SPIEN fuse PROGRAMMED,
- ALL OTHERS FUSE UNPROGRAMMED
If you not change the crystal, set fuse in other way. Set fuses to:
- CKSEL0 fuse PROGRAMMED,
- CKSEL2 fuse PROGRAMMED,
- CKSEL3 fuse PROGRAMMED,
- SUT0 fuse PROGRAMMED,
- CKDIV8 fuse PROGRAMMED,
- BOOTRST fuse PROGRAMMED,
- BOOTSZ1 fuse PROGRAMMED, (or UNPROGRAMMED for bootloader v.5)
- SPIEN fuse PROGRAMMED,
- ALL OTHERS FUSE UNPROGRAMMED
In YAAP select "Program -> LockBits & Fuses", change the fuse setting
(PROGRAMMED fuse must have the box checked) and click "Write Fuses".
3. Change the bootloader to version 3 or 5, in M162 mode. In YAAP click
"Detect Device", open new project, click on "Flash" window,
choose File -> Load file, and open "y7_boot_M162_mode.hex" file.
Now click on the Autoprogram icon. Bootloader V5 is included with this
package.
4. Disconnect SPI programmer cable and battery.
5. Write your crystal frequency as M162CRYSTAL value in "Constants.h" file.
If you not change the crystal, setup M162CRYSTAL value to 8000000.
6. Recompile firmware, press VOL_UP and VOL_DOWN keys (enable bootloader),
connect battery, connect USB cable, run yamppLink, and update firmware.
--------------------------------------------------------------------------
IV. Graphics Skin loading
==========================
If you now have connected display, and new firmware loaded, you should
load the graphics layout (skin) into your card. You can find the default
skin files inside the "SKINS" folder. If you not load any skin - you can
see only black screen, and nothing other.
If you need other skin, download it from yampp software page, and unzip
to yampp firmware folder. Using other than default skin need some
additional configuration. Go to your preffered skin folder, find the
"lcd_layout.h" file, copy it to folder with main firmware (and replace
the oryginal file), recompile firmware, and download this version to yampp.
In some cases you may need loading national characters table too.
For this, follow instruction inside "LANG" folder.
Next you can load skin graphics to card. Simple power up the yampp,
connect the USB cable, setup COM port number inside "download.bat" file
and run it. After a moment the yampp restart, and you see startup screen.
That's all. More about bitmaps layout is in Bitmaps.txt file.
****************************************************************************
Have fun !!!
MIS <romek_b@o2.pl>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -