I ran that and got the same result. Changed the pins to 23, 22 and 21 and got the same result.
So now I am rather confused, however, can agree that the Arduino function seems to work OK.
With regards to why I used pins 23, 22 and 21 on the...
Thank you for having a look anyway.
The two dimensional arrays was my way of trying to make sense of the Teensy pin to GPIO bits mapping. The below concentrates on just 3 pins which I set 1) output high, 2) output low and 3) input_pullup to...
No worries. I am grateful for your reply. In answer to your question, yes I have searched with Google which I usually do before asking on a forum. I also found the list of registers and their descriptions in the 1062 manual which has provided...
Thank you. Tried it. Same result unfortunately.
You have a point about input and I may need to review the premise of what I am trying to do. On Arduino AVR a digitalRead() will return a '1' for an output that is set, a pull-up being set as well...
I have been doing some experiments reading Teensy registers on the Teensy 4.1 and I am a bit puzzled by the results. I a setting 8 pins simmultaneously as an 8-bit bus. If I set the pins outputs and set a value and then read back the DR register...
Yes, there could potentially be more than one device sitting on the bus. As it happens, I had been considering deploying a level shifter. At this stage everything is on a breadboard. I agree, whether its the ESP32, Pico and the Teensy, all these...
Ok, I am no longer sure that reversing the position of the MCU and bus was the correct thing to do.
Earlier when I Googled I came across a reference that appeared to confirm @jamrsh had said, but I have since found references that say the exact...
Its 3.2V when Teensy is driving it high which should be adequate. Further testing shows that the SN75160 is working fine. When TE is low then the external D pin states change in line with the state change of the Teensy pins. I also tried the...
Thank you. The aim is to have the Teensy isolated from direct connection to the GPIB bus. The GPIB I/O side is currently connected directly to the GPIB bus (with the instrument at the other end) and the Teensy is on the terminal side. I take your...
Can anyone confirm whether it is possible to drive SN7516x buffer ICs using a Teensy?
I seem to be having difficulty driving the TE (Transmit Enable) pin from a Teensy GPIO - tried pins 2 and 3. I see the GPIO going up and down for high and low...
Thank you.
So I can see from the iMX RT1060 manual that by setting all bits to 1 in each register, this selects the fast GPIO for each shared pair.
I actually discovered this through trial and error yesterday as I had my code written for GPIO1...
I needed time to get other priorities sorted but started looking at this again yesterday.
I have a read of the excellent post by @miciwan information here yesterday and slowly some things are beginning to make sense.
@Chris O, I also had a...
@Chris O. , thank you for posting those details. Looks very interesting although I have not analyzed this in detail yet as I am a bit rushed off my feet at the moment. However I will have a look in detail when I get the chance. There seems to be...
I am emulating an 8-bit bus. Pinmode (or equivalent) needs be used outside of setup() because the bus is bi-directional being controlled by a second 8-bit control bus, so pins are continually switched between input and output modes on both buses...
@kd5rxt-mark , thank you for the helpful links to further material. I am still reading the other thread. Its slowly starting to make a little sense - if only to re-enforce the idea that its not meant to make any sense! Curious that its been...
Can someone help me understand Teensy registers please?
Lets start with a simple question. I am referencing the manual on PJRC here:
https://www.pjrc.com/teensy/IMXRT1060RM_rev3.pdf
Sectrion 12.6.1 describes the GPIO registers. 12.6.1.1 says...