How are the digital IO pins of the PIC32 arranged or organiz

How are the digital I/O pins of the PIC32 arranged or organized? What is a Special Function Register (SFR) and how are they used in the PIC32?

Solution

1. Here Ditial I/O pins organized PIC 32 , In PIC 32 Each I/O ports has 3 regirster Port A to Port F.The 3 register are PORTx, TRIsx,LATx and They are

PORTx ----Port register

TRISx------Tri state register

LATx----Latch register.

In PIC32 each pin grouped into certain port.

Example: Pin5 it refer to Pin B5 or Pin RB5

TRISx: Tristate register is Sets the direction of the Pin,that is Input -1 and output -0

Example:TRISC=0xA000 sets pins RC13 and RC 15 as inputs, all elese outputs.

LATx: Latch register is sets the value at the particular port.

Example: LATA=0x003E sets RE1 through RE5 high , all else on PortA Low.

PORTx: Port register holds the value at the ports pin , which can then be read. If A write to PORTx and also wirte to LATx register

Example: \"short value=PortA\" is wries the values of all pins on porta to the variable value.

and these three register each have three special function register that allow for atomic updating which takes fewer clock cycles

TRISxSET: it sets the specified bits of Portx, and it is also works PORTx and LATx

TRISxCLR:it is clears the specified bits of Portx, and also works Portx and Latx

TRISxINV: it used inverts the specified bits of Port x, and also work Portx and Latx

2. The Special Function register means , the special function reister with in micro controller, it controls and monitor the microcontroller functions.

The Special function registers control the Operation of Various Parts of the device.For example the special function register and used PIC 32

finally, Depending on the processor , there are other SFR are present or there SFR address are unused.

 How are the digital I/O pins of the PIC32 arranged or organized? What is a Special Function Register (SFR) and how are they used in the PIC32?Solution1. Here D

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site