For background, the MCP2221 is a USB to serial chip so it creates a virtual serial port on the computer, and then I can talk serial using the MCU. I am working on a project that uses an Atmega chip directly but using the Arduino libraries, as it's just easier to find tutorials and code samples for, than straight Atmel. That part works, ex: I have it writing stuff to an LCD and was able to measure pwm on pins etc.
I ran into an oddball issue in that when I connect USB only, it seems to pass 3.8v to the rest of the circuit, I did not figure it would even power the micro, and just the USB side of the chip. Only thing I can think of is maybe there is an internal diode or something to prevent backfeeding 5v into the USB through the chip. Now I am scared to also apply 5v to the rest of the circuit as it might backfeed into whatever is generating the 3.8v if it's not a diode and fry something. Interestingly, it is enough to power the arduino, and the little LCD that is part of the project, just more feint.
My second question, and it MIGHT be related to lack of voltage, but I'm not sure, is where can I find a good tutorial on how to talk to the MCP2221 with the atmel chip? I tried using the regular Arduino serial commands, but I imagine those are designed for whatever chip the arduino uses, and not for that chip, so unless the protocol they use is standard, it of course won't work. Problem is I can't really find any info on how to talk to the chip so that I can code for it. Any idea where I'd find that?
The TX and RX pins of the MCP2221 are connected to the pin 1 and pin 2 of the MCU, which arduino uses for RX and TX. Also, stupid question but should they be reversed? Ex: should the TX pin of the Atmega go to the RX pin of the chip? I'm not sure if they mean "TX in" or "TX out" so that would make a difference.