Post Created date
Programming issue
gchapman wrote:Resolved that linter's informational message by replacing '+ 1082' with an index.   If I try with: memcpy(ui8ArGraph[1082], &ui32MyVar, 4);I get a...
Friday, 25 October 2019 - 22:13
Programming issue
  So you have uint8_t x int16_t and the compiler performs this as 16 bit multiplication ? It has every chance to overflow. It needs 24 bits. This is awful.    ...
Friday, 25 October 2019 - 22:08
Programming issue
gchapman wrote: P.S. memcpy - A linter outputs a type mismatch for argument one (uint8_t vs uint32_t) What I understand is the memcpy is blindly copying  a number of bytes...
Friday, 25 October 2019 - 21:50
Programming issue
@ MrKendo Thank you for your detailed reply.
Friday, 25 October 2019 - 19:54
Programming issue
  The .lss file shows: ui8ArRxTx[42] = 0xE1; b0: e0 e0 ldi r30, 0x00 ; 0 b2: f1 e0 ldi r31, 0x01 ; 1 b4: 81 ee ldi r24, 0xE1 ; 225 b6: 82 a7...
Friday, 25 October 2019 - 18:48
SPI data garbled at high speed
    One is 74LVC2G34GW,125. You can try with half of it or with both in parallel per line. Even if this solves the problem, MISO line is more difficult to fix since...
Wednesday, 31 July 2019 - 14:58
SPI data garbled at high speed
Options:     1. Mega 3209 has 3 UARTS and one SPI. One UART you need to communicate with the PC. If other is available, it can be used in SPI mode, so you could split...
Wednesday, 31 July 2019 - 13:43
What's a good level translator from 3.3V to 5V? Either single drivers or multiples.
    There are so many because there are different requirements: - unidirectional - bidirectional - open collector - good for I2C - three state output with output...
Saturday, 22 June 2019 - 01:53
How do I avoid a bus collision? A question for true experts.
El Tangas wrote: So, if you can set stop bits, configure the master for 1 stop bit and the slave for 2 stop bits. This will make the slave think the delay from master is a 2nd...
Tuesday, 18 June 2019 - 15:55
software interrupts
Kartman wrote:You can easily run out of ram with nested interrupts. You have been warned! The general solution is to use a RTOS.   First thing in the slow ISR you disable the...
Tuesday, 18 June 2019 - 15:38
Atmega328pb succesor.
Finally a nice Nano based on Mega4809 at a good price.
Monday, 17 June 2019 - 03:42
How to "trim" a 32- bit INT?
With my poor C skills, I would use unions or pointers 1. and byte 3 with 0x80 (extract the sign bit) 2. and byte 2 with 0x7F (make room for the sign bit in bit 23) 3. add the two...
Wednesday, 29 May 2019 - 21:47