On Thu, 8 Nov 2001, MATTHEWS, DEAN (D.) wrote: > What is the function of the 6 in: #byte Port_b=6 > > Dean Matthews This directive tells the CCS compiler there is a symbol which should be interpreted as a byte variable with an absolute address of 6 which is in turn the Port B itself. For Pascal users: it remembers to the variable type 'absolute'. Imre > > > You should define your Port_b like > > #byte Port_b=6 > > This is a directive - a CCS speciality. > > > > > #device PIC16F877*16 ADC=10 > > #include<16F877.h> > > #use delay(clock=20000000) > > #use fast_IO(port_b) > > > > void main (void) > > { > > long value; > > > > setup_adc_ports(RA0_ANALOG_RA3_REF); > > setup_adc( ADC_CLOCK_INTERNAL ); > > set_adc_channel( 0 ); > > > > do { > > value = Read_ADC(); > > delay_ms(100); > > set_tris_b(0); > > Port_b = value; > > } while (TRUE); > > } > > > > > > I am having an error of unidentified identifier on (Port_b = value) line. > > > > Dean Matthews > > > > -- > > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > > email listserv@mitvma.mit.edu with SET PICList DIGEST in the body > > > > > > > > -- > http://www.piclist.com hint: To leave the PICList > mailto:piclist-unsubscribe-request@mitvma.mit.edu > > -- > http://www.piclist.com hint: PICList Posts must start with ONE topic: > [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads > > > -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics