Problems with SPI0 pin reassignment at MC9S08PA32

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Problems with SPI0 pin reassignment at MC9S08PA32

741 次查看
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?

标签 (1)
0 项奖励
回复
1 回复

624 次查看
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 项奖励
回复