3042 views|0 replies

3836

Posts

19

Resources
The OP
 

DSP GPIO input and output settings [Copy link]

DSP 28335 GPIO input settings:

When setting the GPIO input, in addition to setting this GPIO as input, you also need to pull the level of this GPIO port high


//RXD3
GpioCtrlRegs.GPBMUX2.bit.GPIO62 = 0; // 0 is set as IO port, 1 is set as peripheral
GpioCtrlRegs.GPBDIR.bit.GPIO62 = 0; // 0 is set as input, 1 is set as output
GpioCtrlRegs.GPBPUD.bit.GPIO62 = 0; // enalble pull up, when the pin is suspended, the signal may be high or low, and it will be given a high level after pulling it up.

GPIO output settings,

//TXD3
GpioCtrlRegs.GPBMUX2.bit.GPIO63 = 0; // 0 is set to IO function
GpioCtrlRegs.GPBDIR.bit.GPIO63=1; // 1 is set to output Output

This post is from DSP and ARM Processors
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list