Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

Can somebody write this code in mikroC format?

Status
Not open for further replies.
Joined
Jul 25, 2012
Messages
1,192
Helped
170
Reputation
340
Reaction score
161
Trophy points
1,343
Activity points
0
Hello!

I want this code to be written in mikroC PRO 8051. Please help.

Code:
sbit clk=P1^7;  // clock

void timer0() interrupt 1  // Function to generate clock of frequency 500KHZ using Timer 0 interrupt.
{
clk=~clk;
}

TMOD=0x02;  //timer0 setting for generating clock of 500KHz using interrupt enable mode.
TH0=0xFD;
IE=0x82;
TR0=1;
 
Last edited:

bhav

Full Member level 2
Joined
Sep 24, 2006
Messages
130
Helped
11
Reputation
22
Reaction score
11
Trophy points
1,298
Location
Ahmedabad, India
Activity points
1,853
post request at

Code:
http://www.mikroe.com/forum/viewforum.php?f=48
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top