Книга: Advanced PIC Microcontroller Projects in C

Using the HID Terminal of mikroC

Using the HID Terminal of mikroC

The mikroC IDE provides a USB terminal interface that can be used for sending and receiving data over the USB bus. This program can be used instead of the Visual Basic program to test the USB interface. The steps are as follows:

• In mikroC IDE, Select Tools?HID Terminal

• Plug the microcontroller into the PC’s USB port

• You should see the product ID under HID Devices:

 ? To turn on LEDs 0,1,4, and 5, type P=3T under Communication and click the SEND button as shown in Figure 8.30 (remember that the ASCII value of number 3 has the bit pattern “0011 0011”)

 ? LEDs 0,1,4, and 5 of the microcontroller should turn on


Figure 8.30: Using the HID terminal to send data to a USB device

Оглавление книги


Генерация: 1.101. Запросов К БД/Cache: 3 / 0
поделиться
Вверх Вниз