How to read a port faster?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
I am using a XMC 4500 relax kit and currently I am trying to communicate with a resolver to digital IC. The R2D IC (http://www.tamagawa-seiki.com/pdf/download/AU6803_04_E_Manual_DRAFT20120229.pdf) has a 3wire serial comunication protocol: a CLK signal, an SCSB to start the data out from the IC and a DATA signal. To read the information from the IC I used a PWMSP001 App, where the CLK signal is the PWM output with a duty cycle of 50% and frequency of 31 250 000Hz. I try to read the digital pin at the compare match interrupt. However, the reading takes a long time, and I cannot read the pin before the next compare match. How can I overcome this problem?
0 Likes
1 Reply
Not applicable
Hi RicardoWT,

It looks to me that the protocol is somewhat similar to SPI communication.
I suggest you implement the communication using USIC instead of CCU4.
If you manage to implement the communication with USIC, most of the things can be done via hardware and it should be much easier and faster.
0 Likes