FMUSER Wirless Transmit Video And Audio More Easier !

[email protected] WhatsApp +8618078869184
Language

    How to correctly use the bit field in the C51 single-chip microcomputer

     

    "Define such a structure: typedef struct { uchar DC0_ ALA:1; // Power 0 alarm uchar DC1_ ALA:1; // Power supply 1 alarm uchar AC_ ALA:1; // Power failure alarm uchar UN_ H_ ALA:1; // Loss of lock alarm of the same frequency channel machine uchar UN_ L_ ALA:1; // Out of lock alarm of different frequency channel machine uchar FAR_ ALA:1; // Remote communication failure alarm uchar OPEN_ ALA:1; // Placket alarm uchar x:1; }ALARM;// System alarm structure definition Define variables and initialize: idata ALARM old_ alarm={0,0,0,0,0,0,0,0}; In the main() function, apply the bit field as follows: if(old_ alarm.DC0_ ALA!= TDZ_ GET.alarm.DC0_ ALA||old_ alarm.DC1_ ALA!= TDZ_ GET.alarm.DC1_ ALA||old_ alarm.AC_ ALA!= TDZ_ GET.alarm.AC_ ALA||old_ alarm.UN_ H_ ALA!= TDZ_ GET.alarm.UN_ H_ ALA||old_ alarm.UN_ L_ ALA!= TDZ_ GET.alarm.UN_ L_ ALA||old_ alarm.FAR_ ALA!= TDZ_ GET.alarm.FAR_ ALA||old_ alarm.OPEN_ ALA!= TDZ_ GET.alarm.OPEN_ ALA) { old_ alarm.DC0_ ALA=TDZ_ GET.alarm.DC0_ ALA; old_ alarm.DC1_ ALA=TDZ_ GET.alarm.DC1_ ALA; old_ alarm.AC_ ALA=TDZ_ GET.alarm.AC_ ALA; old_ alarm.UN_ H_ ALA=TDZ_ GET.alarm.UN_ H_ ALA; old_ alarm.UN_ L_ ALA=TDZ_ GET.alarm.UN_ L_ ALA; old_ alarm.FAR_ ALA=TDZ_ GET.alarm.FAR_ ALA; old_ alarm.OPEN_ ALA=TDZ_ GET.alarm.OPEN_ ALA; ala=0;// Determine alarm conditions }, read the full text, technical section SD card interface program design of AVR single chip microcomputer How to correctly use the bit field in C51 single chip microcomputer Control design of stepping motor with SM8954A single chip microcomputer Introduction to the characteristics and advantages of pic8 bit single chip microcomputer How to use AVR MCU to write TEA5767 data and download enthusiast app Create an electronic circle of your contacts Pay attention to wechat of electronic enthusiasts Interesting and informative information and technology dry goods Focus on enthusiast class Lock in the latest course activities and technology live broadcast Electronic enthusiast observation Front line report, in-depth observation, latest information, collection 0 collections Share:, comment Lin Chaowen PCB Design: pads tutorial, pads video tutorial, Zheng Zhenyu teacher: Altium designer tutorial, Altium designer video tutorial, Zhang Fei actual combat electronic video tutorial, Zhu Youpeng teacher: Hisilicon hi3518e tutorial, hi3518e video tutorial, Li Zeng teacher: signal integrity tutorial, high-speed circuit simulation tutorial, Huawei Hongmeng system tutorial, harmonyos video tutorial, saisheng: EMC design tutorial, EMC video tutorial Mr. Du Yang: STM32 tutorial, STM32 video tutorial, Tang zuolin: basic C language tutorial, basic C language video tutorial, Zhang Fei: Buck Power tutorial, buck power video tutorial, punctual atom: FPGA tutorial, FPGA video tutorial, Mr. Wei Dongshan: embedded tutorial, Embedded video tutorial Zhang Xianfeng: C language basic video tutorial Xu Xiaogang: Modbus communication video tutorial Wang Zhentao: NB IOT development video tutorial mill: FPGA tutorial, zynq video tutorial c language video tutorial linux driver development video tutorial Zhu Youpeng: u-boot source code analysis video tutorial harmonyos,  Press and hold the slider and drag to the far right Learn about new features Published, relevant recommendations Kneel down and ask God for help to draw a simple circuit diagram: the development of community parking space recording system Published at 11:17, December 12, 2018 • 73 readings C51 single chip microcomputer realizes that multiple light-emitting diodes emit light in different order MOVSCON,#00H CLRP1.1 MOVR7,#16 MOVA,#1000... Published at 16:07, December 6, 2018 • 87 readings Use of interrupt and using of C51 single chip microcomputer The basic structure of 8051 series MCU includes 32 I / O ports (4 groups of 8-bit ports); Two 16 bit Published at 15:35, December 5, 2018 • 52 readings PID programming of C51 single chip microcomputer //Main program ====================================================================== Published at 14:53, December 4, 2018 • 139 readings Driving 1602LCD module by C51 single chip microcomputer Description: 1. Crystal: 11.0592Mhz 2.1602 drive: ks0066 *********... Published at 16:32, November 29, 2018 • 73 readings C51 single chip microcomputer driving LCD The 192 * 64 LCD driver written by Keil C51. Thank many netizens for providing reference source programs, This program is on the Internet Published at 16:22, November 19, 2018 • 136 readings Control design of five wire four phase eight beat stepping motor with C51 single chip microcomputer The test board is equipped with four keys, whose functions are "start / stop", "forward / reverse", "speed -" "speed +". Define P2 Published on November 15, 2018 at 16:44 • 293 readings Definition and application of pointer variable of C51 single chip microcomputer [memory type 1] indicates a pointer defined as a memory based pointer. When this option is not available, it is defined as a general pointer. The difference between the two pointers is that it Published at 16:34, November 14, 2018 • 118 readings C51 single chip microcomputer reads the page of EEPROM through I2C Published at 08:15, November 12, 2018 • seven

     

     

     

     

    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