IO Registers: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 30: | Line 30: | ||
| $A10003 | | $A10003 | ||
| REG_DATA1 | | REG_DATA1 | ||
| | | Read the status of each pin (direction is controller by REG_CTRL1) | ||
{{8BitRegister|PD7|1|PD6|1|PD5|1|PD4|1|PD3|1|PD2|1|PD1|1|PD0|1}} | |||
| Set the status of each pin (ignored for input pins) | |||
{{8BitRegister|PD7|1|PD6|1|PD5|1|PD4|1|PD3|1|PD2|1|PD1|1|PD0|1}} | {{8BitRegister|PD7|1|PD6|1|PD5|1|PD4|1|PD3|1|PD2|1|PD1|1|PD0|1}} | ||
|- | |- | ||
| $A10005 | | $A10005 | ||
Line 38: | Line 39: | ||
| Status of each pin (direction is controller by REG_CTRL2) | | Status of each pin (direction is controller by REG_CTRL2) | ||
{{8BitRegister|PD7|1|PD6|1|PD5|1|PD4|1|PD3|1|PD2|1|PD1|1|PD0|1}} | {{8BitRegister|PD7|1|PD6|1|PD5|1|PD4|1|PD3|1|PD2|1|PD1|1|PD0|1}} | ||
| | | Set the status of each pin (ignored for input pins) | ||
{{8BitRegister|PD7|1|PD6|1|PD5|1|PD4|1|PD3|1|PD2|1|PD1|1|PD0|1}} | |||
|- | |- | ||
| $A10007 | | $A10007 | ||
Line 44: | Line 46: | ||
| Status of each pin (direction is controller by REG_CTRL3) | | Status of each pin (direction is controller by REG_CTRL3) | ||
{{8BitRegister|PD7|1|PD6|1|PD5|1|PD4|1|PD3|1|PD2|1|PD1|1|PD0|1}} | {{8BitRegister|PD7|1|PD6|1|PD5|1|PD4|1|PD3|1|PD2|1|PD1|1|PD0|1}} | ||
| | | Set the status of each pin (ignored for input pins) | ||
{{8BitRegister|PD7|1|PD6|1|PD5|1|PD4|1|PD3|1|PD2|1|PD1|1|PD0|1}} | |||
|- | |- | ||
| $A10009 | | $A10009 | ||
| REG_CTRL1 | | REG_CTRL1 | ||
| | | Read the direction of the pins | ||
{{8BitRegister|INT|1|PC6|1|PC5|1|PC4|1|PC3|1|PC2|1|PC1|1|PC0|1}} | {{8BitRegister|INT|1|PC6|1|PC5|1|PC4|1|PC3|1|PC2|1|PC1|1|PC0|1}} | ||
| Select the direction of the pins | |||
{{8BitRegister | |||
|INT | |||
0 : TH-INT Prohibited | |||
1 : TH-INT Allowed | |||
|1 | |||
|PC6 | |||
0 : input | |||
1 : output | |||
|1 | |||
|PC5 | |||
0 : input | |||
1 : output | |||
|1 | |||
|PC4 | |||
0 : input | |||
1 : output | |||
|1 | |||
|PC3 | |||
0 : input | |||
1 : output | |||
|1 | |||
|PC2 | |||
0 : input | |||
1 : output | |||
|1 | |||
0 : input | |||
1 : output | |||
|PC1 | |||
0 : input | |||
1 : output | |||
|1 | |||
|PC0 | |||
0 : input | |||
1 : output | |||
|1 | |||
}} | |||
|- | |- | ||
| $A1000B | | $A1000B | ||
| REG_CTRL2 | | REG_CTRL2 | ||
| | | Read the direction of the pins | ||
{{8BitRegister|INT|1|PC6|1|PC5|1|PC4|1|PC3|1|PC2|1|PC1|1|PC0|1}} | {{8BitRegister|INT|1|PC6|1|PC5|1|PC4|1|PC3|1|PC2|1|PC1|1|PC0|1}} | ||
| Select the direction of the pin | |||
{{8BitRegister | |||
|INT | |||
0 : TH-INT Prohibited | |||
1 : TH-INT Allowed | |||
|1 | |||
|PC6 | |||
0 : input | |||
1 : output | |||
|1 | |||
|PC5 | |||
0 : input | |||
1 : output | |||
|1 | |||
|PC4 | |||
0 : input | |||
1 : output | |||
|1 | |||
|PC3 | |||
0 : input | |||
1 : output | |||
|1 | |||
|PC2 | |||
0 : input | |||
1 : output | |||
|1 | |||
0 : input | |||
1 : output | |||
|PC1 | |||
0 : input | |||
1 : output | |||
|1 | |||
|PC0 | |||
0 : input | |||
1 : output | |||
|1 | |||
}} | |||
|- | |- | ||
| $A1000D | | $A1000D | ||
| REG_CTRL3 | | REG_CTRL3 | ||
| | | Read the direction of the pins | ||
{{8BitRegister|INT|1|PC6|1|PC5|1|PC4|1|PC3|1|PC2|1|PC1|1|PC0|1}} | {{8BitRegister|INT|1|PC6|1|PC5|1|PC4|1|PC3|1|PC2|1|PC1|1|PC0|1}} | ||
| Select the direction of the pin | |||
{{8BitRegister | |||
|INT | |||
0 : TH-INT Prohibited | |||
1 : TH-INT Allowed | |||
|1 | |||
|PC6 | |||
0 : input | |||
1 : output | |||
|1 | |||
|PC5 | |||
0 : input | |||
1 : output | |||
|1 | |||
|PC4 | |||
0 : input | |||
1 : output | |||
|1 | |||
|PC3 | |||
0 : input | |||
1 : output | |||
|1 | |||
|PC2 | |||
0 : input | |||
1 : output | |||
|1 | |||
0 : input | |||
1 : output | |||
|PC1 | |||
0 : input | |||
1 : output | |||
|1 | |||
|PC0 | |||
0 : input | |||
1 : output | |||
|1 | |||
}} | |||
|- | |- | ||
| $A1000F | | $A1000F |
Revision as of 12:41, 20 March 2012
Address | Name | Read | Write | ||||||||||||||||||||||||||||||||||||
$A10001 | REG_VERSION |
|
? | ||||||||||||||||||||||||||||||||||||
$A10003 | REG_DATA1 | Read the status of each pin (direction is controller by REG_CTRL1)
|
Set the status of each pin (ignored for input pins)
| ||||||||||||||||||||||||||||||||||||
$A10005 | REG_DATA2 | Status of each pin (direction is controller by REG_CTRL2)
|
Set the status of each pin (ignored for input pins)
| ||||||||||||||||||||||||||||||||||||
$A10007 | REG_DATA3 | Status of each pin (direction is controller by REG_CTRL3)
|
Set the status of each pin (ignored for input pins)
| ||||||||||||||||||||||||||||||||||||
$A10009 | REG_CTRL1 | Read the direction of the pins
|
Select the direction of the pins
| ||||||||||||||||||||||||||||||||||||
$A1000B | REG_CTRL2 | Read the direction of the pins
|
Select the direction of the pin
| ||||||||||||||||||||||||||||||||||||
$A1000D | REG_CTRL3 | Read the direction of the pins
|
Select the direction of the pin
| ||||||||||||||||||||||||||||||||||||
$A1000F | REG_TXDATA1 | ||||||||||||||||||||||||||||||||||||||
$A10011 | REG_RXDATA1 | ||||||||||||||||||||||||||||||||||||||
$A10013 | REG_S_CTRL1 |
|
| ||||||||||||||||||||||||||||||||||||
$A10015 | REG_TXDATA2 | ||||||||||||||||||||||||||||||||||||||
$A10017 | REG_RXDATA2 | ||||||||||||||||||||||||||||||||||||||
$A10019 | REG_S_CTRL2 |
|
| ||||||||||||||||||||||||||||||||||||
$A1001B | REG_TXDATA3 | ||||||||||||||||||||||||||||||||||||||
$A1001D | REG_RXDATA3 | ||||||||||||||||||||||||||||||||||||||
$A1001F | REG_S_CTRL3 |
|
|