An alternative would be to use the main display buffer - and not use a separate one in ClearDisplay...
Martin
Search found 1398 matches
- Sun Jun 15, 2025 9:14 pm
- Forum: General
- Topic: PIC16F18877+GLCD ST7796
- Replies: 6
- Views: 120
- Sun Jun 15, 2025 7:27 pm
- Forum: Bug Reports
- Topic: ESP32 4Bit SD-Mode Init problem
- Replies: 25
- Views: 12806
Re: ESP32 4Bit SD-Mode Init problem
Just tested cranking up the priority of the separate task 'writer' - and it seems to work much more reliably - with a sector taking 1.3ms to write. I'd also reformatted the card (fully - not quick) - which solved the issues with overwriting files, and might also be something to do with the sped incr...
- Sun Jun 15, 2025 7:09 pm
- Forum: Tips & Tricks
- Topic: PIC16F18877 Drag and Drop board. Programming made easy
- Replies: 0
- Views: 12
PIC16F18877 Drag and Drop board. Programming made easy
To experiment with the PIC16F18877 - I recently got a neat board (the DM164142 - see https://uk.farnell.com/microchip/dm164142/mplab-xpress-eval-board-pic16/dp/2764484) This is rather neat for evaluation purposes - there is USB power and no need for a PICKit - programming is done by dragging and dro...
- Sun Jun 15, 2025 6:26 pm
- Forum: General
- Topic: PIC16F18877+GLCD ST7796
- Replies: 6
- Views: 120
Re: PIC16F18877+GLCD ST7796
Out of interest - I took a look at the component for this - the 'offending' buffer is used in ClearDisplay - and as it is a local variable needs to be allocated on the stack - this has limited space (128 bytes). So - this gives a couple of options - one is to make the buffer global (which then alway...
- Sat Jun 14, 2025 8:17 pm
- Forum: Bug Reports
- Topic: ESP32 4Bit SD-Mode Init problem
- Replies: 25
- Views: 12806
Re: ESP32 4Bit SD-Mode Init problem
Writing to the card in the main loop seems to write much more rapidly - with a sector taking between 1 nd 9ms - and obviously no delay between writes - and writing 1000 sectors taking 1.05 s - which is better!
- Sat Jun 14, 2025 7:59 pm
- Forum: Bug Reports
- Topic: ESP32 4Bit SD-Mode Init problem
- Replies: 25
- Views: 12806
Re: ESP32 4Bit SD-Mode Init problem
Just tested on the p4 - and writing 512bytes (1 sector takes) ~20ms. This is fairly consistent - with very occasional 'longer' writes. However - I found I needed a delay between notifications to the 'Write' task - of 40ms (with blocks being missed - so Write outputs 01010101(....) if writing correct...
- Thu Jun 12, 2025 11:09 pm
- Forum: Projects - Embedded
- Topic: Odd Interrupt Behaviour - One Int calls two ISRs
- Replies: 5
- Views: 79
Re: Odd Interrupt Behaviour - One Int calls two ISRs
It looks like a bug: The code for the interrupt is generated even if the interrupt enable macro is disabled - so in your code: void MX_INTERRUPT_MACRO(void) { //Handler code for [ECCP1 Interrupt] if (PIR2bits.ECCP1IF) { FCM_PulseRPM_ISR(); // call selected macro } //Handler code for [ECCP1 SPEED] if...
- Thu Jun 12, 2025 11:06 pm
- Forum: Projects - Embedded
- Topic: Odd Interrupt Behaviour - One Int calls two ISRs
- Replies: 5
- Views: 79
Re: Odd Interrupt Behaviour - One Int calls two ISRs
It looks like a bug: The code for the interrupt is generated even if the interrupt enable macro is disabled - so in your code: void MX_INTERRUPT_MACRO(void) { //Handler code for [ECCP1 Interrupt] if (PIR2bits.ECCP1IF) { FCM_PulseRPM_ISR(); // call selected macro } //Handler code for [ECCP1 SPEED] if...
- Thu Jun 12, 2025 10:07 pm
- Forum: Bug Reports
- Topic: ESP32 4Bit SD-Mode Init problem
- Replies: 25
- Views: 12806
Re: ESP32 4Bit SD-Mode Init problem
Hi Stefan, Could you try 'buffering' the output and writing in larger blocks - probably a multiple of a sector size would be best. Try 1 sector 10x and 100x for example and see how the times look - there should be less 'overhead' for a larger buffer size, but whether it will translate to a meaningfu...
- Wed Jun 11, 2025 9:39 pm
- Forum: General
- Topic: DMX master has issues
- Replies: 31
- Views: 641
Re: DMX master has issues
You posted whilst I typed.
It would be easy to add a delay between bytes sent if required.
The code I posted 'should' (famous last words) be in the correct 8n2 format - and at 250000baud. My logic analyser isn't keen on reading them - though probably would if I tweaked the baud rate for testing?
It would be easy to add a delay between bytes sent if required.
The code I posted 'should' (famous last words) be in the correct 8n2 format - and at 250000baud. My logic analyser isn't keen on reading them - though probably would if I tweaked the baud rate for testing?