I am using 89c2051 in my project.while doing programming in keil I got problem in baud-rate.I m using 11.0592MHz crystal.Now in C code how can I define that i m using this crystal???(any instruction??)By default which freq crystal used in keil??
Kuldeep,
You dont need to define crystal frequency in c code just configure timer 1 with correct value to get desired baud rate.
:)
IIRC, The only thing that Keil uses the crystal frequency for is to convert from cycle counts to time in the debugger/simulator.
#define CRYTSTAL_FREQUENCY_HZ 11059200L
keil always uses the frequency,,,,,,,,, you can change but you got to use math,,,,,,, do you use windows or linux?
View all questions in Keil forum