domanda pin Atmega 32

Sezione dedicata ai Microcontrollori e ai Sistemi Embedded

domanda pin Atmega 32

Postby faustf » 08 Jan 2017, 13:30

Ciao a tutti
leggendo in giro mi pare di aver capito (correggetemi se sbaglio) che si può settare i gruppi di porte pdA-B-C.-D , sia come output che come input , leggendo però nel datasheet non riesco a capire perche ad esempio la porta pd5 venga classificata cosi
• OC1A – Port D, Bit 5
OC1A, Output Compare Match A output: The PD5 pin can serve as an external output for the
Timer/Counter1 Output Compare A. The pin has to be configured as an output (DDD5 set (one))
to serve this function. The OC1A pin is also the output pin for the PWM mode timer function.

come mai ???
non capisco il perchè
qualche anima pia potrebbe spiegarmi un po meglio ??
faustf
 
Posts: 16
Joined: 04 Jan 2015, 21:32

Re: domanda pin Atmega 32

Postby Just4Fun » 08 Jan 2017, 19:20

Xchè normalmente qs MCU hanno + funzioni x ogni pin.
Nel tuo caso oltre a fare da I/O il pin può essere configurato anche come output x il blocco funzionale "Compare Match A".
User avatar
Just4Fun
 
Posts: 153
Joined: 13 May 2016, 18:17

Re: domanda pin Atmega 32

Postby faustf » 11 Jan 2017, 12:03

Grazie per la risposta
cosa sarebbe questo blocco funzionale "Compare Match A". ? a cosa serve??? capisco che compara qualcosa , potresti farmi un esempio??
cè magari qualche libro che spiega un po di queste cose??
grazie ancora
ciao
faustf
 
Posts: 16
Joined: 04 Jan 2015, 21:32

Re: domanda pin Atmega 32

Postby legacy » 11 Jan 2017, 19:38

faustf wrote:cosa sarebbe questo blocco funzionale "Compare Match A"


ma hai letto bene il datasheet?
lo spiegone senno e' bello lungo
legacy
 
Posts: 862
Joined: 12 Mar 2012, 11:30


Return to Microcontrollori e microprocessori

Who is online

Users browsing this forum: No registered users and 2 guests

cron