sn_burki said:dear erio
unless you show your hardware its difficult to suggest you, share your hardware and then its easy to give you an idea.
blueroomelectronics said:Can you post with .PNG images of the schematic? Not everyone uses Proteus.
umery2k75 said:
#include<reg51.h>
sbit P2_0=P2^0;
sbit P2_1=P2^1;
sbit P2_2=P2^2;
sbit P2_3=P2^3;
sbit P2_4=P2^4;
sbit P2_5=P2^5;
sbit P2_6=P2^6;
sbit P2_7=P2^7;
sbit P3_6=P3^6; // Data
sbit P3_7=P3^7; // Clock
code character[]={0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xc1,0xdd,0xdd,0xdd,0xe3,0xff,0xc1,0xd5,0xd5,0xdd,0xff,0xc1,0xf5,0xf5,0xfb,0xff,0xc3,0xf5,0xf5,0xc3,0xff,0xc1,0xf5,0xf5,0xeb,0xdf,0xff,0xfd,0xfd,0xc1,0xfd,0xfd,0xff,0xc1,0xfb,0xf7,0xfb,0xc1,0xff,0xc1,0xd5,0xd5,0xdd,0xff,0xc1,0xfb,0xf7,0xef,0xdf,0xc1,0xff,0xfd,0xfd,0xc1,0xfd,0xfd,0xff,0xff,0xff,0xff,0xe3,0xdd,0xdd,0xdd,0xe3,0xff,0xc1,0xf5,0xf5,0xfd,0xff,0xff,0xff,0xff,0xc3,0xf5,0xf5,0xc3,0xff,0xc1,0xf5,0xf5,0xfb,0xff,0xc1,0xf5,0xf5,0xfb,0xff,0xc1,0xdf,0xdf,0xdf,0xff,0xc1,0xff,0xc1,0xd5,0xd5,
0xdd,0xff,0xc1,0xdd,0xdd,0xe3,0xff,0xff,0xff,0xff,0xc1,0xf5,0xf5,0xfb,0xff,0xc1,0xf7,0xf7,0xc1,0xff,0xfd,0xfb,0xc7,0xfb,0xfd,0xff,0xdb,0xd5,0xd5,0xed,0xff,0xc1,0xff,0xe3,0xdd,0xdd,0xdd,0xff,0xdb,0xd5,0xd5,0xed,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff};
void Flush(void)
{
unsigned int a;
P3_6=0; // Data=0, Filling with 0s
P3_7=0; // Clock=0, Ready
for(a=0;a<63;a++)
{
P3_7=1; // Low to High Transistion
P3_7=0; // High to Low Transistion
}
}
void main(void)
{
unsigned int i,j,k,offset;
Flush();
while(1)
{
P3_6=1;
P2=character[0];
for(j=1;j<=100;j++) ;
P3_7=1;
P3_7=0;
P3_6=0;
for(i=0;i<63;i++)
{
P2=character[i+offset];
for(j=1;j<=100;j++) ;
P3_7=1; // L to H
P3_7=0; // H to L
k++;
}
if(k==128) { offset++; k=0; }
if(offset==206) { offset=0; k=0; }
}
}
umery2k75 said:
I don't have schematic, I had written lots of code for these kind of hardware. This program doesn't make use of Serial, it's easier to understand.In this PCB design I forget to add the base resistor of transistor, which I added in the end.If you want this file of EasyPC then tell me, I will upload it.
#include<reg51.h>
sbit P2_0=P2^0;
sbit P2_1=P2^1;
sbit P2_2=P2^2;
sbit P2_3=P2^3;
sbit P2_4=P2^4;
sbit P2_5=P2^5;
sbit P2_6=P2^6;
sbit P2_7=P2^7;
sbit P3_6=P3^6; // Data
sbit P3_7=P3^7; // Clock
code character[]={0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xc1,0xdd,0xdd,0xdd,0xe3,0xff,0xc1,0xd5,0xd5,0xdd,0xff,0xc1,0xf5,0xf5,0xfb,0xff,0xc3,0xf5,0xf5,0xc3,0xff,0xc1,0xf5,0xf5,0xeb,0xdf,0xff,0xfd,0xfd,0xc1,0xfd,0xfd,0xff,0xc1,0xfb,0xf7,0xfb,0xc1,0xff,0xc1,0xd5,0xd5,0xdd,0xff,0xc1,0xfb,0xf7,0xef,0xdf,0xc1,0xff,0xfd,0xfd,0xc1,0xfd,0xfd,0xff,0xff,0xff,0xff,0xe3,0xdd,0xdd,0xdd,0xe3,0xff,0xc1,0xf5,0xf5,0xfd,0xff,0xff,0xff,0xff,0xc3,0xf5,0xf5,0xc3,0xff,0xc1,0xf5,0xf5,0xfb,0xff,0xc1,0xf5,0xf5,0xfb,0xff,0xc1,0xdf,0xdf,0xdf,0xff,0xc1,0xff,0xc1,0xd5,0xd5,
0xdd,0xff,0xc1,0xdd,0xdd,0xe3,0xff,0xff,0xff,0xff,0xc1,0xf5,0xf5,0xfb,0xff,0xc1,0xf7,0xf7,0xc1,0xff,0xfd,0xfb,0xc7,0xfb,0xfd,0xff,0xdb,0xd5,0xd5,0xed,0xff,0xc1,0xff,0xe3,0xdd,0xdd,0xdd,0xff,0xdb,0xd5,0xd5,0xed,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff};
void Flush(void)
{
unsigned int a;
P3_6=0; // Data=0, Filling with 0s
P3_7=0; // Clock=0, Ready
for(a=0;a<63;a++)
{
P3_7=1; // Low to High Transistion
P3_7=0; // High to Low Transistion
}
}
void main(void)
{
unsigned int i,j,k,offset;
Flush();
while(1)
{
P3_6=1;
P2=character[0];
for(j=1;j<=100;j++) ;
P3_7=1;
P3_7=0;
P3_6=0;
for(i=0;i<63;i++)
{
P2=character[i+offset];
for(j=1;j<=100;j++) ;
P3_7=1; // L to H
P3_7=0; // H to L
k++;
}
if(k==128) { offset++; k=0; }
if(offset==206) { offset=0; k=0; }
}
}
Added after 4 minutes:
This is one MSOFFICE files that I made during designing, there is another one also.
umery2k75 said:
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?