Cypress Semiconductor CY8C24894 Bedienungsanleitung Seite 53

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 64
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 52
CY3240 USB-I2C Bridge Guide, Doc. # 001-66660 Rev.*B 53
Code Examples
8. The first two lines in the demo.iic file show how to control the LEDs on the board. Position the
cursor in the first line and press [Enter] to send the command. Repeat for the second command
line. Observe that, on sending the first command, the LED1 turns off. The second command
reduces the LED intensity by 50%, as shown in Figure 5-37.
9. Vary the Intensity value in the eighth byte (hex) value of first and second command lines of the
Bridge Control Panel from 00-FF; observe the change in LED intensity on the demo board.
10.Click in the last line, which reads temperature and light data from the device. Click Repeat to
send the last command repeatedly.
11.Click the Chart tab to view the data graphically, as shown in Figure 5-38.
Figure 5-38. Bridge Control Panel with Plot of Temperature and Light Values
12.The ADC value analogous to the die temperature and light intensity incident on the board are
plotted on the Y-axis of the graph versus the sample number on the X-axis of the graph.
13.Save and close the project.
5.2 USBtoIIC Code Example
5.2.1 Project Description
This project demonstrates communication between the bridge and the host. After each packet is
received by the bridge, an acknowledgement is sent to the host before the next transfer operation
begins.
This project uses the following modules:
CMPRG: Used to compare the data programmable reference threshold.
Seitenansicht 52
1 2 ... 48 49 50 51 52 53 54 55 56 57 58 ... 63 64

Kommentare zu diesen Handbüchern

Keine Kommentare