You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the following code for mega1284P configures the USART1 as SPI-master and sends out the same byte again and again (stop the simulation with Ctrl+C!) at maximum speed=f_osc/2. It also sets a pin to measure the time needed for the transmission.
On real hardware with a 18,432MHz crystal this time is about 1,74µs (measured with a scope), but in the VCD-file produced by simavr the time is about 7,7µs! This is way too much.
Is an USART as a SPI-master actually properly simulated by simavr?
I have patched some files to make this mode work, but it's an ugly hack and will currently only work for USART1 on mega1284P. This is enough for me currently to continue what i was actually doing. I attached the diff-files if somebody wants to take a look.
Any advice on how to implement this properly for a decent PR appreciated.
Hi,
the following code for mega1284P configures the USART1 as SPI-master and sends out the same byte again and again (stop the simulation with Ctrl+C!) at maximum speed=f_osc/2. It also sets a pin to measure the time needed for the transmission.
On real hardware with a 18,432MHz crystal this time is about 1,74µs (measured with a scope), but in the VCD-file produced by simavr the time is about 7,7µs! This is way too much.
Is an USART as a SPI-master actually properly simulated by simavr?
The text was updated successfully, but these errors were encountered: