I've looked through data sheets, manual and searched the other files on here - but can't make sence of why this isn't working - probably a complete lack of understanding.

ANy help setting up the chip would be very thankfully recieved - thanks

Here is the code so far:
@ DEVICE INTRC_OSC, WDT_OFF, MCLR_OFF
DEFINE OSC 8
DEFINE CCP1_REG PORTB 'HPwm 1 pin port
DEFINE CCP1_BIT 1 'HPwm 1 pin BIT
TRISA = %00000011 'Set I/O
TRISB = %00000000 'Set I/O
CMCON = %00000111 'Disable analog comparators
ANSEL = %00000001 'Set PORTA.0 analog rest digital
ADCON1 = %10000000 'Right justify result
OSCCON = %01110000 'Set internal osc to 8MHz
speed VAR WORD

speed = 127

Start:

Pause 1000

Pwr = 1

GoSub ReadVals

HPwm 1,speed,2000

blah blah blah