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

📄 initrialm48._h

📁 m48,8兆,smg12232带16*16汉字库点阵液晶屏驱动程序,有详细注视,
💻 _H
字号:
//ICC-AVR application builder : 2007-7-5 15:30:50
// Target : M48
// Crystal: 8.0000Mhz

void Port_Init(void);
void Init_Devices(void);


void Port_Init(void)
{
	PORTB = 0xFF;
	DDRB  = 0xFF;
	PORTC = 0x6F; //m103 output only
	DDRC  = 0x6F;
	PORTD = 0xFF;
	DDRD  = 0xFF;
}

//call this routine to initialize all peripherals
void Init_Devices(void)
{
	//stop errant interrupts until set up
	CLI(); //disable all interrupts
	Port_Init();
	Init_ADC();


	SEI(); //re-enable interrupts
	//all peripherals are now initialized
}



⌨️ 快捷键说明

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