Jon Wilder
Active Member
Exactly what the title says. Post all thoughts, facts, and opinions here.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
movlw 0x07
movwf CMCON
CMCON=0x07;
OSCCON=0x70; //8MHz please
OSCTUNEbits.PLLEN=1; //*4 = 32MHz
ADCON1=0x07; //no ADC
CMCON=0x07;
INTCON2bits.NOT_RBPU=0; //WPU on
T1CON=0; //init timer 1
T2CON=0b01001110; //pre=16,post=10
PR2=250; //200 times per second
PIE1bits.TMR2IE=1;
PIE1bits.RCIE=1;
INTCONbits.GIE=1; //Global interrupts enabled
INTCONbits.PEIE=1; //Peripheral interrupts enabled
my own persoanl experiance limited as it is leads me to think in many cases the libs are harder to use, for example the adc lib has different versions for different chips and there are a couple of errors in them, when i used ADC i found it easier to use the registers directly from the datasheet. so in this case i agree with mike.
whateve language you use at some point your going to have to read the datasheet and get involved with the hardware
66: PORTA = 0x55;
+00000047: E585 LDI R24,0x55 Load immediate
+00000048: BB8B OUT 0x1B,R24 Out to I/O location