ATJ209x GPIO
The Actions ATJ/AK series SoCs have varying numbers of I/O mouths which can be considered a general-purpose input/output (GPIO). However, in specific function configurations, their behavior is altered. This page describes the use of them.
Depending on the exact model, up to the following GPIO port are available:
Contents
GPIO List
A
- GPO_A0
- GPO_A1
- GPO_A2
B
- GPIO_B0
- GPIO_B1
- GPIO_B2
- (there is no B3)
- GPIO_B4
- GPIO_B5
- GPIO_B6
C
- GPIO_C0
- GPIO_C1
- GPIO_C2
- GPIO_C3
D
- GPIO_D0
- GPIO_D1
- GPIO_D2
- GPIO_D3
- GPIO_D4
- GPIO_D5
E
- GPIO_E0
- GPIO_E1
- GPIO_E2
- GPIO_E3
- GPIO_E4
- GPIO_E5
- GPIO_E6
- GPIO_E7
F
- GPIO_F0
- GPIO_F1
- GPIO_F2
- GPIO_F3
- GPIO_F4
- GPIO_F5
- GPIO_F6
- GPIO_F7
G
- GPIO_G0
- GPIO_G1
- GPIO_G2
GPIO Describe
0. Multifunction Select
There are several functional modes available, which are controlled by register EE. The bit arrangement is as follows:
- Register EE:
- 7:5 Function Select
- 4: Controls external memory mode
- 3:0 GPO A data
2. The functional mode which is selected.
1. GPO A
This port is always an output and is 3 bits wide. The lower 4 bits of register EE determine the output data (although the highest of these bits is not used.)
- Register EE:
- 3 GPO_A3 data (unused/unavailable)
- 2 GPO_A2 data
- 1 GPO_A1 data
- 0 GPO_A0 data
2. GPIO B
This port varies in width and can be configured for input/output; in addition, selected pins can be configured for use with key scan function. The ATJ208x has up to 6 B pins, while the 209x/AK has up to 5. More noticeably, GPIO_B3 is missing from both. In addition, 209x adds the option of being able to output HOSC or LOSC on B4.
209x/AK:
- Register EF:
- Register F0:
- Register F1:
- Register F2: ; only bits for pins which are present and enabled are meaningful
- 7:0 GPIO_B data
3. GPIO C
- Register F3:
- 7:4 enable input for GPIO C3-C0 (1=enable,0=disable)
- 3:0 enable output for GPIO C3-C0 (1=enable,0=disable)
- Register F4:
- 7:4 unused
- 3:0 GPIO_C data
4. GPIO D
- Register F5:
- Register F6:
- Register F7:
5. GPIO E
- Register F8:
- Register F9:
- Register FA:
6. GPIO F
- Register FB:
- Register FC:
- Register FD:
7. GPIO G
- Register FE:
- Register FF: