Программить меги по сетке RS485.

Пpивет All!

Есть сетка RS485 на ATmega8L из восьми точек, потом будет поболее. Для программирования разбираю девайс, выпаиваю платы. Т.к. делалось с возможностью програмить в дальнейшем по RS485. С ходу - нет опыта.

Подскажите какой загрузчик и где взять, чтоб записав первый раз AVRealo-m я смог прошивать любую точку по сетке с IBM. Длина сетки максимум до 50 метров. Переходник 232-485 есть.

Хочется использовать режим 2 (по одному из описаний BOOTloadera). Принимая все байты проц опознаёт адреса и комманды для своей загрузки. Просто отправить с терминалки файл для нужного проца в сетку.

Кварц стоит 32768, частата от внутр. RC на 8 мег. Тоже вопрос. Для 9600 точности должно хватить. Слыхал что есть готовая програмка, запустив которую можно подправить OSCCAL главную частоту от часового кварца.

-= Брест. Павел Гришин =-

... Показывать пальцем неприлично. Используй лазерный прицел

--- Вечно юный Дед 3.00.Alpha4+ * Origin: ..Сисопы, и сочyвствyющие. _Давайте_жить_дpyжно_ :) (2:454/9.62)

-=== End 02 ===-

-= Брест. Павел Гришин =-

... Если не бyдем мешать наyке, сильно ей поможем.

--- Вечно юный Дед 3.00.Alpha4+ * Origin: .Сисопы, и сочyвствyющие _Давайте_жить_дpyжно_ :) (2:454/9.62)

Reply to
Pavel Grishin
Loading thread data ...

У Атмела есть примеры и бутлоадера и калибровки встроенного RC, см.

formatting link
AVR053: Calibration of the internal RC oscillator (14 pages, revision F, updated 09/05) This application note describes a method to calibrate the internal RC oscillator and targets all AVR devices with tunable RC oscillator. Furthermore, an easily adaptable calibration firmware source code is also offered. This allows device calibration using AVR tools, and it can also be used for 3rd party calibration systems, based on production programmers. AVR054: Run-time calibration of the internal RC oscillator (17 pages, revision B, updated 02/06) This application note describes how to calibrate the internal RC oscillator via the UART.

AVR055: Using a 32kHz XTAL for run-time calibration of the internal RC (16 pages, revision C, updated 02/06) This application note describes a fast and accurate way to calibrate the internal RC oscillator using an external 32.768 kHz crystal as input to an asynchronous Timer/Counter.

AVR230: DES Bootloader (24 pages, revision D, updated 04/05) This application note describes how firmware can be updated securely on AVR microcontrollers with bootloader capabilities. The method includes using the Data Encryption Standard (DES) to encrypt the firmware. This application note also supports the Triple Data Encryption Standard (3DES). AVR231: AES Bootloader (30 pages, revision B, updated 04/05) This application note describes how firmware can be updated securely on AVR microcontrollers with bootloader capabilities. The method uses the Advanced Encryption Standard (AES) to encrypt the firmware.

Дешифрование можно отключить, если не нужно.

Reply to
Anton Fedorov

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.