Pin Change Interrupt on 1286 IND I/O board
Could some one give me the interrupt on the 1286 IND I/O board? The example given is for the 32u4 board and shows this as Interrupt 4. Interrupt 4 on the 1286 board is used by the DOWN button.
Hi Raghu,
We have recently worked on documentation on github, please find the section on IND.I/O interrupts at https://github.com/Industruino/libraries#interrupts
On the 1286 it uses INT7, and indeed there are interrupts for the membrane panel buttons too.
Regards- Tom
Hello.
I also tried to use the interrupts on the 1296 board, but it dont work.
I used the example in this page: https://github.com/Industruino/libraries/blob/master/README.md#interrupts , the example for the 1286 board, but the interrupt is never executed.
I'm using the latest documentation.
What could be the problem?
My equipment is not recent (Fev./2015). It possible that there has been an update to the hardware? The photo of the base on the website, is different from my equipment.
Thanks
Rui
Hello,
I did use the new documentation but could not make it work.
I get a lot of hits while no interrupt is being created.
What I figured out is that PCINT7, which is PB7, shares ISR with OC0A and OC1C.
Edit: probably the correct pin is INT7, which is PE7.
I have been fiddling with timers and got some change in behaviour, but can't figure it out using any of the sample codes.
The keyboard example works perfectly, but not the external interrupt one.
But keyboard is on the top board, while external iterrupt must be routed to the Ind. I/O board somehow.
Another fact that baffles me is that PCINT7, which corresponds to PB7, is not being routed to the lower board through the 40-pin flat connector, so how can it receive interrupt signals?
Edit: But then also PE7 is not on the 40-pin flat connector either, so what is the correct interrupt pin?
Any help is most welcome!
Hi Stefano, can you be more specific about what is not working? Are you referring to the 2 examples for 1286 mentioned here https://github.com/Industruino/libraries/blob/master/README.md#interrupts Do these 2 examples not work with your hardware? If your problem is related to PCINT on the SPI pins available on the IDC connector, please update your pins_arduino.h board definition file for the 1286 with the latest version https://github.com/Industruino/boarddefinitions/blob/master/1286/Industruino/avr/variants/ind1286/pins_arduino.h
Hello Tom,
stop press!!
Now it works with attach interrupt 7 as in sample.
I just disassembled the whole unit and carefully reassembled.
Probably the flat cable was not properly seated.
Anyhow, thanks a lot for your time, this documentation could be improved in these areas.
As I always start from the ground up when something is not working, I spent a whole night testing and learning every single part of the unit trying to figure out what was correct and what could be measured.
Re: the pins on flat cable, the remaining pins are marked with a color stripe, which means GND or VCC or other signals per the list at the bottom.
Greetings,
Stefano
Da: Tom [mailto:tomtobback@gmail.com]
Inviato: 05 October 2016 04:02
A: Stefano Ariel Bonvini
Oggetto: Re: Pin Change Interrupt on 1286 IND I/O board (226)
Hi Stefano, can you be more specific about what is not working? Are you referring to the 2 examples for 1286 mentioned here https://github.com/Industruino/libraries/blob/master/README.md#interrupts Do these 2 examples not work with your hardware? If your problem is related to PCINT on the SPI pins available on the IDC connector, please update your pins_arduino.h board definition file for the 1286 with the latest version https://github.com/Industruino/boarddefinitions/blob/master/1286/Industruino/avr/variants/ind1286/pins_arduino.h
--
Tom
Sent by Industruino using Odoo
Your answer
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
Keep Informed
About This Forum
This community is for professionals and enthusiasts of our products and services.
Read GuidelinesQuestion tools
Stats
Asked: 6/10/16, 6:28 AM |
Seen: 3840 times |
Last updated: 10/24/16, 6:01 PM |
Still can't make it work! I found out that the INT pin in the PCA9555 I2C interface is connected to D8, which is PC6 or OC3A. Actually the same was on 32u4, so I really can't understand how does it work, unless the boards have been changed and the pinout map is outdated.