Maxim Integrated DS8007 Скачать руководство пользователя страница 8

Figure 6. DS5002FP boot loader banner.

EV Kit LCD Module

To demonstrate one of the DS8007 EV kit's very useful features, we will now create an application
program that will display a message on the 2-line, 20-character Liquid Crystal Display (LCD). Before
beginning, however, we must set the LCD contrast adjustment so that it displays the message
appropriately when the program is executed. First, apply power to the board; the LCD should be blank.
Locate variable resistor R7 on the board (see Figure 2 above), and using a small screwdriver, adjust the
resistor until individual 5 x 7 dot blocks appear in the character positions of the display. Slowly adjust R7
until the blocks just disappear. This sets the contrast of the LCD so that the characters will be visible,
but spaces will not.

Follow steps 1 through 10 above (

Create the µVision Project

) to create a new project and executable

file. Use DS8007-2 for the project file name and DS8007-2.c for the C source-code file name. The
source code for this program is given below in 

Appendix A

. If you prefer not to type in this information,

the files are included in a .ZIP file located at the FTP web site mentioned above.

Once the HEX file has been created, follow the steps above (

Loading the Executable File

) to load it into

the board's memory. After disconnecting from the loader, the LCD will display the two-line message.

Conclusion

The DS8007 EV kit provides a convenient, proven platform for evaluating the DS8007 Dual Smart Card

Page 8 of 11

Содержание DS8007

Страница 1: ...executed by the on board DS5002FP microcontroller A simple Hello World example is provided as well as a number of functions in C source code that will demonstrate use of the on board LCD module Overv...

Страница 2: ...s not autoboot browse the CD root folder and double click on the index html file 2 Click the Install MTK button and click the Run button to begin installation 3 During the MTK installation select the...

Страница 3: ...ard s AVDD connected to smart card socket 1 pin S2 JU5 Installed Connect pins 2 and 3 Board s AVDD connected to smart card socket 1 pin S1 through 10K JU6 Not Installed JU7 Not Installed JU8 Installed...

Страница 4: ...New and typing the following information If you prefer downloading this file it is available for download ZIP 11kB File DS8007 1 C include REG5000 H special function register declarations for the DS50...

Страница 5: ...te Executable if it is not already and be sure that the Create HEX File box is checked Select the HEX Format of HEX 80 from the dropdown selector box as shown in Figure 4 All other selections in this...

Страница 6: ...lect Device window Figure 5 and click OK 3 Click Options and then click Configure Serial Port Select the Port e g COM1 of the PC to which the DS8007 board is connected Then select the Speed 38400 from...

Страница 7: ...r User s Guide for details which in this case is 01 The DS8007 board is now ready to load the program file created with the Keil development tools 1 Click File and then select Load SRAM Select the fil...

Страница 8: ...y adjust R7 until the blocks just disappear This sets the contrast of the LCD so that the characters will be visible but spaces will not Follow steps 1 through 10 above Create the Vision Project to cr...

Страница 9: ...ar 5 if tmp 0 LCD_WRStr LCD_Str Write string to LCD strcpy LCD_Str Smart Card Interface Create 2nd line of LCD text tmp LCD_Curpos 2 1 Position cursor on line 2 char 1 if tmp 0 LCD_WRStr LCD_Str Write...

Страница 10: ...0 LCD module void LCD_WRCmd uint8_t LCD_Cmd LCD_EN 0 Make sure that the LCD enable is low LCD_RS 0 Set LCD register select and R W lines LCD_RW 0 LCD_Busy Make sure that the display is not busy LCD_Da...

Страница 11: ...osoft Corporation Related Parts DS5002FP Secure Microprocessor Chip Free Samples DS5250 High Speed Secure Microcontroller DS8007 Multiprotocol Dual Smart Card Interface Free Samples DS8007 KIT DS8007...

Отзывы: