ΣSigmaStudio Ask AI Русский Log in

How to control the output state of GPIO using timer in ADAU1401

SigmaDSP & SigmaStudio 武帅兵 Jul 9, 2015 00:00 2 replies Original on forum ↗
Subscribe
武帅兵 Question
Jul 9, 2015 00:00

Hi,

I want to realize the GPIO output low level when the ADAU1401 power up, After a period of seconds, the GPIO output alter to high level.

For this reasion, I add the timer in program. It is shown below. However the GPIO didn't change.

Now my question is How to realize the funtion using timer or other methods.

Best regards,

wu

Audio Signal Processors

adau1401

SigmaDSP Audio Processors

fd6e475fa6e9e093c89617976033bf6b.png
fd6e475fa6e9e093c89617976033bf6b.png
fd6e475fa6e9e093c89617976033bf6b.png-620x349.png
fd6e475fa6e9e093c89617976033bf6b.png-620x349.png
KJBob Reply
Jul 9, 2015 00:00

Hello,

You have the right idea, it only needs a tweak or two to work:

The Timer's count value input is the number of samples in integer (28.0) format, so set your DC Source accordingly. For more about these formats, see What are the number formats for SigmaDSP?

The multipurpose pins default to inputs. Thus you'll need to open the 1701/1401 Register Control tab and set your chosen MP pin to Output GPIO. Also, don't forget to set the Program Length to 4x (256 instructions) for your 192K sample rate.

Best regards,

Bob

0827.f7c726cb5854573fcd1f1739a91bbc38.png
0827.f7c726cb5854573fcd1f1739a91bbc38.png
0827.f7c726cb5854573fcd1f1739a91bbc38.png-620x316.png
0827.f7c726cb5854573fcd1f1739a91bbc38.png-620x316.png
武帅兵 Reply
Jul 10, 2015 00:00

Hi,

Bob, thank you very much. It work well.

Best regards,

wu