Oder so vielleicht:
Code:uint8_t muster=0b101010; PORTB = PORTB & 0b11110001; // PB1/2/3 ausschalten PORTC = PORTC & 0b11110001; // PC1/2/3 ausschalten PORTC = PORTC | (muster & 0b111)<<1; PORTB = PORTB | (muster & 0b111000)>>2;
Oder so vielleicht:
Code:uint8_t muster=0b101010; PORTB = PORTB & 0b11110001; // PB1/2/3 ausschalten PORTC = PORTC & 0b11110001; // PC1/2/3 ausschalten PORTC = PORTC | (muster & 0b111)<<1; PORTB = PORTB | (muster & 0b111000)>>2;
Bild hier
Atmel’s products are not intended, authorized, or warranted for use
as components in applications intended to support or sustain life!
Lesezeichen