[an error occurred while processing this directive] [an error occurred while processing this directive]
Ой, макросы забыл
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)
[an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive]

Отправлено Yes! 07 декабря 2001 г. 19:59
В ответ на: Ессно. Семеро - с ложкой ... Помните? отправлено Yes! 07 декабря 2001 г. 19:52

// #define DS1820 5
#define DS18_Zero PORTC &= ~(1<<5) // Output 0
#define DS18_One PORTC |= (1<<5) // Output 1
#define DS18_In DDRC &= ~(1<<5) // Input Hi-Z
#define DS18_Out DDRC |= (1<<5) // Output
#define DS18_Test (PINC & (1<<5)) // Input?

Сорри если чего не дошло

Составить ответ  |||  Конференция  |||  Архив

Ответы



Перейти к списку ответов  |||  Конференция  |||  Архив  |||  Главная страница  |||  Содержание  |||  Без кадра

E-mail: info@telesys.ru