Hi Guys,
The Teensy 3.x boards have heaps of Arduino pins but I'm trying to figure out if I can arrange to have 2 x native 8-bit ports come out and go to some 2x5 headers (8 bits + GND and VCC) so you can do tidy and fast whole port type operations to each 2x5 header. In the AVR world these would be bits 0..7 of the A, B, C, D, E ports say depending on the chip.
I've been staring at the pinout diagram here: https://forum.pjrc.com/threads/25643-Combined-Pin-Assignments-card and it's not looking very encouraging to me....
I need access to the CAN 2.0B interface and I'd like to also have access to the I2C and SPI ports as well as well as the 2x8-bit registers output to the 2x5 headers but I don't think it will be possible. So that leaves me with doing things like allocate the I2C and SPI port pins and then form the 8-bits of the 2x5 headers with scattered I/O pins and do bit manipulations to get them into tidy 8-bit type I/O operations, which will not be very efficient.
I have read a bit about the Port Mux and have dabbled with the Port Mux on the nRF51822 chips and they seem to have a great deal of flexibility as to which pin a peripheral is connected so I'm wondering if the equivalent flexibility exists with the chips on the Teensy 3.x boards?
Any suggestions or comments?
Regards
Alex Shepherd
PS For the curious - this would be used on Model Railroad Layouts as part of the Control System. The Layout Bus is CAN based and would interface to various I2C peripherals and also 1-2 flexible 8-bit port oriented interface modules like the ones listed under the heading Input/Output Modules for Tower Controller, TowerMan, SSB Aux ports, and LNCP on this page here: http://www.rr-cirkits.com/description/index.html
The Teensy 3.x boards have heaps of Arduino pins but I'm trying to figure out if I can arrange to have 2 x native 8-bit ports come out and go to some 2x5 headers (8 bits + GND and VCC) so you can do tidy and fast whole port type operations to each 2x5 header. In the AVR world these would be bits 0..7 of the A, B, C, D, E ports say depending on the chip.
I've been staring at the pinout diagram here: https://forum.pjrc.com/threads/25643-Combined-Pin-Assignments-card and it's not looking very encouraging to me....
I need access to the CAN 2.0B interface and I'd like to also have access to the I2C and SPI ports as well as well as the 2x8-bit registers output to the 2x5 headers but I don't think it will be possible. So that leaves me with doing things like allocate the I2C and SPI port pins and then form the 8-bits of the 2x5 headers with scattered I/O pins and do bit manipulations to get them into tidy 8-bit type I/O operations, which will not be very efficient.
I have read a bit about the Port Mux and have dabbled with the Port Mux on the nRF51822 chips and they seem to have a great deal of flexibility as to which pin a peripheral is connected so I'm wondering if the equivalent flexibility exists with the chips on the Teensy 3.x boards?
Any suggestions or comments?
Regards
Alex Shepherd
PS For the curious - this would be used on Model Railroad Layouts as part of the Control System. The Layout Bus is CAN based and would interface to various I2C peripherals and also 1-2 flexible 8-bit port oriented interface modules like the ones listed under the heading Input/Output Modules for Tower Controller, TowerMan, SSB Aux ports, and LNCP on this page here: http://www.rr-cirkits.com/description/index.html