Warning: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/josejx/josejx.net/collie/index.php:1) in /hsphere/local/home/josejx/josejx.net/collie/index.php on line 341

Warning: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/josejx/josejx.net/collie/index.php:1) in /hsphere/local/home/josejx/josejx.net/collie/index.php on line 342
TX

TX

Front Page Edit Recent Changes All Pages Find Page

Transmitting

Sending data to the card

If the Clock Bit isn't 0 or the Multiplier Select is 0 (in the LoCoMo SPI Mode register)
For each byte to send:

  1. Wait for the Write Ready bit in the LoCoMo SPI Status register to be set (Number of busy loops depends on the clock, see below)
  2. Write one byte to LoCoMo SPI TX Data Write
  3. Wait for the Write Ready bit in the LoCoMo SPI Status register to be set (Number of busy loops depends on the clock, see below)

Otherwise
For each byte to send:

  1. Wait for the Write Ready bit in the LoCoMo SPI Status register to be set (Busy loop up to 8 times)
  2. Write one byte to LoCoMo SPI TX Data Write

After transmitting the bits above, wait for the Transfer Complete bit to be set in the LoCoMo SPI Status register (Number of busy loops depends on the clock, see below)

Max Wait Table

Check the LoCoMo SPI Status register on each loop
Clock Bit Value Wait Loops
4 0x10001
Otherwise 0xA