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.

Raghuram Shenoy
Raghuram Shenoy
7
| 4 1 2
Asked on 6/10/16, 6:28 AM
0
vote
3840 Views

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

Tom
Tom
5675
| 1 1 3
Answered on 6/10/16, 7:05 AM
3
vote

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

Rui barroco
Rui barroco
7
| 1 0 1
Answered on 10/24/16, 5:05 PM
0
vote

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!

 

Stefano Giuseppe Bonvini
Stefano Giuseppe Bonvini
577
| 2 0 2
Answered on 10/4/16, 10:50 PM
0
vote

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.

Stefano Giuseppe Bonvini
on 10/5/16, 1:13 AM

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
on 10/5/16, 2:02 AM

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 about Forum Post Pin Change Interrupt on 1286 IND I/O board (226)

Stefano Giuseppe Bonvini
on 10/5/16, 7:45 AM

Dear Tom,

Thanks a lot. Got it working and the documentation and examples are perfect.

Raghuram Shenoy
Raghuram Shenoy
7
| 4 1 2
Answered on 6/10/16, 7:17 AM
0
vote

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!

Ask a Question

Keep Informed

About This Forum

This community is for professionals and enthusiasts of our products and services.

Read Guidelines

Question tools

27 follower(s)

Stats

Asked: 6/10/16, 6:28 AM
Seen: 3840 times
Last updated: 10/24/16, 6:01 PM