AnsweredAssumed Answered

Cannot understand port control register initialization code.

Question asked by OLIVIA CHRISTY VARGHESE on Dec 6, 2016
Latest reply on Dec 15, 2016 by q1444

Hi,

I am a beginner in coding and I cannot understand port control register initialization used in this code. Can anyone explain me this line by line. Or can you give me some information to how and from where to learn this.

 

/*PORTD_PCR3:ISF=0,MUX=4*/

PORTD_PCR3 = (uint32_t)((PORTD_PCR3&(uint32_t)~(uint32_t)(

                              PORT_PCR_ISF_MASK) |

                              PORT_PCR_MUX(0x03)

                              )) | (uint32_t) (

                           PORT_PCR_MUX(0x04)

                           ));

 

 

 

regards,

olivia

Outcomes