This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Regarding nRF52832 timer,ppi and gpiote tasks

Dear Team,

We are working on nRF52832 BLE MCU. SDK version = 15.0.0. SOFTDEVICE version = 6.0.0. IDE = segger embedded studio.

In our application we required software UART and we have also implemented software UART with 19200 baud-rate.

We are using TIMER1 working at 16 MHz  internal frequency. In our application, we first decided what to do with our UART transmitter pin in TIMER1 interrupt routine and  also trigger the same in interrupt routine as per the data bits.

Now our requirement is just to decide what to do with UART transmitter pin for the next compare event not for the current compare event. We have thought that this task can be accomplished using PPI concept.

Kindly tell us how to set , reset and toggle UART transmitter pin for the next compare event means we will have to decide what to do in EVENTS_COMPARE[1] in EVENTS_COMPARE[0].

So please kindly guide us for suitable solution and if possible kindly share any related example.

Regards,

Hasmukh

Parents Reply
  • Do the two UART interfaces have to work simultaneously? Or can you use the same UART and switch pins? I guess you have already considered this.

    You may also consider using the nRF52840, which have 2 UART interfaces. 

    Prajapati said:
    HITOLO then nRF52832 internally make UART TX pin high for around 6 microseconds and then make it lo for around 45 microseconds

    The pin likely fall back to the GPIO configuration when re-configuring GPIOTE, so you make sure that you set GPIO to output and right level (low or high) before you change GPIOTE configuration.

Children
No Data
Related