Problems with SPI0 pin reassignment at MC9S08PA32

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

Problems with SPI0 pin reassignment at MC9S08PA32

716 Views
fernandolima
Contributor I

Hello everybody.

I'm having problems with SPI0 pin reassignment at MC9S08PA32.

I am unable to change SYS_SOPT1 register. Why I can't change this register?

My assembly code is:

 

LDA SYS_SOPT1

ORA #mSYS_SOPT1_SPI0PS

STA SYS_SOPT1 ;Directs the SPI0 port for PORTE

 

Afer I write this register, the value of this register doesn't change.

Does anybody know what is the problem? Is there a password to change this register like there is for to change the watchdogs registers?

Labels (1)
0 Kudos
Reply
1 Reply

599 Views
david_diaz
NXP Employee
NXP Employee

Hello Fernando,

Please be aware that the SYS_SOPT1 is a write-once register.

Make sure you don’t write this register before the lines mentioned.

If the problem is still there, please let me know, I am glad to help.

Have a great day. :smileyhappy:

David.

0 Kudos
Reply