Post Created date
code never executed
If you are concerned about privacy/security, you can memset allocated memory (RAM, disk, etc.) so the previous contents are not readable.  Or when you free a string or a disk...
Monday, 1 July 2019 - 22:11
Pond ripple effect
My recollection was that the wave would be a Bessel function, but I just consulted Wikipedia and they're really complicated!  Clawson's formula should look good.   --...
Monday, 1 July 2019 - 10:10
TWI Slave - How to detect Master has finished sending
If your slave is going to receive only two bytes, then it will want to respond with ACK for the first byte and then a NACK after the second byte.  The TWEA bit needs to be...
Sunday, 30 June 2019 - 20:39
TWI Slave - How to detect Master has finished sending
See the description for the TWEA bit in the TWCR register in the datasheet.   --Mike  
Sunday, 30 June 2019 - 20:04
TWI Slave - How to detect Master has finished sending
Either the amount of data needs to be known beforehand by both master and slave, or the slave tells the master when it's had enough.  The slave responds to each byte sent...
Sunday, 30 June 2019 - 19:15
Gigabytes: No way!
Well, we now have a large supply of cat videos which need watching.   --Mike  
Saturday, 29 June 2019 - 01:31
LCD and component Supplier
avrcandies wrote: now I've seen EVERYTHING:   That is too funny!!   --Mike  
Saturday, 29 June 2019 - 01:21
Printing a float to the USART with at least 5 decimals
clawson wrote: Make sure you are sitting down when you read the price tags!   IAR is too embarrassed to even put the price on their website.   --Mike  
Friday, 28 June 2019 - 20:42
PORTD.OUT Usage scenario
I don't know xmega, but on regular megas there is an input synchronizer which delays any pin changes by one clock cycle.  So if you change some outputs which are expected to...
Friday, 28 June 2019 - 20:32
Gigabytes: No way!
The Commodore VIC-20 had 4K built-in and you could buy a cartridge with an additional 4K. I didn't have a way to save my work so I didn't get very far with it.   --Mike  
Thursday, 27 June 2019 - 21:46
Program Will Not Enter Main While Loop
updateTickFlag is used by both the main function and an interrupt routine, so it needs to be declared as volatile.  Without volatile, the compiler assumes it knows everything...
Thursday, 27 June 2019 - 18:33
multiple I2C master problem
Multiple masters are addressable by each other.  You place a master's slave address in TWAR and when it is configured as a slave or loses arbitration, it recognizes its own...
Monday, 24 June 2019 - 07:33

Pages