Cours:CoursM2103

De troyesGEII
Aller à : navigation, rechercher

gestion des broches

Entrée/Sortie

broche Rôle Registre Code
PC5 Sortie DDRC DDRC |= (1<<PC5);
PD5 et PD7 Sortie DDRD DDRD |= (1<<PD5)|(1<<PD7);
PA3 Entrée DDRA DDRA &=~(1<<PA3);
PD0 et PD1 Entrée DDRD  DDRD &=~( (1<<PD0)|(1<<PD1));