598 views|0 replies

62

Posts

0

Resources
The OP
 

Domestic teaching experiment box_Operation tutorial: 2-2 LED light control experiment [Copy link]

2-2 LED灯控制实验

1. Experimental Purpose

This video tutorial is based on the Chuanglong teaching instrument TL6748-PlusTEB teaching experiment box.

The purpose of this video is to learn the methods and principles of configuring GPIO pins based on the StarterWare development environment, and to implement LED light control in the StarterWare development environment.


2. Experimental Principle

StarterWare

StarterWare is a free software development kit that provides OS platform (no OS platform) support for ARM and DSP TI processors. Includes the Device Abstraction Layer (DAL) library and sample applications that demonstrate the functionality of peripherals on TI processors.

Hardware Schematic

LED13~LED16 are used in the experiment, and the corresponding interface names are "GPIO0[5], GPIO0[0], GPIO0[1] and GPIO0[2]". When the GPIO output is high level, the LED will light up, and when the output is low level, the LED will go out.

Source code

The source code and instructions for configuring GPIO as output can be found in gpio.c. The first parameter is the base address of the GPIO, the second parameter is the number of the GPIO, and the third parameter sets the direction of the GPIO.

The function source code and function usage instructions for configuring GPIO output values can be found in gpio.c. The first parameter is the base address of the GPIO, the second parameter is the GPIO number, and the third parameter sets the GPIO level.

3. Operation phenomenon

Hardware Hookup

  1. Connect the emulator to the computer's USB port.
  2. Set the DIP switch to DEBUG mode 01111.
  3. Connect the power supply of the experimental box and turn on the power switch.

operate

  1. Import Project
  2. Compile project
  3. Connect CCS to the development board and load the program
  4. Click Run Program
  5. You can see the 4 LED running lights on the experimental board flashing

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