KEAZN8 GPIO配置问题

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

KEAZN8 GPIO配置问题

1,177 Views
602194929
Contributor I

HELLO:

 我在用KEAZN8系列的型号S9KEAZN8AMTGR,为TSSOP16封装的

设置的引脚和实际的引脚号对不上,是什么原因呢?

比如第9号引脚为PTB3,想输出方波,应该在软件上设置为(PTB,9),而却只能设置为(PTB,11)后才输出正确,设置(PTB,9)后没反应。

pastedImage_1.png

Labels (1)
0 Kudos
4 Replies

1,005 Views
602194929
Contributor I

Any one can help? Or should I describe the question in English?

0 Kudos

1,005 Views
Sabina_Bruce
NXP Employee
NXP Employee

Hi Lu,

If you could please describe what you are trying to achieve in english, I would appreciate it. 

Best Regards,

Sabina

0 Kudos

1,005 Views
602194929
Contributor I

I'm using the MCU KEAZN8 series, the specific model is S9KEAZN8AMTGR,and it's package is TSSOP16.

I met a problem when I was trying to setup the pin configuration.

I want the 9th pin to output continonous pulse . The 9th pin is PTB3 as below table. And the I set (PTB, 9) in my code. But however it didn't work. But when I set  (PTB, 11) in my code , then the 9th pin output contunonous pulse .

So what's wrong? Why should I set  (PTB,11)but not (PTB,9)for the 9th pin?

pastedImage_1.png

0 Kudos

1,005 Views
Sabina_Bruce
NXP Employee
NXP Employee

Hello Lu,

Thank you for providing the english description.

In order to set PTB3, you have to set (PTB , 3) in your code. The number 9, is to help map out which pin on the physical chip it is specifying.However that number is not used in the code. 

Please try that change while you set the pin. If you still have unexpected behavior I would ask if you could provide a snippet of your code. In the section that you are initializing your pin.

Best Regards,

Sabina

0 Kudos