Documenting the K1900 interface
Geschrieben von MMind am Sonntag, 15. Mai 2011 in Oyo
This time in english to keep as reference for whoever may need it.
As written last time, the K1900 uses the I80 interface of the S3C2416. This interface is also present on the following SoCs [S3C64xx, S5Psomething] in an improved version where the S3C2416 only has the so called "manual command mode".
The connection between the I80-pins of the S3C and the K1900 are as follows:
PIN | S3C (SIFCCON0) | K1900 |
---|---|---|
Command mode enable | SCOMEN | ---- |
Chip-Select | nCS0 | CSEL |
Register/State switch (where to write to) | SYS_RS | DC |
Write enable | nWE | HWE |
Read enable | nOE | HRD |
Data | SIFCCON1/2 [17:0] | DBUS[15:0] |
Settings are made in the SYSIFCON / I80IFCON register. The data exchange is then handled via the SIFCCON[0,1,2] registers. SIFCCON0 controls the connection, SIFCCON1 contains the data to send to the K1900 and SIFCCON2 contains the data received from the K1900. Data is transmitted through setting the SIFCCON0 bits in the right sequence and combination:
RS | nOE | nWE | Function |
---|---|---|---|
0 | 0 | 1 | Write command to register |
0 | 1 | 0 | (read register - not used) |
1 | 0 | 1 | Write data (params) |
1 | 1 | 0 | Read data (return values) |
Sending a command to the K1900 therefore follows along this path:
- command mode enable
- nCS0 enable
- send command
- RS low
- nWE enable
- write command to SIFCCON1
- nWE disable
- RS high
- optionally send parameters
- nWE enabled
- write value to SIFCCON1
- nWE disabled
- optionally read returned values
- nRD enabled
- read value from SIFCCON2
- nRD disabled
- nCS0 disable
- command mode disable
1 Trackback für diesen Eintrag
Mai 17, 22:50