Hi
The pin description for PIO0_2 is not clear. The datasheet LPC546xx contradicts the User Manual UM10912 concerning the pin function EMC_D[0]. The datasheet suggests that the pin function for this pin is pin function PF5. The User Manual however declares this pin on pin function PF6. Question: Which one is correct? Will the datasheet/User Manual be updated to be consistent here? Thanks
Daniel Gull
已解决! 转到解答。
Daniel,
the "Users Manual" are correct. P0.2 is EMC_D[0] if it is set to "function 6" (just as the other EMC_Dxx pins in GPIO0.
I have already mentioned this here on the forum to NXP.
I do like this on my own boards with SDRAM (x16) for the databus (LPCOpen, which is unfortunately no longer supported by NXP, you need to use they new SDK
{0, 2, (IOCON_FUNC6 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{0, 3, (IOCON_FUNC6 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{0, 4, (IOCON_FUNC6 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{0, 5, (IOCON_FUNC6 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{0, 6, (IOCON_FUNC6 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{0, 7, (IOCON_FUNC6 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{0, 8, (IOCON_FUNC6 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{0, 9, (IOCON_FUNC6 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{1, 19, (IOCON_FUNC6 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{1, 20, (IOCON_FUNC6 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{1, 21, (IOCON_FUNC6 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{1, 4, (IOCON_FUNC6 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{1, 28, (IOCON_FUNC6 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{1, 29, (IOCON_FUNC6 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{1, 30, (IOCON_FUNC6 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{1, 31, (IOCON_FUNC6 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
Regards,
Carsten
Daniel,
the "Users Manual" are correct. P0.2 is EMC_D[0] if it is set to "function 6" (just as the other EMC_Dxx pins in GPIO0.
I have already mentioned this here on the forum to NXP.
I do like this on my own boards with SDRAM (x16) for the databus (LPCOpen, which is unfortunately no longer supported by NXP, you need to use they new SDK
{0, 2, (IOCON_FUNC6 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{0, 3, (IOCON_FUNC6 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{0, 4, (IOCON_FUNC6 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{0, 5, (IOCON_FUNC6 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{0, 6, (IOCON_FUNC6 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{0, 7, (IOCON_FUNC6 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{0, 8, (IOCON_FUNC6 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{0, 9, (IOCON_FUNC6 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{1, 19, (IOCON_FUNC6 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{1, 20, (IOCON_FUNC6 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{1, 21, (IOCON_FUNC6 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{1, 4, (IOCON_FUNC6 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{1, 28, (IOCON_FUNC6 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{1, 29, (IOCON_FUNC6 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{1, 30, (IOCON_FUNC6 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{1, 31, (IOCON_FUNC6 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
Regards,
Carsten