An electric desk fan performs in Easy68K software

00:07:34
https://www.youtube.com/watch?v=5lUsxGDQYks

Resumo

TLDRThe video tutorial provides an in-depth explanation of a program developed to control an electric fan using the Easy 68K software. It illustrates the structure of the program, from the hardware declaration and initial settings to the main operation logic and subroutines for different speeds. The speaker demonstrates the simulation process, showing how the user can interact with the program through buttons that change speed and stop the operation. The detailed breakdown of commands and their functions offers insights into programming microcontrollers and interacting with hardware.

Conclusões

  • 💻 The project uses Easy 68K software.
  • 🔌 It controls an electric fan's operation.
  • 🛠️ Initial conditions set the program's start.
  • 🔄 Different speeds can be set via buttons.
  • ⚙️ 'move.b' moves data to and from registers.
  • 🔁 Program includes a continuous loop for operation.
  • 🐢 Speed is controlled by adjusting delays.
  • 🚦 The simulation shows hardware interactions.
  • 🔎 Zero errors indicate successful execution.
  • 🛑 Button 4 stops the fan operation.

Linha do tempo

  • 00:00:00 - 00:07:34

    The presenter introduces their program, which operates an electric fan using Easy 68k software. The program begins with a declaration of hardware components like switches, LEDs, and an 8-segment display. They allocate memory locations for these devices and set initial conditions for the hardware controls. Instructions for moving values between registers and hardware are described, along with decision-making structures for controlling the fan's operation. Various subroutines for different speeds are introduced, detailing how they manipulate hardware states, including blinking LEDs and changing display patterns on the 8-segment display. Finally, they demonstrate a simulation of the program, showing how the fan speed can be adjusted through button presses, culminating in stopping the operation.

Mapa mental

Vídeo de perguntas e respostas

  • What programming software was used?

    Easy 68K software system.

  • What does the program control?

    It operates an electric fan.

  • How are initial conditions declared?

    Using commands like 'org hexa 1 0 0 0' to set starting memory.

  • What does 'move.b' command do?

    It moves data between memory and registers.

  • How is speed controlled in the program?

    By setting specific delays in subroutines.

  • What happens when button 4 is clicked?

    The program stops.

  • What are the speed levels available?

    Speed 0, Speed 1, Speed 2, and Speed 3.

  • What indicates the program's successful execution?

    Zero warnings and errors during the simulation.

Ver mais resumos de vídeos

Obtenha acesso instantâneo a resumos gratuitos de vídeos do YouTube com tecnologia de IA!
Legendas
en
Rolagem automática:
  • 00:00:04
    [Music]
  • 00:00:10
    so hi my name is
  • 00:00:13
    [Music]
  • 00:00:14
    so today i will explain to you guys
  • 00:00:17
    about our program code
  • 00:00:20
    so our program code is about how to
  • 00:00:23
    operate and electric just fan
  • 00:00:27
    so we
  • 00:00:28
    have performed this project
  • 00:00:31
    with using easy 68k
  • 00:00:35
    software system
  • 00:00:37
    so i will show to you how
  • 00:00:40
    it's work so let's go
  • 00:00:44
    firstly as we can see here this is our
  • 00:00:47
    first instruction of the program
  • 00:00:51
    this is the declaration part
  • 00:00:54
    at this part we declare all the hardware
  • 00:00:57
    we use in this program for example we
  • 00:01:00
    can see here we have switch
  • 00:01:03
    led and 8 segment that used in this
  • 00:01:07
    program
  • 00:01:08
    then we use equ command that to declare
  • 00:01:12
    all hardware used to the binded memory
  • 00:01:17
    then we go to the initial condition part
  • 00:01:21
    this is where we declare all initial
  • 00:01:23
    condition
  • 00:01:25
    for example we have org hexa 1 0 0 0
  • 00:01:30
    this mean program will start at memory 1
  • 00:01:34
    0 0 0
  • 00:01:36
    then
  • 00:01:37
    move dot b
  • 00:01:39
    immediate has star 1 into d0 name
  • 00:01:43
    initial condition assigned to led and
  • 00:01:46
    stored at d0
  • 00:01:48
    next we also can see the move.w
  • 00:01:51
    instruction so here we can see that
  • 00:01:55
    move.w
  • 00:01:57
    immediate headset 1 into d1 and same
  • 00:02:00
    goes to all of move.w it means we assign
  • 00:02:05
    all initial condition to set which one
  • 00:02:09
    is the first switch second search and so
  • 00:02:12
    on
  • 00:02:13
    then we go to the main log and decision
  • 00:02:16
    making part
  • 00:02:18
    so
  • 00:02:19
    we have here common move dot b
  • 00:02:22
    b0 into led
  • 00:02:25
    means we move d0 value into led
  • 00:02:30
    and
  • 00:02:31
    we also use command cmp dot b from
  • 00:02:35
    switch
  • 00:02:36
    into d1
  • 00:02:38
    then
  • 00:02:39
    we also use beq start up
  • 00:02:42
    means if the value high then it will
  • 00:02:45
    jump to the start up subprotein
  • 00:02:48
    and this is our loop and it will always
  • 00:02:52
    be repeated
  • 00:02:53
    we also use bra main
  • 00:02:57
    means common we're looping continuously
  • 00:03:01
    [Music]
  • 00:03:10
    next we have startup subroutine part
  • 00:03:14
    here we have data to display specific
  • 00:03:17
    pattern to the 8th segment
  • 00:03:20
    we also use vra main
  • 00:03:23
    means all common here we look to the
  • 00:03:26
    main back
  • 00:03:28
    then we go to the speed 1 subroutine
  • 00:03:32
    we use common roll.b
  • 00:03:35
    immediate 1 into d0 means it will rotate
  • 00:03:39
    the operand to the left
  • 00:03:42
    we also have the operation code move dot
  • 00:03:46
    b
  • 00:03:47
    d0 into led then command will jump into
  • 00:03:52
    bcr branch to sub protein first
  • 00:03:55
    and
  • 00:03:57
    also
  • 00:03:58
    for second subroutine is state 2 also
  • 00:04:02
    same with speed 1 we have r o l dot b
  • 00:04:07
    immediate 1 into d 0. it will rotate the
  • 00:04:12
    operand to the left
  • 00:04:14
    and
  • 00:04:15
    we also got the value from d0 into led
  • 00:04:19
    it also will jump to the faster
  • 00:04:22
    subroutine
  • 00:04:24
    we got all common for specific pattern
  • 00:04:27
    for speed 2
  • 00:04:29
    and
  • 00:04:30
    we also have prm main used for looping
  • 00:04:35
    the program
  • 00:04:37
    same goes to speed 3 subroutine
  • 00:04:40
    also has almost similar set up here but
  • 00:04:44
    a different display pattern
  • 00:04:46
    to the eight segment display
  • 00:04:50
    finally we have stopped stop sub protein
  • 00:04:54
    we have common for blinking led part
  • 00:04:57
    which will execute the command and the
  • 00:05:00
    hardware will display a blinking led
  • 00:05:04
    below here we got command to display
  • 00:05:07
    specific pattern to the 8 segment
  • 00:05:10
    display then we have delay subroutine
  • 00:05:13
    part
  • 00:05:14
    we use for data manipulation part 4
  • 00:05:17
    speed
  • 00:05:18
    for example
  • 00:05:20
    speed 0 subprotein
  • 00:05:22
    we have common move dot f
  • 00:05:26
    immediate head cell 1 0 0 0 0
  • 00:05:31
    into d 7
  • 00:05:33
    mean it will determine our program speed
  • 00:05:37
    so
  • 00:05:38
    if the value is lower the speed will
  • 00:05:40
    become more faster
  • 00:05:43
    for example we said
  • 00:05:45
    for speed 1 for 7 000
  • 00:05:49
    speed 2 5 000 and speed 3 3000
  • 00:05:54
    so if the value is lower the speed
  • 00:05:56
    becomes faster
  • 00:05:58
    lastly we have n hexa 1 0 0 0
  • 00:06:03
    that means the end of the program
  • 00:06:07
    and
  • 00:06:08
    after that i also will show to you how
  • 00:06:12
    the result of simulation for this
  • 00:06:15
    program
  • 00:06:16
    so firstly we click run
  • 00:06:19
    and
  • 00:06:20
    if this
  • 00:06:22
    show
  • 00:06:23
    no warning zero warning and zero
  • 00:06:26
    error so we click execute
  • 00:06:30
    after that we click view
  • 00:06:33
    and see the hardware of this program
  • 00:06:37
    so this is the hardware of this program
  • 00:06:42
    so click instruct1
  • 00:06:44
    then we click the zero button
  • 00:06:48
    and we can see here it will add it will
  • 00:06:52
    display hello on the
  • 00:06:56
    this hardware
  • 00:06:58
    so
  • 00:06:59
    after that we unbutton the zero button
  • 00:07:01
    then we click button one so this is
  • 00:07:05
    represent
  • 00:07:06
    for speed 1 and we see led screen
  • 00:07:09
    display is running
  • 00:07:12
    click speed 2 and
  • 00:07:14
    there is speed 2 more faster than speed
  • 00:07:17
    1
  • 00:07:18
    after that we
  • 00:07:19
    click speed 3 and speed 3 is more faster
  • 00:07:23
    than speed 2
  • 00:07:24
    then we click button 4 and it will stop
  • 00:07:28
    this project so this is
  • 00:07:31
    the end of our program thank you so much
Etiquetas
  • Easy 68K
  • Electric Fan
  • Programming
  • Microcontroller
  • Simulation
  • Speed Control
  • LED Indicators
  • Subroutines
  • Hardware
  • Instruction Set