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.
HI, I HAVE CREATED TWO TASK IN TASK1 I AM DOING RELAY ON OFF AND IN TASK2 I AM DISPLAING "HELLOW WORLD"ON LCD BUT ONLY TASK1 IS FUNCTIONING,LCD SOME TIME SHOWS GARBADGE AND SOMTIME ONLY CURSOR. my program void job1(void)_task_ 0 {
lcd_init();
while(1)
{
os_create_task (1); os_create_task (2);
} }
void lcd (void) _task_ 1 {
strcpy(lcd_buffer,"HELLOW WORLD "); lcd_display(lcd_buffer); } void relay (void) _task_ 2 { RELAY=~RELAY; DELAY(20);//ms }
i am using 4 line lcd .this is the problem of delay which i am using in lcd routine or something else. plz help me.
There appear, to me, to be many problems with your program.
These are just a few of the problems that I found. However, if you fix these, I think you will start seeing results you expect (or at least can understand).
Jon