Hello ... I'm about to work on a project that needs an interface by software. I'll use PIC16F676 and before I start doing things, I was trying to get the idea of how to make PIC and PC send information to each other at the same time..
So, in a basic system, let's say a got a PWM in a Pin1, a Sensor in Pin2 and Serial Comm. in Pin3, Pin4.
I would like to send the value of the AD of the Sensor to the PC continuously and also receive from PC values of the PWM that will be applied in Pin1. But, without HPWM, how can this be possible? I'm asking that because the PWM Pin is connected to a CC motor and it must be ON all the time.
So, and the question are.
Is it possible to use a VAR in PWM command?
How would be the SERIN and SEROUT commands (because PIC needs to say and listen all the time)
Please, I'm not asking the codes, only some idea... (but if there is a code, it would be great,)...
Thanks in advance..
Sylvio
Bookmarks