필터 지우기
필터 지우기

pull up disable for TMS320F2837xD

조회 수: 1 (최근 30일)
Adam Sojka
Adam Sojka 2022년 5월 9일
답변: Irene Boben 2023년 6월 26일
Hi,
is there an option to configure pull-up for the GPIO pins?
I want to disable them using Simulink

답변 (1개)

Irene Boben
Irene Boben 2023년 6월 26일
Hi Adam,
There is no configuration option present. However, you can use 'System Initialize' block to write custom code for the same. Below is an example of the custom code.
EALLOW;
GpioCtrlRegs.GPAPUD.all = ~0xFFC003E3U; //Pull up for GPIOs 0-1, 5-9, 22-31
EDIS;
Hope this helps.

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by