Renesas Single-Chip Microcomputer M38C89T-ADF Informazioni Techniche Pagina 21

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 24
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 20
To demonstrate that the RSK can also instigate communications you can press a switch on the RSK and this will be indicated back to the
host resulting in a message being displayed on the dialog.
This demonstrates that data can be sent successfully between the RSK and the PC. A fixed sized format of data has been chosen for all
messages, one for OUT and one for IN:
IN Message: (RSK to PC)
Byte 1
Bit 0 = LED status.
Bit 1 = ADC value valid indicator.
Bit 2 = Switch pressed indicator.
Byte 2-5 = 32 bit, little endian ADC Value.
OUT Message: (PC to RSK)
Byte 1
Bit 0 = LED toggle request.
Bit 1 = ADC read request.
Bit 2 = LCD set request.
Byte 2-17 = 16 ASCII Characters for LCD.
An IN message is sent whenever a switch on the RSK is pressed, an Interrupt IN transfer is used for this. An IN message is also sent in
response to certain OUT messages, a BULK IN transfer is used for this.
An OUT message is sent whenever a user clicks on one of the dialog buttons, a BULK OUT transfer is used for this.
The LibUSB application consists of the following files:-
Target:
libusb_app.c
libusb_app.h
usbdescriptors.c
Host:
\PC\RSK_LibUSB\...
19
Vedere la pagina 20
1 2 ... 16 17 18 19 20 21 22 23 24

Commenti su questo manuale

Nessun commento