Skip to main content
Visitor II
January 4, 2007
Question

Share my ST7FLITE09 asm coding

  • January 4, 2007
  • 2 replies
  • 741 views
Posted on January 04, 2007 at 07:57

Share my ST7FLITE09 asm coding

    This topic has been closed for replies.

    2 replies

    alanlai1Author
    Visitor II
    January 4, 2007
    Posted on January 04, 2007 at 07:54

    Dear All,

    I like MCU programming but only very strong. Since I think there must have some ST7 beginner browsing this page, I still would like to share my coding there (may be you will think the coding is too simple, haha....). Anyway, it is a assembly program, which used my favourite looping with ''call'' function''. If I understand how to use other peripherials, I will upload again. ^^

    (Please suggest if my format is not good ^^)

    Does anyone try to use software to finish UART(SCI)? is it hard to use assembly to achieve?

    My share coding format

    ;**************************************************

    ; Hardware: RLINK + Indart Kit Lite0 EV Board

    ; Objective: evaluate the peripherials, for support customer.

    ;**************************************************

    reset:

    call init_ram_clear

    call init_rc_calibrate

    call init_mccsr

    call init_io

    call init_adc

    call init_at_timer

    call init_output_poll

    call init_scankey

    rim

    main:

    btjt timer_flag,#0,timerok

    jra main

    timerok:

    bres timer_flag,#0

    call scankey

    call action

    call output_poll

    jra main

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    ; Interrupt Service Routine

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    int_at_timer:

    ld a,ATCSR

    bset timer_flag,#0

    iret

    ________________

    Attachments :

    7__table2.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0AI&d=%2Fa%2F0X0000000bUd%2FAKIAM5A9Juc_V2scfPeUtn9OzSmMcjn1Gg5.Q51FoL8&asPdf=false
    alanlai1Author
    Visitor II
    January 4, 2007
    Posted on January 04, 2007 at 07:57

    Dear All,

    I like MCU programming but ''not'' very strong...............