Skip to content

Commit

Permalink
drivers/radio/nrf24l01: Increase startup delay.
Browse files Browse the repository at this point in the history
According to the datasheet of the NRF240L1 chip, 150 μs startup time
is only acceptable when the chip is clocked externally. Most modules
use crystal, which require 1.5 ms to settle. I think it's okay to
wait more in both cases, for a reliable startup.

Signed-off-by: Marcell Pünkösd <[email protected]>
  • Loading branch information
marcsello committed Dec 30, 2024
1 parent e4cf095 commit b9d9036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion micropython/drivers/radio/nrf24l01/nrf24l01.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def send(self, buf, timeout=500):
def send_start(self, buf):
# power up
self.reg_write(CONFIG, (self.reg_read(CONFIG) | PWR_UP) & ~PRIM_RX)
utime.sleep_us(150)
utime.sleep_us(1500) # needs to be 1.5ms
# send the data
self.cs(0)
self.spi.readinto(self.buf, W_TX_PAYLOAD)
Expand Down

0 comments on commit b9d9036

Please sign in to comment.