Quote Originally Posted by kutsi View Post
OpenADC(ADC_FOSC_32&ADC_RRIGHT_JUST&ADC_12_TAD,ADC _CH0&ADC_INT_OFF,0)
Yes, that is C, but if you inspect the A/D converter section of whatever PIC you are planning to use, you'll recognize most of those bits and pieces of the C code, therefore, you'll be able to convert your program from C to PBP...

For instance...
ADC_FOsc32 - base ADC timing on FOSC/32
ADC_Right_Just - right justify the result...and so on and so on...

SetChanneltoADC(ADC_CHO) ' Want to set channel 0
ConvertADC() 'Convert the ADC value
while (Busy adc()) ' while it is busy keep it in a loop
' adc_'result=Read ADC() 'I used ADCIN 0, adcresult
Same thing here. You're on the right track, just gotta look a bit harder at the datasheets, PBP manual, etc.

Converting C to PBP isn't all that hard. You just have to know what (or which PIC) you're dealing with fairly well.
Once you've learned one PIC, you've practically learned them all...