WANTED: USB Interface Chip to Support Reading of Mouse and Keyboard

I am looking to find a chip to allow serial comms between a USB keyboard and the Propeller 1. I would like to stay in the lower end cost range(no more than $10 per module). These are intended for a custom PCB.
That's not an explosion! That's an unscheduled rapid disassembly!

Comments

  • There aren't really a lot of cheap, non-tiny-BGA chips with USB host functionality out there.
    However, many(most?) simple USB keyboards can be controlled over PS/2 (even if they don't ship with the appropriate adapter. The common USB keyboard controller chips just have that feature. Some expensive keyboards also have it, since USB doesn't really do NKRO).
  • jmgjmg Posts: 13,353
    I am looking to find a chip to allow serial comms between a USB keyboard and the Propeller 1. I would like to stay in the lower end cost range(no more than $10 per module). These are intended for a custom PCB.

    So you need a USB-Host to master to a slave (device) Kbd and or Mouse, and report to P1 in serial ? (or even PS/2? or is that 2 x PS/2 ? )

    Maybe this ? $2.20 ?
    https://www.electrodragon.com/product/ch552-ch554-mini-dev-board-ch55x-series/

    I've not run code on these, but there are examples like
    https://github.com/ole00/ch554_sdcc_usb_blinky

    https://bitbucket.org/e_dragon/wch/src
    includes this
    WCH / CH55x / demo code / CH554 serial2keyboard

    and one item shows via translate as
    -- Host
    USB HostHUB_KM.C: USB host application example, initialize and enumerate USB port connected devices, support Level 1 external HUB, can operate USB mouse and keyboard, HUB, printer, including HID class command processing
    USBHostHUB_KM.hex:
  • Hmm, not really what I was looking for, what search criteria did you use to find these?
    That's not an explosion! That's an unscheduled rapid disassembly!
  • AwesomeCronkAwesomeCronk Posts: 542
    edited 2019-03-29 - 01:52:27
    Found this on that same site. Maybe it will work?

    EDIT: revisiting electro dragon, I found this. I think my problems may be sort of solved.
    That's not an explosion! That's an unscheduled rapid disassembly!
  • jmgjmg Posts: 13,353
    edited 2019-03-29 - 19:08:13
    Found this on that same site. Maybe it will work?

    EDIT: revisiting electro dragon, I found this. I think my problems may be sort of solved.

    CH340 is a USB-UART bridge, so no, that's not what you need.
    CH375 is a parallel-bus, USB Host capable, and docs say this ". The CH375 also has firmware built into the dedicated communication protocol for Mass-Storage mass storage devices. External microcontrollers can read and write commonly used USB storage devices (including USB hard drives/USB flash drives/U disks) directly in sector-based units."
    so that's also not what you need, as it is Mass-Storage Hosting, & you asked for USB keyboard to P1

    If you do not want to use a low cost MCU (which needs some code downloaded) I see they also have this
    http://www.wch.cn/products/CH9350.html

    but that costs more, and does not seem to have a readily available PCB module ?
  • So can't you use the CH375 as USB C device and connect a keyboard/mouse/mass storage device to it and read it from the parallel pins on the other side. It looks to me is that all you need is an On The Go adapter to plug in the Keyboard or mouse. OTG cable

    The cable will cost about $5.00.

    Mike

  • Ok
    I think I will use some CH935s for my mouse/keyboard.

    That is, once I get time with my laptop, which can translate webpages, unlike my phone.

    A CH375 will do nicely for a disk drive or flash drive, which could be used for potential software changes to the product, using esp8266 over the air firmware style Propeller EEPROM programming.
    That's not an explosion! That's an unscheduled rapid disassembly!
  • If you accept some compromises, the Propeller can do USB host on its own:

    https://github.com/scanlime/propeller-usb-host
    VT-100 Terminal and Graphics Card for the RC2014 Z80 Computer
  • The CH9350 looks like a decent solution.

    macca's VT-100 Terminal uses the Propeller as a USB host to support a keyboard. https://github.com/maccasoft/propeller-vt100-terminal

    Note that the Propeller USB host software has not been thoroughly tested. Due to time constraints the amount of support I can provide for it is limited. (without payment ;) )
    James https://github.com/SaucySoliton/

    Invention is the Science of Laziness
  • (without payment ;) )
    Ouch!!😋
    That's not an explosion! That's an unscheduled rapid disassembly!
Sign In or Register to comment.