shashankshanky
Newbie level 3
hi i am currently doing a project on atmega16.
i want to send the values from the PC that determines whether the pin should be set or reset.
i.e if i want all port a pins to be set then i should send the value 255, if i want only the PA0 to PA2 to be set, i should send the value 7, however since only unsigned char is poss. how can i achieve this
i want to send the values from the PC that determines whether the pin should be set or reset.
i.e if i want all port a pins to be set then i should send the value 255, if i want only the PA0 to PA2 to be set, i should send the value 7, however since only unsigned char is poss. how can i achieve this