unsigned char Trg;
unsigned char Release;
unsigned char Cont;
void KeyRead( void )
{
unsigned char ReadData ;
ReadData =((PORTB|PORTC)^0xff);
Trg = ReadData & (ReadData ^ Cont);
Release=(ReadData^Trg^Cont);
Cont = ReadData;
}
读取按键的时候 RB7~RC0 RB5~RC1 RC1 工作 RB7就失效 这是什么问题呢 |