Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Yes! they are entirely different modules inside the pic ( providing both are available ) even if there is no MSSP on-board most libraries contain a software implementation anyway.
Ian
hi,Hi there.
Seems like the SPI needs a spearate Clock line. The standard RS-232 doesn't have clock line. How do I use it? Oh! wait, how does USRT works? Where is the clock line there? Can use USRT for SPI ?
Can use USRT for SPI ?
Exactly.What exactly is it you want to do? A microcontroller communicating with PC using SPI on the microcontroller and COM-port on the PC?
I think I should be polling the Rx pin every now and then to check if data is coming. I can't waste precious processing time polling. If I could generate Interrupt only when data arrived, that would be fine too!
Here is what I am trying to do.
Communicate (Exchange Data) with the PC.
The problem is I want to use PIC16f72 which don't have USART but only SPI.
I had been using matlab and its built-in UART libraries for communications.
I don't need to exchange data too often, only occasionally. But I am afraid of using Software UART because, I think I should be polling the Rx pin every now and then to check if data is coming. I can't waste precious processing time polling. If I could generate Interrupt only when data arrived, that would be fine too!
But wouln't I be missing a bit or two, since I would be interupted by the data I want to recieve?