⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.c

📁 SPCE061A中位操作头文件
💻 C
字号:
#include "hardware.h"
main()
{
int a,b;

AssemblyBitTest();
SP_Init_IOA(0xffff,0xffff,0x0000);
SP_Init_IOB(0x000f,0x0000,0x0000);
Set_IOA_Bit(0,1,1,1,1);
Set_IOA_Bit(1,1,1,1,1);
Set_IOA_Bit(2,1,1,0,0);
Set_IOA_Bit(3,1,1,0,0);
Set_IOA_Bit(4,1,1,1,1);
Set_IOA_Bit(5,1,1,1,1);
Set_IOA_Bit(6,1,1,1,1);
Set_IOA_Bit(7,1,1,1,1);
Set_IOA_Bit(8,1,1,1,1);
Set_IOA_Bit(9,1,1,1,1);
Set_IOA_Bit(10,1,1,1,1);
Set_IOA_Bit(11,1,1,1,1);
Set_IOA_Bit(12,1,1,1,1);
Set_IOA_Bit(13,1,1,1,1);
Set_IOA_Bit(14,1,1,0,0);
Set_IOA_Bit(15,1,1,1,1);
Set_IOB_Bit(0,1,1,1,1);
Set_IOB_Bit(1,1,1,1,1);
Set_IOB_Bit(2,1,1,0,0);
Set_IOB_Bit(3,1,1,1,1);
Set_IOB_Bit(4,1,1,0,0);
Set_IOB_Bit(5,1,1,1,1);
Set_IOB_Bit(6,1,1,1,1);
Set_IOB_Bit(7,1,1,1,1);
Set_IOB_Bit(8,1,1,1,1);
Set_IOB_Bit(9,1,1,1,1);
Set_IOB_Bit(10,1,1,1,1);
Set_IOB_Bit(11,1,1,1,1);
Set_IOB_Bit(12,1,1,1,1);
Set_IOB_Bit(13,1,1,1,1);
Set_IOB_Bit(14,1,1,1,1);
Set_IOB_Bit(15,1,1,1,1);
a=Get_IOA_Bit(2,1);
b=Get_IOA_Bit(14,1);
a=Get_IOB_Bit(2,1);
b=Get_IOB_Bit(14,1);
a=Get_IOA_Bit(2,0);
b=Get_IOA_Bit(14,0);
a=Get_IOB_Bit(2,0);
b=Get_IOB_Bit(14,0);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -