cpubbs论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

LabVIEW+单片机学习套件全套教程资料下载[免费]LabVIEW论坛精华列表贴USB0816数据采集卡《LabVIEW宝典》
LabWindows/CVI论坛精华贴NET0816以太网数据采集卡RC0210远程设备授权系统 关闭关停锁定打开设备 户外分布式数据采集
NET1624低速高精度以太网数据采集卡WIFI0824SD无线WIFI网络数据采集卡脱机运行 SD存储 小尺寸微型 串口采集远程采集 安卓 手持移动采集 纪录仪
查看: 2571|回复: 0

RTX51: CLOCK TICKS AND TIME SLICE[转贴]

[复制链接]
发表于 2009-9-29 00:14:38 | 显示全部楼层 |阅读模式
原贴地址:http://www.realview.com.cn/support/kb.asp?ID=450
QUESTIONIn RTX51 Full and RTX51 Tiny, what is meant by a "tick" or a "time slice"?
ANSWERIn RTX51 Full and RTX51 Tiny, "tick" amd "time slice" are synonymous. They are the amount of time it takes for the RTOS to increment its internal timer. This time is derived from the frequency of the oscillator connected to the microcontroller. Events are governed by the kernel orruc in units of the tick or time slice.
If a 12,000,000 Hz (12MHz) oscillator is connected to a "standard" 8051, the internal clock frequency (or the instruction clock) runs at 12,000,000 divided-by 12, or 1,000,000 Hz (1MHz).
The RTX51 tick is incremented every few ticks of the instruction clock. For example, at 12MHz, if the RTX51 tick is incremented for every 2,000 ticks of the instruction clock, then the RTX51 tick increments 500 times per second.
RTX51 Full provides a function called os_set_slice that lets you set the number of instruction ticks per RTX51 tick. Accepted values are 1,000-40,000.
RTX51 Tiny also lets you adjust the RTX51 tick in the CONF_TNY.A51 configuration file. Modify the INT_CLOCK and the accepted values are 1,000-65,535.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|cpubbs论坛. ( 粤ICP备09171248号 )

GMT+8, 2025-3-31 11:44 , Processed in 0.682408 second(s), 7 queries , Gzip On, File On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表