Search found 21 matches
- Tue Jun 18, 2013 6:05 pm
- Forum: Flowcode V5
- Topic: 16F877A External Interrupts
- Replies: 15
- Views: 8385
Re: 16F877A External Interrupts
You are definitely the man :D! Thanks Martin. Actually the flag method you have implemented seems to work better for my specific application, since I can control at what points in the program I want the "ISR" to execute. There are certain times I do not want the interrupt to have any effect, e.g ...
- Mon Jun 17, 2013 7:44 pm
- Forum: Flowcode V5
- Topic: 16F877A External Interrupts
- Replies: 15
- Views: 8385
Re: 16F877A External Interrupts
Martin / Ben, thanks for the help.
I have attached the flowcode file. The code I want to execute during the ISR is contained in the "Main_Interrupt" macro. If this can somehow be placed outside the ISR, but executes whenever the switch B0 is pressed, then my problem will be solved. Not commercially ...
I have attached the flowcode file. The code I want to execute during the ISR is contained in the "Main_Interrupt" macro. If this can somehow be placed outside the ISR, but executes whenever the switch B0 is pressed, then my problem will be solved. Not commercially ...
- Mon Jun 17, 2013 5:35 pm
- Forum: Flowcode V5
- Topic: 16F877A External Interrupts
- Replies: 15
- Views: 8385
Re: 16F877A External Interrupts
I checked the compiler log files and I am getting the following warning messages after the interrupt compile:
Serious Warning: Possible sw stack corruption, function 'FCM_Enter_On_Time' called by more than one asynchronous thread (main/Task, interrupt, interrupt low)
Serious Warning: Possible sw ...
Serious Warning: Possible sw stack corruption, function 'FCM_Enter_On_Time' called by more than one asynchronous thread (main/Task, interrupt, interrupt low)
Serious Warning: Possible sw ...
- Mon Jun 17, 2013 5:07 pm
- Forum: Flowcode V5
- Topic: 16F877A External Interrupts
- Replies: 15
- Views: 8385
Re: 16F877A External Interrupts
Hi Martin,
The ISR is quite long, so it cannot be switch debounce. I also have a 10K pulldown resistor connected to B0.
Yes, I do have the LCD code as part of the main interrupt. Should I remove it and add it to a macro called by the main interrupt routine?
Thanks
Mervin
The ISR is quite long, so it cannot be switch debounce. I also have a 10K pulldown resistor connected to B0.
Yes, I do have the LCD code as part of the main interrupt. Should I remove it and add it to a macro called by the main interrupt routine?
Thanks
Mervin
- Sun Jun 16, 2013 10:00 pm
- Forum: Flowcode V5
- Topic: 16F877A External Interrupts
- Replies: 15
- Views: 8385
Re: 16F877A External Interrupts
Hi,
I've set up the B0 interrupt, run the simulation and when I press the interrupt switch it enters the ISR and thereafter exits as expected. When I download to the PIC and press the push button switch I wired up to B0, it enters the ISR. On exiting the ISR, it seems to re-execute the ISR; I see ...
I've set up the B0 interrupt, run the simulation and when I press the interrupt switch it enters the ISR and thereafter exits as expected. When I download to the PIC and press the push button switch I wired up to B0, it enters the ISR. On exiting the ISR, it seems to re-execute the ISR; I see ...
- Sat Jun 08, 2013 9:03 pm
- Forum: Flowcode V5
- Topic: 16F877A External Interrupts
- Replies: 15
- Views: 8385
Re: 16F877A External Interrupts
A question regarding the use of the port interrupt:
B4 to B7 form part of the port interrupt. Does this mean I can use B0 to B3 for other purposes, e.g. use them as outputs?
I want to only use 2 of the 4 B4 to B7 interrupt pins, e.g. assign push button switches to B4 and B5. Do I use a pull-up ...
B4 to B7 form part of the port interrupt. Does this mean I can use B0 to B3 for other purposes, e.g. use them as outputs?
I want to only use 2 of the 4 B4 to B7 interrupt pins, e.g. assign push button switches to B4 and B5. Do I use a pull-up ...
- Sat Jun 08, 2013 8:04 pm
- Forum: Flowcode V5
- Topic: 16F877A External Interrupts
- Replies: 15
- Views: 8385
Re: 16F877A External Interrupts
Sorry, my fault :oops:. I checked the circuit again and the enable pin was incorrectly connected; difficult to notice on a bread board full of wires! Yes, I know it is a bad excuse!
Martin thank you for suggesting the use of the timers as external interrupts. I am going to first try to configure ...
Martin thank you for suggesting the use of the timers as external interrupts. I am going to first try to configure ...
- Sat Jun 08, 2013 5:34 pm
- Forum: Flowcode V5
- Topic: 16F877A External Interrupts
- Replies: 15
- Views: 8385
Re: 16F877A External Interrupts
Okay, I've got another problem!!!
I moved the LCD from port B (D4 to D7 connected to B4 to B7, EN to B0 and RS to B1) to port A (D4 to D7 to A0 to A3, RS to A4 and EN to A5) to free up port B, so that I could use the port B interrupts. Now the LCD has stopped working and it used to working ...
I moved the LCD from port B (D4 to D7 connected to B4 to B7, EN to B0 and RS to B1) to port A (D4 to D7 to A0 to A3, RS to A4 and EN to A5) to free up port B, so that I could use the port B interrupts. Now the LCD has stopped working and it used to working ...
- Sat Jun 08, 2013 2:44 pm
- Forum: Flowcode V5
- Topic: 16F877A External Interrupts
- Replies: 15
- Views: 8385
16F877A External Interrupts
Hi,
Does anybody know how to program and I/O pin of one of the ports of the 16F877A to be an interrupt pin, similar to the RB0 interrupt pin. I want to add 2 push button switches, each one triggering a separate macro. I can do it with RB0, but is it possible to program another pin to act as an ...
Does anybody know how to program and I/O pin of one of the ports of the 16F877A to be an interrupt pin, similar to the RB0 interrupt pin. I want to add 2 push button switches, each one triggering a separate macro. I can do it with RB0, but is it possible to program another pin to act as an ...
- Fri Jun 07, 2013 6:52 am
- Forum: Flowcode V5
- Topic: SPI in Flowcode 5
- Replies: 8
- Views: 5453
Re: SPI in Flowcode 5
Guys, thanks for the reply.
I checked the connections and all are correct. SERMODE is connected to Vcc I have changed the settings as suggested by Mantas, but still no luck.
How can I check if the microcontroller is actually initializing SPI mode?
Maybe I should replace the RTC chip.
I checked the connections and all are correct. SERMODE is connected to Vcc I have changed the settings as suggested by Mantas, but still no luck.
How can I check if the microcontroller is actually initializing SPI mode?
Maybe I should replace the RTC chip.
- Thu Jun 06, 2013 10:04 pm
- Forum: Flowcode V5
- Topic: SPI in Flowcode 5
- Replies: 8
- Views: 5453
Re: SPI in Flowcode 5
Thanks Mantas.
I have downloaded code from Sean for the DS1305 RTC [http://www.matrixmultimedia.com/mmforums/viewtopic.php?f=5&t=6854&p=15993&hilit=ds1305#p15993] and modified it a little with code from JohnCrow [http://www.matrixmultimedia.com/mmforums/viewtopic.php?f=29&t=8607&p=46544&hilit ...
I have downloaded code from Sean for the DS1305 RTC [http://www.matrixmultimedia.com/mmforums/viewtopic.php?f=5&t=6854&p=15993&hilit=ds1305#p15993] and modified it a little with code from JohnCrow [http://www.matrixmultimedia.com/mmforums/viewtopic.php?f=29&t=8607&p=46544&hilit ...
- Wed Jun 05, 2013 8:29 am
- Forum: Flowcode V5
- Topic: SPI in Flowcode 5
- Replies: 8
- Views: 5453
Re: SPI in Flowcode 5
Hi Mantas,
Thanks for the response and for providing clarity on SPI.
I noticed there are NVM Enable and NVM disable routines. I am assuming NVM enable drives the line low and NVM disable drives the line high. I can use the NVM line as the CE for the DS1305
Then I can:
Call SPI_Init
then
Call NVM ...
Thanks for the response and for providing clarity on SPI.
I noticed there are NVM Enable and NVM disable routines. I am assuming NVM enable drives the line low and NVM disable drives the line high. I can use the NVM line as the CE for the DS1305
Then I can:
Call SPI_Init
then
Call NVM ...
- Tue Jun 04, 2013 8:21 pm
- Forum: Flowcode V5
- Topic: SPI in Flowcode 5
- Replies: 8
- Views: 5453
SPI in Flowcode 5
Hi,
I want to use the SPI_Legacy() component macro to program a DS1305 RTC. The chip requires an active high on the chip enable (CE) pin to enable the chip for read or write operations. The issue I have is, SPI_Legacy() is designed around the EB013 board, which has two enable outputs, i.e. NVM and ...
I want to use the SPI_Legacy() component macro to program a DS1305 RTC. The chip requires an active high on the chip enable (CE) pin to enable the chip for read or write operations. The issue I have is, SPI_Legacy() is designed around the EB013 board, which has two enable outputs, i.e. NVM and ...
- Tue Jun 04, 2013 7:55 pm
- Forum: Flowcode V5
- Topic: DS1307 RTC Problem
- Replies: 3
- Views: 2937
Re: DS1307 RTC Problem
Hi Dazz,
Thanks for the response. I figured out what the problem was; I was using the home edition of Flowcode 5, so when I compiled the code, FC5 did not generate the C code for the I2C component. Okay, I feel like an idiot, because I spent a few hours trying to find out what was causing the ...
Thanks for the response. I figured out what the problem was; I was using the home edition of Flowcode 5, so when I compiled the code, FC5 did not generate the C code for the I2C component. Okay, I feel like an idiot, because I spent a few hours trying to find out what was causing the ...
- Sun Jun 02, 2013 9:14 pm
- Forum: Flowcode V5
- Topic: DS1307 RTC Problem
- Replies: 3
- Views: 2937
DS1307 RTC Problem
Hi,
I connected up a DS1307 RTC to a 16F8ffA as per the following discussion thread:
viewtopic.php?f=29&t=8607&p=46788&hilit=rtc#p46788
I am managing to download the code to the 16F887A and I get the LCD displaying "DS1307 programmed", but when I do a read to obtain the date, I just get zero's ...
I connected up a DS1307 RTC to a 16F8ffA as per the following discussion thread:
viewtopic.php?f=29&t=8607&p=46788&hilit=rtc#p46788
I am managing to download the code to the 16F887A and I get the LCD displaying "DS1307 programmed", but when I do a read to obtain the date, I just get zero's ...
- Sun Jun 02, 2013 9:10 pm
- Forum: General Programming
- Topic: RTC Interrupt
- Replies: 7
- Views: 5906
Re: RTC Interrupt
Dazz, thanks. I have registered on the Flowcode v5 forum. I will post my previous message there.
- Sun Jun 02, 2013 7:20 pm
- Forum: General Programming
- Topic: RTC Interrupt
- Replies: 7
- Views: 5906
Re: RTC Interrupt
Guys,
Sorry if this is posted in the wrong forum. I could not find a link to post a new message under Flowcode 5 forum.
I connected up the DS1307 as per the following discussion:
http://www.matrixmultimedia.com/mmforums/viewtopic.php?f=29&t=8607&p=46788&hilit=rtc#p46788
I am managing to download ...
Sorry if this is posted in the wrong forum. I could not find a link to post a new message under Flowcode 5 forum.
I connected up the DS1307 as per the following discussion:
http://www.matrixmultimedia.com/mmforums/viewtopic.php?f=29&t=8607&p=46788&hilit=rtc#p46788
I am managing to download ...
- Mon May 27, 2013 4:12 pm
- Forum: General Programming
- Topic: RTC Interrupt
- Replies: 7
- Views: 5906
Re: RTC Interrupt
Hi Acestu,
Thanks for the response. I will search for it.
Mervin
Thanks for the response. I will search for it.
Mervin
- Sun May 26, 2013 9:01 pm
- Forum: General Programming
- Topic: RTC Interrupt
- Replies: 7
- Views: 5906
RTC Interrupt
Hi ,
I am to developing a project using the 16F877A connected to a D1307 to provide time and date information. I want to run a routine (to control a couple of stepper motors etc.), which will start at a specific time of day from Monday to Sunday, execute and stop at a specific time. I want to ...
I am to developing a project using the 16F877A connected to a D1307 to provide time and date information. I want to run a routine (to control a couple of stepper motors etc.), which will start at a specific time of day from Monday to Sunday, execute and stop at a specific time. I want to ...
- Fri Oct 31, 2008 6:46 pm
- Forum: General Programming
- Topic: Problems with HP488 /PIC16F84
- Replies: 11
- Views: 9478
Re: Problems with HP488 /PIC16F84
Yes, the jumpers are set to I/O and I am using a PIC16F84A.
I actually managed to figure out what the problem was. I had the osscillator switches set to RC/FAST. When I changed it to RC/SLOW and turned potentiometer to fully anti-clockwise, it solved the problem. Even LB5 is now working!! Should ...
I actually managed to figure out what the problem was. I had the osscillator switches set to RC/FAST. When I changed it to RC/SLOW and turned potentiometer to fully anti-clockwise, it solved the problem. Even LB5 is now working!! Should ...
- Thu Oct 30, 2008 4:23 pm
- Forum: General Programming
- Topic: Problems with HP488 /PIC16F84
- Replies: 11
- Views: 9478
Problems with HP488 /PIC16F84
I recently purchased a HP488 verion 3 board. I have managed to program a PIC1684 with a simple test program that sequentially turns on the onboard port A & PORT B LEDs (program part of the Matrix ASM for PICMicro course - tutorial TUTA3.asm), but noticed that the LB5 LED was not turning on while the ...