RBO/INT Interrupt
Posted: Fri Dec 26, 2008 4:23 pm
Hi, I have Flowcode 1 and v2 of the PICmicro Development Board fitted with PIC16F84.
Tutorial 23 uses the RB0/INT to increment a counter and display the binary value on port A. The Flowcode simulator works but when you send to the PIC I cannot make it work. I have tried writting some simple code using a loop to refresh a value in COUNT to port A. I've enabled RBO/INT to increment COINT by 1 when an RBO/INT change occurs but althouth this works in the simulator it will not work when sent to the PIC. There is a note in the documentation stating that setting up external interruptions can be difficult and will require additional setting to be made but no other information is given. Please can anyone help.
Tutorial 19 uses the internal timer interrupt. This works when sent to the PIC but does not work in the simulator. Does anyone no the reason for this.
I spent christmat learing Flowcode 1 which I bought some years ago and have started learning Assemply for PICmicro. My goal was to create a simple project that used RBO/INT to trigger/reset a timer that would cause a pin on poprt A to go high for a fixed duration (1, 2 or 3-mins). The duration would depend on whether B6, B7 or B8 was set high. The project would control how long the lights would stay on in the garden when the PIRs sent a wireless signal to RB0/INT.
My project is now on hold unless I can solve the proble of using an external interrupt.
Tutorial 23 uses the RB0/INT to increment a counter and display the binary value on port A. The Flowcode simulator works but when you send to the PIC I cannot make it work. I have tried writting some simple code using a loop to refresh a value in COUNT to port A. I've enabled RBO/INT to increment COINT by 1 when an RBO/INT change occurs but althouth this works in the simulator it will not work when sent to the PIC. There is a note in the documentation stating that setting up external interruptions can be difficult and will require additional setting to be made but no other information is given. Please can anyone help.
Tutorial 19 uses the internal timer interrupt. This works when sent to the PIC but does not work in the simulator. Does anyone no the reason for this.
I spent christmat learing Flowcode 1 which I bought some years ago and have started learning Assemply for PICmicro. My goal was to create a simple project that used RBO/INT to trigger/reset a timer that would cause a pin on poprt A to go high for a fixed duration (1, 2 or 3-mins). The duration would depend on whether B6, B7 or B8 was set high. The project would control how long the lights would stay on in the garden when the PIRs sent a wireless signal to RB0/INT.
My project is now on hold unless I can solve the proble of using an external interrupt.