cancel
Showing results for 
Search instead for 
Did you mean: 

Share my ST7FLITE09 asm coding

alanlai1
Associate II
Posted on January 04, 2007 at 07:57

Share my ST7FLITE09 asm coding

2 REPLIES 2
alanlai1
Associate II
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
alanlai1
Associate II
Posted on January 04, 2007 at 07:57

Dear All,

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