Hello, I have to implement infrared sending and receiving of a modulated signal in pre-existing code.
I have managed to implement infrared sending thanks to the ble_app_uart_IR.zip-example that Torbjørn Øvrebekk made available in this post.
The IR-example uses the App Timer and PPI.
Now when it comes to decoding the signals I am a bit stumped on where to begin. I found this question here on devzone, about how to use "timer1" to capture signals.
Stefan Birnir Sverrisson explains that it can be possible using timers and PPI, and includes a "Frequency_counter.zip"-example that can be modified to measure timing between signal edges. I have tried to build this example in Keil v5, but I get error messages I am hard pressed to remedy. It might be due to the example being made for nRF51 SDK 7.2.0, and I am using nRF52 with SDK 11.
Does anyone have a suggestion to how I might make this work? I have a feeling that I can use the App Timer and PPI already included in the project (when sending IR), but I am not familiar enough with either to create code from scratch with them.
Note: I am not very well versed in C-programming, and my knowledge is very superficial at this point.