LPC15xx PORT BYTE registers

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

LPC15xx PORT BYTE registers

1,246 次查看
ianbenton
Senior Contributor I

Could you please confirm that there are 77 PORT BYTE registers on an LPC1517, not 75 as stated in the manual.

If so, could we have a correction to LPCXPRESSO so that it is possible to examine the state of port bits PIO2_12 and PIO2_13.

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

718 次查看
Dezheng_Tang
NXP Employee
NXP Employee

Yes. The LPCXpresso examples are for LPC1549 chip. If you are using LPC1517/18/19, you should be able to modify the chip and board library to support p2.12 and p2.13. "Pin Description" chapter of the UM mentioned that already.  

PIO2_12 35 47 74 [5] I; PU IO PIO2_12 — General purpose port 2 input/output 12. On

parts LPC1519/17/18 only.

PIO2_13 36 48 75 [5] I; PU IO PIO2_13 — General purpose port 2 input/output 13. On

parts LPC1519/17/18 only.

0 项奖励
回复

718 次查看
ianbenton
Senior Contributor I

I’m not using LPCopen, and it is on my own pcb. The project is setup with MCU=LPC1517, but when I select “peripheral” then “GPIO” PIO2-12 and PIO2-13 are not shown. I know that they exist because a write to the B(77) register at 0x1C00004D results in the pin changing state.

Whilst on the subject of LPCXpresso bugs, if an “included” file is edited, the version PRIOR to the edit is compiled next time the project is built. Unless the main program is also edited, the edits to the included files do not take effect.

Not a huge problem, because there’s always a blank line in the main program that can be removed which forces the compiler to use the edited included file, but annoying if you forget!

0 项奖励
回复