[an error occurred while processing this directive]
[an error occurred while processing this directive]
|
#define MaskWrAdr 0b11110011
#define MaskWrData 0b11110010
#define MaskRdData 0b11110100
#define WR_ADR(x) (PORTB=x;PORTA=PORTA & MaskWrAdr;PORTA=PORTA | 0x0f;
#define WR_DAT(x) (PORTB=x;PORTA=PORTA & MaskWrData;PORTA=PORTA | 0x0f;
#define RD_DAT(x) (PORTA=PORTA & MaskRdData;x=PORTB;PORTA=PORTA | 0x0f;
E-mail: info@telesys.ru