simulavr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Simulavr-devel] VCD record 4x faster than need


From: Valber
Subject: [Simulavr-devel] VCD record 4x faster than need
Date: Mon, 21 Mar 2016 12:08:42 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1

Attached program send 'A' word an UART(F_CPU=16MHz, Baudrate=9600), delay between Word 50ms.

Start record, launch:
simulavr -c vcd:tracein.txt:trace.vcd -f uart_clear_c_tx.elf -d atmega16

After that, I view file in GTKWave and Pulseview(Sigrok) [attached image]

Decoded Baudrate = 2400 = 9600/4
And delay between Word 'A' ~=200 = 50*4

Dirty Hack solved this problem, change in VCD file
from
$timescale 1ns $end
to
$timescale 250ps $end

Attachment: atmega16_uart_vcd_record.tar.gz
Description: application/gzip

Attachment: sigrok_gtkwave.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]