AN1074 -RGB LED dimming application

Status
Not open for further replies.

jude57

Newbie level 4
Joined
Mar 18, 2010
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
newzealand
Activity points
1,344
hi guys!

i have knowledge in understanding PIC16f877,but im not familiar with pic12f615,,

as my title stated i have to built a LED dimming circuit,building the circuit is ok,but its the code,as u can see the code is in assembly language which i have no knowledge of,

here are my objectives

initilaise pwm on pic12f615 i need three signals 2 built in,1 software pwm(how do you do that?)
use of a sin table(how do u make 1?) which will change the color of the LEDS

here you guys can see the actual working prototype by MICROCHIP that is using 12hv615(im using the same circuit but with 12f615 which does not have a shunt regulator, i made some modifications)

please guys i have been googling for days and ,i can even find a single code line which is for 12f615 in c++.

i will be happy if you guys can help me out with this code??? any suggestions any means of help(code examples,how to create a sin table?) will be really appreciated.

i have to complete the code in 1 month,, this is my 2nd year mini project

please help me out guyz
thanks
 

Hi

I had tried this app note on 16f877 asm language with some modification to match the 16f877. I can get similar pulse width as describe in app note but look like mcu stuck (error LED was lit on ICD2 box) when I got about 20 pulse of the pwm signal. I use ICD2 clone with this project .

Any clue to fix this?

Thanks a lot.
 

sorry buddy im not familer with ASM language, but it will be easy for you. its really easy on C code.
 

is your project still active?

at this moment, I had few hour working with C , but notice that final HEX from C code is bigger than ASM. that maybe a reason that u can found C example to fit in MCU with small flash memory.

just share to someone that will experient like this.
I switch to use programmer mode on same ICD box (not debug mode) and all stuff working. not know why.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…