This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ppi with uart

hi, I am using the nrf51422 for the first time. I need to connect a GSM-GPS module for reading nmea string. I have to use the uart to enable communication with the GPS and I would use the interface ppi to capture the data and put them in a buffer until the arrival of carriege return. The goal is not to involve the CPU in the process of reading data from the port and only after they have arrived in the buffer to draw the attention of the CPU to the next process. E 'possible to realize a code in this way. If it is possible you can give me some advice. Best regard

  • No that's not possible. There's no DMA on the chip (well apart from the SPI slave which isn't what you want to use). So the CPU has to be woken up to deal with each byte as it comes in and clear the receive event so the UART can read the next.

    This shouldn't however be a problem, you can run it in a low-power mode where the CPU is off until you get an interrupt and wakes up just to receive a byte, that's not much work, and the HF clock is running already if the UART is on.

    Why do you not want the CPU involved?

Related