Я делал...
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)

миниатюрный аудио-видеорекордер mAVR

Отправлено artem 28 декабря 2004 г. 11:22
В ответ на: А в Си есть вообще двоичные числа? отправлено Bill 28 декабря 2004 г. 11:17

#define BIN0000_0000 0x0
#define BIN0000_0001 0x1
#define BIN0000_0010 0x2
#define BIN0000_0011 0x3
#define BIN0000_0100 0x4
#define BIN0000_0101 0x5
#define BIN0000_0110 0x6
#define BIN0000_0111 0x7
#define BIN0000_1000 0x8
#define BIN0000_1001 0x9
#define BIN0000_1010 0xa
#define BIN0000_1011 0xb
#define BIN0000_1100 0xc
#define BIN0000_1101 0xd
#define BIN0000_1110 0xe
#define BIN0000_1111 0xf
#define BIN0001_0000 0x10
#define BIN0001_0001 0x11
#define BIN0001_0010 0x12
#define BIN0001_0011 0x13
#define BIN0001_0100 0x14
#define BIN0001_0101 0x15
#define BIN0001_0110 0x16
#define BIN0001_0111 0x17
#define BIN0001_1000 0x18
#define BIN0001_1001 0x19
#define BIN0001_1010 0x1a
#define BIN0001_1011 0x1b
#define BIN0001_1100 0x1c
#define BIN0001_1101 0x1d
#define BIN0001_1110 0x1e
#define BIN0001_1111 0x1f
#define BIN0010_0000 0x20
#define BIN0010_0001 0x21
#define BIN0010_0010 0x22
#define BIN0010_0011 0x23
#define BIN0010_0100 0x24
#define BIN0010_0101 0x25
#define BIN0010_0110 0x26
#define BIN0010_0111 0x27
#define BIN0010_1000 0x28
#define BIN0010_1001 0x29
#define BIN0010_1010 0x2a
#define BIN0010_1011 0x2b
#define BIN0010_1100 0x2c
#define BIN0010_1101 0x2d
#define BIN0010_1110 0x2e
#define BIN0010_1111 0x2f
#define BIN0011_0000 0x30

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

Ответы



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

E-mail: info@telesys.ru