Intel 8XC196NT User Manual page 193

Table of Contents

Advertisement

8XC196NT USER'S MANUAL
port2_reg
|=
0xFF;
port2_dir
&=
0xFE;
port2_mode |=
0x03;
wsr=0;
end_rec_buff=0;
begin_rec_buff=0;
end_trans_buff=0;
begin_trans_buff=0;
status_temp = TI_BIT;
int_mask1=0x18;
enable();
while((c=getchar()) != 0x1b)
printf("key pressed = %02X\n\r",c);
}
7-16
/*
Init port2 reg */
/*
TXD output
/*
p2.4-6 lsio
*/
/* initialize buffer pointers
/* allow for initial transmission
/* enable the serial port interrupt
/* global enable of interrupts
/*
stay in loop until escape key pressed
*/
*/
*/
*/
*/
*/

Advertisement

Table of Contents
loading

Table of Contents