⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 register-layout.txt

📁 CNC 的开放码,EMC2 V2.2.8版
💻 TXT
字号:
Generalities============The register layout of the pluto-servo is an implementation detail andmay vary from release to release of emc.The "address" is auto-incrementing after transfers.Multi-byte data is transferred least-significant-byte-first.Read registers==============The "read" registers (data transfer from pluto to PC) are each 4 byteslong and start at address 0.  Beginning a read within a register (e.g.,at address 2) results in undefined behavior.  Bits without aninterpretation are undefined.Address		Bits	Interpretation0..3		0..20	Stepgen 0 position in 10.10 fixed-point notation4..7		0..20	Stepgen 1 position in 10.10 fixed-point notation8..11		0..20	Stepgen 2 position in 10.10 fixed-point notation12..15		0..20	Stepgen 3 position in 10.10 fixed-point notation16..19		0..15	Digital inputs 0..15Write registers===============The "write" registers (data transfer from pluto to PC) are each 2 byteslong and start at address 0.  Beginning a read within a register (e.g.,at address 1) results in undefined behavior.  Bits without aninterpretation should be sent as 0.Address		Bits	Interpretation0..1		0..11	Stepgen 0 velocity in +-.10 fixed-point notation2..3		0..11	Stepgen 1 velocity in +-.10 fixed-point notation4..5		0..11	Stepgen 2 velocity in +-.10 fixed-point notation6..7		0..11	Stepgen 3 velocity in +-.10 fixed-point notation8..9		0..13	Digital outputs 0..1310..11		0..3	Step time in units of 1600ns		8..11	Direction setup/hold time in units of 1600ns		14	write 1 to enable watchdog and reset WDT		15	step polarity for stepgen 0..3Notes=====Watchdog========The watchdog consists of a 7-bit counter and a 1-bit enable which gives awatchdog period of approximately 6.5ms.  At power-up the enable is FALSE.  Whenbit 14 of register 8..9 is written TRUE, the counter is reset to 0 and enableis set to TRUE. (there is no provision for resetting the watchdog enable toFALSE) Every time the PWM counter overflows (approximately 51.2us) the watchdogcounter is incremented if it is not already at its maximum.  When the watchdogcounter is at its maximum, the dedicated digital outputs and PWM outputs aretristated.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -