Initialization of Reset pin for MKL15Z64VTF4 with Codewarrior (rev. 10.3) and Processor Expert

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Initialization of Reset pin for MKL15Z64VTF4 with Codewarrior (rev. 10.3) and Processor Expert

447 Views
sebastianoresti
Contributor I

Hello everybody,

 

I have the following specific question relevant to the way Processor Expert initializes the Reset pin for the MKL15Z64VTF4 microcontroller.

 

I want this pin to be used as Reset pin, then let Processor Expert auto-generate the code.

 

This is what I get (I am only reporting the code snippet of interest):

 

  /* PORTA_PCR20: ISF=0,MUX=7 */

  PORTA_PCR20 = (uint32_t)((PORTA_PCR20 & (uint32_t)~(uint32_t)(

                 PORT_PCR_ISF_MASK

                )) | (uint32_t)(

                 PORT_PCR_MUX(0x07)

                ));                                                 

 

which is basically equivalent to:

PORTA_PCR20 = 0x00000700;  /* ISF = 0, MUX = 7 */    <== this sets the Alternative 7 configuration

 

Now, according to the latest version of the datasheet of this microcontroller (rev. 3, 9/19/2012) available on the Freescale website, the PTA20 pin only considers the following two initialization possibilities:

 

- Default (RESET_b)

- ALT1 (PTA20)

 

Therefore, no ALT7 initialization is mentioned in the Datasheet.

 

Should the Datasheet be updated or there is an error in the Processor Expert?

 

Thanks.

Labels (1)
0 Kudos
2 Replies

339 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Sebastiano:

The documentation should have RESET_B in ALT7 instead of being blank. Sorry for this missing information, I have reported this. The Processor expert code is correct.

Hope this helps!

/Jorge Gonzalez

0 Kudos

339 Views
sebastianoresti
Contributor I

Dear Jorge,

thanks a lot for your clarification.

Kind regards,

Sebastiano

Da: Jorge_Gonzalez

Inviato: mercoledì 26 febbraio 2014 1.00

A: Restifo Sebastiano

Oggetto: Re: - Initialization of Reset pin for MKL15Z64VTF4 with Codewarrior (rev. 10.3) and Processor Expert

<https://community.freescale.com/>

Initialization of Reset pin for MKL15Z64VTF4 with Codewarrior (rev. 10.3) and Processor Expert

reply from Jorge_Gonzalez<https://community.freescale.com/people/Jorge_Gonzalez?et=watches.email.thread> in CodeWarrior Development Tools - View the full discussion<https://community.freescale.com/message/383360?et=watches.email.thread#383360>

0 Kudos