![FTDI FT51A Скачать руководство пользователя страница 8](http://html1.mh-extra.com/html/ftdi/ft51a/ft51a_application-note_2341158008.webp)
Application Note
AN_289 FT51A Programming Guide
Version 1.0
Document Reference No.: FT_000962 Clearance No.: FTDI# 483
7
Copyright © 2015 Future Technology Devices International Limited
1
Introduction
This guide documents the registers and internal architecture of the FT51A. It also covers the
firmware libraries and samples provided for the FT51A by FTDI.
1.1
Overview
The FT51A series of devices provides a USB device interface, a built-in USB hub and an 8051
compatible microcontroller. The 8051 compatible component is referred to as the ‘core’.
There is 16kB of program storage in MTP (Multiple Time Programmable) memory, 16kB of Shadow
RAM (from where code is run), 8kB of data RAM and 128 bytes of internal RAM.
Details of the device are fully documented in the FT51A Series Datasheets which can be obtained
from the FTDI website.
http://www.ftdichip.com/Products/ICs/FT51.html
Additionally there are the following hardware interfaces:
-
GPIO
-
UART
-
PWM
-
SPI Master and Slave
-
I2C Master and Slave
-
FT245 Parallel
-
ADC
-
Additional Timers
The FT51A has an internal USB Full Speed device controller that is register compatible with an
. An internal on-chip USB hub can optionally be enabled to allow a single downstream port
from the FT51A.
1.2
Features
The firmware libraries for the FT51A have the following features:
-
Abstracted access to USB functions for simple implementation of device emulation.
-
Functions for performing basic access to ADC, SPI Master, I2C Master, I2C Slave and UART
hardware interfaces.
-
Macros and definitions for hardware related features.
-
Additional libraries for LCD devices, DFU (Device Firmware Update), TMC (Test and
Measurement).
The use of the firmware libraries is shown in the sample applications:
-
DFU Firmware update,
-
Keyboard and Mouse demos,
-
Test and Measurement Class,
-
Interfacing to FT800 demos,
-
Interfacing to LCD screen.
1.3
Scope
This guide is intended for developers who are creating applications, extending FTDI provided
applications or implementing example applications for the FT51A.
In the reference of the FT51A, an “application” refers to firmware that runs on the FT51A;
“libraries” are source code provided by FTDI to help users access specific hardware features of the
chip.