FMUSER Wirless Transmit Video And Audio More Easier !

[email protected] WhatsApp +8618078869184
Language

    MAX7219 Display Program - C Program - Compilation

     

    “max7219显示程序(汇编) #包括“msp430x41x.h”DIN EQU 001H;P1.0CLK EQU 002H;P1.1负载均衡004H;P1.2 组织0F000HRESET MOV#300H,SP;初始化MOV#WDTPW+WDTHOLD和WDTCTLBIS.B#CLK和P1DIRBIS.B#DIN和P1DIRBIS.B#LOAD和P1DIRPUSH#00C01H;设置工作模式BIC.B#加载和输出调用#移动BIS.B#加载和输出 推动#00B05H;设置扫描位数BIC.B#加载和输出调用#移动BIS.B#加载和输出 推#009FFH;设置编码方式BIC.B#加载和P1OUT调用移动BIS.B#加载和P1OUT 推压#00A07H;设置亮度BIC.B#加载和P1OUT调用移动BIS.B#加载和P1OUT 西安普什#00107H;显示第一位BIC.B#加载和P1OUT调用移动BIS.B#加载和P1OUT 推压#00206H;显示第二位BIC.B#加载和P1OUT调用移动BIS.B#加载和P1OUT 推动#00305H;显示第三位BIC.B#加载和P1OUT调用移动BIS.B#加载和P1OUT 推动#00404H;显示第四位BIC.B#加载和P1OUT调用移动BIS.B#加载和P1OUT 推动#00503H;显示第五位BIC.B#加载和P1OUT调用移动BIS.B#加载和P1OUT 推动#00602H;显示第六位B.B.B.B.B.B.B.B.B.B.B.B.B.负荷,和P1OUTJMP美元移动。B.B.16,R6MOV 2(SP),R13MOV 2(SP),R13MOV1,1,1,1,1,1,1,1,1,1和1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1和1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,;包括“msp430x41x.h”DIN EQU 001H;P1.0CLK EQU 002H;P1.1负载均衡004H;P1.2 组织0F000HMOV#300H,SP;初始化MOV#WDTPW+WDTHOLD和WDTCTLBIS.B#CLK和P1DIRBIS.B#DIN和P1DIRBIS.B#LOAD和P1DIR 推动#00C01H;设置工作模式BIC.B#加载和输出调用#移动BIS.B#加载和输出 推动#00B05H;设置扫描位数BIC.B#加载和输出调用#移动BIS.B#加载和输出 推#009FFH;设置编码方式BIC.B#加载和P1OUT调用移动BIS.B#加载和P1OUT 推压#00A07H;设置亮度BIC.B#加载和P1OUT调用移动BIS.B#加载和P1OUT 西安普什#00107H;显示第一位BIC.B#加载和P1OUT调用移动BIS.B#加载和P1OUT 推压#00206H;显示第二位BIC.B#加载和P1OUT调用移动BIS.B#加载和P1OUT 推动#00305H;显示第三位BIC.B#加载和P1OUT调用移动BIS.B#加载和P1OUT 推动#00404H;显示第四位BIC.B#加载和P1OUT调用移动BIS.B#加载和P1OUT 推动#00503H;显示第五位BIC.B#加载和P1OUT调用移动BIS.B#加载和P1OUT 推动#00602H;显示第六位BIC.B#LOAD和P1OUTCALL MOVEBIS.B#LOAD和P1OUTJMP$MOVE MOV.B#16,R6POP R13MOV#1,R10SENDLOOP BIC.B#CLK和P1OUTBIT R10,R13JNZ SEND1SEND0 BIC.B#DIN和P1OUTJMP GOONSEND1 BIS.B#DIN,以及P1OUTGOON BIS.B#CLK和P10Bic MAX7219的C程序 /*--------------------------------------------------------- * 程序说明 * * 1、本程序已经通过测试,非常好用; * * 2、在非译码方式下编码和一般书上写的不一样,请注意; * * 3、每次送显示的时候先初始化一次; * * 4、在设计电路或制作试验板时注意添加Vcc到GND之间的电容,* * 一个10vF的电解电容和0.1vF的陶瓷电容。并在DIN、负载、**时钟到GND之间接入30pF的瓷片电容。 * * * * 程序提供人:苏建宇***---------------------------------------------------------------*/#包括#include/#include/*----------------------------------------------------------------*/sbit disu DIN=P1^0; /*显示串行数据输入端*/sbit dis_负载=P1^1; /*显示数据锁存端*/sbit dis_CLK=P1^2; /*显示时钟输入端*/#定义NoOp 0x00/*空操作*/#定义数字0 0x01/*数码管1*/#定义数字0x02/*数码管2*/#定义数字2 0x03/*数码管3*/#定义数字3 0x04/*数码管4*/#定义数字4 0x05/*数码管5*/#定义数字5 0x06/*数码管6*/#定义数字6 0x07/*数码管7*/#定义数字7 0x08/*数码管8*/#定义解码模式0x09/*译码模式*/#定义强度0x0a/*亮度*/#定义扫描限制0x0b/*扫描界限*/#定义关机0x0c/*掉电模式*/#定义DisplayTest 0x0f/*显示测试*/#定义关闭模式0x00/*掉电方式工作*/#定义正常操作0x01/*正常操作方式*/#定义数字0xff/*译码位数设置*/#定义强度等级0x0a/*显示亮度级别设置*/#定义ScanDigit 0x07/*扫描位数设置*/#定义测试模式0x01/*显示测试方式*/#定义TextEnd 0x00/*显示测试结束,正常工作*/无符号字符数据DisBuffer[8]={0,0,0,0,0,0}; /*显示缓存区*/无符号字符代码显示列表[]={0x7e,0x30,0x6d,0x79,0x33,0x5b,0x5f,0x70,0x7f,0x7b,/*0,1,2,3,4,5,6,7,8,9*/0x77,0x1f,0x4e,0x3d,0x4f,0x47,0x67,0x3e,0xff,0x00};/*A、B、C、D、E、F、P、U、,全亮,全灭*//*--------------------------------------------------------10毫秒延时子程序---------------------------------------------------------*/void delayX10ms(无符号字符计数){无符号字符j,k;而(数——=0){for(j=0;j<43;(k=0;k<73;k++); } }/*------------------------------------------------- 向MAX7219写入字节(8.位)--------------------------------------------------*/void SendChar(unsigned char ch){unsigned char i,temp;_nop_();对于(i=0;i<8;i++{temp=ch&0x80;ch=ch<1;如果(temp){dis_DIN=1;dis_CLK=0;dis_CLK=1;}else{dis_DIN=0;dis_CLK=0;dis_CLK=1; } } }/*------------------------------------------------- 向MAX72

     

     

     

     

    List all Question

    Nickname

    Email

    Questions

    Our other product:

    Professional FM Radio Station Equipment Package

     



     

    Hotel IPTV Solution

     


      Enter email  to get a surprise

      fmuser.org

      es.fmuser.org
      it.fmuser.org
      fr.fmuser.org
      de.fmuser.org
      af.fmuser.org ->Afrikaans
      sq.fmuser.org ->Albanian
      ar.fmuser.org ->Arabic
      hy.fmuser.org ->Armenian
      az.fmuser.org ->Azerbaijani
      eu.fmuser.org ->Basque
      be.fmuser.org ->Belarusian
      bg.fmuser.org ->Bulgarian
      ca.fmuser.org ->Catalan
      zh-CN.fmuser.org ->Chinese (Simplified)
      zh-TW.fmuser.org ->Chinese (Traditional)
      hr.fmuser.org ->Croatian
      cs.fmuser.org ->Czech
      da.fmuser.org ->Danish
      nl.fmuser.org ->Dutch
      et.fmuser.org ->Estonian
      tl.fmuser.org ->Filipino
      fi.fmuser.org ->Finnish
      fr.fmuser.org ->French
      gl.fmuser.org ->Galician
      ka.fmuser.org ->Georgian
      de.fmuser.org ->German
      el.fmuser.org ->Greek
      ht.fmuser.org ->Haitian Creole
      iw.fmuser.org ->Hebrew
      hi.fmuser.org ->Hindi
      hu.fmuser.org ->Hungarian
      is.fmuser.org ->Icelandic
      id.fmuser.org ->Indonesian
      ga.fmuser.org ->Irish
      it.fmuser.org ->Italian
      ja.fmuser.org ->Japanese
      ko.fmuser.org ->Korean
      lv.fmuser.org ->Latvian
      lt.fmuser.org ->Lithuanian
      mk.fmuser.org ->Macedonian
      ms.fmuser.org ->Malay
      mt.fmuser.org ->Maltese
      no.fmuser.org ->Norwegian
      fa.fmuser.org ->Persian
      pl.fmuser.org ->Polish
      pt.fmuser.org ->Portuguese
      ro.fmuser.org ->Romanian
      ru.fmuser.org ->Russian
      sr.fmuser.org ->Serbian
      sk.fmuser.org ->Slovak
      sl.fmuser.org ->Slovenian
      es.fmuser.org ->Spanish
      sw.fmuser.org ->Swahili
      sv.fmuser.org ->Swedish
      th.fmuser.org ->Thai
      tr.fmuser.org ->Turkish
      uk.fmuser.org ->Ukrainian
      ur.fmuser.org ->Urdu
      vi.fmuser.org ->Vietnamese
      cy.fmuser.org ->Welsh
      yi.fmuser.org ->Yiddish

       
  •  

    FMUSER Wirless Transmit Video And Audio More Easier !

  • Contact

    Address:
    No.305 Room HuiLan Building No.273 Huanpu Road Guangzhou China 510620

    E-mail:
    [email protected]

    Tel / WhatApps:
    +8618078869184

  • Categories

  • Newsletter

    FIRST OR FULL NAME

    E-mail

  • paypal solution  Western UnionBank OF China
    E-mail:[email protected]   WhatsApp:+8618078869184   Skype:sky198710021 Chat with me
    Copyright 2006-2020 Powered By www.fmuser.org

    Contact Us