ユーザ用ツール

サイト用ツール


dscore

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
dscore [2015/03/14 10:01]
– [Specification] 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 and DCC/MM2 Shield. It is implemented to AVR micro controller. You can see the AVR chip on the board.+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://toshiba.semicon-storage.com/info/lookup.jsp?pid=TB6643KQ&lang=en&region=apc|TB6643KQ]] or [[http://toshiba.semicon-storage.com/info/lookup.jsp?pid=TB6568KQ&lang=en&region=apc|TB6568KQ]].   * Required Toshiba motor controller as [[http://toshiba.semicon-storage.com/info/lookup.jsp?pid=TB6643KQ&lang=en&region=apc|TB6643KQ]] or [[http://toshiba.semicon-storage.com/info/lookup.jsp?pid=TB6568KQ&lang=en&region=apc|TB6568KQ]].
   * 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://desktopstation.net/download.html|Go to download page]].
 +
 +Source code(AVR Studio required):
 +[[http://desktopstation.net/bin/DSCore_20170721.zip]]
 +
  
 ===== 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 (Supported only service mode packet and direct mode) | 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's(TB6643KQ/TB6568KQ) protection (Thermal and short circuit protection)   * Motor driver's(TB6643KQ/TB6568KQ) protection (Thermal and short circuit protection)
   * 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_VALUE CRC | |+|CV write | 5 bytes | 0x40 CVADDR_LOW CVADDR_HIGH CV_VALUE CRC | |
  
  
行 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:Default(DCC28, MM2 14), 1:DCC14/MM2 28, 2:DCC128 | |EX_CMD | 0:Default(DCC28, MM2 14), 1:DCC14/MM2 28, 2:DCC128 |
行 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 or later |
 |ATMEGA328 | 0x07 | 0xD9 | 0xE2| supporets DSCore firmware rev.178 or later | |ATMEGA328 | 0x07 | 0xD9 | 0xE2| supporets DSCore firmware rev.178 or later |
  
行 103: 行 117:
 {{:fuse_atmega328.png?400|}} {{:fuse_atmega328.png?400|}}
  
 +===== License for using DSCore firmware =====
  
 +DSCore License is LGPL.
  
 +DSCoreのライセンス形態はLGPLです。不都合のある方は、DesktopStationと契約(ライセンス費用のお支払い)を行うことで、ソースコード公開の義務なしに使用することができます。
dscore.1426294916.txt.gz · 最終更新: 2015/03/14 10:01 by yaasan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki