uart recive byte comming uart RX

phanhust gravatar image

asked 2017-10-11 17:06:03 +0100

i'm new in BLE, now i have project with nrf51822 and sdk 11.0. in chip arm like STM, MPS or PIC, avr. when byte come, we have a flag set 1 to notice that there is one byte is comming., when nothing in RX buffer, this flag set 0. so i want to know in nrf what things like this flag to notice one byte comming in RX uart

edit retag flag offensive close delete report spam

1 answer

Sort by ยป oldest newest most voted
sigurdon gravatar image

answered 2017-10-12 15:44:38 +0100


The UART will generate an RXDRDY event every time a new byte is moved to the RXD register. I recommend using the UART driver (nrf_drv_uart) to configure the UART and interrupts. Take a look at how this is done in e.g. the ble_app_uart example in the SDK.

edit flag offensive delete publish link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer. Do not ask a new question or reply to an answer here.

[hide preview]

Question Tools

1 follower


Asked: 2017-10-11 17:06:03 +0100

Seen: 57 times

Last updated: okt. 12