??? 05/25/04 02:28 Read: times |
#71096 - RE: Eight LEDS & Eight Switches Simplified Responding to: ???'s previous message |
A cursory glance at the code reveals some fundamental issues :
* INIT is called for every loop of MAIN. Is this what you intended ? * You are supposed to scan 8 switches and without a slicing scheme that allocates a finite time for each switch, you are going to end up missing many switch presses. ( In the absence of any introductory remark, I guess you want to scan 8 switches as you are comparing with the State Machine Tutorial ) * Uncommented code. And the few comments that are provided are translations of the Instruction. In the absence of the comments, commenting on the correctness of your code is next to impossible. And when you comment code, obvious goof ups surface at a glance. Raghu |
Topic | Author | Date |
Eight LEDS & Eight Switches Simplified | 01/01/70 00:00 | |
RE: Eight LEDS & Eight Switches Simplifi | 01/01/70 00:00 | |
is my code not a state machine | 01/01/70 00:00 | |
something more | 01/01/70 00:00 | |
RE: Eight LEDS & Eight Switches Simplified | 01/01/70 00:00 | |
RE: Eight LEDS & Eight Switches Simplified | 01/01/70 00:00 | |
RE: Eight LEDS & Eight Switches Simplified | 01/01/70 00:00 | |
RE: Eight LEDS & Eight Switches Simplifi | 01/01/70 00:00 | |
thanks | 01/01/70 00:00 | |
RE: thanks![]() | 01/01/70 00:00 |