Hi there!
May I know how to have UART00 on P2 like what is shown below as I wanted to have higher speed.
Is it the same as other UART assignments on P0 and P1?
Thanks!
Hi there!
May I know how to have UART00 on P2 like what is shown below as I wanted to have higher speed.
Is it the same as other UART assignments on P0 and P1?
Thanks!
Hello,
Please see the cross power-domain section of the pin assignment documentation for the nRF54L15.
What pins specifically are you trying to use? Have you used a logic analyzer to see if any of the pins are doing anything?
Best regards,
Edvin
Hi there!
I have read the link you shared before. I know it mentions dedicated pins in pin assignment table but I still want to know if I can use any P2 pins for UARTE00. For example, is it possible to use P2.06 to P2.09 for UART with flow control? I understand UART is not mentioned under description and dedicated function of P2.06 but I wanted to know if I can use it by configuration of certain registers.
Nice!
May I know when will the next NCS be available?
I don't know. If you want roadmap details, you should contact our Regional Sales Manager (RSM) for your area. If you don't have their contact details, please send me a DM here on DevZone, and link to this ticket.
Best regards,
Edvin
Would you kindly share the fix? I'm guessing that, under the hood, before calling the following function,
nrf_uarte_baudrate_set(get_uarte_instance(dev), nrf_baudrate);
the correct baud rate must be calculated, while taking into account the clock source of the peripheral.
In zephyr's repo, if the peripheral is clocked higher than 16Mhz, the below macro is used to calculate a "custom" baud rate:
#define UARTE_GET_CUSTOM_BAUDRATE(f_pclk, baudrate) ((BIT(20) / (f_pclk / baudrate)) << 12)
Which I think is ok, because for an f_pclk of 16M and a baudrate of 1M, it produces a reg value of exactly 0x10000000 (as referenced by the docs to be 1Mbaud for a 16Mhz clock).
if you've already done the PCB (which I'm guessing to be the case), why not use the coprocessor to emulate an uart? It's a dead-simple to implement peripheral. Especially if you work with a fixed baud rate. Detect the start bit (falling edge), wait for X nanoseconds, read 8th bit, wait for X nanoseconds [... repeat], check stop bit (high), you have a valid byte.
I just checked ncs version 3.0 preview. The fix is there (along with higher baud rates). Thank you anyway!
Thank you for the update. Yes. It will be part of the 3.0.0 release, and therefore also part of the preview/release candidates.
BR,
Edvin