Search found 2 matches

by hazzz
06 Mar 2010 03:23
Forum: mikroC PRO for PIC General
Topic: Command Adc_read in mikroc pro no found!!
Replies: 5
Views: 8348

Re: Command Adc_read in mikroc pro no found!!

Hi Sir Nick,
how will i edit my code to make it work on 16F877?i wanted to learn to make a project in PIC16F877 but i cannot compile this sample code on the manual...i will really appreciate your help.thank you so much.
by hazzz
06 Mar 2010 01:36
Forum: mikroC PRO for PIC General
Topic: Command Adc_read in mikroc pro no found!!
Replies: 5
Views: 8348

Re: Command Adc_read in mikroc pro no found!!

unsigned int temp_res; void main() { ANSEL = 0x04; TRISA = 0xFF; ANSELH = 0; TRISC = 0x3F; TRISB = 0; do { temp_res = ADC_Read(2); PORTB = temp_res; PORTC = temp_res >> 2; }while(1); } --this is an example in mikroC Pro manual...when compiling, i got this error message "undeclared identifier "ANSEL"...

Go to advanced search