Hello. I wanted to create reciver capable of reading signals from remote control. I know only the basics. I managed to use GPIO as an transmitter (since it was as simple as:
PORTE_PCR26 = PORT_PCR_MUX(1) | PORT_PCR_DSE_MASK;
GPIOE_PDDR |= (1<<26);
but when comes to reciver i cannot find any sample or hints how to get it work: My code so far:
PORTA_PCR13 = PORT_PCR_MUX(1) | PORT_PCR_ISF_MASK | PORT_PCR_PFE_MASK | PORT_PCR_IRQC(11) | PORT_PCR_PE_MASK;
Im NOT sure about PCR13. I have found that PIN in SPF-27002_V5.pdf, I hope it is ok.
My general idea was to create interrupts with timestamps to read incomming signals but to be honest i cant find decent example of using interrupts on k40 either... I mean without Processor Expert i don't know how or where initialize them...
thanks for any help and sorry for bad grammar...