Why Prop C program doses not run for ever?
in Propeller 1
I am trying out Prop c programing.
T wrote the attached program with "While(1)" and is suppose to run for ever,
but runs only for 1min and 15 sec, the program shuts down. The program is running in a Propeller Activity board WX.
This is repeatable.
I would like a guru to explain this issue.
Thank you.
P.S : the zip file is attached
T wrote the attached program with "While(1)" and is suppose to run for ever,
but runs only for 1min and 15 sec, the program shuts down. The program is running in a Propeller Activity board WX.
This is repeatable.
I would like a guru to explain this issue.
Thank you.
P.S : the zip file is attached

Comments
Cannot help till we see what you are doing.
I attached the file here.
Siri
int main() // main function { lcd = serial_open(12, 12, 0, 9600); while(1) // Repeat indefinitely { int cmDist = ping_cm(15); // Get cm distance from Ping))) print("cmDist = %d\n", cmDist); // Display distance pause(20); // Wait 1/5 second writeChar(lcd, ON); writeChar(lcd, CLR); writeChar(lcd, 17); pause(10); dprint(lcd,"The distance is = %d"), cmDist; pause(200); } }Thanks. Your solution worked.
Siri