Code Monkey home page Code Monkey logo

sc16is17xx_linux_i2c_spi's Introduction

A proof of concept to talk to a sc16is750 spi/i2c connected uart,
written for a colleague to test the sc16is750 in one of his designs
and developed using a SparkFun SC16IS750 module.

	http://www.nxp.com/products/interface_and_connectivity/bridges/i2c_spi_slave_to_uart_irda_gpio_bridges/series/SC16IS740_750_760.html

	https://www.sparkfun.com/products/retired/9745 (p/n BOB-09745)
	https://www.sparkfun.com/products/9981 (p/n BOB-09981)

Tested using both the i2c and the spi interface of a raspberry pi,
because that's my canonical testing platform... :-)

Usage: ./sc16is7xx_demo [options]
  -d  DEV    i2c or spi device node (df: /dev/i2c-0)
  -a  ADDR   select i2c address (0 = spi, def: 77)
  -b  BAUD   select baudrate (df: 115200)
  -g  0xNN    set gpio port to value N

If your sc16is750 module is connected via spi, then run...

	./sc16is7xx_demo -d /dev/spidev-0.0 -a0

...or if it's connected via i2c, then run...

	./sc16is7xx_demo -d /dev/i2c-0 -a 0xADDR

The program will print 

	Virtual terminal is /dev/pts/1.

and to that terminal you'll connect with a terminal program like 'cu'.

	cu -l /dev/pts/1

Whatever you now send on the serial terminal should be output on the
uart module, and whatever the uart module receive should be printed
on the serial terminal.

sc16is17xx_linux_i2c_spi's People

Contributors

vogelchr avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.