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

📄 input and pull high.c

📁 范例程序 SONiX
💻 C
字号:
#include	<sn8p2758.h>


void main (void)
{
//================================================================
//		All I/O Port set to the input mode 
//================================================================

		P1M=0x00;						// P10~P17 set to the input mode 
		P2M=0x00;						// P20~P27 set to the input mode 
		P1UR=0xFF;					// P10~P17 set pull high	
		P2UR=0xFF						// P20~P27 set pull high

//================================================================
//	Single PIN set to the input mode
//================================================================
		FP50=0;							// P50 set to the input mode
		FP51=0;							// P51 set to the input mode
		
		P5UR=0x03;				  // P50,P51 set pull high

	while(1)
	{
//================================================================
//
//	User code
//
//================================================================
  }

} 

⌨️ 快捷键说明

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