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
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:
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: