FMUSER Wirless Transmit Video And Audio More Easier !

[email protected] WhatsApp +8618078869184
Language

    PIC: Read and write I2C program

     

    PIC: Read and write I2C program I2cctr EQU 10HI2CAD EQU 11hREG3 EQU 12hREG2 EQU 13hREG1 EQU 14HREG0 EQU 15h GenR0 EQU 8hgenr1 EQU 9Hbit_Count EQU 9HGENR2 EQU 0AHBYTE_COUNT EQU 0AH movlw 4Hwrite MOVWF BYTE_COUNT MOVLW B8583WWR_ABC MOVWF I2CCTR MOVFW GENR0; WR_MEM MOVWF I2CADWR_MEM0 MOVLW IORA TRIS RA BSF RA, SCL MOVLW I2CCTR + $ 20 MOVWF FSRM_START NOP BTFSS RA, SDA RETLW 0FFH; GOTO ^ -1 MOVLW E2out Tris Ra NOP BCF RA, SDA TO STARTNXBYWR_BYTE MOVLW 8H MOVWF BIT_COUNTBIT_LOOP NOP RLF 0H BCF RA, SCL BTFSS 3,0 Goto ^ + 3 BSF RA, SDA GOTO ^ + 2 BCF RA, SDA NOP NOP BSF RA, SCL DECFSZ BIT_COUNT GOTO BIT_LOOP NOP NOP BCF RA, SCL NOPACKG NOP MOVLW IORA Tris RA BSF RA, SCL NOP BTFSC RA, SDA GOTO ACKG INCF FSR NOP bcf RA, SCL MOVLW E2OUT TRIS RA DECFSZ BYTE_COUNT GOTO NXBY; W_STOP MOVLW I2CAD + $ 0A2 SUBWF FSR, W BTFSS 3,0 RETLW 0HM_STOP BCF RA, SDA NOP BSF RA, SCL MOVLW IORA NOP NOP NOP BSF RA, SDA TRIS Ra RetLW 0H ; ------------------------------; ST_CMEMAD MOVFW GenR0 MOVWF I2CAD MOVLW C02W MOVWF I2CCTR MOVLW C02R MOVWF REG3; ST_MEMAD MOVLW 2 MOVWF BYTE_COUNT CALL WR_MEM0 MOVLW 1 MOVWF BYTE_COUNT MOVFW REG3 MOVWF I2CCTR CALL WR_MEM0 RETLW 0H; ------------------------------------------------------------------------------------------------------------------------------- RD_BYTES MOVWF BYTE_COUNT MOVLW REG3 + $ 20 MOVWF FSRRNXTB BCF RA, SCL MOVLW IORA Tris Ra MoVLW 8H MOVWF BIT_COUNTRNX BCF RA, SCL NOP BCF 3H, 0 BTFSC RA, SDA BSF 3H, 0 RLF 0H BSF RA, SCL NOP DECFSZ BIT_COUNT GOTO RNX INCF FSR MOVLW E2OUT BCF RA, SCL TRIS RA DECFSZ BYTE_COUNT GOTO T_ACKGR_STOP CALL M_STOP RETLW 0H; T_ACKG BCF RA, SDA NOP BSF RA, SCL XORLW 0FFH XORLW 0FFH XORLW 0FFH Goto RNXTB, Technology Zone Alexa voice service software extension STM32Cube Combined with DNN API drivers to drive future neural network applications Four integration design for high-end mobile communications and automotive markets A frame capture open source graphic debugger application design The latest security technology that is about to be standard configuration: Rear view camera system

     

     

     

     

    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