A SERVICE OF

logo

Cypress CY3640 USB Starter Kit
User’s Guide
Cypress Semiconductor Ver 0.993
Page 35
; @parm register | A | Number of microseconds (0=65536).
; @comm Protects A and X registers.
;********************************************************
SysDelay:
; Save em'
push a
push x
SysDelayLoop:
; Save count
push a
; Delay 1ms
nop ; 4 clock cycles (6Mhz or 166us cycle???)
nop
nop
nop
nop
nop
nop
nop
nop
nop
; Done?
pop a
dec a
jnz SysDelayLoop
; Restore em'
pop x
pop a
ret
;********************************************************
; Data Segment (ROM)
;********************************************************
USBSendROMBufferBase:
USBDeviceDescription:
db 12h ; Length
db 01h ; Type (1=device)
db 00h,01h ; Complies to USB Spec. v1.00
db 00h ; Class code (0=??)
db 00h ; SubClass code (0=??)
db 00h ; Protocol (0=none)(9.6.1)
db 08h ; Max. packet size for port0
db B4h,04h ; Vendor ID: (0x4B4=Cypress)
db 02h,00h ; Product ID (0x02=USB Thermometer)
db 09h,00h ; Device release v0.90
db 01h ; Manufacturer string descriptor index (0=none)
db 02h ; Product string descriptor index (0=none)
db 00h ; Serial number string descriptor index (0=none)
db 01h ; Number of possible configurations
USBDeviceDescriptionEnd:
;*************************************************
;
USBConfigurationDescription:
db 09h ; Length
db 02h ; Type (2=config)
db 19h,00h ; Total data length (1 config,1 interface,1 endpoints)
db 01h ; Interface supported (1=???)
db 01h ; Configuration value (1=???)
db 04h ; Confituration string descriptor index (0=none)
db 80h ; Configuration (80h=Bus powered)
db 32h ; Maximum power consumption in 2mA units
USBConfigurationDescriptionEnd:
;*************************************************