Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/20/10 01:21
Read: times


 
#173323 - PWM
Responding to: ???'s previous message
Hello Hans.

I'm taking a look in your code, is very different code than what I have in mind.

My actual code looks like:

        DEC PWMPos
        MOV A,PWMPos
        
        CJNE A,RO,$+5
        JMP $+4
        MOV OUTR,C
        
        CJNE A,GO,$+5
        JMP $+4
        MOV OUTG,C
        
        CJNE A,BO,$+5
        JMP $+4
        MOV OUTB,C

 

I think it is not 100% right but works.
PWMPos is the counter
RO, GO and BO are the PWM values
OUTR, OUTG and OUTB is the output pins (ie P2.7)

The PWMs are for RGB LEDs, 3bit is too low.
I'm using 24mhz crystal and also need to deal with DMX data receiving to drive the LEDs.
I believe I will can drive one RGB LED with each 89S52 uC... very bad...

Does exists a PWM IC? To drive the LED with it?

List of 23 messages in thread
TopicAuthorDate
89S52 and multiple PWM            01/01/70 00:00      
   Speed            01/01/70 00:00      
   is 2 times 5 less than 8?            01/01/70 00:00      
      processor sugestion + PWM IC            01/01/70 00:00      
         you need to describe EXACTLY            01/01/70 00:00      
            what I want            01/01/70 00:00      
               clarify?            01/01/70 00:00      
                  1st DMX 2nd auto            01/01/70 00:00      
               ???            01/01/70 00:00      
                  Agreed            01/01/70 00:00      
                     RGB and PWM            01/01/70 00:00      
                        ???            01/01/70 00:00      
                           GIVING UP!            01/01/70 00:00      
                        What is the point of it?            01/01/70 00:00      
                           misunderstood            01/01/70 00:00      
                              ideas and giving up            01/01/70 00:00      
   look at some servo code (recently published on this forum)            01/01/70 00:00      
   Faster PWM            01/01/70 00:00      
      PWM            01/01/70 00:00      
         check this            01/01/70 00:00      
   randomly bumped on TM1803            01/01/70 00:00      
   PCA9685            01/01/70 00:00      
      tlc5947            01/01/70 00:00      

Back to Subject List