User Tools

Site Tools


en:pfw:spi_msp430_spi-loopback_msp430.f

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
en:pfw:spi_msp430_spi-loopback_msp430.f [2023-09-04 16:21] – gelöscht - Externe Bearbeitung (Unbekanntes Datum) 127.0.0.1en:pfw:spi_msp430_spi-loopback_msp430.f [2023-09-04 16:21] (current) – ↷ Seite von pfw:spi_msp430_spi-loopback_msp430.f nach en:pfw:spi_msp430_spi-loopback_msp430.f verschoben uho
Line 1: Line 1:
 +{{pfw:banner.png}}
 +<code>
 +(* SPI loopback test 
  
 +For: MSP430G2553
 +Connect P1.6 (MISO) and P1.7 (MOSI) on any MSP430G2553 board
 +The output is printed and increased by one until a key is pressed
 +
 +For: MSP430FR59x9
 +Connect P2.6 (MISO) and P2.5 (MOSI) on any MSP430FR59x9 board
 +The output is printed and increased by one until a key is pressed
 +
 +For: MSP430F149
 +Connect P5.2 (MISO) and P5.1 (MOSI) on any MSP430F14x board
 +The output is printed and increased by one until a key is pressed
 +
 +*)
 +
 +: COUNTER       ( -- )
 +    spi-on  0
 +    begin
 +        spi-i/ dup .  1+  80 ms
 +    key? until  drop ;
 +
 +\ End ;;;
 +</code>