RP11 programing code question

LED Blinking, Walking with Cytron Servo, Displaying RFID, Multi-function Mobile Robot......

RP11 programing code question

Postby lihker » Fri Nov 05, 2010 4:20 am

can somebody explain to me this code tq

send_char(0b11011111);

come from
//sensor B
ADCON0=CHANNEL1; //CHANNEL0=0b10000001

lcd_goto(28);

read_adc();

temp=read_temp();
dis_num(temp/10);
send_char('.');
dis_num(temp%10);
send_char(0b11011111);
send_char('C');
send_char(' ');
send_char(' ');

tempB=temp;
lihker
Greenhorn
 
Posts: 3
Joined: Fri Nov 05, 2010 4:02 am

Re: RP11 programing code question

Postby yonghui » Fri Nov 05, 2010 9:33 am

hi,


CODE: SELECT_ALL_CODE
send_char(0b11011111);     //sending 1byte data to somewhere

//come from
//sensor B
ADCON0=CHANNEL1;    //CHANNEL0=0b10000001   
                                 //changing the channel of the ADC to read value

lcd_goto(28);               // moving the position of LCD to corresponding position

read_adc();                  // read ADC function is called to read the selected channel

temp=read_temp();        // read temperature function is called to process the data to obtain the temperature value from raw ADC data
dis_num(temp/10);         //display most significant digit of the 2 digit number
send_char('.');               // display a ' .'
dis_num(temp%10);        //display least significant digit of the 2 digit number
send_char(0b11011111); // sending 1byte data
send_char('C');              //sending  a 'C' ascii
send_char(' ');              //sending space
send_char(' ');

tempB=temp;                 // backup temp value?





regards,
yh
thanks&regards,
yh
yonghui
Moderator
 
Posts: 732
Joined: Mon Sep 28, 2009 3:27 pm

Re: RP11 programing code question

Postby lihker » Fri Nov 05, 2010 12:25 pm

tq yh

yonghui WROTE:hi,


CODE: SELECT_ALL_CODE
send_char(0b11011111);     //sending 1byte data to somewhere

//come from
//sensor B
ADCON0=CHANNEL1;    //CHANNEL0=0b10000001   
                                 //changing the channel of the ADC to read value

lcd_goto(28);               // moving the position of LCD to corresponding position

read_adc();                  // read ADC function is called to read the selected channel

temp=read_temp();        // read temperature function is called to process the data to obtain the temperature value from raw ADC data
dis_num(temp/10);         //display most significant digit of the 2 digit number
send_char('.');               // display a ' .'
dis_num(temp%10);        //display least significant digit of the 2 digit number
send_char(0b11011111); // sending 1byte data
send_char('C');              //sending  a 'C' ascii
send_char(' ');              //sending space
send_char(' ');

tempB=temp;                 // backup temp value?





regards,
yh
lihker
Greenhorn
 
Posts: 3
Joined: Fri Nov 05, 2010 4:02 am


Return to DIY Project Set

Who is online

Users browsing this forum: No registered users and 11 guests

cron