Help plz

Status
Not open for further replies.

eng.zooma

Newbie level 5
Joined
Dec 9, 2011
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Cairo,Egypt
Activity points
1,381
i want to write a code to get square wave with Delay 1 sec , using timer 1 mode 1 , XTAL 4MHz , on P1.6 . using Asm.
 

Study a book named 8051 by Mazidi..
or online tutorial... anything.... the code you r asking is very simple.. try by yourself
 

i already read it , but the problem that i face is the Number of cycles =333333
 

change the crystal frequency to obtain a rounded value . 12Mhz would be the best .
 

as islurpundalik said : USE a 12Mhz crystal thats all
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…