Wednesday, April 18, 2012

ARM STM32 Study Note_3/More on GPIO

More on GPIO details:

* Each of the general-purpose I/O ports has two 32-bit configuration registers (GPIOx_CRL, GPIOx_CRH), two 32-bit data registers (GPIOx_IDR, GPIOx_ODR), a 32-bit set/reset register (GPIOx_BSRR), a 16-bit reset register (GPIOx_BRR) and a 32-bit locking register (GPIOx_LCKR).

* Basic structure of a standard I/O port bit


* Input configuration:

 
* Output Configuration

  
-Note about Open Drain Mode and Push-Pull Mode:
In open Drain Mode, Pmos is not used, when need a high, turn off NMOS, the line will be pulled high by a pull up resistor,with the open drain mode, current is limited by R

In the push-pull mode, high speed is achieved, but source more current.



* Alternate function & Analog configuration



No comments:

Post a Comment