EasyManua.ls Logo

FTDI LibFT4222 - Get Clock

Default Icon
78 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Application Note
AN_329 User Guide For LibFT4222
Version 1.5
Document Reference No.: FT_001060 Clearance No.: FTDI#406
12
Product Page
Document Feedback Copyright © Future Technology Devices International Limited
FT4222 Rev B
YES
FT4222 Rev C
YES
FT4222 Rev D
YES
Summary:
Set the system clock rate. The FT4222H supports 4 clock rates: 80MHz, 60MHz, 48MHz, or 24MHz.
By default, the FT4222H runs at 60MHz clock rate.
Parameters:
ftHandle
Handle of the device.
clk
FT4222 system clock rate:
SYS_CLK_60
SYS_CLK_24
SYS_CLK_48
SYS_CLK_80
Return Value:
FT4222_OK if successful, otherwise the return value is an FT error code.
Error code:
FT4222_DEVICE_NOT_SUPPORTED: This device is not a FT4222 chip.
Example:
FT_HANDLE ftHandle = NULL;
FT_STATUS ftStatus;
FT4222_STATUS ft4222Status;
ftStatus = FT_Open(0, &ftHandle);
if (FT_OK != ftStatus)
{
// open failed
return;
}
// set system clock to 80MHz
ft4222Status = FT4222_SetClock(ftHandle, SYS_CLK_80);
if (FT4222_OK != ft4222Status)
{
// set clock failed
return;
}
FT_Close(ftHandle);
3.2.4 Get Clock
FT4222_STATUS FT4222_GetClock(FT_HANDLE ftHandle, FT4222_ClockRate* pClk)
Supported Chip:
FT4222 chip version
Supported
FT4222 Rev A
YES
FT4222 Rev B
YES
FT4222 Rev C
YES
FT4222 Rev D
YES

Table of Contents