dscore
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン最新のリビジョン両方とも次のリビジョン | ||
dscore [2015/04/14 14:37] – [SPI communication specification] yaasan | dscore [2018/05/19 06:37] – [About this] yaasan | ||
---|---|---|---|
行 3: | 行 3: | ||
===== About this ===== | ===== About this ===== | ||
- | DSCore is a core hardware and software of DSmain and DCC/ | + | DSCore is a core hardware and software of DS Shield. It is implemented to AVR micro controller. You can see the AVR chip on the board. |
+ | |||
+ | DSCoreは、DSシールドをはじめとするDesktopStationのコマンドステーションで使用している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 | F0-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| | | ||
行 40: | 行 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 ===== | ||
行 70: | 行 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 |
行 83: | 行 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. if DS-DCC decoder uses, set0xC0. | | + | |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: | ||
行 96: | 行 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 | | ||
行 105: | 行 117: | ||
{{: | {{: | ||
+ | ===== License for using DSCore firmware ===== | ||
+ | DSCore License is LGPL. | ||
+ | DSCoreのライセンス形態はLGPLです。不都合のある方は、DesktopStationと契約(ライセンス費用のお支払い)を行うことで、ソースコード公開の義務なしに使用することができます。 |
dscore.txt · 最終更新: 2018/05/19 06:38 by yaasan