Timer input configuration ignored

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Timer input configuration ignored

1,335件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by JSalisbury on Fri May 20 02:20:32 MST 2011
Hi,
I have tried starting a new LPC1114 project and I am finding that commands like LPC_IOCON->PIO1_8 = 0x15; are being ignored, and yet the code excutes and I can drive output pins sucessfully. The hardware does work, with a different project on a different pc. I suspect some configuration issue.

What do people suggest?

Thanks
0 件の賞賛
返信
9 返答(返信)

1,329件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Fri May 20 08:55:44 MST 2011
Then zip and post it...
0 件の賞賛
返信

1,329件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by JSalisbury on Fri May 20 06:01:04 MST 2011
I am suspecting there is some strange project issue, it works fine with other projects.
0 件の賞賛
返信

1,329件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Fri May 20 05:44:08 MST 2011
That's 0xd0 = default value and doesn't change after write?

My 3.6.3 with LPC1114/302 is working without problems.
0 件の賞賛
返信

1,329件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by JSalisbury on Fri May 20 05:37:24 MST 2011
Hi,

It is the LPC1114/302 LPCXpresso:
Version: LPCXpresso v3.6.3 [Build 317] [08/04/2011]

Before and after LPC_IOCON->PIO1_8 = 0x21
IOCON_PIO1_8 is still reporting HYSTERESISOFF  INACTIVE PIO1_8
0 件の賞賛
返信

1,329件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Fri May 20 04:54:08 MST 2011
Are we talking about LPC1114/301 with LPCXpresso 3.6.2 ?

Which  LPC_IOCON->PIO1_8 value does your debugger show before and after LPC_IOCON->PIO1_8 = 0x21 ?
0 件の賞賛
返信

1,329件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by JSalisbury on Fri May 20 04:44:32 MST 2011
Even when single stepping I am getting this issue.
0 件の賞賛
返信

1,329件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Fri May 20 03:47:32 MST 2011
After writing 0x21 to LPC_IOCON->PIO1_8 my debugger shows:

LPC_IOCON->PIO1_8: 0x21
HYS:  HYSTERESISON
MODE: INACTIVE
FUNC: CT16B1_CAP0

If that's not working you're changing this register somewhere else :mad:
0 件の賞賛
返信

1,329件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by JSalisbury on Fri May 20 03:30:18 MST 2011
Hi,

Thanks for the hint I have changed it to  LPC_IOCON->PIO1_8 = 0x21; however in the debugger it is staying as PIO1_8 and not changing to CT16B1_CAP0. When I try to force it to CT16B1_CAP0 it changes back to PIO1_8 and states it is reading all 0.
0 件の賞賛
返信

1,329件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Fri May 20 02:51:41 MST 2011
I would suggest to read Table 59. What function do you expect with setting bit 0 and bit 2 :confused:

Also I would suggest to use debugger to read the result of your IOCON settings :)
0 件の賞賛
返信