W-ZERO3のCPLDの解析
CPLDアクセス方法
- アドレス 0x08000000〜0x0800001f(CS2)
- 32bitアクセス
- 有効データ bit0-7(8bit)
CPLD read data
address | bit | 用途 | 意味 |
---|---|---|---|
0x00 | 0-7 | ||
0x04 | 0-7 | ||
0x08 | 0-7 | Key matrix scan | 0/1=Pressed/Released |
0x0c | 0-7 | ||
0x10 | 0-7 | ||
0x14 | 0-7 | ||
0x18 | 0-7 | ||
0x1c | 0 | Headset answer key | 0/1=Pressed/Released |
0x1c | 1 | Headset | 0/1=Connected/NOT Connected |
0x1c | 2 | Battery case | 0/1=Open/Close |
0x1c | 3 | ||
0x1c | 4 | Keyboard | 0/1=Close/Open |
0x1c | 5 | ||
0x1c | 6 | miniSD | 0/1=Inserted/Ejected |
0x1c | 7 | Key matrix col11? (==GPIO91<sha_pon007>) |
CPLD write data
address | bit | 用途 | 意味 |
---|---|---|---|
0x00 | 0-7 | Key matrix strobe col0-7 | 0/1=OFF/ON |
0x04 | 0-3 | Key matrix strobe col8-11 | 0/1=OFF/ON |
0x04 | 4-7 | ||
0x08 | 0 | Key matrix discharge | 0/1=Normal/Discharge |
0x08 | 1-7 | ||
0x0c | 0 | LED(anntena) RED | 0/1=OFF/ON |
0x0c | 1 | LED(anntena) GREEN | 0/1=OFF/ON |
0x0c | 2 | ||
0x0c | 3 | LED(anntena) Mode | 0/1=CPU/W-SIM control |
0x0c | 4-7 | ||
0x10 | 0-3 | ||
0x10 | 4 | W-SIM Power | 0/1=Power down/up |
0x10 | 5-7 | ||
0x14 | 0 | LED(10 keys) <1> | 0/1=? |
0x14 | 1 | LED(10 keys) <2> | 0/1=? |
0x14 | 2 | LED(10 keys) <3> | 0/1=? |
0x14 | 3 | ||
0x14 | 4 | Vibrator | 0/1=OFF/ON |
0x14 | 5-7 | ||
0x18 | 0-7 | ||
0x1c | 0-7 |
GPIO番号の仮割り付け
- Read
address | bit | GPIO仮番号 |
---|---|---|
0x00 | 0-7 | 192-199 |
0x04 | 0-7 | 200-207 |
0x08 | 0-7 | 208-215 |
0x0c | 0-7 | 216-223 |
0x10 | 0-7 | 224-231 |
0x14 | 0-7 | 232-239 |
0x18 | 0-7 | 240-247 |
0x1c | 0-7 | 248-255 |
- Write
address | bit | GPIO仮番号 |
---|---|---|
0x00 | 0-7 | 128-135(キーボード用) |
0x04 | 0-7 | 136-143(キーボード用) |
0x08 | 0-7 | 144-151(キーボード用) |
0x0c | 0-7 | 152-159 |
0x10 | 0-7 | 160-167 |
0x14 | 0-7 | 168-175 |
0x18 | 0-7 | 176-183 |
0x1c | 0-7 | 184-191 |
(・ω・)趣味でやってるサイトですよ。