dscore
                差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
| dscore [2015/03/02 20:17] – [Features] yaasan | dscore [2018/05/19 06:38] (現在) – [About this] yaasan | ||
|---|---|---|---|
| 行 3: | 行 3: | ||
| ===== About this ===== | ===== About this ===== | ||
| - | DSCore is a core hardware and software of DSmain | + | DSCore is a core hardware and software of DSmain. It is implemented to AVR micro controller. You can see the AVR chip on the board. | 
| + | |||
| + | DSCoreは、DSmainで使用しているDCCならびにMarklin Motorolaフォーマットのパケットジェネレータです。ATMEGA328Pを使用できます。また、ソースコードを工夫することで、ATMEGA88でも使用できます。オープンソースのパケットジェネレータとして、LGPLのライセンスの下で自由にご利用いただけます。 | ||
| ===== Features ===== | ===== Features ===== | ||
| 行 13: | 行 15: | ||
| * Required Toshiba motor controller as [[http:// | * Required Toshiba motor controller as [[http:// | ||
| * Communicate via SPI mode 0, LSB first, 1Mbps(default tested speed. The speed depends on your SPI master). | * Communicate via SPI mode 0, LSB first, 1Mbps(default tested speed. The speed depends on your SPI master). | ||
| + | |||
| + | ===== Download ===== | ||
| + | |||
| + | HEX file: | ||
| + | [[http:// | ||
| + | |||
| + | Source code(AVR Studio required): | ||
| + | [[http:// | ||
| + | |||
| ===== Specification ===== | ===== Specification ===== | ||
| 行 18: | 行 29: | ||
| ^ ^DCC ^Marklin Motorola 2(MM2) ^notes ^ | ^ ^DCC ^Marklin Motorola 2(MM2) ^notes ^ | ||
| |speed step |14, 28, 128 | 14 | | | |speed step |14, 28, 128 | 14 | | | ||
| - | |function | F1-F28 | F0-F16| | | + | |function | F0-F28 | F0-F4| | | 
| |locomotive address | 1-9999| 1-255| | | |locomotive address | 1-9999| 1-255| | | ||
| |accessory address | 1-2044| 1-320| | | |accessory address | 1-2044| 1-320| | | ||
| - | |CV | write only | developping| | | + | |CV | write only* | developping| | | 
| |Preamble pulse | long preamble supported| none | | | |Preamble pulse | long preamble supported| none | | | ||
| + | |||
| + | * Supported only service mode packet and direct mode | ||
| ===== Pulse generator ===== | ===== Pulse generator ===== | ||
| 行 38: | 行 51: | ||
| * Motor driver' | * Motor driver' | ||
| * Short circuit protection using Poly switch (DSmain and DSpi only) | * Short circuit protection using Poly switch (DSmain and DSpi only) | ||
| + | |||
| ===== SPI communication specification ===== | ===== SPI communication specification ===== | ||
| 行 68: | 行 82: | ||
| |Locomotive direction | 5 bytes | 0x55 ADDR_LOW ADDR_HIGH DIR CRC | | | |Locomotive direction | 5 bytes | 0x55 ADDR_LOW ADDR_HIGH DIR CRC | | | ||
| |Accessory | 6 bytes | 0x26 ADDR_LOW ADDR_HIGH 0x00 SWITCH CRC | | | |Accessory | 6 bytes | 0x26 ADDR_LOW ADDR_HIGH 0x00 SWITCH CRC | | | ||
| - | |CV write | 5 bytes | 0x40 ADDR_LOW ADDR_HIGH | + | |CV write | 5 bytes | 0x40 CVADDR_LOW CVADDR_HIGH | 
| 行 81: | 行 95: | ||
| |POWER | ON means 0. OFF means 1. | | |POWER | ON means 0. OFF means 1. | | ||
| |SWITCH | 0 means diverging. 1 means straight. | | |SWITCH | 0 means diverging. 1 means straight. | | ||
| - | |CVADDR_LOW | low byte of CV address. Set 0x00. | | + | |CVADDR_LOW | low byte of CV address. Set CV Addr. | | 
| - | |CVADDR_HIGH | high byte of CV address. If DCC use, set 0xC0. | | + | |CVADDR_HIGH | high byte of CV address. If DCC use, set 0x00. if DS-DCC decoder uses, offset 0x40. If MM2 uses offset 0x80. | | 
| |CV_VALUE | CV value | | |CV_VALUE | CV value | | ||
| |EX_CMD | 0: | |EX_CMD | 0: | ||
| 行 94: | 行 108: | ||
| ^AVR chip ^Extended ^High ^Low ^Notes^ | ^AVR chip ^Extended ^High ^Low ^Notes^ | ||
| - | |ATMEGA88 |0xF9 | 0xDF | 0xE2| supporets DSCore firmware rev.156 | | + | |ATMEGA88 |0xF9 | 0xDF | 0xE2| supporets DSCore firmware rev.156 | 
| |ATMEGA328 | 0x07 | 0xD9 | 0xE2| supporets DSCore firmware rev.178 or later | | |ATMEGA328 | 0x07 | 0xD9 | 0xE2| supporets DSCore firmware rev.178 or later | | ||
| 行 103: | 行 117: | ||
| {{: | {{: | ||
| + | ===== License for using DSCore firmware ===== | ||
| + | DSCore License is LGPL. | ||
| + | DSCoreのライセンス形態はLGPLです。不都合のある方は、DesktopStationと契約(ライセンス費用のお支払い)を行うことで、ソースコード公開の義務なしに使用することができます。 | ||
dscore.1425295054.txt.gz · 最終更新: 2015/03/02 20:17 by yaasan
                
                