Giter VIP home page Giter VIP logo

ambient-light-sensor's Introduction

ambient-light-sensor's People

Contributors

nandland avatar russell-merrick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ambient-light-sensor's Issues

Interfacing a 16bits ADC. MOSI: How to send 2 bits MSB first and LSB second

Amazing work on the SPI lib, thank you so much for sharing this.

I have the Go Board and trying to interface the ADS1118 16Bits ADC for learning (that is the only SPI module I have on hand atm). I'm having great difficulties understanding how to send 2 bit via MOSI using a MSB first and LSB second approach (see first visual from datasheet). Otherwise the code works fantastically well in SPI Mode 1. I'm using the Verilog code.

TX cycle 16-bit

I think I have everything else setup correctly with the exception of this MSB first and LSB second. I wish I'd have your knowledge of Verilog to be able to amend your code myself but that's not the case. Therefore I'd be very grateful if you could point me in the right direction and I'll see what I can do by myself.

TX cycle 16-bit_msbLsb2

I've tried sending below, but it takes on the last 8bits as seen from the scope decoder.
.i_TX_Byte(16'b1000111110010011), // Can stuff with zeroes
*I've also changed all references to TX to 16bits also [15:0], without luck

Sure this is not the way to do it therefore any help or pointers would be much appreciated, really hoping to make this works.
Thanks

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.