• 大小: 10.73MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-05
  • 语言: 其他
  • 标签:

资源简介

SM61864的1553驱动程序,作为RT端的收发例子程序

资源截图

代码片段和文件信息


#include “..\include.h“

void RtModeCode (void)
{
  U8  i;                                                                    //
  U16 ModeCodeDataPoint;                                                    //

  // ---------- 模式码 --------                                             //
    if((Desciptoer.Rt.Command & 0x1F) == 0x08)//|1  |01000       | Reset Remote Terminal                                                                         // |---------------------------------------------------------| 
    {
      printf(“******* RT Reset by 1553 bus *******\r\n\r\n“);
      bResetModeCode = TRUE;
      return;
    }                                                                        
                                                                            // |    TABLE 84. ENHANCED MODE CODE DATA LOCATIONS          | 
    if(Desciptoer.Rt.Command & TRANSMIT1_RECEIVE0)  // 发送MODECODE         // |---------------------------------------------------------| 
    {                                                                       // |RAM LOCATION |          MODE CODE                        | 
      if(0x1F == (Desciptoer.Rt.Command >> 11))     // 广播                 // |---------------------------------------------------------| 
      {                                                                     // |0110     | 0_10000 UNDEFINED                             | 
        printf(“BroadCast Transmit Modecode 1/T_“); // 注意是0x0F不是0x1F   // |0111     | 0_10001 SYNCHRONIZE WITH DATA                 | 
        ModeCodeDataPoint=B_MODECODE_DATA_base+Desciptoer.Rt.Command&0x0F;  // |0112     | 0_10010 UNDEFINED                             | 
      }                                                                     // |0113     | 0_10011 UNDEFINED                             | 
      else                                          // OWN tansmit          // |0114     | 0_10100 SELECTED TRANSMITTER SHUTDOWN         | 
      {                                                                     // |0115     | 0_10101 OVERRIDE SELECTED TRANSMITTER         | 
        printf(“OWN Transmit Modecode 1/T_“);       // 注意是0x0F不是0x1F   // |         |          SHUTDOWN                             | 
        ModeCodeDataPoint=T_MODECODE_DATA_base+Desciptoer.Rt.Command&0x0F;  // |0116-011F| 0_10110-11111 RESERVED (RECEIVE MODE CODES)   | 
      }                                                                     // |0120     | 1_10000 TRANSMIT VECTOR WORD                  | 
                                                                            // |0121     | 1_10001 UNDEFINED                             | 
      for(i = 0; i < 5; i++)                                                // |0122     | 1_10010 UNDEFINED                             | 
      {                                                                     // |0123     | 1_10011 TRANSMIT BIT WORD                     | 
        if(Desciptoer.Rt.Command & (0x10u >

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-08-24 15:28  SM61864_DEMO_V1.1\
     目录           0  2014-08-24 15:28  SM61864_DEMO_V1.1\BOM\
     文件       33792  2014-06-26 14:25  SM61864_DEMO_V1.1\BOM\SM61864MINIMODULE_bom_v1.0.xls
     目录           0  2014-08-24 15:28  SM61864_DEMO_V1.1\PCB\
     文件    18688648  2012-09-18 09:42  SM61864_DEMO_V1.1\PCB\61864min.brd
     文件       82122  2014-06-23 18:08  SM61864_DEMO_V1.1\PCB\allegro.jrl
     文件        7517  2014-06-20 09:45  SM61864_DEMO_V1.1\PCB\allegro.jrl1
     文件        7981  2014-06-23 18:03  SM61864_DEMO_V1.1\PCB\interconn.iml
     文件          45  2014-06-23 17:59  SM61864_DEMO_V1.1\PCB\interconn.iml1
     文件         798  2014-06-23 18:08  SM61864_DEMO_V1.1\PCB\signoise.log
     目录           0  2014-08-24 15:28  SM61864_DEMO_V1.1\原理图\
     文件        3129  2014-06-26 14:23  SM61864_DEMO_V1.1\原理图\SM61864MINIMODULE.BOM
     文件      578560  2014-06-26 14:18  SM61864_DEMO_V1.1\原理图\SM61864MINIMODULE.DSN
     文件      181593  2014-05-20 11:26  SM61864_DEMO_V1.1\原理图\SM61864MINIMODULE.pdf
     文件      578560  2014-06-26 14:17  SM61864_DEMO_V1.1\原理图\SM61864MINIMODULE_0.DBK
     文件        1638  2014-06-26 14:18  SM61864_DEMO_V1.1\原理图\sm61864minimodule.opj
     目录           0  2014-08-24 15:28  SM61864_DEMO_V1.1\软件程序\
     目录           0  2014-08-24 15:28  SM61864_DEMO_V1.1\软件程序\RT61864SbSmRtxTiny2\
     文件         657  2012-09-19 14:21  SM61864_DEMO_V1.1\软件程序\RT61864SbSmRtxTiny2\Include.h
     目录           0  2014-08-24 15:28  SM61864_DEMO_V1.1\软件程序\RT61864SbSmRtxTiny2\MIL-STD-1553\
     文件        1076  2012-09-28 10:06  SM61864_DEMO_V1.1\软件程序\RT61864SbSmRtxTiny2\MIL-STD-1553\Descriptor.h
     文件        5552  2012-09-14 11:42  SM61864_DEMO_V1.1\软件程序\RT61864SbSmRtxTiny2\MIL-STD-1553\MemWord.h
     文件        5386  2012-09-19 11:52  SM61864_DEMO_V1.1\软件程序\RT61864SbSmRtxTiny2\MIL-STD-1553\Message.h
     文件        6320  2012-09-19 14:01  SM61864_DEMO_V1.1\软件程序\RT61864SbSmRtxTiny2\MIL-STD-1553\Modecode.h
     文件        2215  2012-09-28 16:45  SM61864_DEMO_V1.1\软件程序\RT61864SbSmRtxTiny2\MIL-STD-1553\RT.C
     文件        6667  2012-09-28 14:45  SM61864_DEMO_V1.1\软件程序\RT61864SbSmRtxTiny2\MIL-STD-1553\RtModeCode.c
     文件        3520  2012-09-28 16:47  SM61864_DEMO_V1.1\软件程序\RT61864SbSmRtxTiny2\MIL-STD-1553\RtTransfer.c
     文件        5932  2012-09-19 13:44  SM61864_DEMO_V1.1\软件程序\RT61864SbSmRtxTiny2\ModeCode.txt
     文件       32843  2012-08-02 09:29  SM61864_DEMO_V1.1\软件程序\RT61864SbSmRtxTiny2\RT.txt
     文件       73728  2012-09-14 13:37  SM61864_DEMO_V1.1\软件程序\RT61864SbSmRtxTiny2\RT61864SBSM_stdLib.IAB
     文件        1008  2012-09-17 13:45  SM61864_DEMO_V1.1\软件程序\RT61864SbSmRtxTiny2\RT61864SBSM_stdLib.IAD
............此处省略330个文件信息

评论

共有 条评论

相关资源