2017-08-01 12:16 AM
hello
does anybody have any code with stm32f10 for decode ev1527 output signal.
i confused how it works.
please help
2017-08-01 07:14 AM
Hi Mahmoud,
A question, do you have the module or just the chip? could you attach an image because if it is the module you just need to power the receptor and read the pins as GPIOs while the transmisor is pressed.
2017-08-02 12:00 AM
Hello
I usesyn470r module .
2017-08-02 01:26 AM
Hi !
This module has an ASK receiver with digital (LO ,HI) output and working in standard rate bps.
Hi state represents '1' bit and LOW state represents '0' bit. There is not any clock signal to synchronize this output with MCU.
You must 'produce and use this clock signal internaly' (by timer) and take some samples at every period, to evaluate bit state.
You need to connect module's output to a GPIO pin, first.
1. Make, a time base that will generate interrupts every 1/rate period .
2. You must 'synchronize or/and resynchronize' the start of timer's counter with the start of first(or every) positive pulse you receive. This configuration needs the GPIO pin use EXTI interrupt , to 'trigger a reset with interrupt' to the counter of the time base.
3. At every interrupt service routine produced by the timer, you will take the state of pin by take sample(s) after eg half period.
You can use the data collected according to the protocol of your transmitter.