Archive for 13 May 2010

I/O Ports (Part 2)

Part 1, 2, 3, 4, 5 And now some results related to the performances measured while using one or the other options for setting PORTS. Brute force setting PORTB = 0x00; PORTB = 0x01; PORTB = 0x00; Takes 62 ns to generate a positive pulse Simple method PORTB = 0x00; PORTB |= 0x01; PORTB &= ~0x01; Takes 125 ns to […]