打印

关于LPC2368的CAN时钟和串口时钟的问题

[复制链接]
1566|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
S3C2440|  楼主 | 2010-5-22 11:07 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
/**
* 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,还是什么?

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

95

主题

400

帖子

1

粉丝