Sorry for the late reply. The code posted in reply #23 assumes that there are inverting buffers on the TCD1304 SH and ICG inputs. To make it work with a direct connection, the HIGH and LOW states must all be swapped.
This is essentially that...
Yes, setting the pinMode to INPUT_DISABLE (which is the correct setting when using the pin to read input analog voltages) definitely sets the pin to an input, disabling the pin's output drivers.
Make sure to note that when using analog MUXs (in...
So im sharing an analog pin to read analog in from a multiplexer. The multiplexer gets enabled, reads various values then gets disabled.
That same pin then switches into a digital out pin (as part of a 16 bit parallel output to a display)...
Instead of this (which would be appropriate when using a pin as a *digital* input. . . leaves the bus keeper that Mark T mentioned enabled):
pinMode(ACUR1, INPUT);
pinMode(ACUR2, INPUT);
Use this (which is appropriate when using a pin for...
So, the use of the word 'reset' was used out of habit. I know its a 'Program' button but thanks for double checking my knowledge on the matter (or rather correcting my terminology). So, Its certainly bricked. I have put this down to a faulty...
That's great advice, Paul!
If a TCXO has enough temperature stability for my use case, what would be the specs I should look for when selecting the part? For example, input voltage, output signal form and voltage. Maybe if you could provide the...
If you desolder the crystal and try connecting the output of an oscillator (rather than another simple crystal), this corner is the location to connect the oscillator output.
You probably should use resistors to attenuate the oscillator output...
Since I am a glutton for punishment here a few boards tested where if you just hook up I2c without INT/RST connected they don't work:
Arduino GIGA R1
Arduino R4 WiFI
ESP32S2
ESP32 Micromod.
They do work if you hook up INT and RST pins. Ok I am...
Yeah, probably.
Those look physically smaller than the 3.2 x 2.5 mm part on Teensy 4.1. But yes, if you could get one in the correct physical size, a TCXO would likely give an improvement over the ordinary crystal you have now.
Maybe an OCXO...
I'am working on a project using Teensy 4.1 where I read the frequency of a Quartz Crystal Microbalance (QCM) using the FreqCount library. My goal is to be able to detect very small changes on the QCM frequency (natural frequency around 5 MHz)...
So, the use of the word 'reset' was used out of habit. I know its a 'Program' button but thanks for double checking my knowledge on the matter (or rather correcting my terminology). So, Its certainly bricked. I have put this down to a faulty...
Did a bit more of a deep dive into the specs and the 2 libraries. Here is what I found:
1. Adafruit library uses an older version of the Hillcrest SHTP protocol geared to the BNO080 and BNO085 which they have break outs for. They do not...
Here's a test program to verify that the header works for VGA images. It generates a .BMP file with color bars and gray scale bars with the bitmap in RGB888 format (which is really GBR888 in the file). It includes MTP so that you can easily get...
@PaulStoffregen
Was doing some more poking around with this chip and how its using RST and INT. Definitely don't think its as I2C issue - more of device/libary issue. As a note Sparkfun uses the CEVA library for interfacing with the device.
I have had a similar problem to yourself, receiving temperature and humidity readings from multiple ESP32Cs by a single ESP32C and transmitting to Teensy 4.1 via UART for storage for future analysis.
At first I used Text transmission, like...
Maybe <this> is the post that you are recalling ?? This may or may not apply, as the post recommends adding the "DSB" command at the end of an interrupt function when using the T4.x (which is much faster than the T3.x).
Mark J Culross
KD5RXT
This writes a BMP that is read without complaint by Paint Shop Pro.
// https://forum.pjrc.com/index.php?threads/create-an-image-as-an-array-of-pixels-and-save-as-bmp-file.74006/post-334757
/*
a test script to generate an image, dump it to...
Interesting.
Here is my (Atari HD brick) HD ACSI implementation with Media Transfer Protocol.
I'm pushing the limits of the Atari ST/e DMA speed, based on Teensy 4.1. :D
Sorry. I don't have a blog or a GitHub. Nevertheless I am very happy to share the code with anyone interested.
If you want deeper details/information, probably best to PM me and I will answer ASAP.
I kept many of my Atari ST floppies from the...
Hey I am just curious is there any more information about your project somewhere for the Atari ST disk drive ?
Just asking because I am big fan of Atari computers.
Here is one of my projects for Atari Falcon 030 FDI+ Work In Progress !!!
I just got my Teensy's ordered! Was looking at the ref manual and see that at least some of the lp-uarts have the "single-wire mode" that we need for SDI12 communications, so that is a good start. I haven't really dug into the T4's serial code in...
You can only set the priority for the whole port not just one pin.
void setup() {
// put your setup code here, to run once:
NVIC_SET_PRIORITY(IRQ_PORTD, 0);
}
void loop() {
// put your main code here, to run repeatedly:
}
Hi guys,
Thanks for all the advice. I'm not really in a rack mount environment and don't have room to install the Mean Well - good recommendation, may end up using that device in the future.
I'll also look to protect Teensy GPIO with series...
NVIC_SET_PRIORITY(fromFDDreadPinIRQ, 0); // HIGHEST priority
I am pretty sure that during the track/sector read only the index pulse and read-data can generated interrupts. I switched off the SysTick. Other sources of interrupt, well I'm...
I have done some further investigation, looking at the raw data captured from the FTM timer module.
I also compared a good data stream against the place where it was corrupted. I tried to line up the re-constructed floppy read pulses, but when I...
I suggest you take a look at the libraries EasyTransfer and SerialTransfer. They are not cross-platform, but they are simple enough that you could implement either one on the PC side. They both have they same purpose, which is to send/receive...
The syntax I use for a BMP header is:
# pragma pack (push)
# pragma pack (2)
// save previous packing, then set packing for 16-bits
typedef struct tBMPHDR565VGA{
uint16_t bfType = 0x4d42; //'bm';
uint32_t bfSize = 614466;// 614400...
Thanks for confirming. I'll keep this thread on my list to watch, but sounds like no need to deep dive right now. If it is looking like Wire might have a problem, hopefully a clear test case can be made before I dive into the Wire library.
I think this is part of the problem:
dibHeader.width = 128;//width;
dibHeader.height = 48;//height;
The header you've written says that the image is 128x48 but what you actually write is what is defined here:
#define IMAGE_HEIGHT 3 //48...
Before you disable other interrupts, perhaps first try NVIC_SET_PRIORITY(IRQ_PORTD, 0);
0 is the highest priority, 255 is the lowest. By default, various interrupts are assigned 32 to 128, so setting 0 will allow it interrupt any others and no...
@tim:
You should be able to use the PITCHBEND & MODWHEEL pots exactly as wired. PITCHBEND usually has some mechanical mechanism to return it to center when not activated, so I'll assume that this is the case in my functional description below...
i will admit i am a bit lost here. Can you give examples of how to use this. This is what i did before:
struct __packed BMPFileHeader {
uint16_t fileType; // "BM" for...
Hi All,
So I am using LVGl on my teensy 4.1 and I would like to use the data from a font .c file in an unusual way. With the font defined as a .c file, I am unable to change the data within the array (only read from it to draw the font). I...
I would appreciate any pointers (other postings, web sites) as to how to identify all sources of interrupts and the code needed to disable them. The MK20 SoC is a complicated and sophisticated architecture and I am no expert. It's significantly...
Yes, I know this is not a Teensy, but needed a diversion. Plus lots of things to try to improve.
Yesterday I was curious about how fast the digitalWrite calls are and if there was a digitalWriteFast and if so how much did it speed it up.
There...
Most but not all Teensy 3.0 had black solder mask. Some of the earliest Teensy 3.1 were also black.
The board in this photo is definitely Teensy 3.0. The lighting doesn't quite catch the main chip well, but it is readable "MK20DX128VLH5" with...
Hello,
I make haptic devices that requires very low latency (<0.3ms or 3kHz+), but also very small packages of data, often < 64 bytes.
Normal APIs, especially in Windows, usually don't get the settings right to reach the low latency needed...
Personally I don't think its a Wire library issue. I just retested the both libraries by just attaching to the QWIIC connector on a Micromod board and a R4.
TMM: Sparkfun lib doesn't see the sensor for the couple examples I tested.
R4...