yangang123 / sc16is17xx_linux_i2c_spi Goto Github PK
View Code? Open in Web Editor NEWThis project forked from vogelchr/sc16is17xx_linux_i2c_spi
A very short proof of concept to talk to a sc16is750 spi/i2cconnected UART
This project forked from vogelchr/sc16is17xx_linux_i2c_spi
A very short proof of concept to talk to a sc16is750 spi/i2cconnected UART
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.