Micro Serial Problem

float const final =A5;
void setup()
{
  Serial.begin(9600);
  pinMode(A5,OUTPUT)
}
void loop()
{
 float val[2];
 val[0]=map(analogRead(0),0,1023,0,255);
 val[1]=map(analogRead(1),0,1023,0,255);
 for(int i=0;i<2;i++)
 {
   analogWrite(A5,val[i]); 
   Serial.println(A5);
  delay(1000);
}

My question is that the TX led is been blinking when I open Serial Monitor, as I close the Serial Monitor the LED blinking stops.Second thing is that I should get analog voltage from A5 but I am getting digital voltage as 0,5 V as output. My main motive is to transmission of these 2 analog signals wirelessly through xbee S2. How should I know that from TX the signals are been send. Please help.

My question is that the TX led is been blinking when I open Serial Monitor, as I close the Serial Monitor the LED blinking stops.

Why is that a problem?

Second thing is that I should get analog voltage from A5 but I am getting digital voltage as 0,5 V as output.

The Arduino does NOT do analog output. The problem is that your expectation is wrong.

float const final =A5;

Why are you using 4 bytes to store one?

  pinMode(A5,OUTPUT)

You seem to be missing something. Like a semicolon.

   Serial.println(A5);

You'd get more useful information if you changed this to:

   Serial.println("Mary had a little lamb...");

My main motive is to transmission of these 2 analog signals wirelessly through xbee S2.

You've got a long way to go...

Why have you started two Threads on the same subject link

This just wastes everyone's time. I will ask the moderator to merge them.

...R