Forum Replies Created
-
AuthorPosts
-
dagakshayParticipant
thanks i was looking for that…
dagakshayParticipantAnd in the loops you using
”
if (adcout<00001010)
{while (adcout<=00101100)
{“
is that integer value???
if you are looking for binary value you must write 0b10101010 as same as 0xAA;
let me know till where you have reached
dagakshayParticipantwhat is the varible type of adcout???
is that char, uchar, int, uint???
try to use voilatile uint16_t <variable name>;
dagakshayParticipantHi ashish,
will you please elobrate youself….
dagakshayParticipanthi Ramu,
what problem you facing not gettin the number or not getting any display on LCD????…
the link given aforside is a very nice one and properly explain i tried it and its workin well… i ask you to check you connects ones aagin….
dagakshayParticipanthi kunal,
try proteus i used it, i fell its nice one.
dagakshayParticipanthi zobi,
use DPTR register of 8051..
or take an unsigned int what would be a 16 bit variable;
eg:
unsigned int i=0x1234;
P1=i;
P2=i>>8;
The output for P1 will be 0x34 and for P2=0x12;
i tried the above example you can use according to your program
dagakshayParticipantpaste you code here lket me check out… and colone “:” sign is printer on it place properly????
dagakshayParticipantwhile(1)
{
read adc();
if (adc<lower levl)
{
while(adc<upper level)
{
motor is on;
read adc();
}
motor is off;
}
else
motor is off;
}
dagakshayParticipanttry your local electronics market…..
dagakshayParticipanthi parasoon can you explain how does the code works
dagakshayParticipantlet me know the problem you facing so that i can help you out
dagakshayParticipantdagakshayParticipantyes… you need to play with io pins there
eg:
while(1)
{
PORTA=(1<<PA0);
_delay_ms(1);
PORTA=~(1<<PA0);
_delay_ms(1);
}
this will lead to generate PWM adn reduce the motor speed by half…
July 23, 2011 at 6:15 am in reply to: problem regarding interfacing LCD using ATMEGA16 code by CHINMAY CHINARA #6503dagakshayParticipantthis sounds some loose connection problem…
-
AuthorPosts