Все по порядку.
Цитата(djmixi(Димка) @ Feb 14 2007, 10:36)

Господа, помогите разобраться со следующими вопросами:
1 Правильность выбора RC цепочки сброса (у меня 20 Мгц на mega48 стоит 2к к + и 10n к -, на сколько это верно).
Смотрим DS страница 47:
Код
9.4 External Reset
An External Reset is generated by a low level on the RESET pin. Reset pulses longer than the
minimum pulse width (see ”System and Reset Characteristics” on page 306) will generate a
reset, even if the clock is not running. Shorter pulses are not guaranteed to generate a reset.
When the applied signal reaches the Reset Threshold Voltage – VRST – on its positive edge, the
delay counter starts the MCU after the Time-out period – tTOUT – has expired. The External Reset
can be disabled by the RSTDISBL fuse, see Table 26-6 on page 286.
Смотрим таблицу на стр. 306 (прикрепил). Исходя из tRST и VRST подбираем номиналы RC-цепи.
Цитата(djmixi(Димка) @ Feb 14 2007, 10:36)

2 В доке на Megu48 указан внешний кондер для использования внутреннего опорного напряжения или при использовании AVCC в качестве опорного ("...with external capacitor at AREF pin") какой он должен стоять я предполагаю что в районе 100n?
Верно в большинстве случаев. Но еще нужно знать об уровне пульсаций AVCC.
Цитата(djmixi(Димка) @ Feb 14 2007, 10:36)

3 Не могу понять (опыта мало в этом Sleepe!) как он работает... я настраиваю MCU биты в ADCNOISEREDUCTION разрешаю переход в слип, далее после настройке АЦП пишу SLEEP, но он засыпает и не просыпается... что я делаю не так... по идеи он должен просыпаться после завершения преобразования....
Стр. 249. Обратите внимание на пункт C. Все должно работать. Прерывание ADC Conversion Complete разрешили?
Код
22.6 ADC Noise Canceler
The ADC features a noise canceler that enables conversion during sleep mode to reduce noise
induced from the CPU core and other I/O peripherals. The noise canceler can be used with ADC
Noise Reduction and Idle mode. To make use of this feature, the following procedure should be
used:
a. Make sure that the ADC is enabled and is not busy converting. Single Conversion
mode must be selected and the ADC conversion complete interrupt must be enabled.
b. Enter ADC Noise Reduction mode (or Idle mode). The ADC will start a conversion
once the CPU has been halted.
c. If no other interrupts occur before the ADC conversion completes, the ADC interrupt
will wake up the CPU and execute the ADC Conversion Complete interrupt routine. If
another interrupt wakes up the CPU before the ADC conversion is complete, that
interrupt will be executed, and an ADC Conversion Complete interrupt request will be
generated when the ADC conversion completes. The CPU will remain in active mode
until a new sleep command is executed.
Note that the ADC will not be automatically turned off when entering other sleep modes than Idle
mode and ADC Noise Reduction mode. The user is advised to write zero to ADEN before entering
such sleep modes to avoid excessive power consumption.
Эскизы прикрепленных изображений