Skip to content

Commit

Permalink
initialize repository
Browse files Browse the repository at this point in the history
convert my google doc to markdown
  • Loading branch information
squk committed May 16, 2020
1 parent 2be4565 commit 8c3b5a1
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
Game Boy Advance(GBA) LCD Interface
===================================

Manufactured by Sharp.
Potential model numbers: *LQU29B2DDO2P 18H00862812* or *QPWBH2218TPZZ*. Data-sheets unavailable.


# 40-Pin FFC Pinout
|Pin|Name|Description|Details|
|--- |--- |--- |--- |
|1|TST2|||
|2|VSHD|||
|3|DCLK|Pixel clock|Active on negative edge|
|4|LP|Data latch of signal source driver (i.e pixel clock)||
|5|PS|Power save signal||
|6|DGND|Digital ground||
|7|VSHD|||
|8|LDR5|Bit 4 of digital red||
|9|LDR4|Bit 3 of digital red||
|10|LDR3|Bit 2 of digital red||
|11|LDR2|Bit 1 of digital red||
|12|LDR1|Bit 0 of digital red||
|13|LDG5|Bit 4 of digital green||
|14|LDG4|Bit 3 of digital green||
|15|LDG3|Bit 2 of digital green||
|16|LDG2|Bit 1 of digital green||
|17|LDG1|Bit 0 of digital green||
|18|GND|||
|19|LDB5|Bit 4 of digital blue||
|20|LDB4|Bit 3 of digital blue||
|21|LDB3|Bit 2 of digital blue||
|22|LDB2|Bit 1 of digital blue||
|23|LDB1|Bit 0 of digital blue||
|24|SPL|Sampling start signal (HSYNC)||
|25|CLS|Clock signal of gate driver||
|26|SPS|Start signal of gate driver. f = 59.737Hz/ (i.e. VSYNC)||
|27|TST|||
|28|MOD|Control signal of gate driver||
|29|VCOM|Common electrode driving signal||
|30|VEE|||
|31|VSS|||
|32|VCC|||
|33|-|||
|34|VSHA|||
|35|AGND|Analog ground||
|36|V4||Vpp=3.00V at 6.81KHz|
|37|V3||Vpp=2.32V at 6.81KHz|
|38|V2|||
|39|V1||Vpp=3.72V at 6.81KHz|
|40|V0||Vpp=3.60V at 6.81KHz|

# Signals Explained
The delta between the two cursors(neg edge of SPS) here is 16.743 ms, with a
frequency averaging 59.728Hz, i.e. the refresh rate of the GameBoy Advance,
indicating this is likely our VSYNC signal:
![signals 1](images/GBA-LCD1.png)

Zooming in, we can see that LP, PS, and SPL are all pulses with a negedge that
represents the beginning of a pixel(each negative edge of the DCLK signal
represents 15-bits of RGB being read by the display). :
![signals 2](images/GBA-LCD2.png)

However, the PS signal is changed from a positive duty cycle of 85.699% to a
positive duty cycle of 6.498% during the VBLANK period(SPS pulse followed by
SPL pulse is the first pixel of the frame). This duty cycle change is shown
here:
![signals 3](images/GBA-LCD3.png)
Binary file added images/GBA-LCD1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/GBA-LCD2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/GBA-LCD3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8c3b5a1

Please sign in to comment.