picbeginner
New Member
Hello,
I am a beginner in PIC programming. I'm using the PIC18F4550 and I've been able to implement a few of the functionalities of PIC microcontrollers, but I was wondering if it was possible to output a binary sequence.
In other words, I got PWM working for 50% duty cycle, so I can get a 10101010 (and repeated) using the CCP/PWM pin...
But is it possible to output something like, 10011101 (and repeated)? I've been browsing the web and I may not be googling the right terms. Only thing that I can think of is to alter the duty cycle constantly.
Is there an easier way?
Thanks!
I am a beginner in PIC programming. I'm using the PIC18F4550 and I've been able to implement a few of the functionalities of PIC microcontrollers, but I was wondering if it was possible to output a binary sequence.
In other words, I got PWM working for 50% duty cycle, so I can get a 10101010 (and repeated) using the CCP/PWM pin...
But is it possible to output something like, 10011101 (and repeated)? I've been browsing the web and I may not be googling the right terms. Only thing that I can think of is to alter the duty cycle constantly.
Is there an easier way?
Thanks!