Les registres RTC IO

publication: 26 décembre 2021 / mis à jour 26 décembre 2021

Read this page in english

 

GPIO_OUT_REG (0004)

Nom
Name
Description Adresse
Address
Accès
Access
GPIO_OUT_REG GPIO 0-31 output register $3FF44004 R/W
\ 31                                                             00 
\ |x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x| 
\ x = R/W 
         
\ FORTH definition for GPIO_OUT_REG 
$3FF44004 constant GPIO_OUT_REG 

GPIO_OUT_W1TS_REG (0004)

Nom
Name
Description Adresse
Address
Accès
Access
GPIO_OUT_W1TS_REG GPIO 0-31 output register $3FF44004 R/W

GPIO0-31 output set register. For every bit that is 1 in the value written here, the corresponding bit in GPIO_OUT_REG will be set. (WO)

\ 31                                                             00 
\ |x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x| 
\ x = Write Only 
         
\ FORTH definition for GPIO_OUT_W1TS_REG 
$3FF44008 constant GPIO_OUT_W1TS_REG 

GPIO_OUT_W1TC_REG (000C)

Nom
Name
Description Adresse
Address
Accès
Access
GPIO_OUT_W1TC_REG GPIO0-31 output clear register $3FF4400C R/W

GPIO0-31 output clear register. For every bit that is 1 in the value written here, the corresponding bit in GPIO_OUT_REG will be cleared. (WO)

\ 31                                                             00 
\ |x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x| 
\ x = Write Only 
         
\ FORTH definition for GPIO_OUT_W1TC_REG 
$3FF4400C constant GPIO_OUT_W1TC_REG 
         
\ Example of use: 
\ set Gx in LOW level 
: GxOFF ( mask --- ) 
    GPIO_OUT_W1TC_REG L! 
  ; 
  
\ set Gx in HIGH level 
: GxON ( mask --- ) 
    GPIO_OUT_W1TS_REG L! 
  ; 
         
1  2 lshift constant ledGREEN      \  green LED on G2 
1 21 lshift constant ledYELLOW     \ yellow LED on G21 
1 17 lshift constant ledRED        \    red LED on G17 
     
\ init G2 G17 and G21 in output mode 
: GxInit ( -- ) 
    ledGREEN ledYELLOW + ledRED + 
    GPIO_ENABLE_REG L! 
  ; 
         
\ set all LEDs off 
: allLEDSoff ( -- ) 
    ledRED ledYELLOW ledGREEN + +  
    GxOFF 
  ; 
         
ledGreen GxON   \ turn green LED ON 

GPIO_OUT1_REG (0010)

Nom
Name
Description Adresse
Address
Accès
Access
GPIO_OUT1_REG GPIO32-39 output value $3FF44010 R/W

GPIO32-39 output value. (R/W)

\ 31                                            08|07            00 
\ |0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|x|x|x|x|x|x|x|x| 
\ x = R/W 
         
\ FORTH definition for GPIO_OUT1_REG 
$3FF44010 constant GPIO_OUT1_REG 

GPIO_ENABLE_REG (0020)

Nom
Name
Description Adresse
Address
Accès
Access
GPIO_ENABLE_REG GPIO0-31 output enable $3FF44004 R/W

GPIO0-31 output enable. (R/W)

\ 31                                                             00 
\ |x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x| 
\ x = Write Only 
         
\ FORTH definition for GPIO_ENABLE_REG 
$3FF44020 constant GPIO_ENABLE_REG 

GPIO_ENABLE_W1TS_REG (0024)

GPIO_ENABLE_W1TC_REG (0028)

GPIO_ENABLE1_W1TS_REG (0030)

GPIO_ENABLE1_W1TC_REG (0034)

GPIO_STRAP_REG (0038)

GPIO_IN_REG (003C)

GPIO_IN1_REG (0040)

GPIO_STATUS_REG (0044)

GPIO_STATUS_W1TS_REG (0048)

GPIO_STATUS_W1TC_REG (004C)

GPIO_STATUS1_REG (0050)

GPIO_STATUS1_W1TS_REG (0054)

GPIO_STATUS1_W1TC_REG (0058)

GPIO_ACPU_INT_REG (0060)

GPIO_ACPU_NMI_INT_REG (0064)

GPIO_PCPU_INT_REG (0068)

GPIO_PCPU_NMI_INT_REG (006C)

GPIO_ACPU_INT1_REG (0074)

GPIO_ACPU_NMI_INT1_REG (0078)

GPIO_PCPU_INT1_REG (0x007C)

GPIO_PCPU_NMI_INT1_REG (0080)

GPIO_PINn_REG (n) GPIO_PINn_REG (n: 0­39) (0x88+0x4*n)

GPIO_FUNCy_IN_SEL_CFG_REG (y)

GPIO_FUNCy_IN_SEL_CFG_REG (y: 0­255) (0x130+0x4*y)

GPIO_FUNCn_OUT_SEL_CFG_REG (n)

GPIO_FUNCn_OUT_SEL_CFG_REG (n: 0­19, 21­23, 25­27, 32­33) (0x530+0x4*n)

Legal: site web personnel sans commerce / personal site without seling