evilheart
Member level 3
how to send data on port0 in c
hi
that is my first microcontroller project so i am a newbie.
i am using 8051 , c language , keil as a compiler
i am now in the designing and programing step , and i want to send data from 8051 to another using port 0 (8-bit) and also to send data to lcd 16x2 ,
the problem that one of the data i want to send is (int)
and as reviewed c books i found that (int) data type takes 16-bit , so i don't know what
will happen if i send an int on port 0, or how the 8051 will act in that case.
for ex
int x;
P0=x;
waiting for ur opinions........
hi
that is my first microcontroller project so i am a newbie.
i am using 8051 , c language , keil as a compiler
i am now in the designing and programing step , and i want to send data from 8051 to another using port 0 (8-bit) and also to send data to lcd 16x2 ,
the problem that one of the data i want to send is (int)
and as reviewed c books i found that (int) data type takes 16-bit , so i don't know what
will happen if i send an int on port 0, or how the 8051 will act in that case.
for ex
int x;
P0=x;
waiting for ur opinions........