ST CR95HF Application Note

ST CR95HF Application Note

Developing your own visual basic or c/c++ application on a demonstration board

Advertisement

Quick Links

AN3954
Application note
Developing your own Visual Basic or C/C++ application
on a CR95HF demonstration board
Introduction
This application note explains how to develop an application using either Visual Basic or
C/C++ language to drive a CR95HF demonstration board from a host computer.
CR95HF demonstration board is a kit that allows the user to evaluate the performance of
STMicroelectronics CR95HF, a 13.56 MHz multiprotocol contactless transceiver. It includes
a ready-to-use board to interface with the CR95HF host PC demonstration software through
an USB interface. The CR95HF demonstration board is included in the M24LR-
DISCOVERY kit (see
Figure
1).
The board is powered through the USB port, and no external power supply is required. It is
made up of a CR95HF, a 48 mm x 34 mm, 13.56 MHz inductive etched antenna and its
associated tuning components. The CR95HF communicates with the STM32F103CB 32-bit
core microcontroller via the SPI bus.
A dynamic link library (DLL) file is used by the host computer to manage several functions
and to communicate with both the STM32 MCU and the CR95HF
Source code examples described in this application note and additional demonstrations can
be found in the package STSW-95HF002, which can be downloaded from www.st.com.
Some basic examples are available in C/C++, additional examples are available in a Visual
Basic 6 project, among them NDEF message management on Type 4A and Type 5,
ST25DV user interface and FTM demonstrations. DLL file is also available in this package.

Figure 1. CR95HF demonstration board embedded in the M24LR-Discovery kit

For more information, refer to the following documents, available on www.st.com:
• M24LR-DISCOVERY databrief
• CR95HF datasheet
• User manual UM1084 "CR95HF development software"
• STSW-95HF002 source code example
January 2017
Doc ID022016 Rev 4
1/47
www.st.com
1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CR95HF and is the answer not in the manual?

Questions and answers

Summarization of Contents

Getting Started with CR95HF Board
Connecting the Board to the Computer
Details the connection of the CR95HF demonstration board to a host computer via USB.
Using the DLL System File
Explains the CR95HF.dll file for controlling the board and interfacing with STM32 MCU and CR95HF IC.
CR95HF Function Descriptions
Functions for DLL Installation and USB Connection
Covers functions for initial setup, including CR95HFDII_GetDLLrev and USB connection checks.
Functions to Communicate with the STM32 MCU
Describes functions for interacting with the STM32 microcontroller (e.g., Echo, GetMCUrev).
Functions to Communicate with the CR95HF IC
Details functions for direct communication with the CR95HF IC (e.g., Idn, Select, STCmd).
Functions to Communicate with an RF Tag
Explains functions for interacting with RF tags, primarily CR95HFDII_SendReceive.
SendReceive Request and Response Maximum Data Size
Provides information on maximum data sizes for SendReceive requests and responses.

Table of Contents