found out something weird.
my current code is
Code:
if((!RE3) && (!m_Switched))
{ m_Switched = true;
RB0 = 1;
printf("/// \r\n");
} else if((RE3) && (m_Switched))
{ m_Switched = false;
RB0 = 0;
printf("Ntu \r\n"); }
, why does the output turn out to be as the one shown in the attached file..
Does the above codes only allow capital letters to be shown or?
'
*problem solved. i restarted the TeraTerm and i have a proper output combi of capital & small letters now*
Now for the actuall stuffs i guess...... =/
As i guess u have read the dpdf file, i am currently tring out the very first step, which is to send "///", and the LED will turn oranger indicating that it is in AT mode. i am setting up the TeraTerm for COM1 (together with the rs232 connection) and HyperTerminal for the COM14 (external bluetooth which looks something like
this).
I am hoping to make a start by being able to transmit "///" and making the bluetooth into going into AT mode.
On further exploration, i was thinking of the logic of how the final setup will look like, is it possible if we explore along the line of
Code:
if(porta == 0x01)
{ if(portb = 0x01) /*assigns content of portB RB0 to 0x00 for turn-off Led*/
{ portb = 0x00; }
else{ portb = 0x01; } /*assigns content of portB RB0 to 0x01 for turn-on Led*/
}
Its something i found from
this site. As there many steps to follow and there's 4 Leds on my pre-made board, i guess this is one of the more feasible method the run through the steps and ensuring that each one of them has been done? i am trying to come up with the logic first and its already making me confused.lol