Hi all, thanks for the quick replies.

I have made some changes, hopefully this looks better. I was also planning on developing this for the pic16f627a, not too worried if i use 2 pics, one for white, one for blue. Just need something that my programmer is compatible with. That specific pic isn't listed under the drop box near the menu, does that mean that it won't work?

Also here is my updated code:
[html]

'define oscillator speed
DEFINE osc 20


'define dutycycle variable
dutyCycle var byte


'define clock variables
minute var byte
hour var byte
second var byte
hs var byte
ledblue var byte
ledwhite var byte

'================================================= =====
'start the main segment
main:


'add a second to the counter, and pause
second = second + 1
pause 999
pauseus 1000

'check to see if 60 seconds have passed
if second = 60 then endsecond


'HPWM Channel,Dutycycle,Frequency
hpwm 1,ledblue, 5000

'end of section, repeat main code.
goto main
'================================================= ======

'click 60 seconds to 1 minute
endsecond:
minute = minute + 1
second = 0
if minute = 60 then endminute
goto main


'click 60 minutes to 1 hour
'also calculates which program section of the day it is
endminute:
hour = hour + 1
minute = 0
if hour = 24 then
hour = 0
end if

if hour = 0 then hs = 0
if hour = 3 then hs = 1
if hour = 6 then hs = 2
if hour = 9 then hs = 3
if hour = 12 then hs = 4
if hour = 15 then hs = 5
if hour = 18 then hs = 6
if hour = 21 then hs = 7

goto selectpwm

selectpwm:
select case hs
case 0
ledwhite = 128
ledblue = 75
case 1
ledwhite = 75
ledblue = 128
case 2
ledwhite = 25
ledblue = 50
case 3
ledwhite = 75
ledblue = 50
case 4
ledwhite = 192
ledblue = 50
case 5
ledwhite = 255
ledblue = 36
case 6
ledwhite = 255
ledblue = 25
case 7
ledwhite = 224
ledblue = 50
end select

goto main
[/html]

Hopefully it looks like it will work.

Thanks again,

Tim.