Goal: Want to write to output bits without having to overwrite existing bits.
Programmer: AVRisp MkII
IDE: AVR Studio 4, Version 4.15
How can I write to a single output bit without overwriting the existing values contained in the remaining bits on that particular port?
Example: Assume PORTD is an output and that PORTA has inputs that affect the bits on PORTD. If PORTD = 0b00110001, what process can I use to make PORTD = 0b00110000 without having to overwrite bits 2-8? In other words, is there a way to directly write to just the 1st bit of PORTD without touching the other bits on PORTD?