/**
* Bit Timing Values for 16MHz clk frequency
*/
#define BITRATE100K16MHZ 0x001C0009
#define BITRATE125K16MHZ 0x001C0007
#define BITRATE250K16MHZ 0x001C0003
#define BITRATE500K16MHZ 0x001C0001
#define BITRATE1000K16MHZ 0x001C0000
/*
* Bit Timing Values for 24MHz clk frequency
*/
#define BITRATE5K24MHZ 0x001C012B
#define BITRATE10K24MHZ 0x001C0095
#define BITRATE20K24MHZ 0x001C004A
#define BITRATE50K24MHZ 0x001C001D
#define BITRATE100K24MHZ 0x001C000E
#define BITRATE125K24MHZ 0x001C000B
#define BITRATE250K24MHZ 0x001C0005
#define BITRATE500K24MHZ 0x001C0002
//#define BITRATE1000K24MHZ 0x00090001
#define BITRATE800K24MHZ 0x00160002
#define BITRATE1000K24MHZ 0x00140002
/*
* Bit Timing Values for 48MHz clk frequency
*/
//#define BITRATE5K48MHZ 0x001C0257 //257=599
//#define BITRATE10K48MHZ 0x001C012B //12B=299
//#define BITRATE20K48MHZ 0x001C0095 // 95=149
//#define BITRATE25K48MHZ 0x001C0077 // 77=119
//#define BITRATE50K48MHZ 0x001C003B // 3B=59
#define BITRATE100K48MHZ 0x001C001D
#define BITRATE125K48MHZ 0x001C0017
#define BITRATE250K48MHZ 0x001C000B
#define BITRATE500K48MHZ 0x001C0005
#define BITRATE1000K48MHZ 0x001C0002
/*
* Bit Timing Values for 60MHz clk frequency
*/
#define BITRATE100K60MHZ 0x00090031
#define BITRATE125K60MHZ 0x00090027
#define BITRATE250K60MHZ 0x00090013
#define BITRATE500K60MHZ 0x00090009
#define BITRATE1000K60MHZ 0x00090004
我用的Fosc = 12M
请问这里的16M、24M、48M、60M是什么频率?是Fpclk,还是什么? |