![FTDI FT51A Скачать руководство пользователя страница 147](http://html1.mh-extra.com/html/ftdi/ft51a/ft51a_application-note_2341158147.webp)
Application Note
AN_289 FT51A Programming Guide
Version 1.0
Document Reference No.: FT_000962 Clearance No.: FTDI# 483
146
Copyright © 2015 Future Technology Devices International Limited
3.1.8.1
AIO_intialise
File: ft51_aio_initialise.c
Set up the AIO Cell Controller.
3.1.8.2
AIO_read
File: ft51_aio_read.c
Perform an ADC operation on one analogue pad and wait for the result.
The ADC function can capture a signal in the range of 0 to 3.3 V and express it as an 8 bit integer
(0 to 255).
3.1.9
IOMUX Library
Each pin on the device can be configured to act as the input or output pins from almost any
peripheral. There are exclusions due to differences between analogue and digital signals.
Source Folder: iomux
3.1.9.1
IOMUX_initialise
File: ft51_iomux_initialise.c
Enable the IOMUX hardware to allow mappings of external pins to signals on internal peripherals.
This must be called before any other IOMUX accesses.
3.1.9.2
IOMUX_INPUT
This is a macro to connect a pad to a signal to receive data for a peripheral.
3.1.9.3
IOMUX_OUTPUT
This is a macro to connect a signal to a pad to transmit data from a peripheral.
3.1.9.4
IOMUX_set_pad_config
File: ft51_iomux_set_pad_config.c
Permits the drive current, trigger levels, slew rates and pull parameters of a pad to be configured.
3.1.9.5
IOMUX_get_pad_config
File: ft51_iomux_get_pad_config.c
Retrieves the settings for the drive current, trigger levels, slew rates and pull parameters of a pad.
3.1.10
Watchdog Library
The watchdog timer library will allow a watchdog timer to be started with a configurable period.
When the watchdog expires it will reset the device. To prevent the watchdog from expiring it needs
regular feeding.
When the device is powered up it is possible to see if the watchdog was the cause of the reset.
Source Folder: watchdog
3.1.10.1
watchdog_enable
File: ft51_watchdog_enable.c
Setup the watchdog timer with a start value of 0 to 31. The start value is used to set a single bit in
a 32 bit timer register. The timer counts down from this value and will reset the device when it
reaches zero.