What length wires are you using between the MCU and the display boards? WIth 10cm wires I could not get past 20Mhz when testing
With an LCD and Micromod mounted to the same pcb with 2cm traces we got 24/30Mhz working.
I am using the same length...
Thanks for the response. I wired up the dev board again and started testing with the baseline driver code I posted. It shows something is wrong in the dev board/MicroMod side of my code. No matter what I set the bus speed to loading the same...
That's why I hope Rezo can go over the low level drivers I posted to make sure I am not missing something. I have a general idea of how FlexIO works but I might be missing some little details. Meanwhile I am wiring up the DevBoard again to test...
I remember reading that. At this point I am not using the SDRAM at all with the display. It is strictly the traces between the 1062 MCU and the out side connectors of the board. Once that and DMA communications are solved then I can start testing...
Not having good results with the SDRAM board and RA8876 in 16-bit 8080 mode. It's very unstable results:( Been playing with delays with no predictable results even at 2MHz. If I switch to 8-bit mode all of the examples in the Ra8876LiteTeensy...
@Rezo - I see B0_13 is available on the SDRAM DEV board. It does not have a pin number associated with it. How would you setup B0_13 as FlexIO 2:13 without a pin number as being done like this:
/* Basic pin setup */
pinMode(10, OUTPUT)...
Unless I missed something both B0_12 (35) and B0_13 (34) did not respond to a pin check with and LED connected to them. Just rechecked and they are not connected as well as pin B1_02 (36) and B1_03 (37). The only pin that is labeled as a T41 pin...
Hi Defragster - I am using @jmarsh's SDRAM_EXTMEM library. I only had to modify one sketch that was setup for the T41. The rest of them work out of the box. The sketch that I modified was "flexio_vga.ino" which basically just changed the VSYNC...
@jmarsh - Tested the elcdif sketches. Impressive:D Did not realize the mandelbrot sketch was animated.
Now to hook up the 10.1" LCD and test...
EDIT: By the way the T41 on the breadboard is the first T41 I got from PJRC. It has the white...
Thanks for the info and link above. I now have it working with external sdram. It seems to work ok up to 270MHz with a 1280x720 frame buffer.
Excuse my shakey picture:) I still am not using double buffering like in your original sketch but it...
First simple experiment on SDRAM board works. Adapted my 4-bit VGA library based on @jmarsh's driver to the dev board. Just had to change two pin defines for FlexIo2 for HSYNC and VSYNC which is used in several places in the FlexIO begin method...
The solder paste used on these boards are high temp 260c, it's actually very good solder. But to get something off you need a good iron and some flux. Or add a little more solder paste from a siringe (the latter is the best and easiest option)...
Thanks, I do have that document. I ran the oneScanCaps.ino sketch and most of the frequencies had no errors. Interestingly enough 166MHz had one error. I am not sure which cap DQS has on the board. I can barely see it even with a magnifying...
Just received the sdram development board today:D I ran through all of the test programs that I know about without a problem. I need to make sure I have all of the pinout info for this board. It is a version 4 board.
I thought I would start out...
Thanks, I'll take a look at it. So far it has been my lack of knowledge of FlexIO and DMA that has slowed me down but I'm starting to understand it more...
Actually you still need these parts in place of gpioRead() and gpioWrite():
pFlex->setIOPinToFlexMode(12); // For /RD signal
pFlex->setIOPinToFlexMode(10); // For /WR signal
So here is a a version of lcdDataRead() that works...
I am using this:
pFlex->setClockSettings(3, 1, 0); // (480 MHz source, 1+1, 1+0) >> 480/2/1 >> 240Mhz
and here is the FlexIO read setup:
FASTRUN void RA8876_t3::FlexIO_Config_SnglBeat_Read() {
#if defined(USE_MM)
p->CTRL &=...
I am trying to find the answer to why doing a FlexIO parallel read results in the /RD signal showing 4 pulses as apposed to the /WR signal showing just one pulse. I have looked all over the net and reference manual with no luck. It's probably...
In my case, I use IDE 1.8.19 because it is the version that does not give me errors with sketches that have many tabs. The IDE 2.x has given me a lot of headaches. In case of tracking down an error in the code it is easier, the excesses of help...
The MicroMod is working with the ER-TFTM101-1 display.
Still have to get the DMA portion working on the MicroMod. The images were produced in 8-bit mode none DMA, 100ms to display both pictures. I'm sure DMA will speed things up. By the time...
Here is a little background my Ra8876LiteTeeensy library. I wrote the original library. Then @KurtE and @mjs513 decided to optimize it and later @mborgerson added to the library. The the original thread can be found here...
That was the issue:
Teensy and RA8876 parallel 8080 mode testing (8/16)
Bus speed: 40 MHZ
Rotate: After Origins
Drawing two pictures at 794800 bytes in 16-bit mode
Draw time: 26ms
This is the code now:
void...
That seems a bit long?
1024*600*2bpp / 40Mhz is 32.55FPS, which is roughly 30ms per full screen write.
How are you getting over 200ms for two 800kb images?
Not really sure. Probably should run the same test program using SPI mode on my other display to compare.
Here is the sketch I am running:
#include "RA8876_t3.h"
#include "teensy41.c"
#include "Teensy41_Cardlike.h"
uint8_t dc = 13;
uint8_t cs =...
A quick update:
I now have the T41 working with the RA8876 display in both 8-bit and 16-bit modes using the Ra8876LiteTeensy library. @Rezo was correct. The 16-bit mode is twice as fast as the 8-bit mode which makes sense when using twice as many...
@Rezo - I wired up the T41 for 16bit I/O and did some basic reads and writes. All failed. I hooked up my LA to monitor the first two bits of the high byte and low byte. Was reading 0xff from the status reg which was wrong. It should read 0x50...
@mjs513 - That is exactly what i was looking for.
You guys are the best :D
Thanks
Edit: That also explains why I was not seeing any signals on the "RTS-CTS" pins...
@KurtE - Wow, I just finished running the blink sketch on the MMod changing the blink pin number 1 buy 1 and checking each pin with an LED to see which one was blinking. I printed out the ATP pcb image and wrote down the pin number by the...
Sorry for The late reply, Thanks for the clarification. I will probably wire up the T4.1 for 16 bit first and then and test the MicroMod ATP. Right now I am a little frustrated trying to figure out the Teensy software pin numbering as associated...
Hi Rezo, it's 1024x600. It is a good display. My vision is not good enough for anything much smaller than this display. I have not set up DMA yet. It is still using FlexIO3. Still not that familiar with using FlexIO with DMA. More to learn and...
Well I finally ordered the Buydisplay ER-TFTM101-1 with capacitive touch and had it configured for parallel communication in 8080 mode. Using parts of @Rezo's ILI984x_t41_p library, I was able to adapt my Ra8876LiteTeensy library to use the...
@defragster - So basically you were saving the current contents of sector 10 to another buffer (sectorBufferPrior) before writing the first buffer filled with 0xaa to sector 10. Then you read the back the contents of sector 10 and did the...
Yes, The USB drive will have to be reformatted as stated. This is what you should see:
Let's destroy any formatting on a USB thumb drive!!!
Filling sector buffer with 0xaa
Write 1 sector to the USB drive (512 bytes)
Press any key to continue...
Here is an example of doing direct sector reads and writes to a USB thumb drive. It will destroy any file system on the drive!!
#include <USBHost_t36.h>
// Setup USBHost_t36 and as many HUB ports as needed.
USBHost myusb;
USBHub hub1(myusb)...
Specifically regarding Arduino Giga and software, it's pretty clear Arduino has focused on developing certain features. The situation is similar with Teensy, but largely a different set of features. Depending on your perspective, it's easy to...
Meanwhiles, for anyones enjoyment, here is a video of a music player demo running on LVGL v9.0.0
I think there is a lot of room left to optimize.
It has two screen sized frame buffers (1.3Mb each) that LVGL writes into, and the eLCDIF reads from...
Decided to hold off on that for now... Did lay out quick and dirty semi-shield for the Sparkfun ATP board
Slight downside is that two Teensy pnis are not available (22, 28), but...
The only real components to solder in are the SDIO connector and...
@WA2MZG - At one point I was having the same problem when I was adding the use of USB host drives. I started experimenting with different buffer sizes in the mp3 player code:
#define MP3_SD_BUF_SIZE 2048
This is found in FrankB's...