I’d like to make a serial “dongle” for my PC that connects it to a MiRF v2 Transceiver.
I began sketching on a simple schematic but soon I realized that I were going to have problems with my PIC16F88 only having 1 USART. How shall I proceed to connect both the RS232 datalines (from MAX232) and the Mirf module to the PIC?
The USART has an in and an out on it. You can communicate in both directions with just one USART, so you’re fine with what you’ve got. I’m pretty sure that Sparkfun has a breakout of the MiRF-v2 that can hook up directly to a computer serial port, and they generally post their schematics. You might wanna check that out.
The problem you might run into is if the SPI and USART are on the same pins on your pic. If so, then you may have to bit-bang one of the interfaces or else move to a different chip.
I should have read the manual on the chip before I started asking questions! :oops: The chip has an SPI interface. I just had the idea, for some reason, that it used UART The PIC16F88 i was planning to use the same pins for UART and SPI so I’ve switched to a 877A in my schematic.
I’m still waiting for the modules to come with the mail though. I really want to have 'em right now!
Yeah it looks like from the datasheet that the 877A will let you use both USART and SPI simultaneously. Good luck on your project and if you need help with the 24L01, don’t hesitate to ask.