Looks like you're applying your experience with the simple AVR chips to these newer, more complex ARM chips.
Maybe you're not aware of the PORT registers which control a mux that connects the pin to 1 of 8 possible functions? The GPIO registers are one of those 8 functions. If you don't configure the mux to connect the pin to GPIO, then manipulating the GPIO registers has no effect.
All of this stuff is documented in Freescale's reference manual. It's all done in the Teensyduino core library which implements pinMode and digitalWrite.
If you're only accessing the peripherals, you only need the reference manual for the chip you're using.
However, if you're going to use interrupts natively, I highly recommend you get Joseph Yiu's book. There are important differences between AVR's simplistic and very limited interrupt system and Cortex-M's far more advanced priority nested interrupt controller. Many AVR experts have gone down this path, especially applying their knowledge of AVR's GIE (global interrupt enable) status bit, wrongly assuming it's the same as the NVIC's PRIMASK feature. If you're going to do low-level register programming and get into the CPU's features, you really need that book. The ARM core isn't documented much in Freescale's reference manual (nor the datasheets from any of the other manufacturers). That book is the essential info about the processor.
thanks for your answer.
apart from reading the ref manual i just found that after pinMode being called once
- which - i guess - inits the muxer it is possible to change direction by using PDDR directly.
i am planning to make a 16bit address/databus adapter for an old large machine and was looking for fast parallel i/o
I had missed a couple of components in the schematics, sorry about that...
Anyways, thanks to all of you guys I finished the Eagle schematics. Hopefully it'll be a boost start for others in their quest for custom Teensy.
I changed the fuse to the one which HWGuy suggested: Bourns MF-FSMF050X.
As advised here, I picked ECS-160-8-30B-CKM for the 16 MHz oscillator. For others who come across, consult here and here for careful layout design of your oscillator.
If you find any faults, please let me know so I'll update this post.
Update (May 6th, 2017): Fixed some disconnected joints on the right side of micro controller. Also, TPDS014 and LP38691 are replaced with their fixed versions.
As my project progressed, it seemed proper to switch for Altium. So I redrew the schematics.
Here are the libraries I made:
MK66LFX1M0VMD18
MKL02Z32VFG4
TPD3S014
LP38691
PMEG4010CPA (double diode)
DM3D-SF (microSD slot)
MF-FSMF050X-2 (fuse)
Crystal and oscillator
ICs were easy to make as Altium had a wizard for this purpose. 3D model for the microSD slot was downloaded from this GitHub repository, and other components (resistors, capacitors, ferrites, pads and micro USB port) were from here.
Hope you enjoy, and let me know if you find any flaws
Update (May 30th, 2017): Fixed the missing A4 pin on the micro controller.