We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Has any one used C51 c compiler from keil. I compile MPC82G516A with c51 c compiler,but i do not know how to set CPU_NSEC. if you know,please tell me ,thanks.
Best Regards.
cmon guys this is importent!!!!!!!
some one must know some thing about this stuff????????????
Important for whom?
You don't give much information in your post.
Google produces this random text - what is your view about it - about 8051 and CPU_NSEC: A standard wait-function has been added: void _wait_ms(unsigned int); This function will always wait a given time in msec. This is accomplished by a macro CPU_NSEC, which holds the 'mean instruction time' for a 1-cycle instruction in nsec (for a 12 MHz generic 8051 this is 1000, which is the default too..., a 24 MHz generic 8051 would have 500).
But that isn't for Keil C51, but for Wickenhäuser uC/51.
Maybe, if you are so very stressed, you should invest a couple of minutes and actually write a very good post where you very clearly describe what problems you have, and what you have tried and where you are stuck.
i fixed it with the define like
#define CPU_NSEC (12*1000*1000)
thx for nothing people!!!
Always nice to see polite people...