ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Понедельник
6 мая
1281831 Топик полностью
m9rs (06.02.2023 16:25, просмотров: 182) ответил vesago на Всем привет. В считывателе RFID на основе ATmega168 обратил внимание, что манчестер с выхода аналоговой схемы подается на ADC6 микроконтроллера. Как работает эта магия? В моем понимании все должно работать по прерываниям. ADC6 - это просто аналоговый вход. Да еще и не особо скоростной. Вообще в принципе как обычный вход можно использовать ADC6 или ADC7?
Это вход компаратора 

Analog Comparator Multiplexed Input

It is possible to select any of the ADC[7:0] pins to replace the negative input to the analog comparator.

The ADC multiplexer is used to select this input, and consequently, the ADC must be switched off to

utilize this feature. If the Analog Comparator Multiplexer Enable bit in the ADC Control and Status

Register B (ADCSRB.ACME) is '1' and the ADC is switched off (ADCSRA.ADEN=0), the three least

significant analog channel selection bits in the ADC Multiplexer Selection register (ADMUX.MUX[2:0])

select the input pin to replace the negative input to the analog comparator, as shown in the table below.

When ADCSRB.ACME=0 or ADCSRA.ADEN=1, AIN1 is applied to the negative input of the analog

comparator.