Using I2C with FullSpeed USB


Closed Thread
Results 1 to 16 of 16

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Sure it have 8 bits... 2 successive read .. well something like stated somewhere in the MCP datasheet. It must exist a quick drwaing of it somewhere in.

    if you really want to add stuff, 4 choice spring to mind

    use a bigger PIC than the 16F28, then just read the i/o, send it to the 4550 via USART.

    Use a keypad decoder like 74c922

    Use a single (or more) A/D pin of the 4550 with a multi-step voltage divider... yisssh

    Find a multiplexer... time is short now, but it have to exist, i had the 4067 idea... but i'm not sure... i must forget something on this chip.. what? i don't know.
    Last edited by mister_e; - 8th July 2006 at 03:18.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default

    I like the 74C922 keypad decoder, looks simple enough.

    Robert


    EDIT: Hmmm, looked simple enough until I saw the prices at DigiKey and Mouser. It's 1/2 the price to go with a MCP23016 and PIC 16F628.
    Last edited by Demon; - 8th July 2006 at 04:27.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default

    Steve, the 4067 multiplexer/demultiplexer is even better and only $2.08CAD at DigiKey.

    The only problem is that I don't understand how to get it to go 'backwards'. The A0-3 pins are always referred to as inputs, I need them as outputs. I'm sure there's a way 'cause these are called both names, they must process both ways, no?

    Robert


    EDIT: "The CD74HC4067 and CD74HCT4067 devices are digitally
    controlled analog switches that utilize silicon-gate CMOS
    technology to achieve operating speeds similar to LSTTL,
    with the low power consumption of standard CMOS
    integrated circuits.
    These analog multiplexers/demultiplexers control analog
    voltages that may vary across the voltage supply range.
    They are bidirectional switches thus allowing any analog
    input to be used as an output and vice-versa. The switches
    have low “on” resistance and low “off” leakages. In addition,
    these devices have an enable control which when high will
    disable all switches to their “off” state."

    It should work.
    Last edited by Demon; - 8th July 2006 at 04:56.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  4. #4
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default

    74HC148 encoder here:
    http://www.st.com/stonline/books/pdf/docs/1903.pdf

    Page 7 has a schematic to cascade 2 chips with 16 inputs to 4 outputs. $0.31CAD when I buy 100 at DigiKey and I only need an AND and NOT gates to go along with them.

    Robert
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

Similar Threads

  1. I2C Master/Slave 16F88/16F767 working code
    By DanPBP in forum Code Examples
    Replies: 2
    Last Post: - 23rd October 2012, 23:31
  2. Simple USB Comms Problem
    By awmt102 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 6th January 2010, 21:17
  3. HARDWARE I2C SAMPLE CODE question
    By Michael Wakileh in forum Code Examples
    Replies: 2
    Last Post: - 16th June 2009, 22:07
  4. I2C Master Slave issues.
    By cpayne in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 29th March 2008, 20:33
  5. Please help with i2cslave i2c slave
    By cycle_girl in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 1st December 2005, 14:55

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts