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

📄 main.c

📁 microcontroller documents 8051 atmel controller
💻 C
字号:
sfr P1 = 0x90;        /* SFR for P1 */

sbit P1_0 = P1^0;     /* SFR for P1.0 */
sbit P1_1 = P1^1;     /* SFR for P1.1 */

/*------------------------------------------------
MAIN C function
------------------------------------------------*/
void main (void)
{
P1_0;                  /* Set P1.0 as an input */


/*--------------------------------------
Use the Toolbox buttons in the debugger
to set and clear P1.0.  Open the Port1
dialog from the Peripherals Menu to view
the status of P1.1.
--------------------------------------*/
while (1)
  {
  P1_1 = P1_0;         /* Read P1.0 & Write to P1.1 */
  }
}

⌨️ 快捷键说明

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