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

📄 init_io.s

📁 sunplus spca514 cdmp3 源码
💻 S
字号:
	.module init_io.c
	.area text(rom, con, rel)
	.dbfile D:\avrmcu\AT980\init_io.c
	.dbfunc s init_io _init_io fI
	.even
_init_io::
	.dbline -1
	.dbline 5
; #include "iom163.h"
; #include "io.h"
; unsigned int muted;
; void init_io(void)
; {
	.dbline 6
;  PORTA = 0x7C;
	ldi R24,124
	out 0x1b,R24
	.dbline 7
;  DDRA  = 0xE3;	   //PA0:OUTPUT; PA1-PA7:INTPUT
	ldi R24,227
	out 0x1a,R24
	.dbline 8
;  PORTB = 0xFB;
	ldi R24,251
	out 0x18,R24
	.dbline 9
;  DDRB  = 0x4E;	   //PB7--PB4:SPI; PB3--PB0:OUTPUT;
	ldi R24,78
	out 0x17,R24
	.dbline 10
;  PORTC = 0xF3;
	ldi R24,243
	out 0x15,R24
	.dbline 11
;  DDRC  = 0xEF;	   //PC0-PC7:OUTPUT;
	ldi R24,239
	out 0x14,R24
	.dbline 12
;  PORTD = 0xFE;
	ldi R24,254
	out 0x12,R24
	.dbline 13
;  DDRD  = 0x31;
	ldi R24,49
	out 0x11,R24
	.dbline 14
;  MCUCR = 0x0A;
	ldi R24,10
	out 0x35,R24
	.dbline 15
;  GIMSK = 0x40;     //int0 enable;
	ldi R24,64
	out 0x3b,R24
	.dbline -2
	.dbline 17
;  
; }
L1:
	.dbline 0 ; func end
	ret
	.dbfunc s MCU_mute _MCU_mute fI
	.even
_MCU_mute::
	.dbline -1
	.dbline 77
; 
; //UPD16311
; /*void Set_Fp_STB(unsigned char value)
; {
;  if(value)
;   PORTC |= 0x40;
;  else
;   PORTC &= 0xBF; 
; }*/
; /*void Set_Fp_CLK(unsigned char value)
; {
;  if(value)
;   PORTC |= 0x80;
;  else
;   PORTC &= 0x7F;
; }*/
; /*unsigned char Get_Fp_DIN(void)
; {
;  unsigned char Temp;
;  if(PIND&0x80)
;  	return 1;
;  else
;  	 return 0;	
; }*/
; 
; /*void Set_Fp_DOUT(unsigned char value)
; {
;  if(value)
;   PORTD |= 0x80;
;  else
;   PORTD &= 0x7f;
; }*/
; /*void Set_FpDout_To_Input(void)
; {
; 	DDRD &= 0x7F;
; }
; 
; void Set_FpDout_To_Output(void)
; {
; 	DDRD |= 0x80;
; }
; */
; 
; /*void Set_FS1(unsigned char value)
; {
;  if(value)
;   PORTB |= 0x01;
;  else
;   PORTB &= 0xFE;
; }
; void Set_FS2(unsigned char value)
; {
;  if(value)
;   PORTB |= 0x02;
;  else
;   PORTB &= 0xFD;
; }*/
; 
; void MCU_mute(void)
; {
	.dbline 78
;  if(muted)
	lds R3,_muted+1
	lds R2,_muted
	tst R2
	brne X0
	tst R3
	breq L3
X0:
	.dbline 79
;    mute_on();
	SBI 0x18,3
	xjmp L4
L3:
	.dbline 81
	CBI 0x18,3
L4:
	.dbline -2
	.dbline 82
;  else
;    mute_off();
; }
L2:
	.dbline 0 ; func end
	ret
	.area bss(ram, con, rel)
	.dbfile D:\avrmcu\AT980\init_io.c
_muted::
	.blkb 2
	.dbsym s muted _muted i

⌨️ 快捷键说明

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