Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
the first thin is that u cant send decimal to the LCD, you have to send the ascii value of the decimal number that you want to display
so first of all you have to change the hex to decimal,then separate the digits like, if it is 15 in decimal,you have to separate 1 and 5...then make 1-->...
as bigdogguru said..we can make such simple robots..but a fully functional robot will be very difficult and any changes will require to change the whole schematic
i didnt get ur question..
do you want to extract the data from each and every array like..if u want data of 8th position u take all the data together from all arrays???
to put the b variable u can do this
for(x=8;x=0;x--)
{
a=pat10[x]; // a gets the data 0xC3 and pointer is at 8th location
x--;
b=pat10[x];// b gets the data of the 7th location,and in the next round a will get the data of the 6th location.
}
unsigned char idata pat10[8] = {0x83,0x43,0x23,0x13,0x0F,0x13,0x23,0xC3,};//this is correct
now imagine u want to take out 2 bytes of data at every instance an place it in 2 different variables 'a' and 'b' to use them somewhere.
x=8;
a=pat10[x]; // a gets the data 0xC3 and pointer is at 8th...
u can use it as a variable name to access any of the sfrs bitwise.
eg
sbit a=P1^0;
here usind a we can access the valeu on to the Port1.0
a=1; // Port1.0 becomes logic 1
a=0; // Port1.0 becomes logic 0
Have a pointer pointed at the last location i.e. 8.
now u can access any of the data, copy it in a location and decrement the counter.
have a different pointer for each one of the array
in embedded C you dont need to save it in some address specifically
unsigned char x;
x=keypad_entry;
your value will get stored in 'x' which itself is a memory location in the RAM by the name x.
now you can use x to display it on LCD
no u cannot, since there are CFLS in the series circuit which leads to losses so some energy is being lost,and moreover the current provided by the inverter wont be sufficient to charge up the battery.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.