Giter VIP home page Giter VIP logo

microchip-hw2's Introduction

microchip-HW2

林正中微處理機實驗

memory design

byte value
10H first state of pattern1
11H second state of pattern1
12H first state of pattern2
13H second state of pattern2
...... ......
20H self stack pointer start at 21H

if func is L2R/R2L put #01H , #02H as initial value

every varible pass to my API should put in self stack sequentially

API

  • two_led_control(Pn1,pattern1,Pn2,pattern2)
    • pattern==0: simple switch
    • pattern==1: L2R
    • pattern==2: R2L
    • 會根據first and second state及pattern去找出LED燈亮的順序
  • short_pause()
    • total pause time is #FFH cycle
  • long_pause()
    • total pause time is #10HFFHFFH cycle
  • custom_pause(time1,time2)
    • total pause time is time1*time2 cycle
  • PUSH_ALL()
    • Wrong ,dont use it. If you are interested in why, you can try to call this api
  • POP_ALL()
    • Wrong ,dont use it. If you are interested in why, you can try to call this api

QUICK START

in phase1

    MOV 10H,#07FH  ;01111111
    MOV 11H,#0BFH  ;10111111
    MOV 12H,#0FH   ;11110000
    MOV 13H,#0F0H  ;00001111

    MOV R0,20H
    INC R0
    MOV @R0,#01H ;pattern L2R
    INC R0
    MOV @R0,#00H ;pattern simple switch
    MOV 20H,R0
    
    ACALL two_led_control

microchip-hw2's People

Contributors

enewen0324 avatar

Stargazers

hyperbola avatar

Watchers

 avatar

microchip-hw2's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.