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.
Hey Denujith,
You should implement zero crossing detector in your hardware..
You will get many circuits in on the internet for that
I personally prefer PC814 based circuit
I hope you must be having proper isolation and signal attenuation before interfacing that high voltage to your...
C18 ids 8 bit device... it doesnt matter....
just perform two write cycles....
8 bit each... if you folllow datasheet of 24C512 u can easily understand dat...
many LCD controllers require stable power supply before initialisation.
In our circuit we use bulk capacitor for ripple rejection on power lines which takes time to charge
every LCD manufacturer specifies time for stable supply...
when you reset ur controller the power has already is stable & by...
Re: 1 useg delay at89s52
Hey guys I think Hareesh is talking about 1uSec delay..
why are you talking about mSec..
It also depends upon your application, how accurate you want
You can write timer interrupt for 1mSec.. & count it for your application
Re: 1 useg delay at89s52
since you are using 89S52 with 24MHz
It has its internal clock divier with factor 12
so your system clock will be 2MHz & your machine cycle will be 0.5usec
if try to make any function, its going to take more than 2 machine cycles, so avoid calling fuction
however you...
Dear Hareesh,
Please find the attached file
I have written one sample code for your application
considering that you have your LCD routines & UART, Timer initialization routines ready with you.
I haven't put any comment in the code, that is for your home work
Ping me if you want any further...
33pF across oscillator is used as load capacitor, without which your crystal will not give clock output
required for microcontroller.
If you are using different power sources for driver & microcontroller then it is a good practice,
use opto isolator as a buffer between two stages.
If you can...
Dear Mr.azkhan
asking directly for source code is bad practice, if possible, please try to avoid it.
Plenty of data is available for i2c.
since you are using at89s55wd which doesn,t have built in I2C hardware
you have to interface your 24C16 to your microcontroller with GPIO & use I2C with use...
AT89C51Rd2 also has ISP feature, along with reset pin u need to use PSEN pin also to enter in SIP mode
while reset PSEN pin should be low.
if u r using only TX & RX lines then serial to USB will work fine with ur laptop as well as desktop
if ur using DTR & RTS lines for directly entering ISP...
i hope you are able to drive the LCD & see some text on it.
If this is the case then u can use
display_on 0x0C
display_off 0x08
commands to blink the LCD
hi azkhan,
24C16 is not a RAM it is EEPROM having size of 2048byts i.e. 2k
this is very common memory storage device used in industry which needs only two I/O or I2C
This is 24CXX series
likewise you can have look at 25CXX series which is SPI based
or MMC cards or flash IC
simply write down reentrant keyword after your function which you are calling from interrupt & from other routines.
e.g.
void Function_1 (void) reentrant;
void Function_2 (void);
void Function_1 (void) reentrant
{
line 1....;
line 2....;
}
void Function_2 (void)
{
line1...;
line2...
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.