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.
This is my altered code. With no errors and warnings,
However I am not able to view any values in the serial window.
PLEASE HELP!
#include<reg51.h>
#define msec 1
float sec1,sec2;
int sec1_1,sec1_2,sec2_1,sec2_2;
unsigned int...
So is the code which we r using rite?, as in wat should we do?, we r using hyper terminal of the PC which we connect our serial circuit to, and yeah we r given an option to select/set the baud rate, which we set it to 9600, so what else can we do?
Thank you.
now we have used :
void serial(unsigned int sec1)
so basically it compiled but when we interface, it shows smiley faces, hearts, and clubs and random characters, so how do we read the time out of it.
this is our final main code that complied:
#include<reg51.h>
#define msec 1
unsigned int...
if u can pls let me know what is function prototype?, cause i am not understanding what r u trying to say, or r u talking abt the void function?
Thanks
according to our code would u be able to tell us where the time value is stores as in which register?, like u know what addresses is it stored in?
Thanks a ton n ways for so much help mate, really appreciate it.
when i try interfacing my stopwatch using 8052 with the PC this is the error we get:
Build target 'Target 1'
compiling microcontroller programming.c...
MICROCONTROLLER PROGRAMMING.C(123): error C267: 'serial': requires ANSI-style prototype
Target not created
if u can pls help me the code:
that...
URGENT
How would I go about interfacing this cuircuit with my computer ( i need the recorded times displayed on comp too)
I would like the times to be sent to accumulator register when i press stop button.
how do i go about writting a code in C for that?#
I just need the times to be stored...
this is a code that i have for a stop watch using 8051 microcntroller
#include<reg51.h>
#define msec 1
unsigned int sec1,sec2;
int sec1_1,sec1_2,sec2_1,sec2_2;
unsigned int
digi_val[10]={0x40,0xF9,0x24,0x30,0x19,0x12,0x02,0xF8,0x00,0x10};
sbit dig_ctrl_1=P1^0;
sbit dig_ctrl_2=P1^1;
sbit...
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.