Полезное для программистов:

Фриланс
Новости
Статьи
   
Рубрики:


Пример инициализации и основные события, USBN9602/3/4

Поиск:
Это пример инициализации USBN9604 и события возникающие при подключении шнура USB + приемопередача.

[uart_init] uart initialization is completed.
[sys_init] atmega103 initialization is completed.
[usb_reset] usbn9604 h/w reset is completed.
[usb_init] MCNTRL = 0xc4
[usb_init] CCONF = 0x84
[usb_init] FAR = 0x80
[usb_init] EPC0 = 0x0
[usb_init] NAKMSK = 0xf0
[usb_init] TXMSK = 0xf
[usb_init] RXMSK = 0xf
[usb_init] ALTMSK = 0x50
[usb_init] MAMSK = 0xd6
[usb_init] TXC0 = 0x0
[usb_init] RXC0 = 0x0
[usb_init] NFSR = 0x2
[usb_init] MCNTRL = 0xcc
[usb_init] usbn9604 initialization is completed.

[usb_isr:FAR(0x80)] MAEV(0xa): ALT
[alt_evnt] ALTEV(0x3a): SD3

[usb_isr:FAR(0x80)] MAEV(0xa): ALT
[alt_evnt] ALTEV(0xf2): RESET_A

[usb_isr:FAR(0x80)] MAEV(0x68): RX_EV
[rx_evnt] RXEV(0x1): RXFIFO0
[rx_0] SETUP_RX (0x80 0x6 0x0 0x1 0x0 0x0 0x40 0x0) STD REQ. GET_DESCRIPTOR
[getdescriptor] Sending DEVICE desc.
[senddesc] (DESC_SIZE=18) ( 0x12 0x1 0x0 0x1 0x0 0x0 0x0 0x8 )

[usb_isr:FAR(0x80)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=10) ( 0xff 0xff 0x4 0x96 0x0 0x1 0x1 0x2 )

[usb_isr:FAR(0x80)] MAEV(0x18): NAK
[nak_evnt] NAKEV(0x11): NAK_O0
[onak0]

[usb_isr:FAR(0x80)] MAEV(0x18): NAK
[nak_evnt] NAKEV(0x10): NAK_O0
[onak0]

[usb_isr:FAR(0x80)] MAEV(0x68): RX_EV
[rx_evnt] RXEV(0x1): RXFIFO0
[rx_0] OUT PKT.

[usb_isr:FAR(0x80)] MAEV(0x48): RX_EV
[rx_evnt] RXEV(0x1): RXFIFO0
[rx_0] SETUP_RX (0x0 0x5 0x2 0x0 0x0 0x0 0x0 0x0) STD REQ. SET_ADDRESS(FAR:0x82)

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
FAR(0x82)

[usb_isr:FAR(0x82)] MAEV(0x48): RX_EV
[rx_evnt] RXEV(0x1): RXFIFO0
[rx_0] SETUP_RX (0x80 0x6 0x0 0x1 0x0 0x0 0x12 0x0) STD REQ. GET_DESCRIPTOR
[getdescriptor] Sending DEVICE desc.
[senddesc] (DESC_SIZE=18) ( 0x12 0x1 0x0 0x1 0x0 0x0 0x0 0x8 )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=10) ( 0xff 0xff 0x4 0x96 0x0 0x1 0x1 0x2 )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=2) ( 0x0 0x1 )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=0)

[usb_isr:FAR(0x82)] MAEV(0x18): NAK
[nak_evnt] NAKEV(0x11): NAK_O0
[onak0]

[usb_isr:FAR(0x82)] MAEV(0x18): NAK
[nak_evnt] NAKEV(0x11): NAK_O0
[onak0]

[usb_isr:FAR(0x82)] MAEV(0x48): RX_EV
[rx_evnt] RXEV(0x1): RXFIFO0
[rx_0] OUT PKT.

[usb_isr:FAR(0x82)] MAEV(0x48): RX_EV
[rx_evnt] RXEV(0x1): RXFIFO0
[rx_0] SETUP_RX (0x80 0x6 0x0 0x2 0x0 0x0 0x9 0x0) STD REQ. GET_DESCRIPTOR
[getdescriptor] Sending CONFIGURATION desc.
[senddesc] (DESC_SIZE=9) ( 0x9 0x2 0x3c 0x0 0x1 0x1 0x4 0xa0 )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=1) ( 0x32 )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=0)

[usb_isr:FAR(0x82)] MAEV(0x18): NAK
[nak_evnt] NAKEV(0x11): NAK_O0
[onak0]

[usb_isr:FAR(0x82)] MAEV(0x18): NAK
[nak_evnt] NAKEV(0x11): NAK_O0
[onak0]

[usb_isr:FAR(0x82)] MAEV(0x48): RX_EV
[rx_evnt] RXEV(0x1): RXFIFO0
[rx_0] OUT PKT.

[usb_isr:FAR(0x82)] MAEV(0x48): RX_EV
[rx_evnt] RXEV(0x1): RXFIFO0
[rx_0] SETUP_RX (0x80 0x6 0x0 0x2 0x0 0x0 0xff 0x0) STD REQ. GET_DESCRIPTOR
[getdescriptor] Sending CONFIGURATION desc.
[senddesc] (DESC_SIZE=60) ( 0x9 0x2 0x3c 0x0 0x1 0x1 0x4 0xa0 )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=52) ( 0x32 0x9 0x4 0x0 0x0 0x6 0x0 0x0 )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=44) ( 0x0 0x5 0x7 0x5 0x81 0x2 0x40 0x0 )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=36) ( 0xff 0x7 0x5 0x2 0x2 0x40 0x0 0xff )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=28) ( 0x7 0x5 0x83 0x2 0x40 0x0 0xff 0x7 )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=20) ( 0x5 0x4 0x2 0x40 0x0 0xff 0x7 0x5 )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=12) ( 0x85 0x2 0x40 0x0 0xff 0x7 0x5 0x6 )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=4) ( 0x2 0x40 0x0 0xff )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=0)

[usb_isr:FAR(0x82)] MAEV(0x18): NAK
[nak_evnt] NAKEV(0x11): NAK_O0
[onak0]

[usb_isr:FAR(0x82)] MAEV(0x18): NAK
[nak_evnt] NAKEV(0x11): NAK_O0
[onak0]

[usb_isr:FAR(0x82)] MAEV(0x48): RX_EV
[rx_evnt] RXEV(0x1): RXFIFO0
[rx_0] OUT PKT.

[usb_isr:FAR(0x82)] MAEV(0x48): RX_EV
[rx_evnt] RXEV(0x1): RXFIFO0
[rx_0] SETUP_RX (0x80 0x6 0x0 0x3 0x0 0x0 0xff 0x0) STD REQ. GET_DESCRIPTOR
[getdescriptor] Sending XSTRING desc.
[sendstring] language string (DESC_INDEX: 78, DESC_SIZE: 4)
[senddesc] (DESC_SIZE=4) ( 0x4 0x3 0x9 0x4 )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=0)

[usb_isr:FAR(0x82)] MAEV(0x18): NAK
[nak_evnt] NAKEV(0x11): NAK_O0
[onak0]

[usb_isr:FAR(0x82)] MAEV(0x18): NAK
[nak_evnt] NAKEV(0x11): NAK_O0
[onak0]

[usb_isr:FAR(0x82)] MAEV(0x48): RX_EV
[rx_evnt] RXEV(0x1): RXFIFO0
[rx_0] OUT PKT.

[usb_isr:FAR(0x82)] MAEV(0x48): RX_EV
[rx_evnt] RXEV(0x1): RXFIFO0
[rx_0] SETUP_RX (0x80 0x6 0x2 0x3 0x9 0x4 0xff 0x0) STD REQ. GET_DESCRIPTOR
[getdescriptor] Sending XSTRING desc.
[sendstring] product string (DESC_INDEX: 120, DESC_SIZE: 30)
[senddesc] (DESC_SIZE=30) ( 0x69 0x0 0x63 0x0 0x6 0x3 0x54 0x0 )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=22) ( 0x47 0x0 0x1a 0x3 0x42 0x0 0x61 0x0 )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=14) ( 0x73 0x0 0x69 0x0 0x63 0x0 0x20 0x0 )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=6) ( 0x43 0x0 0x6f 0x0 0x6e 0x0 )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=0)

[usb_isr:FAR(0x82)] MAEV(0x18): NAK
[nak_evnt] NAKEV(0x11): NAK_O0
[onak0]

[usb_isr:FAR(0x82)] MAEV(0x18): NAK
[nak_evnt] NAKEV(0x11): NAK_O0
[onak0]

[usb_isr:FAR(0x82)] MAEV(0x48): RX_EV
[rx_evnt] RXEV(0x1): RXFIFO0
[rx_0] OUT PKT.

[usb_isr:FAR(0x82)] MAEV(0x48): RX_EV
[rx_evnt] RXEV(0x1): RXFIFO0
[rx_0] SETUP_RX (0x80 0x6 0x0 0x3 0x0 0x0 0xff 0x0) STD REQ. GET_DESCRIPTOR
[getdescriptor] Sending XSTRING desc.
[sendstring] language string (DESC_INDEX: 78, DESC_SIZE: 4)
[senddesc] (DESC_SIZE=4) ( 0x4 0x3 0x9 0x4 )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=0)

[usb_isr:FAR(0x82)] MAEV(0x18): NAK
[nak_evnt] NAKEV(0x11): NAK_O0
[onak0]

[usb_isr:FAR(0x82)] MAEV(0x18): NAK
[nak_evnt] NAKEV(0x11): NAK_O0
[onak0]

[usb_isr:FAR(0x82)] MAEV(0x48): RX_EV
[rx_evnt] RXEV(0x1): RXFIFO0
[rx_0] OUT PKT.

[usb_isr:FAR(0x82)] MAEV(0x48): RX_EV
[rx_evnt] RXEV(0x1): RXFIFO0
[rx_0] SETUP_RX (0x80 0x6 0x2 0x3 0x9 0x4 0xff 0x0) STD REQ. GET_DESCRIPTOR
[getdescriptor] Sending XSTRING desc.
[sendstring] product string (DESC_INDEX: 120, DESC_SIZE: 30)
[senddesc] (DESC_SIZE=30) ( 0x69 0x0 0x63 0x0 0x6 0x3 0x54 0x0 )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=22) ( 0x47 0x0 0x1a 0x3 0x42 0x0 0x61 0x0 )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=14) ( 0x73 0x0 0x69 0x0 0x63 0x0 0x20 0x0 )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=6) ( 0x43 0x0 0x6f 0x0 0x6e 0x0 )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=0)

[usb_isr:FAR(0x82)] MAEV(0x18): NAK
[nak_evnt] NAKEV(0x11): NAK_O0
[onak0]

[usb_isr:FAR(0x82)] MAEV(0x18): NAK
[nak_evnt] NAKEV(0x11): NAK_O0
[onak0]

[usb_isr:FAR(0x82)] MAEV(0x48): RX_EV
[rx_evnt] RXEV(0x1): RXFIFO0
[rx_0] OUT PKT.

[usb_isr:FAR(0x82)] MAEV(0x48): RX_EV
[rx_evnt] RXEV(0x1): RXFIFO0
[rx_0] SETUP_RX (0x80 0x6 0x0 0x1 0x0 0x0 0x12 0x0) STD REQ. GET_DESCRIPTOR
[getdescriptor] Sending DEVICE desc.
[senddesc] (DESC_SIZE=18) ( 0x12 0x1 0x0 0x1 0x0 0x0 0x0 0x8 )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=10) ( 0xff 0xff 0x4 0x96 0x0 0x1 0x1 0x2 )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=2) ( 0x0 0x1 )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=0)

[usb_isr:FAR(0x82)] MAEV(0x18): NAK
[nak_evnt] NAKEV(0x11): NAK_O0
[onak0]

[usb_isr:FAR(0x82)] MAEV(0x18): NAK
[nak_evnt] NAKEV(0x11): NAK_O0
[onak0]

[usb_isr:FAR(0x82)] MAEV(0x48): RX_EV
[rx_evnt] RXEV(0x1): RXFIFO0
[rx_0] OUT PKT.

[usb_isr:FAR(0x82)] MAEV(0x48): RX_EV
[rx_evnt] RXEV(0x1): RXFIFO0
[rx_0] SETUP_RX (0x80 0x6 0x0 0x2 0x0 0x0 0x9 0x2) STD REQ. GET_DESCRIPTOR
[getdescriptor] Sending CONFIGURATION desc.
[senddesc] (DESC_SIZE=60) ( 0x9 0x2 0x3c 0x0 0x1 0x1 0x4 0xa0 )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=52) ( 0x32 0x9 0x4 0x0 0x0 0x6 0x0 0x0 )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=44) ( 0x0 0x5 0x7 0x5 0x81 0x2 0x40 0x0 )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=36) ( 0xff 0x7 0x5 0x2 0x2 0x40 0x0 0xff )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=28) ( 0x7 0x5 0x83 0x2 0x40 0x0 0xff 0x7 )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=20) ( 0x5 0x4 0x2 0x40 0x0 0xff 0x7 0x5 )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=12) ( 0x85 0x2 0x40 0x0 0xff 0x7 0x5 0x6 )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=4) ( 0x2 0x40 0x0 0xff )

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
[senddesc] (DESC_SIZE=0)

[usb_isr:FAR(0x82)] MAEV(0x18): NAK
[nak_evnt] NAKEV(0x11): NAK_O0
[onak0]

[usb_isr:FAR(0x82)] MAEV(0x18): NAK
[nak_evnt] NAKEV(0x11): NAK_O0
[onak0]

[usb_isr:FAR(0x82)] MAEV(0x48): RX_EV
[rx_evnt] RXEV(0x1): RXFIFO0
[rx_0] OUT PKT.

[usb_isr:FAR(0x82)] MAEV(0x48): RX_EV
[rx_evnt] RXEV(0x1): RXFIFO0
[rx_0] SETUP_RX (0x0 0x9 0x1 0x0 0x0 0x0 0x0 0x0) STD REQ. SET_CONFIGURATION
[setconfiguration] USB_CONFIG(0x1): flush all EPs.

[usb_isr:FAR(0x82)] MAEV(0xc): TX_EV
[tx_evnt] TXEV(0x1): TXFIFO0
[tx_0] TX_DONE, ACK_STAT.
Автор: PILOT
Сайт: http://www.sinichka.ru






Просмотров: 2537

 

 

Новые статьи:


Популярные:
  1. Как сделать цикличным проигрывание MIDI-файла?
  2. Создание AVI файла из рисунков
  3. Как устройство "отключить в данной конфигурации"?
  4. Kто в данный момент присоединен через Сеть?
  5. Как узнать количество доступной памяти?
  6. Как реализовать в RichEdit разноцветный текст?
  7. Как скрыть свое приложение от ProcessViewer
  8. Как программно нажать/скрыть/показ кнопку "Start"?
  9. Модуль работы с ресурсами в PE файлах
10. Функции вызова диалоговых окон выбора
11. Проверка граматики средствами Word'а из Delphi.
12. Модуль для упрощенного вызова сообщений
13. Функции для записи и чтение своих данных в, ЕХЕ- файле
14. Рекурсивный просмотр директорий
15. Network Traffic Monitor
16. Разные модули
17. Универсальная функция для обращения к любым экспортируем функциям DLL
18. Библиотека от VladS
19. Протектор для UPX'а
20. Еще об ICQ, сообщения по контакт листу?
21. Использование открытых интерфейсов
22. Теория и практика использования RTTI
23. Работа с TApplication
24. Примеры использования Drag and Drop для различных визуальных компонентов
25. Что такое порт? Правила для работы с портами
26. Симфония на клавиатуре
27. Загрузка DLL
28. Исправление автоинкремента
29. Взаимодействие с чужими окнами
30. Проверить дубляжи в столбце


 

 

 
 
На главную