Led blinking program for 56800E

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Led blinking program for 56800E

1,290件の閲覧回数
gaya3citizen
Contributor II

Hi, I need simple blinking LED  program for MC56F8367 DSC without header file. Because most of my searches for program results in large program with many header files, so i can't able to know the format (register usage) to initialize a single pin in DSC. Please send me any simple program to initialize any pin in MC56F8367 DSC.

ラベル(1)
タグ(1)
2 返答(返信)

1,146件の閲覧回数
Ben
Senior Contributor I

Hi,

Let's say you connected a led to GPIO F7.

If you are not using CW with PE, and want to handle it manually, several registers involved:

Initialization:

---------------

GPIOF_PUR &= 0xFF7F - clr power up resistor bit to disable function.

GPIOF_DDR |= 0x0080 - set DDR bit for OUTPUT mode

GPIOF_PER &= 0xFF7F - set as simple GPIO function

GPIOF_PPMODE |=0x0080 - set port to push-pull mode

pin activity:

--------------

Now you can set pin to 1 by GPIOF_DR |= 0x0080 or 0 by GPIOF_DR &= 0xFF7F

0 件の賞賛
返信

1,146件の閲覧回数
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Gayathri,

I suggest you download data sheet of MC56F8367 from the link:

56F836X-816X|Digital Signal Controllers | NXP 

The data sheet has the contents for the MC56F8367 pin assignment and pin multiplexing.

Ben tell you how to configure the GPIO pin. For the peripheral pins,  you have to configure the GPIOx_PER register so that the pin is peripheral rather than GPIO, then configure the Part 6 System Integration Module (SIM) especially SIM_GPS.

If you develop new project, I suggest you use MC56F84xxx or MC56F82xxx, they are latest.

Digital Signal Controllers | NXP 

Hope it can help you

BR

Xiangjun Rong