最新三星单片机应用

三星S3P9234 ISO通讯编程实例

Published:2010.10.13 NewsFrom:ZHANHENG TECHNOLOGY(HK)CO.,LTD/SHENZHEN ZHANHENGLONG ELECTRONIC CO,LTD Views:

.include "C:\openice\include\reg\S3C9234.reg"
                 org       0000h
                 vector    00h,INT_9234
;******************************************************************
                 org       0100h                
                 nop
                 nop
                 DI              
                 ld        SP,#0B0h            ;set stack pointer
                 ld        osccon,#00000000b   ;enable main clock
                 ld        clkcon,#00011000b   ;instruction cycle=0.24us
                 ld        btcon,#0a3h
                
                 LD        P2CONH,#0AAH
                 ld        p2conl,#10001111b
                 ld        p2pur,#00000000b
                
                 ld        r0,#07fh             ;clear 00h-3fh ram
                 ld        r1,#00h
                 ld        r0,#00h
                 ld        r1,#00h

start:           ld        siodata,#0aah
                 ld        siocon,#11000110b
                 LD        SIOPS,#10H
                 OR        SIOCON,#08H
                 EI
MAIN:            NOP
                 NOP
                 EI
                 JP        MAIN
                
INT_9234:        TM        SIOCON,#01H
                 JR        NZ,REC
                 IRET
REC:             AND       SIOCON,#0FEH
                 LD        R0,SIODATA
                 IRET
                 .END

Development tools for MCU
Programming console for MCU
Development tools for ARM
the C compiler
Contact
Samsung SCM:

ic168@zh-ic.COM

Development Tools:

B6078S@163.com

Site suggestions:

zh-ic@163.com

  Service
 MSN