martes, 16 de octubre de 2012

Control de LED RGB usando PIC 16F84A

Veamos un circuito sencillo que utiliza un microcontrolador PIC 16F84A para controlar el cambio de colores de un LED RGB. El circuito utilizado es el que vemos aquí debajo:


El código de programa usado en el proyecto es el siguiente:


:020000000628D0
:080008000B1109000130960004
:100010008B1383168501C13085008601E030860090
:100020008312930194018501860195012221782094
:10003000782078201408043C0130031D0301003CA3
:1000400003194128950A0A3015020130031C0301E7
:10005000003C0319412808308C008D015E208E0081
:1000600003108E1B03148D0DFF308D0203183A28E8
:100070008D0703108E0D8C0B30280D089300AD20DA
:1000800095011408003C0130031D0301003C0319D5
:100090001628950A033015020130031C0301003CA9
:1000A00003195D28930AAD201308FF3C0130031D9E
:1000B0000301003C031D93019501162816080C3915
:1000C000003C031966280130980067289801961FA4
:1000D0006C28013097006D28970116088E000E0DD0
:1000E000FE398E00180817060E0496001608080040
:1000F0000610861006119901FF301902013003180D
:100100000301003C0319A128100819020130031C47
:100110000301003C031D0614110819020130031CE1
:100120000301003C031D8614120819020130031C50
:100130000301003C031D061532308F00A220990AEE
:100140007C2808008F0C8F0C3F308F0503308F0206
:1001500000008F0BA828000008001308553C013050
:10016000031C0301003C0319D6288C0109308E00C2
:100170001308553C8D00033003108C0C8D0C0318B4
:100180008C078E0BBD280D0890008C0109308E0065
:1001900013088D00033003108C0C8D0C03188C0792
:1001A0008E0BCC280D089100920121291308AA3C3E
:1001B0000130031C0301003C0319002990018C014C
:1001C00009308E001308AA3C8D00033003108C0CFC
:1001D0008D0C03188C078E0BE7280D0891008C01FD
:1001E00009308E00553013028D00033003108C0C43
:1001F0008D0C03188C078E0BF7280D08920021290F
:100200008C0109308E00AA3013028D0003300310D8
:100210008C0C8D0C03188C078E0B08290D08900090
:1002200091018C0109308E001308FF3C8D000330D2
:1002300003108C0C8D0C03188C078E0B19290D08DC
:10024000920008000508013C0130031D0301003C39
:10025000031987290508013C0130031D0301003CF7
:10026000031933292A291408003C0130031D030116
:10027000003C031940299301AD20013094008729E7
:100280001408013C0130031D0301003C03194E29F1
:1002900055309300AD200230940087291408023CA9
:1002A0000130031D0301003C03195C29AA309300AF
:1002B000AD200330940087291408033C0130031D4E
:1002C0000301003C03197C2908308C008D015E205D
:1002D0008E0003108E1B03148D0DFF308D0203184A
:1002E00073298D0703108E0D8C0B69290D0893005F
:1002F000AD200430940087291408043C0130031D0C
:100300000301003C031987299301AD2094010800E3
:00000001FF







1 comentario:

Unknown dijo...

hola quisiera hacer el controlador pero no se como usar el codigo que publicaron para que el programador me lo reconozca


gracias